2012-07-25, 20:35:20
You configure the intosc to 500kHz. Take a look at the OSCCON register in the datasheet again.
9600 is not a valid baud rate with 500kHz oscillator and your current UART configuration. The error is 8.5%.
Code:
bsf OSCCON, IRCF0 ;bank 1
bsf OSCCON, IRCF1
bsf OSCCON, IRCF2