Hi,

I'm having a problem with SEROUT. When I use HSEROUT it works perfectly, but when I use SEROUT or SEROUT2 I get errors in the data. I'd guess that about 5% of the characters are corrupted.

PIC: 18F4550
Clock: 48Mhz

HSEROUT code (works):
Code:
DEFINE HSER_TXSTA  24h
DEFINE HSER_RCSTA  90h
DEFINE HSER_BAUD   2400
DEFINE HSER_SPBRG  25
DEFINE HSER_BITS   8

HSEROUT ["This is a test."]
SEROUT code (5% of characters are corrupted):
Code:
SEROUT PORTB.3,0,["This is a test."]
Does anyone have any ideas as to why this would be happening?