文件名称:dizishizhong
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 65kb
- 下载次数:
- 0次
- 提 供 者:
- 陈*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实训使用AT89C51控制,其中使用p2做输出,p3口做控制信号,使用外部中断1作调节小时,外部中断0作调节分钟,定时器1在计数模式作调节秒,定时器1在定时模式用于计数,而p0.0做总控开关的入口。
软时钟是利用单片机内部的定时器\计数器来实现的,它的处理过程如下:首先设定单片机内部的一个定时器\计数器工作于定时方式,对机器周期计数形成基准时间,然后用另一个定时器\计数器或软件计数的方法对基准时间计数形成秒,秒计60次形成分,分计60次形成小时,小时计24次则计满一天。然后通过数码管把它们的内容在相应位置显示出来即可。-Training use AT89C51 control, which use p2 do output, p3 mouth do control signal, use external interruption 1 to adjust hours, and external interruption, 0 to adjust minutes, the timer 1 in count mode to adjust seconds, the timer 1 in timing model in the count, and p0.0 do always control switch of the entrance.
Soft clock is using single chip computer internal timer \ counter to implementation, it is the process of the following: first set inside the single chip microcomputer a timer \ counter work in regular way, to machine cycle count form benchmark time, and then used another timer, counter or software count method to count the benchmark time form seconds, seconds program 60 times form points, points plan 60 times form hours, and hours 24 times with the project plan a day. Then through the contents of the digital tube they in their place can be displayed.
软时钟是利用单片机内部的定时器\计数器来实现的,它的处理过程如下:首先设定单片机内部的一个定时器\计数器工作于定时方式,对机器周期计数形成基准时间,然后用另一个定时器\计数器或软件计数的方法对基准时间计数形成秒,秒计60次形成分,分计60次形成小时,小时计24次则计满一天。然后通过数码管把它们的内容在相应位置显示出来即可。-Training use AT89C51 control, which use p2 do output, p3 mouth do control signal, use external interruption 1 to adjust hours, and external interruption, 0 to adjust minutes, the timer 1 in count mode to adjust seconds, the timer 1 in timing model in the count, and p0.0 do always control switch of the entrance.
Soft clock is using single chip computer internal timer \ counter to implementation, it is the process of the following: first set inside the single chip microcomputer a timer \ counter work in regular way, to machine cycle count form benchmark time, and then used another timer, counter or software count method to count the benchmark time form seconds, seconds program 60 times form points, points plan 60 times form hours, and hours 24 times with the project plan a day. Then through the contents of the digital tube they in their place can be displayed.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
基于单片机的电子时钟的设计.doc