Hi

I cannot see that you have set the PORTA register to digital, have a look at the sheet for the device you are using, there is also a paragrapgh in the manual that discusses this specific issue, worth taking a look for the future.



HtH

Duncan