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.

TMS320F280048-Q1: Questions on T1/2 Events, TZA,TZAD etc.

Part Number: TMS320F280048-Q1

Hi,

I need guidance to understand events and its actions.

1) There are events named as T1 and T2. I think that they are generated by ONLY DC submodule. Could you please confirm?

2) I'm trying to set the outputs to LOW of PWM channel 3 by using T1 and T2 events at AQ module. However, I don't know how to set DC event condition.

a)Is it done at trip zone as below related code? It sets DCB2 when its input is LOW. If it is correct, it is interesting to configure AQ input at TripZone register!

    EPWM_setTripZoneDigitalCompareEventCondition(EPWM3_BASE, EPWM_TZ_DC_OUTPUT_B2, EPWM_TZ_EVENT_DCXH_LOW);

b) Can I provide this above action at each cycle-by-cycle for AQ module? I just want to know whether it is done for AQ model. I know that it can be done inside tripzone.

c) Did I created DCAEVT2.force  adn DCBEVT2.force signals, now, by configuring as above code? 

3) Could you please explain the TZA? What is it? Is it an event? Is it only necesary to set TZAD and TZAU events. Is TZAD dead-band added version of T1 and T2 events?

4) What is the difference between DCAEVT1/2U and TZAU? How can I distinguish?

5) Does DCAEVT2.force signal directly trip PWM channels? How can I create DCAEVT2.force?  

  • Hi,

    The expert is out of the office because of Holiday. Please expect a reply by Tuesday.

    Thanks.

  • Hi Gokhan,

    1) There are events named as T1 and T2. I think that they are generated by ONLY DC submodule. Could you please confirm?

    Yes, this is correct.

    2) I'm trying to set the outputs to LOW of PWM channel 3 by using T1 and T2 events at AQ module. However, I don't know how to set DC event condition.

    I recommend looking though the following application report (C2000 ePWM Developer's Guide). This report explains how to setup a digital compare event and how to trip the outputs low (including the necessary code) for a cycle-by-cycle and one-shot scenario - refer to chapter 7. 

    3) Could you please explain the TZA? What is it? Is it an event? Is it only necesary to set TZAD and TZAU events. Is TZAD dead-band added version of T1 and T2 events?

    I suggest watching the following video covering the digital compare submodule. It provides a lot of the answers to the questions you have concerning the digital compare events: https://training.ti.com/c2000-enhanced-pulse-width-modulator-epwm-digital-compare-submodule. If you still have these questions after watching the video I'll be happy to explain further. 

    4) What is the difference between DCAEVT1/2U and TZAU? How can I distinguish?

    This is discussed in the video linked above. When you setup TZAU, this means the event configured for the A channel while a trip takes place and the EPWM counter is counting up. The DCAEVT1/2U is similarly the event that will take place in the A channel while the EPWM counter is counting up but this is used whenever you just want the EPWM channel to take on an action during the digital compare event. If you want to implement a cycle-by-cycle or one-shot trip then I suggest using TZA/TZB events.

    5) Does DCAEVT2.force signal directly trip PWM channels? How can I create DCAEVT2.force?  

    Also discussed in the video above. You can set the digital compare event but instead of setting TZA/TZB bits you configure the DCAEVT1/2 and DCBEVT1/2 bits in order to only trip the output during the duration of the digital compare event. 

    Please let me know if you have follow up questions after looking at the referenced materials. 

    Best Regards,

    Marlyn