Re: PWM @ MC56F8323, F83xx, F832x, F8xxx, etc.
Does anybody knows - how to interrupt the ongoing PWM cycle and restart it say with the different duty cycle?
For the motor control it is often desired not to wait until the PWM cycle ends, but interrupt it and restart the new one.
Is it a way to cause the transfer without waiting the end of cycle (half cycle in some cases)?
These chips does not allow to write directly to the counter PMCNT.
I was trying to disable the PWM module (PMCTL &= 0x3, bits LDOK and PWMEN), to stop PWM, and restart PWM with all same parameters:
It does not work.
1. Is there a better way to interrupt PWM cycle than resetting the whole module?
2. What parameters do I need to set, so re-initialization would actually work?
Here PWM works and outputs.