31.3.3.10 Accumulator Test

The Accumulator Test mode aids in diagnostics of the accumulator and result formatting hardware, and can test the integrity of the logic. It is enabled by configuring the MODE bit field in the Command (ADCn.COMMAND) register to ACCTEST.

The Accumulator Test mode is used as follows:
  • Writing to the Result (ADCn.RESULT) register writes to the internal 20-bit accumulator
  • Writing to the Sample (ADCn.SAMPLE) register accumulates the 10 LSb of the written value in the internal 20-bit accumulator
  • Reading the Result register will read the 16 bits of the accumulator
Figure 31-6. Accumulator Test
Note:
  1. If the Result Scaling (SCALING) bit field in the Control F (ADCn.CTRLF) register is ‘1’, a value written to the accumulator will be left-adjusted by 4 bits.
  2. If the SCALING bit field is ‘1’, the 16 MSb of the 20-bit internal accumulator will be read; if SCALING bit is ‘0’, the 16 LSb of the 20-bit internal accumulator will be read.
Figure 31-7. Register Access and Adjustment