ADC Software Triggered Conversion

Brief

Conversion triggered by Software

Details

This example demonstrates ADC (Analog-to-Digital Converter) software-triggered conversion functionality. Powers up the ADC converter core and waits for internal reference stabilization.

Block diagram

Signal Routing: Analog signal input to ADC pin

Test Cases:

  • Triggers all 4 sequencers on the ADC instance using software/API

  • Waits for ADC conversions to complete with a timeout mechanism to prevent indefinite blocking

  • Reads all SOC (Start of Conversion) results from the ADC and stores them in a local buffer

Validation:

  • Performs a pass/fail test by checking that all results are valid (not greater than 4095)

  • Prints conversion results to the console

Peripherals used

ADC
  Instance  : APP_ADC0
     Sequencers  : 4
     SEQ1        :
       SOCs      : SOC0 to SOC3 - same channel for all
     SEQ2        :
       SOCs      : SOC4 to SOC7 - same channel for all
     SEQ3        :
       SOCs      : SOC8 to SOC11 - same channel for all
     SEQ4        :
       SOCs      : SOC12 to SOC15 - same channel for all
     Interrupts  :
       INT1      : Disabled
       INT2      : Disabled
       INT3      : Disabled
       INT4      : Disabled
VREF
    Reference   : Internal
       Mode      : 3.3V range

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)