Quote Originally Posted by cncmachineguy View Post
If the TMR is disabled when entering the INT, then it is not counting. Therefore thr duration of PULSOUT will change the timing.

Move PULSOUT to your main loop. Set a flag in your INT. Then in your main loop, if the flag is set, execute PULSOUT and clear the flag.
Thank you Bert.

I didn't know that DISABLE had this effect. I will try this ASAP.

In the PBP help documentation, they say that DISABLE doesn't actually generate code. So I am a bit confused how it stops the counter without generating any code.

Thank you very much.