文件名称:pinlvjishuqi
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-03-22
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- 朱**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
(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
频率计程序