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.

TMS320F28379D: Force Trip zone event from CLA

Part Number: TMS320F28379D


I am trying to stop the PWM from the CLA by forcing a Trip Zone Event, DCAEVT1.

This works perfect from CPU2:

EPWM_forceTripZoneEvent(PWM_Prim1_BASE, EPWM_TZ_FORCE_EVENT_DCAEVT1);
EPWM_forceTripZoneEvent(PWM_Prim2_BASE, EPWM_TZ_FORCE_EVENT_DCAEVT1);
EPWM_forceTripZoneEvent(PWM_Sec1_BASE, EPWM_TZ_FORCE_EVENT_DCAEVT1);
EPWM_forceTripZoneEvent(PWM_Sec2_BASE, EPWM_TZ_FORCE_EVENT_DCAEVT1);

in the board.h file:

#define PWM_Prim1_BASE EPWM1_BASE
#define PWM_Prim2_BASE EPWM2_BASE
#define PWM_Sec2_BASE EPWM4_BASE
#define PWM_Sec1_BASE EPWM5_BASE

when I run the same code from the CLA (in CPU2) nothing seems to happening, the PWM continues to run.

What do I do that´s  not correct?

I handle the ADC from the CLA without any problems (ADC_readResult).

Best regards

Kenneth Svensson