PORTB.5 on the 16F689 is analog at power up. Place ANSELH=0 in the top section of your
code to disable A/D on this pin.