Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I'm working on a Serial communication program that will talk to an existing system. the system is set up as the following:

baudrate: 19200
stopbits: 1
parity: none
databits: 8

11 bit data packet consist of one start bit, eight data bits, a ninth "wakeup bit", and one stop bit. The parity bit can be used in place of the wakeup bit.

if I were to send:
"10100000001"
databits: "00000001" last 8 bits
wakeup bit or parity bit: "1" 9th bit
stop bit: "0" 10th bit
start bit: "1" 11th bit

Is this correct?
Posted
Updated 30-Aug-11 10:04am
v2

Correct or not? It totally depends on a device and a program on the other end of your serial cable. :-)

—SA
 
Share this answer
 
Comments
Espen Harlinn 30-Aug-11 16:14pm    
Good point :)
Sergey Alexandrovich Kryukov 30-Aug-11 16:22pm    
Thank you, Espen. I knew you would understand the essence of the thing. :-)
--SA
You may want to take a look at this article:
Serial library for C++[^]

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 30-Aug-11 16:21pm    
Could be a very good help for the one who does it in C++. My 5.
--SA
Espen Harlinn 30-Aug-11 16:27pm    
Thanks Sergey - OP is either implmenting an UART (and wouldn't need to ask the question), or really needs a bit of information ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900