Quote Originally Posted by The Master View Post
Im not really used to the 16F87....
Well, time to get used to something eh?

Im not completely sure i understand your last explanation. I dont think i can use the normal PWM code for servos because TMR0 overflows every 256 instruction cycles
It doesn't have to overflow every 256 instruction cycles... It can, in theory, overflow once every 8 instruction cycles if you want it to.
Now how would you accomplish that?

Idealy i dont want any serial data arriving during the short pulse.
If you're going thru that loop fast enough, grabbing a byte out of the serial port won't jack up the timing that much.
And like you said, the 18-25ms frame time is fine, as long as you're in the vicinity.
The critical thing would be the high pulse. Confine the critical code and you're in there...