ADC Results FIFO
Brief
Demonstrates efficient ADC data collection using per‑sequencer hardware FIFO buffers.
Details
This example showcases the ADC’s FIFO functionality to efficiently collect multiple conversion results without requiring an interrupt for each individual sample. The ADC stores pairs of conversion results in each FIFO entry, reducing the processing overhead and improving data collection efficiency.
Test Case:
Triggers both sequencers via software for multiple iterations. Reads and validates all FIFO entries for both sequencers.
Validation:
Checks that all ADC results are within valid 12-bit range (0-4095).
Verifies proper FIFO operation and pending reads counter.
Peripherals used
ADC
1 instance, 2 sequencers (SEQ1 and SEQ2). SEQ1 handles SOC0-SOC3, SEQ2 handles SOC4-SOC15.
GPIO
2 GPIOs connected to LEDs.
VREF
Internal reference voltage. 3.3V reference range.
SoC
Interrupts - ADC INT1 and INT2.
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 (LED8), FAIL LED (LED7)