Hi bearpawz--

I think your problem is probably that your F818 is powering up with the default of having Port A in analog mode. Try inserting this near the beginning of the program:

ADCON1 = 7

and see if that doesn't make Port A behave exactly as Port B does for you.

Best--

--Alan
aka "scubabear"