Did you turn portA digital ? Remember that by default portA is set as analog, so you cannot use the serin/serout command.

Which pic are using?

Al.