회원가입 ID/PW 찾기
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


src & refer : http://www.csgnetwork.com/timer8051calc.html

Code calculator tool for 8051 family


This tool calculate code timers serial port baud rate and square wave in c and assembly download

저작권법에 위배되는 컨텐츠는 등록 불가하며, 저작물에 대한 권리는 컨텐츠 제공자에게 있습니다.
Copyright 2006-2017 © micombox.com, All rights reserved.