9600 8 n 1 in 9600 7 e 1 out


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    67

    Question 9600 8 n 1 in 9600 7 e 1 out

    Has anyone tried to convert the data stream above?
    ie;
    9600 Baud
    8 Bits
    N o Parity
    1 Stop Bit

    to

    9600 Baud
    7 Bits
    E ven Parity or O dd Parity
    1 Stop Bit

    thks

    Peter
    Pete

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Easiest, chose a PIC with a USART... Bits and Parity can be set independantly for the Tx and the Rx and this solution has the best reliability and least software overhead for the job. Once initialised, all you need to do is pick up a byte from the Receive register when it arrives, and drop it into the Transmit register - not exactly a code intensive task! OK... so you need a little routine in the middle to strip-out Bit 8 and replace it with a parity bit, but hey, that's not rocket science either.

  3. #3
    Join Date
    Feb 2005
    Posts
    67


    Did you find this post helpful? Yes | No

    Wink

    Thanks Melanie.

    I shall experiment!

    ps. Have seen the L'amour clip, have lots of money invested in lottery!

    pps. Still have problems with RS232 ON & OFF, No problems with any other command, ie Sweep, even ON 1 1 works. Using Internal Osc. Will try with resonator, but curious.

    regards

    (Hope to be rich soon!)
    Peter
    Pete

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Then you'll have loads of women chasing you... isn't this forum great? Relationship councillors charge money for this... and here you get great advice for free!

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 03:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts