The Servo pulses should be between 1.05 - 1.95 ms
With an 8Mhz OSC, the resolution of PULSOUT is 5 us.
0.00105/0.000005 = 210 - Minimum PULSOUT
0.00150/0.000005 = 300 - Center or Stop
0.00195/0.000005 = 390 - Maximum PULSOUT
And, the overall frequency should be approx 50Hz.
So the PAUSE 20 needs to be inside the Main loop.
ADDED:
They need to be Positive Pulses, so you should make sure the pins are LOW to start with.
PORTC = 0 should do it, in your case.
<br>




Bookmarks