8051 timing counting online calculator

发布日期 : 2019-12-17 02:34:01 UTC      

分类 : Daily

兆赫 (mhz)
毫秒 (mSec)
定时任务标准12时段增强的6个时钟周期时间
单个定时器
1 / (mhz/12)

1 / (mhz/6)
USEC
8位计时计数器
TIC12 * 256 / 1000

TIC6 * 256 / 1000
mSec
16位定时计数器
TIC12 * 65536 / 1000

TIC6 * 65536 / 1000
mSec
8位数重新计算值
256 - (DRT / TIC12 * 1000)

256 - (DRT / TIC6 * 1000)
mSec
16位重新计算值
65536 - (DRT / TIC12 * 1000)

65536 - (DRT / TIC6 * 1000)
mSec

App description

Mode 0 is the 13-bit timer counting mode, mode 1 is the 16-bit timer counting mode (which is the most common mode), mode 2 is the 8-bit automatic reloading initial value counting mode, mode 3 is only applicable to T0, and 16-bit T0 is divided into Two 8-bit timer counters.