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.

TMS570LS1114: ETPWM TZn module and ADC Event trigger problem?

Part Number: TMS570LS1114
Other Parts Discussed in Thread: HALCOGEN

Hello:

 

I have two confused places when I use the ETPWM module.I want to implement 2ms control once ETPWM, and use the ETPWM module ADC Event trigger.But the ADC triggers the time control with the expected ETPWM frequency that can not be obtained at the same time.I do not know whether to use the RTI module to achieve, or use the HET module to achieve.HET can be accurate timing 2ms?Because I control the PWM at the same time need to use CAN every 5ms 15ms band to send the message.The second confusion is that 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?Is my hardware design problem, or TZ1 TZ2 TZ3 failure mechanism can not always open it?

Looking forward to your reply

Qiu Chi

 

 

  • Hello Qiu,

    1. What are your trip inputs at TZ1, TZ2, and TZ3. Those trip inputs are mapped to all etPWM moudles. Upone a fault indication, either no action is taken or the ePWM outputs EPWMxA and EPWMxB can be forced to High, or Low, or high impedance.

    2. ADC trigger: you can use either ePWM, NHET, or RTI to trigger ADC acquisition. Both ePWM and HET can achieve 2ms. If your PWM frequency is 1khz, the period is 1ms, you can trigger the ADC every second event.
  • Hello Wang,
    Thank you for your answer, Wang, that is to say TZ1, TZ2, TZ3 usage need to configure the trigger source is it?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, as you said, 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