First off, the TRIS is not right, but for GPIO.5, it is ok.
When you toggle a pin, you have to consider the Read-Modify-Write issue. A better way to check would be to set the pin HIGH, wait for a delay time, set the pin low, delay and loop
main
high gpio.5
pause 500
low gpio.5
pause 500
goto main




Bookmarks