文件名称:pinlvjishuqi
介绍说明--下载内容来自于网络,使用问题请自行百度
(1). 定时/计数器T0和T1的工作方式设置,由图可知,T0是工作在计数状态下,对输入的频率信号进行计数,但对工作在计数状态下的T0,最大计数值为fOSC/24,由于fOSC=12MHz,因此:T0的最大计数频率为250KHz。对于频率的概念就是在一秒只数脉冲的个数,即为频率值。所以T1工作在定时状态下,每定时1秒中到,就停止T0的计数,而从T0的计数单元中读取计数的数值,然后进行数据处理。送到数码管显示出来。
(2). T1工作在定时状态下,最大定时时间为65ms,达不到1秒的定时,所以采用定时50ms,共定时20次,即可完成1秒的定时功能。
-1).Timer/counters T0 and T1, the mode setting, the figure shows, T0 is the work count state, counting the frequency of the input signal, but to work under the count state T0, the maximum count value fOSC/24, duefOSC = 12MHz, therefore: T0 maximum count frequency of 250KHz. In one second only to the number of the number of pulses, the concept of frequency is the frequency value. T1 work under the regular state, each timing 1 seconds to stop the count of T0, the count value is read from T0 of the counting unit, and data processing. Sent to the digital display.
(2). T1 work under the regular state, the maximum timing of 65ms, up to less than one second timing, so the use of the timing 50ms timing a total of 20 times, to complete one second timing functions.
(2). T1工作在定时状态下,最大定时时间为65ms,达不到1秒的定时,所以采用定时50ms,共定时20次,即可完成1秒的定时功能。
-1).Timer/counters T0 and T1, the mode setting, the figure shows, T0 is the work count state, counting the frequency of the input signal, but to work under the count state T0, the maximum count value fOSC/24, duefOSC = 12MHz, therefore: T0 maximum count frequency of 250KHz. In one second only to the number of the number of pulses, the concept of frequency is the frequency value. T1 work under the regular state, each timing 1 seconds to stop the count of T0, the count value is read from T0 of the counting unit, and data processing. Sent to the digital display.
(2). T1 work under the regular state, the maximum timing of 65ms, up to less than one second timing, so the use of the timing 50ms timing a total of 20 times, to complete one second timing functions.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
频率计程序/pin
频率计程序/pin.hex
频率计程序/pin.lnp
频率计程序/pin.M51
频率计程序/pin.Opt
频率计程序/pin.plg
频率计程序/pin.Uv2
频率计程序/pinlvji.c
频率计程序/pinlvji.LST
频率计程序/pinlvji.OBJ
频率计程序/pin_Opt.Bak
频率计程序
频率计程序/pin.hex
频率计程序/pin.lnp
频率计程序/pin.M51
频率计程序/pin.Opt
频率计程序/pin.plg
频率计程序/pin.Uv2
频率计程序/pinlvji.c
频率计程序/pinlvji.LST
频率计程序/pinlvji.OBJ
频率计程序/pin_Opt.Bak
频率计程序
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.