- Single Conversion and Repeat Single Conversion
- Configure STARTADD bits to select the desired MEMCTLx register.
- MEMCTLx is NOT correlated to MEMRESx.
- MEMRESx is correlated to MEMRESIFGx.
- Configure MEMCTL CHANSEL bits to select the desired ADC channel.
- Conversion data is loaded sequentially into MEMRES0,1,2,….N (organized as a FIFO).
- The CPU or DMA must read ADC samples from the dedicated FIFODATA register and not from MEMRES registers directly.
- Data in the FIFO is always compacted with two samples and provided as 32-bit data upon a FIFODATA read by CPU or DMA.
- MEMRESIFGx can be used as a threshold condition to generate a CPU interrupt or DMA trigger.
- For full use of the FIFO, the last MEMRESIFG can be used.
- The conversion overflow flag is set when the ADC updates MEMRESx before the previous sample is read by the CPU or DMA.
- The conversion underflow flag is set when the CPU or DMA reads the FIFODATA register before the conversion result is available in the MEMRESx registers.
Note: Single conversion mode with FIFO enabled is not recommended for CPU or DMA-based operation. This leads to underflow conditions and unwanted 16-bit data has to be discarded by software.
- Sequence Conversion and Repeat Sequence Conversion
- Configure STARTADD bits to select the first MEMCTL in the sequence.
- Configure ENDADD bits to select the last MEMCTL in the sequence.
- MEMCTLx is NOT correlated to MEMRESx.
- MEMRESx is correlated to MEMRESIFGx.
- Configure each MEMCTLx CHANSEL bit to select the desired ADC channels
- Conversion data is loaded sequentially into MEMRES0,1,2,….N (organized as a FIFO).
- The CPU or DMA must read ADC samples from the dedicated FIFODATA register and not from MEMRES registers directly.
- Data in the FIFO is always compacted with two samples and provided as 32-bit data upon a FIFODATA read by CPU or DMA.
- MEMRESIFGx can be used as a threshold condition to generate a CPU interrupt or DMA trigger.
- For full use of the FIFO, the last MEMRESIFG can be used.
- The conversion overflow flag is set when the ADC updates MEMRESx before the previous sample is read by the CPU or DMA.