31.5.6 Control F

Name: CTRLF
Offset: 0x05
Reset: 0x00
Property: -

Bit 76543210 
  FREERUNSCALING[1:0]SAMPNUM[3:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bit 6 – FREERUN Free-Running

This bit controls whether the ADC Free-Running mode is enabled.

Free-Running mode is not supported in Series mode.

ValueNameDescription
0x0 DISABLE The ADC Free-Running mode is disabled
0x1 ENABLE The ADC Free-Running mode is enabled. The first conversion is started by writing the IMMEDIATE setting to the START bit field in the Command (ADCn.COMMAND) register. In Free-Running mode, a new conversion is started as soon as the previous conversion or accumulation is completed, which is signaled by the RESRDY flag in the Interrupt Flags (ADCn.INTFLAGS) register.

Bits 5:4 – SCALING[1:0] Result Scaling

This bit field is used to control the scaling of the digital value in the SAMPLE and RESULT registers. The NORMAL and LEFTADJ modes are truncated when accumulating more than 64 samples (result exceeds 16 bits), while the AVERAGE is rounded.

ValueNameDescription
0x0 NORMAL

The ADC output of sample or accumulated result is right-adjusted. If accumulating more than 64 samples, result is left-adjusted.

0x1 LEFTADJ ADC output left-adjusted
0x2 AVERAGE The accumulated ADC result is averaged and right-adjusted

Bits 3:0 – SAMPNUM[3:0] Sample Accumulation Number Select

This bit field selects the number of consecutive ADC samples that are automatically accumulated into the ADC Result (ADCn.RESULT) register. The most recent sample will be available in the ADC Sample (ADCn.SAMPLE) register.

ValueNameDescription
0x0 NONE No accumulation, single sample per conversion result
0x1 ACC2 2 samples accumulated
0x2 ACC4 4 samples accumulated
0x3 ACC8 8 samples accumulated
0x4 ACC16 16 samples accumulated
0x5 ACC32 32 samples accumulated
0x6 ACC64 64 samples accumulated
0x7 ACC128 128 samples accumulated
0x8 ACC256 256 samples accumulated
0x9 ACC512 512 samples accumulated
0xA ACC1024 1024 samples accumulated
Other - Reserved