ADC MCPWM Trigger
Brief
Demonstrates ADC conversions triggered by the MCPWM Event Trigger submodule’s SOCA event.
Details
This example shows how to configure the ADC to be triggered by the MCPWM peripheral. The MCPWM module generates a periodic trigger signal that initiates ADC conversions without CPU intervention.
Test Case:
Configures MCPWM Event Trigger submodule’s SOCA event to generate periodic trigger signals. Sets up ADC sequencer to respond to MCPWM trigger. Captures and validates ADC samples through interrupt handling.
Validation:
Performs a pass/fail test by checking that all results are valid (in the range 0-4095).
Peripherals used
ADC
1 instance, SEQ1 configured to respond to MCPWM trigger.
MCPWM
1 instance.
GPIO
2 GPIOs connected to LEDs.
VREF
Internal reference voltage. 3.3V reference range.
SoC
Interrupts - ADC INT1.
External connections
Analog signal input to ADC pin
Connect: BoosterPack header J3 pin 23 to Analog signal from an external source
PWM outputs (optional, for probing)
MCPWM 1A: BoosterPack header J4 pin 40 (PC15)
MCPWM 1B: BoosterPack header J4 pin 39 (PC14)
LED Details: PASS LED (LED8), FAIL LED (LED7)