Hello,
I'm using EHRPWM outputs to generate a continuously running frequency. At the moment when I want to stop this output, I'm writing pulse and period values of 0 to EHRPWM_TBPRD and EHRPWM_CMPA registers.
This has one big disadvantage: it stops the output only after the current full period has been finished, means when the output is at HIGH when writing to these registers, ist stays HIGH for the current period time.
Same is true when I change frequency/period by writing new values, they are applied only after current period has been finished
So how can I restart the counter immediately so that a running period is stopped, the new values are appled and emitted?
Thanks!