Do you have a pull-up resistor on PORTA.4?

It has an "Open collector" output, and can't go HIGH by itself.
<br>