PDA

View Full Version : Defining 2 stop bits using HSEROUT



yba2cuo3
- 25th September 2006, 03:53
Is there a way of using HSEROUT with 2 stop bits? I have a device that will only understand the following:

1 start bit
8 data bits
2 stop bits
no parity
All data in hex strings
baud rate is 9600

Any suggestions would be greatly appreciated.

Regards,
Marc

yba2cuo3
- 25th September 2006, 14:12
After a bit of seaching & reviewing the PIC 18F4550 datasheet, it appears the following command might achive what I am looking for:

DEFINE HSER_TXSTA 65h

i.e. 9-bit tx enable, BRGH high, & 9th bit set permanently high to fake a 2nd stop bit.

Regards,

Marc