Hi,
I set default clock to 200 MHz with predefined symbol _LAUNCHXL_F28379D. I set EPWM_TIMER_TBPRD =2. When I run this code:
EPWM_setTimeBasePeriod(base, EPWM_TIMER_TBPRD);
EPWM_setPhaseShift(base, 0U);
EPWM_setTimeBaseCounter(base, 0U);
EPWM_setTimeBaseCounterMode(base, EPWM_COUNTER_MODE_UP);
EPWM_disablePhaseShiftLoad(base);
//
// Set ePWM clock pre-scaler
//
EPWM_setClockPrescaler(base,EPWM_CLOCK_DIVIDER_1, EPWM_HSCLOCK_DIVIDER_1);
EPWM_setActionQualifierAction(base,
EPWM_AQ_OUTPUT_A,
EPWM_AQ_OUTPUT_TOGGLE,
EPWM_AQ_OUTPUT_ON_TIMEBASE_PERIOD);
EPWM_setActionQualifierAction(base,
EPWM_AQ_OUTPUT_B,
EPWM_AQ_OUTPUT_TOGGLE,
EPWM_AQ_OUTPUT_ON_TIMEBASE_ZERO);
on the scope the meander frequency is 16.68 MHz and A and B outputs are not out of phase but shifted pi/2. I would expect the frequency to be half of 200 MHz clock.
thanks vadim