12 位间隔定时器

单片机里面有辣么多定时器,我先不看其它的,要不然我直接晕菜。其实人生就是一个main(){}。

When I was born in ****/**/**, I was powered on.

When I was 18 years old, I was initialized.

Then I entered a loop for:

for(;;)

{

起床;早饭;上班;午饭;拍打;下班;晚饭;碎觉;

}

Where is the Break; sentence? No Break; No Hope. But I'd like to say it's perfect life for ordinary people.

12 位间隔定时器的运行时序

以ITCMP11 ~ ITCMP0 位设定的计数值为间隔,作为重复产生中断请求(INTIT)的12 位间隔定时器运行。如果将RINTE 位置“1”, 12 位计数器就开始计数。当12 位计数器的值和ITCMP11 ~ ITCMP0 位的设定值相同时,将12 位计数器清“0” 并且继续进行计数,同时产生中断请求信号(INTIT)。


12 位间隔定时器_第1张图片

(1499 +1) * 1/15 = 100ms

(3276 +1) * 1/32.768 = 100ms

你可能感兴趣的:(12 位间隔定时器)