I use F28035 to implement PWM motor drive.
When the motor is disabled, PWM outputs should be in high impedance mode. I configured Trip-Zone module accordingly, and once the motor should be disable, execute TZFRC.OST=1. It works fine; generally, disabling is not synchronous with PWM and can occur at any moment within PWM cycle.
Now I am required to synchronize disabling with PWM cycle. In other words, despite assignment TZFRC.OST=1 occurs at arbitrary moment within PWM cycle, PWM outputs should go high impedance only in the beginning of the next PWM cycle.
Does anybody know how to achieve this?
Thanks in advance.