Other Parts Discussed in Thread: C2000WARE
Hi,
I would like to have a RED and FED at my ePWM1a, but despite configuring it ine the deadband delay, I do not see any delay in the ePWM waveform. Please what can be the problem.
The configuration of my ePWM deadband is below
/**< dead band configuration */
/**< configure RED for delay of xxxms with the b comparator*/ //TODO verify
//EPWM_setDeadBandCounterClock (EPWM1_BASE, EPWM_DB_COUNTER_CLOCK_FULL_CYCLE);
EPWM_setDeadBandDelayMode (EPWM1_BASE, EPWM_DB_RED, true);
EPWM_setDeadBandDelayMode (EPWM1_BASE, EPWM_DB_FED, true);
EPWM_setRisingEdgeDeadBandDelayInput (EPWM1_BASE, EPWM_DB_INPUT_EPWMA);
EPWM_setFallingEdgeDeadBandDelayInput (EPWM1_BASE, EPWM_DB_INPUT_EPWMA);
EPWM_setDeadBandDelayPolarity (EPWM1_BASE, EPWM_DB_RED, EPWM_DB_POLARITY_ACTIVE_LOW);
EPWM_setDeadBandDelayPolarity (EPWM1_BASE, EPWM_DB_FED, EPWM_DB_POLARITY_ACTIVE_HIGH);
EPWM_setRisingEdgeDelayCount (EPWM1_BASE, 0x1ff);
EPWM_setFallingEdgeDelayCount(EPWM1_BASE, 0x5ff);
EPWM_setDeadBandControlShadowLoadMode (EPWM1_BASE, EPWM_DB_LOAD_ON_CNTR_ZERO);
EPWM_setRisingEdgeDelayCountShadowLoadMode (EPWM1_BASE, EPWM_RED_LOAD_ON_CNTR_ZERO);
EPWM_setFallingEdgeDelayCountShadowLoadMode (EPWM1_BASE, EPWM_FED_LOAD_ON_CNTR_ZERO);
I am enclosing a snapshot of the oscilscope reading

Thanks

