Quote Originally Posted by AndrewC View Post
Now I'm stumped. My usual simple BLINKY is:

[code]
LED VAR PORTB.0
Loop:
Pause 1000
toggle LED
Goto Loop
[\code]

Usually works fine but seemingly not on a 16F777. the LED just stays on. This does work:

[code]
LED VAR PORTB.0
LOOP:
LED = 1
pause 1000
LED = 0
pause 1000
goto LOOP
[\code]

So what no doubt blindingly obvious simple thing am I overlooking ?

Andrew
i usually work with " xor " instead of toggle command.

for example ;
main :

led = led xor 1 ; working better than toggle
pause 100

goto main