文件名称:Text3
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 光***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
秒计数可用20次50ms的计数溢出来实现。50ms的计数可选用T0方式1,16位定时方式,定时器初始值应为
65536-50×1000×11.0592/12=19456=4C00H
考虑中断响应时间及重装定时器初始值的时间共计约4个机器周期,定时器初始值加4(即4C04)。
秒计数值通过P2口输出,用LED指示灯显示。
-20 seconds count can be achieved 50ms overflow count. Count of 50ms means 1,16 can choose T0 bit timing means, the timer initial value should be 65536-50 × 1000 × 11.0592/12 = 19456 = 4C00H consider reload timer interrupt response time and total time of the initial value of about 4 machine cycles, the timer initial value plus 4 (ie, 4C04). Seconds through the P2 port output value, with LED indicators.
65536-50×1000×11.0592/12=19456=4C00H
考虑中断响应时间及重装定时器初始值的时间共计约4个机器周期,定时器初始值加4(即4C04)。
秒计数值通过P2口输出,用LED指示灯显示。
-20 seconds count can be achieved 50ms overflow count. Count of 50ms means 1,16 can choose T0 bit timing means, the timer initial value should be 65536-50 × 1000 × 11.0592/12 = 19456 = 4C00H consider reload timer interrupt response time and total time of the initial value of about 4 machine cycles, the timer initial value plus 4 (ie, 4C04). Seconds through the P2 port output value, with LED indicators.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Text3.c