RA5 (MCLR) cannot be used as an output. You may only use it as MCLR or input.

Jerson