@9600 baud AND using the internal OSC AND using SEROUT2, it's high unlikely that it will work. Using DEBUG or HSEROUT may work.
with HSEROUT, use the following DEFINEs
Code:
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 25 ' 9600 Baud @ 4MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
For ANY reliable serial comm, you really want to use a crystal or a ceramic resonator.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks