Shouldn't DEFINE be uppercase?
Robert
You have set GPIO.0 as an input with your TRISIO = %00000001 statement.
Try using TRISIO = 0 instead and see how it goes.
Also, I am not sure of your purpose for the OSCCAL statement. IMO, it shouldn't be necessary for such a simple LED flash program.
Cheers
Barry
VK2XBP
Bookmarks