I am trying to use this simple servo code on a 16F684 using portc.1. What am I missing? Why doesn't it work? All that happens is the servo twitches when downloading the hex file, then that's all.
OSCCON = %01100001 '4 Mhz on internal osc
TRISC = %00000000
PORTC = %00000000
x var byte
y var byte
main:
for x = 0 to 50
pulsout portc.1, 75
pause 20
next x
pause 2000
for y = 0 to 50
pulsout portc.1, 175
pause 20
next y
pause 2000
goto main
end