PAUSE Needed between SERVO and PWMOUT Commands


Senior Member
On a recent 20M2 project, I was using SERVO commands, then needed to output a brief PWM signal. Timer conflicts required that I shut down all servo commands before starting PWM. PWM wouldn't start until I inserted a short PAUSE (I used 200 ms) between SERVO n, OFF and PWMOUT. Not sure why, but it was required. Running at 4 MHz.

Might help someone someday.


Technical Support
Staff member
I recall someone else asking that recently. My thoughts were that, though the servo is turned off, the last 20ms frame will remain in progress, and the timer is only released at the end of that, when it determines no servos are active, some time after the SERVO OFF command.