Quote Originally Posted by mister_e View Post
Just to set the record. For this device and by the datasheet, PORTA.4 is not an open drain as some suggested. It's really a full CMOS output pin. So you don't even need the pull-up resistor.

But YES, you have to disable the internal analog comparators and ADCs.


Learning opportunity
For the record, I checked the data sheet before telling him to put in ANSEL and is why I did not say to use pullup, and for the record I was surprised it did not need one.