This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: configure shadow registers of ePWM such that they load only every second zero crossing

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Sir, Madam

I am configuring and ePWM to start and ADC conversion only every second ePWM timer zero crossing using 

EPWM_enableADCTrigger(base, EPWM_SOC_A);
EPWM_setADCTriggerSource(base, EPWM_SOC_A, EPWM_SOC_TBCTR_ZERO);
EPWM_setADCTriggerEventPrescale(base, EPWM_SOC_A, 2);

This works nicely. I can switch mit power electronics with 60kHz while I get ADC interrupts at 30kHz.

Now inside the ADC interrupt i write the new ePWM duty cycles back to the ePWM's shadow register.

I now want to configure the loading of the shadow register such, that it keeps the duty value for 2 ePWM counter cycles and only loads the new duty cycle every second zero crossing/at the same time the ADC conversion is started. Checking the documentation of the ePWM i did not find a shadow-load mode that allows this. 

Do you know if this is possible?

Thanks,

Flurin