As far as I know, X1 will be 0 first time through, maybe. I always set variables to 0 at top of program.
PAUSEUS will be nothing so SERVO1 will be turned OFF quite fast.
Then the PIC will wait for the next SERIN from the PC, it won't emit more pulses until then.
Assuming your MODE is configured properly.
Robert
Bookmarks