Maximum Baud Rate error tolerance


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Smile

    ...in the good old days, a UART (8250) uses a clock of 16-times (?) the baudrate. So ist can sample the signal feg. at the middle of die time.

    What is about saying:
    1/8 of a bit jitter in 10 bits ? (8N1)
    It would be 1,25% error.

    I think it belongs to the intelligence (!) of the receiver to take the best samplepoints inside a serial character.

    Modern PICs are able to get very close baudrate by using higher frequencies and bigger dividers.

    If you are using an PIC-PIC-conversion, you are able to define your own baudrate by using "good" dividers of a standard frequency.
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Keith,

    Use a baud rate friendly crystal. (0% baud rate error).

    18.432 MHz for the 18F452 and 3.6864 MHz for the 16F88s.
    Does your compiler support these oscillator frequencies?

    Best regards,

    Luciano

    * * *

    Baud rate friendly crystals:

    1.8432 MHz
    3.6864 MHz
    7.3728 MHz
    11.0592 MHz
    14.7456 MHz
    18.4320 MHz

  3. #3
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Luciano View Post
    Use a baud rate friendly crystal. (0% baud rate error).

    18.432 MHz for the 18F452 and 3.6864 MHz for the 16F88s.
    Does your compiler support these oscillator frequencies?

    Baud rate friendly crystals:

    1.8432 MHz
    3.6864 MHz
    7.3728 MHz
    11.0592 MHz
    14.7456 MHz
    18.4320 MHz
    Hi Luciano,

    According to the PBP manual the only supported frequencies are
    Oscillator speed in MHz: 3(3.58) 4 8 10 12 16 20 24 25 32 33 40 so any timing function would be off. I could compensate for this but it would make my IR timing routines more complicated.

    As I said at the start, if BOTH PICs are off by the same amount then it wouldnt matter if it was 50% as they would be running at the same speed.

    My question was more out of curiosity as to how far out you could get before comms would be unreliable.

    Thanks to everyone for the replies
    Keith

    www.diyha.co.uk
    www.kat5.tv

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. Maximum Baud Rate at 4Mhz
    By barkerben in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th November 2005, 16:47
  3. Auto Baud Rate Detection
    By mytekcontrols in forum Serial
    Replies: 10
    Last Post: - 31st October 2005, 02:17
  4. PIC12F675, accuracy of baud rate with Internal Oscillator
    By Chris Mayhew in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2005, 22:41
  5. Baud Rate and Timing Calculator
    By picnaut in forum General
    Replies: 3
    Last Post: - 23rd January 2004, 16:48

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