I do not know what is going on with the HSEROUT but you may want to correct something else. Who knows, maybe it will solve the other.

RA5 can only be an input. You have.
TRISA = %00000000 'SET PORTA AS OUTPUTS

Then this
porta = 63 = 00111111