32 ADC2 - Analog-to-Digital Converter
The Analog-to-Digital Converter with Computation (ADC2) allows conversion of an analog input signal to a 12-bit binary representation of that signal. This device uses analog inputs, which are multiplexed into a single Sample-and-Hold circuit. The output of the Sample-and-Hold is connected to the input of the converter. The converter generates a 12-bit binary result via successive approximation and stores the conversion result into the ADC Result registers (ADRESH:ADRESL register pair).
Additionally, the following features are provided within the ADC module:
- 13-bit Acquisition Timer
- Hardware Capacitive Voltage Divider (CVD) Support:
- 13-bit precharge timer
- Adjustable Sample-and-Hold capacitor array
- Guard ring digital output drive
- Automatic Repeat and Sequencing:
- Automated double sample conversion for CVD
- Two sets of result registers (Result and Previous result)
- Auto-conversion trigger
- Internal retrigger
- Computation Features:
- Averaging and low-pass filter functions
- Reference comparison
- Two-level threshold comparison
- Selectable interrupts
The figure below shows the block diagram of the ADC.
The ADC voltage reference is software selectable to be either internally generated or externally supplied.
The ADC can generate an interrupt upon completion of a conversion and upon threshold comparison. These interrupts can be used to wake up the device from Sleep.