27 ADC - Analog-to-Digital Converter
The Analog-to-Digital Converter (ADC) allows the conversion of an analog input signal into a 10-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 circuit is connected to the input of the converter. The converter generates a 10-bit binary result via successive approximation and stores the results in the ADC Result registers (ADRESH:ADRESL register pair).
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. This interrupt can be used to wake up the device from Sleep.
Figure 27-1 shows the block diagram of the ADC.