Quote Originally Posted by DynamoBen
Add the following to the top of the program:

CMCON=%00000111 ' Disable Comparators
ANSEL=%00000000 ' force RB6 and RB7 digital (16F88 specific)
Already have : CMCON = 7 ' PortA = digital I/O