18.3.1 ADC n Control Register

Note:
  1. Timing is approximate and dependent on the 32K oscillator accuracy. Changing this value during ADC operation may cause erratic recalibration timing.
  2. Recovery from Standby mode requires 230 ADC clock cycles.
  3. Set the ADON bit only after the ADC module has been configured. Changing ADC configuration bits when ADON = 1 will result in unpredictable behavior.
Table 18-5. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Gray cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
SSoftware settable bitnCore NumberxChannel number
Name: ADnCON
Offset: 0x800, 0xA00

Bit 3130292827262524 
 ADRDYCALRDYCALREQACALENCALRATE[1:0]OMODE[1:0] 
Access HS/HC/RHS/HC/RR/W/HCR/WR/WR/WHS/HC/RHS/HC/R 
Reset 00000000 
Bit 2322212019181716 
 RPTCNT[5:0]RESERVEDSTNDBY 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 01001010 
Bit 15141312111098 
 ON    TSTLOCK TSTEN 
Access R/WR/SR/W/C 
Reset 000 
Bit 76543210 
  CALCNT[1:0]      
Access R/WR/W 
Reset 00 

Bit 31 – ADRDY ADC Ready bit

The bit indicates that the ADC has been enabled and has completed its power-up and self-calibration process.
ValueDescription
1ADC is ready
0ADC is off

Bit 30 – CALRDY Calibration Done bit

ValueDescription
1Calibration cycle has finished
0Calibration was not started or is in progress

Bit 29 – CALREQ Software Calibration Cycle Request bit

ValueDescription
1Setting this bit executes the calibration cycle
0Calibration cycle is not requested

Bit 28 – ACALEN This bit enables periodic ADC recalibration. The calibration cycles period is defined by CALRATE (ADnCON[27:26]) bits.

ValueDescription
1Periodic recalibration is enabled
0Periodic recalibration is off

Bits 27:26 – CALRATE[1:0]  Auto Recalibration Period bits (1)

ValueDescription
11Recalibration every 4096 seconds
10Recalibrate every 1024 seconds
01Recalibrate every 64 seconds
00Recalibrate every second

Bits 25:24 – OMODE[1:0] ADC Operation Mode Status bits

ValueDescription
1x

ADC is on

01ADC is in standby mode
00ADC is powered down

Bits 23:18 – RPTCNT[5:0] Conversion Repeat Timer Period bits

This timer can be used to generate ADC Triggers periodically by selecting the RPTCNT timer as a trigger source in TRG1SRC (ADnCHxCON[4:0]) or TRG2SRC (ADnCHxCON[23:19]) bits. This timer counts ADC clock cycles.

ValueDescription
11111164 ADC clock cycles between triggers
...
00000103 ADC clock cycles between triggers
0000012 ADC clock cycles between triggers
0000001 ADC clock cycle between triggers

Bit 17 – RESERVED

Bit 16 – STNDBY  ADC Standby Enable bit(2)

ValueDescription
1ADC module is in a power reduced mode
0

ADC is in normal active mode

Bit 15 – ON  ADC Enable bit(3)

ValueDescription
1ADC module is enabled
0ADC module is disabled

Bit 10 – TSTLOCK TSTEN Lock bit

ValueDescription
1TSTEN bit cannot be set to 1 but can be cleared to 0
0TSTEN bit can be set to 1

Bit 8 – TSTEN Test Mode Enable bit

In the test mode the result of a conversion for all channels is overwritten with a value from ADnDATAOVR register.
ValueDescription
1The test mode is enabled
0The test mode is disabled

Bits 6:5 – CALCNT[1:0] ADC Idle Cycles Prior to Calibration bits

ValueDescription
11Wait for 16 activity free ADC clock cycles before initiating requested calibration
10Wait for 8 activity free ADC clock cycles before initiating requested calibration
01Wait for 4 activity free ADC clock cycles before initiating requested calibration
00Wait for 2 activity free ADC clock cycles before initiating requested calibration