![Sino Wealth SH79F3283 Скачать руководство пользователя страница 110](http://html1.mh-extra.com/html/sino-wealth/sh79f3283/sh79f3283_manual_1283063110.webp)
SH79F3283
110
8.7 Analog Digital Converter (ADC)
8.7.1 Feature
12-bit Resolution
Build in V
REF
Selectable external or built-in V
REF
9 analog Channels input
The SH79F3283 includes a single ended, 12-bit SAR Analog to Digital Converter (ADC) with build in reference voltage
connected to the V
DD
, users also can select the AVREF port input reference voltage. The 10 ADC channels are shared with 1
ADC module; each channel can be programmed to connect with the analog input individually. Only one channel can be
available at one time. GO/DONE
————
signal is available to start convert, and indicate end of convert. When conversion is
completed, the data in AD convert data register will be updated and ADCIF bit in ADCON register will be set. If ADC Interrupt
is enabled, the ADC interrupt will be generated.
The ADC integrates a digital compare function to compare the value of analog input and the digital value in the AD converter.
If this function is enabled (set EC bit in ADCON register) and ADC module is enabled (set ADON bit in ADCON register).
When the corresponding digital value of analog input is larger than the compare value in register (ADDH/L), the ADC interrupt
will occur, otherwise no interrupt will be generated. The digital comparator can work continuously when GO/DONE
————
bit is set
until software clear, which behaviors different with the AD converter operation mode.
The ADC module including digital compare module can wok in Idle mode and the ADC interrupt will wake up the Idle mode,
but is disabled in Power-Down mode.
8.7.2 ADC Diagram
Input voltage
SCH3 - SCH0
ADC
AN0
AN2
AN3
CH8 - CH0
0011
0100
0101
0110
0111
AN4
AN5
V
DD
Input reference
voltage
REFC
0
AV
REF
1
0000
0001
0010
AN6
AN7
AN1
11xx
1.25V
Reference
AN8
1000
ADC Diagram