My circuit uses GP3 as an input (I modified 12F508.inc) and INTRC_OSC

The second block of this code (starting with the lable ccw loops at about 1/6th of the speed of the bit below the if statement???

Anyone seen anything like this?

Many thanks in advance

PK


OPTION_REG.5=0 'need to set this to use pin2 as an output
OPTION_REG.6=0 'this turns on the internal pull up resistors


stepDelay con 20 'delay in mS for each step

TRISIO=%01000 'set GPIO.3 as an input, all othe pins as outputs

loop: if GPIO.3=1 then ccw
GPIO=%00110
pause stepDelay
GPIO=%00101
pause stepDelay
GPIO=%10001
pause stepDelay
GPIO=%10010
pause stepDelay
goto loop

ccw: GPIO=%10010
pause stepDelay
GPIO=%10001
pause stepDelay
GPIO=%00101
pause stepDelay
GPIO=%00110
pause stepDelay
goto loop