My program was flawed. Timing isn't right for a 4mhz oscillator.
Try replacing the 1000 and 2000, with 100 and 200.
In fact, in your original program, change the line:
posit = rcval + 350
to
posit = rcval
and see what happens.
The pulsout command at 4mhz sending out pulses in increments of 10us.
You're minimum pulse width the way you wrote the program would automatically send out a pulse width of 3500us (3.5ms) which is above the 2ms (average) pulse width for a servo. If this works, post back. You might only have a little bit of POT movement for a lot of servo movement, but that part of the program can be rewritten to compensate for that. (think pause statement instead of pulsout)
Bookmarks