41.6.1 ADCON0

ADC Control Register 0
Note:
  1. This bit requires ON bit to be set.
  2. If cleared by software while a conversion is in progress, the results of the conversion up to this point will be transferred to ADRES and the state machine will be reset, but the ADIF interrupt flag bit will not be set; filter and threshold operations will not be performed.
Name: ADCON0
Address: 0x3F3

Bit 76543210 
 ONCONTCSENCSFM[1:0]ICGO 
Access R/WR/WR/WR/WR/WR/WR/WR/W/HC/HS 
Reset 00000010 

Bit 7 – ON ADC Enable

ValueDescription
1 ADC is enabled
0 ADC is disabled

Bit 6 – CONT ADC Continuous Operation Enable

ValueDescription
1 GO is retriggered upon completion of each conversion trigger until ADCHIF is set (if SOI is set) or until GO is cleared (regardless of the value of SOI)
0 ADC is cleared upon completion of each conversion trigger

Bit 5 – CSEN ADC Context Scan Enable

ValueDescription
1 Automatic context scanning enabled
0 Automatic context scanning disabled

Bit 4 – CS ADC Clock Selection

ValueDescription
1 Clock supplied from ADCRC dedicated oscillator
0 Clock supplied by FOSC, divided according to ADCLK register

Bits 3:2 – FM[1:0] ADC Results Format/Alignment Selection

ValueNameDescription
x1 IC = 0 ADRES and ADPREV data are right justified
x0 IC = 0 ADRES and ADPREV data are left justified, zero-filled
11 IC = 1 ADRES and ADPREV data are right justified, sign bit
10 IC = 1 ADRES and ADPREV data are left justified, sign bit, zero-filled
01 IC = 1 ADRES and ADPREV data are right justified, two’s compliment
00 IC = 1 ADRES and ADPREV data are left justified, two’s compliment, zero-filled

Bit 1 – IC ADC Input Configuration

ValueDescription
1 ADC is operating in Differential Mode
0 ADC is operating in Single-Ended Mode

Bit 0 – GO  ADC Conversion Status(1,2)

ValueDescription
1 ADC conversion cycle in progress. Setting this bit starts an ADC conversion cycle. The bit is cleared by hardware as determined by the CONT bit
0 ADC conversion completed/not in progress
This bit requires ON bit to be set. If cleared by software while a conversion is in progress, the results of the conversion up to this point will be transferred to ADRES and the state machine will be reset, but the ADIF interrupt flag bit will not be set; filter and threshold operations will not be performed.