I could be wrong, but doesn't a TrisA=00000000 command reset the analogue registers?