your TRISA setting is backward.
TRISA= %00000001

and you have to disable the analog comparator
CMCON=7