ADC TimerG Trigger

Brief

Demonstrates ADC conversions triggered by the TimerG’s zero-event.

Details

This example demonstrates how to use TimerG to generate a periodic zero‑event that triggers the ADC conversion.

Block diagram

Test Case:

  • After a set number of TimerG triggers are fired the example checks if the number of ADC samples equal the number of TimerG triggers.

Validation:

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

Peripherals used

ADC
    1 instance, SEQ1 configured to respond to TimerG trigger.
TIMG
    1 instance.
GPIO
    2 GPIOs connected to LEDs.
VREF
    Internal reference voltage. 3.3V reference range.
SoC
    ADC INT1, TIMG INT.

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)