CSGNetwork.com Free Information

8051 Microcontroller Peripheral Timing Calculator

This calculator requires the use of Javascript enabled and capable browsers. This calculator is designed to give critical timing values for the 8051 microcontroller's timer 0 and timer 1. Enter the microcontroller clock rate in megahertz and the desired run-time duration in milliseconds of the timer. Click on Calculate. The calculated rates and values are only the run-time of the timer; the general formula is also given. No attempt at calculation of the overhead is made for stopping, starting or loading and reloading of the timers since that time is negligible. 12-clock parts are conventional 8051 derivatives using 12 machine cycles to execute one instruction cycle. Newer but similar devices often are 6-clock parts and instruction cycle time is reduced by 50 percent. They only need 6 machine cycles to execute one instruction cycle.

Designation
Value
Required Data Entry
Microcontroller Clock Frequency Megahertz (mhz)
Desired Timer Run-Time (DRT) Milliseconds (mSec)
   


Calculated Results
Timing
Task
Standard
12-Clock Parts
Enhanced
6-Clock Parts
Time
In
Single Timer
TIC Duration

1 / (mhz/12)

1 / (mhz/6)
uSec
8-bit Timer Counter
Maximum Run-Time

TIC12 * 256 / 1000

TIC6 * 256 / 1000
mSec
16-bit Timer Counter
Maximum Run-Time

TIC12 * 65536 / 1000

TIC6 * 65536 / 1000
mSec
8-Bit DRT
Reload Value

256 - (DRT / TIC12 * 1000)

256 - (DRT / TIC6 * 1000)
mSec
16-Bit DRT
Reload Value

65536 - (DRT / TIC12 * 1000)

65536 - (DRT / TIC6 * 1000)
mSec
Updated 8.17.11


Leave us a question or comment on Facebook
Search or Browse Our Site
Free Information Calculators and Converters

International Copyright Violation
Registered® Trademark™ and Copyrightę 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved