Well, time to get used to something eh?
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.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
Now how would you accomplish that?
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.Idealy i dont want any serial data arriving during the short pulse.
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...
Bookmarks