文件名称:Text3
介绍说明--下载内容来自于网络,使用问题请自行百度
秒计数可用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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.