HI,
How long trip zone will take to carry out the mentioned action on ePWM?
Is the trip zone logically anded with PWM out?
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.
HI,
How long trip zone will take to carry out the mentioned action on ePWM?
Is the trip zone logically anded with PWM out?
Hi Daniel,
Daniel_EE said:How long trip zone will take to carry out the mentioned action on ePWM?
A minimum of 3*TBCLK low pulse width on TZn inputs is sufficient to trigger a fault condition on the ePWM module. Check the ePWM user-guide.
How much time does it take on your end?
Regards,
Gautam
Daniel,
could you include a scope capture? I'm expecting something closer to 2 cycles +20 nS.
Regards,
Cody
Hi,
It looks like you are using an external analog comparator to generate a trip signal. That signal, TRIPU23 (dark yellow), would to go into a GPIO. And this GPIO is configured as a TZ. Assuming so, then you should be able to get a trip response of around 25ns.
1) Your PWM pin looks like it has a significant amount of capacitance on it. I'm not to worried about this, however it may be worthwhile at some point to move to a simpler system like a TI EVM to prove out trip zone functionality & your configuration. Once you get things working, you could then move back to your custom board. This is how I typically work with the TZ submodule until I've gained confidence in my configuration.
2) I would recommend confirming that the TZ GPIO input is configured to have asynchronous qualification.
3) If the above (& more of your debug doesn't help), I might recommend posting your TZ.configuration code.
Thank you,
Brett
A few notes:
Make sure that your qualification selection register write is within an EALLOW/EDIS block. You can also double-check that the register write is taking place by confirming in the expressions window. You should be able to see the latency of trip change with different settings.
Can you also confirm that the measured signal 'Q2' is the signal at the C2000 pin, not after something like a gate driver?
Outside of the potential concern with EALLOW with QSEL, your code seems reasonable.
FYI: I would recommend writing to all valid register bits in the TZCTL register. Specifically configure the DCxEVTn events to Do-Nothing. I don't believe this will affect what you are seeing, but can save some potential debug headaches.
Thank you,
Brett