When I get unexpected results like this, I test pieces of logic one by one.
I'd start with just blinking a led in simplest loop possible; just to be sure pic timing and configs are correct. With timing you can verify easily, like:
LOOP:
pin=1
pause 1000
pin=0
pause 1000
goto LOOP
Robert




Bookmarks