FILE: epwm_ex6_valley_switching.c
This example configures ePWM1 as follows
- ePWM1 with DCAEVT1 forcing the ePWM output LOW
- GPIO24 is used as the input to the INPUT XBAR INPUT1
- INPUT1 (from INPUT XBAR) is used as the source for DCAEVT1
- GPIO24 is set to output and toggled in the main loop to trip the PWM
- ePWM1 with DCBEVT1 forcing the ePWM output LOW
- GPIO24 is used as the input to the INPUT XBAR INPUT1
- INPUT1 (from INPUT XBAR) is used as the source for DCAEVT1
- GPIO24 is set to output and toggled in the main loop to trip the PWM
- DCBEVT1 uses the filtered version of DCBEVT1
- The DCFILT signal uses the valley switching module to delay the
- DCFILT signal by a software defined DELAY value.
External Connections
- GPIO0 EPWM1A
- GPIO1 EPWM1B
- GPIO24 TRIPIN1 (Output Pin, toggled through software)
Watch Variables