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.

Compiler/TMS320F28069: PWM #define MACRO Functions

Part Number: TMS320F28069


Tool/software: TI C/C++ Compiler

Hello

I made two macro function to manage pwm trip zone

First macro works ..

#define PWM_1_TZ_ON(){EALLOW;                            \
                EPwm1Regs.TZCLR.bit.OST             = 1;\
                EPwm1Regs.TZEINT.bit.OST            = 1;\
                GpioDataRegs.GPADAT.bit.GPIO19  = 1;\
                Inverter.Status.BITS.BuckHT             = 1;\
                EDIS;}

Second macro doesn't work

#define PWM_3_4_ON(){EALLOW;                           \
                GpioDataRegs.GPADAT.bit.GPIO22     = 0;\
                EPwm3Regs.TZCLR.bit.OST                = 1;\
                EPwm4Regs.TZCLR.bit.OST                = 1;\
                EDIS;}

I am obliged to place a breakpoint just before macro function and then it works ?!:?$*?

Somebody has got an idea why it does that ?

Regards 

OL

why