Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules
Fig. 7-1 ADC Mode and Registers
The module is under the control of the bits of four registers:
● ADRESH - Contains high byte of conversion result;
● ADRESL - Contains low byte of conversion result;
● ADCON0 - Control register 0; and
● ADCON1 Control register 1
ADRESH and ADRESL Registers
When converting an analog value into a digital one, the result of the 10-bit A/D conversion will be stored in these two
registers. In order to deal with this value easier, it can appear in two formats- left justified and right justified. The ADFM
bit of the ADCON1 register determines the format of conversion result (see figure 7-2). In the event that A/D converter is
not used, these registers may be used as general-purpose registers.
http://www.mikroe.com/en/books/picmcubook/ch7/ (2 of 14)5/3/2009 11:34:24 AM