|
Or at the receiving end perhaps? What are you using as a terminal application? I'd generally recommend RealTerm, capturing in "Direct" mode (ie to a file, not the screen+file).
9600 baud is relatively slow, and oscillator/PLL timings tend to be far more stable/accurate than baud generators from decades past.
Have you examined the bit spacing on an oscilloscope? How about data sent from the receiver end.
Closely packed data can be a challenge for some receivers, sometimes using 2 stop-bits can help with inter-symbol separation.
If you are sending ASCII 8-bit data (unsigned char), why mask with 0x1FF? You'd be better casting and masking with 0xFF.
|