Shop OBEX P1 Docs P2 Docs Learn Events
8 bits, even, 1 stop bit???? — Parallax Forums

8 bits, even, 1 stop bit????

ArchiverArchiver Posts: 46,084
edited 2000-08-07 13:06 in General Discussion
Hi all, I'm new to this newsgroup, as well as to the world of the
basic stamp and it's counterparts. A friend of mine asked me if there
was any mcu's out there that would be able to send and receive serial
data in the following data bits definition: 8 DATA BITS,EVEN PARITY,1
STOP BIT at baud rates ranging from 300 to 2400 BAUDS.

I looked in the basic stamp documentation, but couldn't find
anything. It was mentioning initialization at either 8,N,1 or 7,E,1.

I am also familiar with other MCUs. I know the 68HC11 doesn't, I'm
not sure if there would be a way to write similar UART code for the
PIC16F84 or the Z8E04/08.

thanks,

E.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-08-06 02:42
    The BS2 offers one of two options regaurding parity: 8 bits,no parity or 7
    bits,even parity.
    you can download a copy of the BS2 manual online at www.parallaxinc.com or
    www.stampsinclas.com. Look under Serin or Serout for a complete baudmode
    table and how the BS2 uses a 16 bit word to configure boaudmodes.

    Original Message
    From: elabeca@h... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=__xbKYiHWe07MdpA1_UiSpnS0KhPy31X8aWaJ4t3PqyEpEmAwzXCdZ59KFNHEPJc2Hsp-38zvgztmQ]elabeca@h...[/url
    Sent: Saturday, August 05, 2000 5:42 PM
    To: basicstamps@egroups.com
    Subject: [noparse][[/noparse]basicstamps] 8 bits, even, 1 stop bit????


    Hi all, I'm new to this newsgroup, as well as to the world of the
    basic stamp and it's counterparts. A friend of mine asked me if there
    was any mcu's out there that would be able to send and receive serial
    data in the following data bits definition: 8 DATA BITS,EVEN PARITY,1
    STOP BIT at baud rates ranging from 300 to 2400 BAUDS.

    I looked in the basic stamp documentation, but couldn't find
    anything. It was mentioning initialization at either 8,N,1 or 7,E,1.

    I am also familiar with other MCUs. I know the 68HC11 doesn't, I'm
    not sure if there would be a way to write similar UART code for the
    PIC16F84 or the Z8E04/08.

    thanks,

    E.
  • ArchiverArchiver Posts: 46,084
    edited 2000-08-07 13:06
    --- In basicstamps@egroups.com, elabeca@h... wrote:
    > Hi all, I'm new to this newsgroup, as well as to the world of the
    > basic stamp and it's counterparts. A friend of mine asked me if
    there
    > was any mcu's out there that would be able to send and receive
    serial
    > data in the following data bits definition: 8 DATA BITS,EVEN
    PARITY,1
    > STOP BIT at baud rates ranging from 300 to 2400 BAUDS.


    Nearly all hardware and software is set up to only transmit 8 bit
    bytes of data - this means that if you want 8 data bits, there's no
    place left to put a parity bit. Otherwise, you'd have to have a ninth
    bit somewhere. While it would be possible to have the software or
    hardware generate the ninth bit, for most simple systems like the
    stamp this isn't done. So, if you want parity, you get 7 data bits +
    1 parity bit.

    Chuck
Sign In or Register to comment.