ADC PPB Limit

Brief

Demonstrates PPB limit detection for monitoring analog signals against set thresholds.

Details

This example showcases how to use the ADC’s Post-Processing Block (PPB) to detect when analog signals cross specific voltage thresholds. The PPB can generate events when the input signal:

  • Exceeds a high threshold (Trip High)

  • Falls below a low threshold (Trip Low)

  • Remains between high and low thresholds (In-Limit)

Block diagram

Signal Routing

  • Internal DAC generates test voltages.

  • ADC samples these voltages and PPB monitors for threshold events.

Test Cases:

  • In-Limit detection: Tests if signal stays within high and low thresholds.

  • Trip High detection: Tests if signal exceeds high threshold.

  • Trip Low detection: Tests if signal falls below low threshold.

Validation:

  • Each test verifies that the appropriate PPB event is triggered.

Peripherals used

ADC
    1 instance with Post-Processing Block (PPB1) configured with threshold limits.
CMPSSLITE
    Used to generate test voltages for the ADC input.
GPIO
    2 GPIOs connected to LEDs.
VREF
    Internal reference voltage. 3.3V reference range.
SoC
    Interrupts - ADC EVT.

External connections

DAC Out pin to ADC input pin loopback

  • Connect: BoosterPack header J3 pin 30 to BoosterPack header J3 pin 23

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