Shop OBEX P1 Docs P2 Docs Learn Events
7-bit serial mod for fullduplexserial? — Parallax Forums

7-bit serial mod for fullduplexserial?

luftphotoluftphoto Posts: 5
edited 2009-03-04 02:30 in Propeller 1
I'm drawing a blank on this one. I assume the assembly portion of the "fullduplexserial" code needs to be changed to force it to use 7-bit word length instead of 8. I know the BS2 library will support it, but I'd rather stick with fullduplexserial if possible.

Any ideas?

Comments

  • KyeKye Posts: 2,200
    edited 2009-03-04 00:42
    Make sure that the last bit of every piece of data you send is one.

    That will basically act like a stop bit allowing 7 bit data transfers.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • AribaAriba Posts: 2,690
    edited 2009-03-04 02:07
    Here is a FullDuplexSerial variation, with adjustabel Databit size, Rxbuffer size and Parity on transmit.

    This is not extensive tested!

    Andy
  • luftphotoluftphoto Posts: 5
    edited 2009-03-04 02:30
    Thanks Kye, and thanks Ariba for the code - I'll try both.
Sign In or Register to comment.