Can I enable the ePWM block output using the trip zone submodule (TZSEL)?

5 次查看(过去 30 天)
Hi all,
I am using the F28335 controlCARD. I am generating 2 different pulses using 2 ePWM blocks. The switching frequency is set to 20kHz and DSP is 150MHz. The width of the pulses I am generating is of 10us. I am able to externally measure them from their corresponding GPIOs (ePWM3A->GPIO04 and ePWM5A->GPIO08).
As you can see in the figure, I want to enable/disable these pulses using the trip zone submodule. I am trying to do it placing a "1" or a "0" through the TZSEL input of the ePWM block. I have tried several configurations within the trip zone submodule, but none seems to allow what I am trying to do.
I have specified the timer period, the CMPA value of each ePWMxA and enabled the cycle-by-cycle (CBC) of the trip zone submodule.
The output signals have the desired frequency and pulse width, but I expected them to be OFF when the input of each ePWM block is "0" and ON when the input is "1". I see them ON continuously. I have tried forcing the ePWMxA to High or Low, and also enabling the OST.
Can anyone suggest me how to resolve this issue? Thanks in advance.

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by