Mail Archives: djgpp/2005/07/11/10:16:15
aveo wrote:
>
> Anybody please tell me serial port data format.
> I know it is like,
> START BIT----PARITY BIT-------ACTUAL DATA-----STOP BIT
> 0 ----EVEN/ODD/NONE---- DATA ------------
>
> but i want it more precise.
It is actually:
Start bit, Data Bits, [optional parity bit], stop bit.
The final stop bit may be set to 1, 1.5 or two bit times.
The parity may be set to odd, even, zero, or one (or none).
Data bits length may be set to 5, 6, 7, or 8.
Data bits are emitted least significant bit first.
The quiescent state of the line is the equivalent of a one bit. I
can't remember whether that is called marking or spacing.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
- Raw text -