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)
Code:
DEFINE OSC 4
And double check the ANSEL settings.
I think you have GPIO.5 set for analog. Should be
Code:
ANSEL   = %000011111
BTW. I added code tags for you. Makes it much easier to read on the forum.