ADC DMA Transfer

Brief

Conversion triggered by software and results moved to RAM with DMA.

Details

This example demonstrates transfer of results from ADC to a buffer using DMA.

Block diagram

Test Case:

  • Triggers 1 sequencer on the ADC instance using software/API. Waits for DMA transfer to complete with a timeout mechanism to prevent indefinite blocking.

Validation:

  • Performs a pass/fail test by checking that all results are valid (in the range 0-4095).

Peripherals used

ADC
    1 instance, 2 SOCs (SOC0, SOC1) on SEQ1.
DMA
    1 instance in repeated single transfer mode.
GPIO
    2 GPIOs connected to LEDs.
VREF
    Internal reference voltage. 3.3V reference range.
SoC
    Interrupts - DMAINT1 of ADC and DMA interrupt.

External connections

Analog signal input to ADC pin

  • Connect: BoosterPack header J3 pin 23 to Analog signal from an external source

LED Details: PASS LED (LED5), FAIL LED (LED4)