Re: Serial communication, detecting parity bits



On 2006-01-20, Floyd L. Davidson <floyd@xxxxxxxxxx> wrote:

>>My question is this: Is there some way that I can figure out if
>>the wakeup or parity bit was set on a specific byte in the
>>stream that I have read from the serial port?
>
> The "parity bit" is the 8th bit (also called the "high" bit).

Unless it's the 9th bit. There's a chance the device in
question is using 8 data bits "with parity" where that 9th
"parity" bit is used to mark the first byte in a frame.

That's a popular way to use the UART on an 8051
microcontroller: it has support for explicitly settign the
state of the 9th bit and for that 9th bit to cause an
interrupt with it's received as a 1.

--
Grant Edwards grante Yow! I have a VISION! It's
at a RANCID double-FISHWICH on
visi.com an ENRICHED BUN!!
.



Relevant Pages

  • Re: checking for parity bit in serial frame
    ... but the parity bit indicates the start of an individual message. ... This sort of protocol was once quite common in micro controller world ... Communication between the master and slave are through a serial ... data link operating at 19.2 kbaud in a "wakeup" mode. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Serial communication, detecting parity bits
    ... the Stick Parity bit in the 8250 -family of serial ... >bytes that has a parity error will be prefixed with the bytes ... >wakeup bit had for each byte. ... >data stream contains the combination 0xff 0x00. ...
    (comp.os.linux.development.system)
  • Re: Serial communication, detecting parity bits
    ... by-passes the parity generation, creating a ninth bit which can be controlled with the even/odd parity bit. ... Since the protocol that I have to use does not use any parity but uses the wakeup bit I can set my serial port to use either even or odd parity and then bytes that has a parity error will be prefixed with the bytes 0xff and 0x00. ... The only thing I worried about now is what will happen if my the data stream contains the combination 0xff 0x00. ...
    (comp.os.linux.development.system)
  • Re: Serial communication with Infineon C167 (Tasking Compiler)
    ... This because we've tried to> force both receive- and transmit-interrupts by setting those flags,> and made the interrupt routines to give out different LED-blinks on a> parallel port pin. ... > void interruptserial_TX_interrupt// Interrupt Routine TxD ... > Even parity (parity bit set on odd ...
    (comp.arch.embedded)