I think you will find that HSERIN is not a fully self contained command for sending or receiving data through the UART. You must manually manage the CREN bit and probably more for reliable results.
I had many intermittent problems with that command so I gave up and now only use DEBUG, SERIN or SERIN2 which have the advantage they can be assigned to any pin.
HTH
Brian
Bookmarks