Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #9723

Re: [serial com (rs232)] 9 bits needed

From Dom <domafp@blueyonder.co.uk>
Newsgroups comp.sys.raspberry-pi
Subject Re: [serial com (rs232)] 9 bits needed
References <mug5tm$r8s$1@speranza.aioe.org>
Message-ID <HcNOx.17845$Eo2.4840@fx47.am4> (permalink)
Organization virginmedia.com
Date 2015-09-30 09:39 +0100

Show all headers | View raw


On 30/09/15 09:19, andre wrote:
> I am trying to build a rs485 network using microcontrolers
> Microcontrolers have the hability to recieve 9 bits data.
> They use this as an 'adress'. If the adresse matches the folowing data
> (8bits) are read (causing an interrupt) otherwize they are ignored until
> the next adress.
> gcc can't be configurated for 9 bits (CS9 doesn't exist)
> Is there another way to do it??
> Many thanks in advances
> Andre
Is it 9 bits with no parity? If so, maybe you could bodge it by fiddling 
the parity bit for each byte sent.

For example:

101010100 = 10101010 + 0 parity (set parity to even before sending this 
byte)
101010101 = 10101010 + 1 parity (set parity to odd before sending this byte)

Back to comp.sys.raspberry-pi | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[serial com (rs232)] 9 bits needed andre <ahr@blabla.be> - 2015-09-30 10:19 +0200
  Re: [serial com (rs232)] 9 bits needed Dom <domafp@blueyonder.co.uk> - 2015-09-30 09:39 +0100
    Re: [serial com (rs232)] 9 bits needed Rob <nomail@example.com> - 2015-09-30 10:37 +0000
  Re: [serial com (rs232)] 9 bits needed colonel_hack@yahoo.com - 2015-09-30 13:25 -0700
  Re: [serial com (rs232)] 9 bits needed Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-10-01 10:31 +0300
  Re: [serial com (rs232)] 9 bits needed jeffj@panix.com (Jeff Jonas) - 2015-10-11 00:28 -0400

csiph-web