User manual

Robotics experiment with PIC microcontroller l 59
bit 1- GO/DONE: A/D Conversion Status bit
1 = A/D conversion cycle in progress. Setting this bit starts an A/D conversion
cycle. This bit is automatically cleared by hardware when the A/D
conversion has completed.
“0” = A/D conversion completed/not in progress
bit 0 - ADON: ADC Enable bit
1 = ADC is enabled
0 = ADC is disabled and consumes no operating current
5.2.2 ADCON1 : A/D Control register 1
Detail of each bit in ADCON1 register is shown below.
ADFM -
%$#"!
>EJ
U-0
- VCFG1 VCFG0 - - -
U-0 U-0 U-0R/W-0 R/W-0R/W-0U-0
bit 7 - ADFM: A/D Conversion Result Format Select bit
1 = Right justified
0 = Left justified
bit 6 - Unimplemented: Read as “0”
bit 5 - VCFG1: Voltage Reference bit
1 = VREF- pin
0 = Vss
bit 4 - VCFG0: Voltage Reference bit
1 = VREF+ pin
0 = V
DD
bit 3 to 0 - Unimplemented: Read as ‘0