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.

TMS320F28376S: Using tripzone for specific channel inside PWM module

Part Number: TMS320F28376S

Dear sir ,

we are devloping Motor controller using C2000 28376S , and  we want to make use of the tripzone  (for short circuit)  in such way 

it will disable specifc PWM channels  , example

TZ1  will disable  PWM1.CHA PWM1.CHB  PWM2.CHA

TZ2  will disable  PWM2.CHB  PWM3.CHA  PWM3.CHB

in case of TZ1  , PWM2.CHB  should work normally while PW2.CHA (and PWM1.CHA/CHB)  is in highZ.

my question is  it possible to apply Tripzone only on specific channel inside PWM moudle (for example Channel A)  , while the other channel is working without any interfernce ?

  • Sam,

    Please note that today, July 5th, is a US holiday.  You should expect a reply no later than end of day tomm, July 6th.  Appreciate your patience.

    Best,

    Matthew 

  • Hello Eyal,

    is  it possible to apply Tripzone only on specific channel inside PWM moudle (for example Channel A)  , while the other channel is working without any interfernce ?

    Yes, this is possible. The TZ1/TZ2 signals are routed to the epwm module, but each channel can be configured differently within each module. In order to do this you will need to enable the trip signal using the TZSEL register then use the TZA/TZB bits of the TZCTL to configure the action of EPWMxA/EPWMxB.

    The TZA and TZB bits of the TZCTL register set the action for all TZ events (TZ1-TZ6). Based on your description, EPWM1 is only affected by TZ1 and EPWM3 is only affected by TZ2, but EPWM2 is affected by both TZ1 and TZ2. So, for cases like EPWM2 where the A channel is disabled for TZ1 and the B channel is disabled for TZ2 you'll need to know which TZ event occurred so that you can configure TZA/TZB appropriately. This is usually done within an ISR.

    You can able interrupts for a CBC/OST events through the TZEINT register. The TZFLG register can be read to know if a CBC or OST event occurred. Then you can read the TZCBCFLG and/or the TZOSTFLG register to know specifically which TZ event occurred (for example, TZ1 or TZ2). Depending on the TZ event you can configure the TZA/TZB bits of the TZCTL register to give you your desired output.

    Best Regards,

    Marlyn