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.

CCS/TMS320F28335: tripzone getting high instead of low

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

as my tripzone of epwm make force low but its getting high

EALLOW;
EPwm2Regs.TZSEL.bit.CBC1 = 1;
EPwm2Regs.TBCTL.bit.CTRMODE=0;
EPwm2Regs.TBCTR = 0;
EPwm2Regs.TZCTL.bit.TZA = 2;
EPwm2Regs.TZCTL.bit.TZB = 2;
EDIS;

here TZA is to get low but its getting high but TZB getting low as how i want

why its not getting low

  • The code you show there seems like it should do what you want... I would suggest reading back your configuration, maybe you accidentally reconfigured something.

    None the less, there is a good example in C2000Ware that you can start from. C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2833x\examples\epwm_trip_zone 

    Glancing at that code it looks like it shows how to force one channel high and one channel low. Simply update the following line of code if you wish to force both low.

        EPwm2Regs.TZCTL.bit.TZA = TZ_FORCE_HI;

    Regards,
    Cody 

  • i tried on checking ur high code also it not effecting to any low or high
    it is same on both high low signals
  • Raj my,

     please describe what you are doing when you execute the code. Please note that you have to force the trip zone low, it does not happen automatically.

    Additionally the trip zones only have different actions for the A and B channels of the PWM, it does not have different actions if the signal is high or low.

    For example if the trip zone action is set to "force high" and the signal is high, when the trip event becomes active the signal will remain high. If the trip even becomes active while the signal is low then the signal will be forced high.

    Regards,
    Cody