from the codes you are using serial port right? Desktop serial or laptop usb to serial cable? If its the laptop version, then i would suggest you to test the cable by shorting pin 2 and pin 3 and see whether it echoes back to the pc.
---------- Post added at 09:28 ---------- Previous post was at 09:22 ----------
Since you are not using the library to set up your USART, you need this:
SPEN RX9 SREN CREN — FERR OERR RX9D (pg 78) page 77 to 89 from the datasheet would be handy.
---------- Post added at 09:30 ---------- Previous post was at 09:28 ----------
Also check whether your clock is set to 6MHz. Somebody who have used the chip before might change the setting default. (pg 100 datasheet).