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.

Trip Zone working principle (f28335)

Other Parts Discussed in Thread: CONTROLSUITE

 Hello to everyone!

I try to switch off  ePWM1-ePWM3 using EPWMRegs.TZSEL  register. Both interrapts (one-shoot and cycle-by-cycle) are enabled. When I set 1 to EPWMRegs.TZSEL   one by one, nothing happens(ePWM doesn`t switch off)  exept OSHT4 and CBC4.In this case all ePWM1...3a and ePWM1...3b are set low.

As I undersatand six hardware input can control all six ePWM pairs.But how do they correspond to each other? How to clarify which TZx affect on which ePWM?

Thank you for any help.

Best Regards,

Andrey

  • Hi Andrey,

    Have you tried this example in controlSUITE?

    C:\ti\controlSUITE\device_support\f2833x\v140\DSP2833x_examples_ccsv5\epwm_trip_zone

    -Lori
  • Hi Andrey,

    Note that you should also be looking at the F28335's ePWM User Guide, which discuss the ePWM's features/registers in detail:
    http://www.ti.com/lit/sprug04

    Note that configuring TZSEL correctly is only one part of the overall process.  You also need to set up the GPIO mux correctly, set up TZCTL to do what you want, etc.

    Hopefully this helps.


    Thank you,
    Brett

  • Hi Lori and Brett,

    Thank you very mach for your help.

    I looked through all that you recomended. As I understand if we set all GPIOCtrlRegs.GPAMUX.bit.GPIO12...GPIO17 as trip sourse (TZ1...TZ6), they become linked with TZSEL register (OSHT1....OSHT6 and CBC1...CBC6) and any signal from pin (GPIO12...GPIO17) or software influence on TZSEL bits, switching them to 1, which makes ePWM to do some action accordingly with TZCTL bits. And no metter what TZ1...TZ6 become a source of thise action in such situation.

    Could you confirm is it so or not?
  • Hi Andrey,

    Your description appears to be largely correct.

    Andrey_Bogdanov said:


    and any signal from pin (GPIO12...GPIO17) or software influence on TZSEL bits, switching them to 1, which makes ePWM to do some action accordingly with TZCTL bits.



    Note that TZ inputs are active low by default - meaning that TZn inputs will trip the ePWM when TZn goes low.


    Andrey_Bogdanov said:


    And no metter what TZ1...TZ6 become a source of thise action in such situation.



    Assuming that the TZSEL is configured to allow TZ1...TZ6 to go into the trip logic: yes


    Thank you,
    Brett