Two things I see after a quick look...
You need to tell PBP what the OSC speed is. To do this add the following to the top portion of your code(s)
And double check the ANSEL settings.Code:DEFINE OSC 4
I think you have GPIO.5 set for analog. Should be
BTW. I added code tags for you. Makes it much easier to read on the forum.Code:ANSEL = %000011111
Bookmarks