Quote Originally Posted by richard View Post
bit 7 of your config word should be 0 , having lvp enabled can lead to tears .
the comparator needs to be disabled to use your porta pins as digital
A thousand thank-yous my friend! It worked beautifully!