You should have a MAX232 between PIC and PC. Do you? 
OR use SERIN/SEROUT in inverted mode... N2400 could work.
Also i've notice you use HSERIN/HSEROUT to acheive a 9600 Baud comm... by using your setting the error % will be about 7% wich is really bad.
If you change your settings to
DEFINE OSC 4
DEFINE HSER_RCSTA 90h ' Set receive status and control
DEFINE HSER_TXSTA 24h ' Set transmit status and control + BRGH=1
Define HSER_BAUD 9600
this will gives you an error % of 0.16%... far better
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks