SPRUJD3A July 2025 – October 2025 F28E120SB , F28E120SC
FILE: mcpwm_ex3_deadband.c
This example configures myMCPWM0 and myMCPWM1 as follows myMCPWM0 Time Base Configurations In Up Down Count Mode for 4000 TBCLKs or 20KHz Frequency for TBCLK of 160MHz Action Qualifier is configurations Output A1 : Set High on Counter matches CMPA counting up, set low on CMPA match counting down Output A2 : Set High on Counter matches CMPA counting up, set low on CMPA match counting down Output A3 : Set High on Counter matches CMPA counting up, set low on CMPA match counting down DeadBand Active High Configuration is selected with 100 TBCLK deadband
myMCPWM1 Time Base Configurations In Up Down Count Mode for 4000 TBCLKs or 20KHz Frequency for TBCLK of 160MHz Action Qualifier is configurations Output A1 : Set High on Counter matches CMPA counting up, set low on CMPA match counting down DeadBand Disabled Configurations
External Connections
Monitor the MCPWM pins for the waveforms. Observe J4 40 - GPIO0 - myMCPWM0 Output A1 - Active High Configuration Observe J4 39 - GPIO1 - myMCPWM0 Output B1 - Active High Configuration Observe J4 38 - GPIO2 - myMCPWM0 Output A2 - Active High Configuration Observe J4 37 - GPIO3 - myMCPWM0 Output B2 - Active High Configuration Observe J4 36 - GPIO4 - myMCPWM0 Output A3 - Active High Configuration Observe J4 35 - GPIO5 - myMCPWM0 Output B3 - Active High Configuration Observe J4 7 - GPIO12 - myMCPWM1 Output A1 - Can be used for reference