Thanks for the help! The ANSELH = 0 line fixed the problem! This is a small part of my program. As I use PORTC to control the LCD, it's a wonder this hasn't caused more problems before now. I thought I RTFDS enough, but apparently not! Thanks again.