How fast do bytes arrive?


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default How fast do bytes arrive?

    Hi, How do you calculate how fast bytes will arrive for a particular bause rate? Someone told me somewhere that a baud rate of 115200 means 1 byte will arrive every 51.2us. I cant find any relationship between the 2 numbers though. I read a wiki page about baud rates but i still dont have a clue

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    This may help
    http://www.tech-faq.com/difference-b...aud-rate.shtml

    Unless you are dealing with a modem, bit rate and baud rate are pretty much the same.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    115200 is BITS per second. With one start bit and one stop bit you have 10 bits per data byte. 115200 / 10 = 11520 BYTES per second. Each byte takes 86.8uS. The 51.2uS figure is about the period of a BIT at 19200 bps.

  4. #4
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default

    I still dont quite understand how baud and bits are related. That one sounds confusing. Im not dealing with a modem. Its just a normal RS232 connection betweeen my PC and a PIC chip (with RS485 in the middle).

    dhouston, if the baud and bps are the same then that looks quite easy. Its usefull to know that each byte takes 10 bits too instead of 8

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    This might clarify (or not) the difference between baud and bps.In your simple application baud = bps so the calculation is straightforward.

    Using 8N1, there are ten bits transmitted per byte. Using other settings there may be more or fewer bits.

  6. #6
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default

    I think it just clicked. I had already read that page but i missed 1 important thing. I was confused because it seems that 1 change of state can represent more than 1 bit of data. I just noticed on that wiki page that it says "a symbol may have more than two states".

    As far as i knew there were only 2 states in serial. Thats what im using anyway so yeah, as you say "In your simple application baud = bps". I am also using 8N1.

    Thanx for your help. I can make more reliable calculations now

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Fast Data Logging
    By dksoba in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th February 2010, 21:08
  3. LP Instant Interrupts Error
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th December 2009, 09:13
  4. bytes compressed and encrypted
    By RAYMON in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd March 2009, 11:24
  5. Replies: 4
    Last Post: - 11th December 2006, 14:38

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