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,
my customer says that when they clear the one shot trip signal with "EPWMxRegs.TZCLR.bit.OST=1", the duty cycle of the first PWM cycle may not be as expected.
If we could configure "EPWMxRegs.TZCLR.bit.OST=1" to take effect at TBCTR=0, like shadow registers, we could avoid such problem.
Do you have any idea how we could clear the one shot trip signal at the instance when TBCTR counts to 0?
Hi Howard,
Do you have any idea how we could clear the one shot trip signal at the instance when TBCTR counts to 0?
One shot (OSHT) trip events do not have a clearing mechanism like Cycle by Cycle trip events where you can decide to clear on PRD or ZRO. One possible suggestion to implement something like this is to generate an interrupt when TBCTR = 0. Within the ISR for that interrupt you can set EPWMxRegs.TZCLR.bit.OST=1.
Best Regards,
Marlyn