31.5.6 Control F
| Name: | CTRLF |
| Offset: | 0x05 |
| Reset: | 0x00 |
| Property: | - |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| FREERUN | SCALING[1:0] | SAMPNUM[3:0] | |||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
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.
| Value | Name | Description |
|---|---|---|
| 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.
| Value | Name | Description |
|---|---|---|
| 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.
| Value | Name | Description |
|---|---|---|
| 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 |
