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/TMS570LS1114: An unsolve problem about ETPWM TZn?

Part Number: TMS570LS1114
Other Parts Discussed in Thread: HALCOGEN

Tool/software: TI C/C++ Compiler

Hello 

1.I want to use ETPWM module TZn module, but when I open TZ1 TZ2 TZ3, the use of HALCoGen, my program will always be in a fault to judge, how to avoid it?

2.Is my hardware design problem, or TZ1 TZ2 TZ3 failure mechanism can not always open it?

3.According to the data sheet, TZ1, TZ2, TZ3's Source is PIN MUXING.In fact, I want to achieve the function is to establish TZ1 to TZ6 fault detection mechanism.When I configured HALCoGen, I tried to open the TZ1 to TZ6, a separate test TZ4, TZ5, TZ6, the program can run normally, will not enter the fault detection mechanism.But when I use TZ1, TZ2, TZ3 any one, configured into a high mode, once opened TZ1, TZ2, TZ3, the program forced to pull up.I just want a fault, it is pulled high.According to the manual, when you meet certain conditions (such as overcurrent), will trigger TZ, this time I will stop ETPWM output.Because the overcurrent of this test, there is no suitable way to find, I want to be intuitive on the oscilloscope to see。
Looking forward to your reply
Qiu Chi

  • I'm sorry, but I do not understand the question. Would you please try to rephrase and ask again?
  • Hello,Bob:
    With regard to the ETPWM module using TMS570LS1114PGE (Trip-Zone (TZ) Submodule), I have the following questions:
    1.when I configure HALCoGen:ETPWM3->: Trip, Zone, Source:select, all,my program code added the following two sentences:
    etpwmEnableTripZoneSources(etpwmREG3,CycleByCycle_TZ4);//4 5 6
    etpwmEnableTripInterrupt(etpwmREG3,CycleByCycleTrip);
    My program code can work properly, and the normal PWM waveform is observed on the oscilloscope. But when I changed the code to it:
    etpwmEnableTripZoneSources(etpwmREG3,CycleByCycle_TZ1);//1 2 3
    etpwmEnableTripInterrupt(etpwmREG3,CycleByCycleTrip);
    My program code doesn't work properly, and the abnormal PWM waveform is observed on the oscilloscope. I didn't add any other action.

    2.Trip-Zone Submodule in the end how to use it, according to the manual, I still can not use it well, stuck here for nearly a month. According to the manual spnu515b, TZ1 to TZ3 are from the GPIO MUX sourced at the page, do I need any other configuration?

    3.OSHTfor major short circuits or over-current conditions ,CBC for current limiting operation ?

    Explanation: I want to use the ETPWM (TZ) module. I want to achieve the function: when the TZ module to the outside when I detect the error signal, I can make early warning, and the PWM module gives some corresponding instructions, and when no fault, my normal PWM output.

    Looking forward to your reply.
    Qiu Chi
    2017/9/15
  • Did the answer to your other post resolve the question about configuring the TZ pins?
    e2e.ti.com/.../625598
  • Hi,Bob Crosby,
    Please look another page.
    e2e.ti.com/.../625598
    Thank you very much for your answer .
    Chi Qiu