PORTA on the F876 is configured to A/D inputs by default on power-up due to
the default value in the ADCON1 register on power-up.

ADCON1 = 7 ' configures A/D pins as digital I/O.

Also, PORTC.5 is a schmitt trigger input. RA0 is TTL.