Shop OBEX P1 Docs P2 Docs Learn Events
115200 baud works with faster system clock speed? — Parallax Forums

115200 baud works with faster system clock speed?

bill190bill190 Posts: 769
edited 2010-04-28 00:49 in Propeller 1
I've noticed that if I use the following system clock settings (using object FullDuplexSerialPlus.spin, Parallax Serial Terminal, Parallax USB to serial, and 5MHz crystal), that I will get "gobbledygook" on the terminal at baud rate 115200.

But·the following·will work fine at baud rate 57600...

· _xinfreq = 5_000_000····················
· _clkmode = xtal1 + pll1x

If I use these system clock speed settings or faster...

· _xinfreq = 5_000_000····················
· _clkmode = xtal1 + pll2x

...it will work fine at 115200.

Are there certain clock speeds I should use for faster baud rates?
·

Comments

  • BeanBean Posts: 8,129
    edited 2010-04-27 17:19
    Faster baud rates will require a faster clock speed.

    From your description it looks like the clock must be about 80 times faster than the baud rate.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
  • kuronekokuroneko Posts: 3,623
    edited 2010-04-28 00:49
    It's just plain numbers, at 115200 baud you have clkfreq/115200 cycles to send out a bit. At 5MHz that's 43 cycles or effectively 10 instructions, NG. The FDS object interleaves TX and RX code (ping-pong multitasking). Sending a bit requires at least 13 instructions plus the time spent in the receiver code. Go figure!
Sign In or Register to comment.