Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Hello,
I have the EPWM working in up_down mode, and I do the qualifying as follows:
// ePWMA High when TBCTR=0
EPWM_setActionQualifierAction(EPWM_BASE[pwm], EPWM_AQ_OUTPUT_A,
EPWM_AQ_OUTPUT_HIGH, EPWM_AQ_OUTPUT_ON_TIMEBASE_ZERO);
// ePWMA Low when up count TBCTR=CMPA
EPWM_setActionQualifierAction(EPWM_BASE[pwm], EPWM_AQ_OUTPUT_A,
EPWM_AQ_OUTPUT_LOW, EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPA);
// ePWMA High when down count TBCTR=CMPA
EPWM_setActionQualifierAction(EPWM_BASE[pwm], EPWM_AQ_OUTPUT_A,
EPWM_AQ_OUTPUT_HIGH, EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPA);
// ePWMB Low when TBCTR=0
EPWM_setActionQualifierAction(EPWM_BASE[pwm], EPWM_AQ_OUTPUT_B,
EPWM_AQ_OUTPUT_LOW, EPWM_AQ_OUTPUT_ON_TIMEBASE_ZERO);
// ePWMB High when up count TBCTR=CMPA
EPWM_setActionQualifierAction(EPWM_BASE[pwm], EPWM_AQ_OUTPUT_B,
EPWM_AQ_OUTPUT_HIGH, EPWM_AQ_OUTPUT_ON_TIMEBASE_UP_CMPA);
// ePWMB Low when down count TBCTR=CMPA
EPWM_setActionQualifierAction(EPWM_BASE[pwm], EPWM_AQ_OUTPUT_B,
EPWM_AQ_OUTPUT_LOW, EPWM_AQ_OUTPUT_ON_TIMEBASE_DOWN_CMPA);
So, I start with EPMW_A high, when I reach the comparator, I make it low, and then high again when crossing the comparator down. The EPWM_B works complementary.
I get the following spikes on EPWM_B, while _A keeps low (duty cyle = 0)

What can be the issue?
If I use just count_up mode, I don´t have this issue...
Thanks a lot!
Luis
