Keil Logo Arm Logo

8051 Baud Rate Calculator

This utility program calculates baud rates for 8051-compatible serial ports operating in Mode 1 using:

  • Timer 1 Mode 2 with SMOD = 0.
    Reload values calculated for TH1.
  • Timer 1 Mode 2 with SMOD = 1.
    Reload values are calculated for TH1.
  • Timer 2 (using the internal clock).
    Reload values are calculated for RCAP2.

You may specify non-standard clock divisors for Timer 1 and Timer 2.

Standard baud rates are used unless you enter a specific baud rate.

A list of standard oscillator frequencies and a description of typical uses for each is available from Vectron.

Enter Oscillator and Clock Information Below
 
Crystal Frequency: MHz
Serial Clock Divisor:
(Default: Timer 1 = 12, Timer 2 = 32)
Timer:
Baudrate:
 

* For best results, choose baud rates that are accurate to +/-1% or better.

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

ARM’s Privacy Policy has been updated. By continuing to use our site, you consent to ARM’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.