14. 12-bit ADC
A96G150 User's manual
168
14
12-bit ADC
Analog-to-digital converter (ADC) of A96G150 allows conversion of an analog input signal to
corresponding 12-bit digital value. This A/D module has eight analog inputs. Output of the multiplexer
becomes input into the converter which generates the result through successive approximation.
The A/D module has four registers which are the A/D converter control high register (ADCCRH), A/D
converter control low register (ADCCRL), A/D converter data high register (ADCDRH), and A/D
converter data low register (ADCDRL).
ADSEL[3:0] bits are used to select channels to be converted. To execute A/D conversion, TRIG[2:0]
bits should be set to ‘xxx’. Registers ADCDRH and ADCDRL contain the result of A/D conversion. When
the conversion is completed, the result is loaded into ADCDRH and ADCDRL, A/D conversion status
bit AFLAG is set to ‘1’, and A/D interrupt is set. During the A/D conversion, AFLAG bit is read as ‘0’.
14.1
Conversion timing
A/D conversion process requires 4 steps (4 clock edges) to convert each bit and 12 clocks to set up
A/D conversion. Therefore, total of 58 clocks are required to complete a 12-bit conversion: For example,
when fx/8 is selected for conversion clock with a 12MHz fxx clock frequency, one clock cycle i
s 0.66μs,
and each bit conversion requires 4 clocks. The conversion rate is calculated as follows:
4 clocks/bit × 12 bits + set
-up time = 60 clocks
ADC Conversion Time = ADCLK * 60 cycles
Please remember that the A/D converter requires at least 7.5us for conversion time, so the conversion
time must be set bigger than 7.5us.
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...