You probably need to configure the A/D on PORTA.1 to a digital instead of analog.