文件名称:clock0510
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- l*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 一秒定时的实现。
设定定时器每100us中断一次,在中断服务程序中,对中断次数进行计数,计数10000次就是1秒。
2.分、秒的显示
用四个数码管配合373芯片的锁存功能就可以完整地显示分、秒信息。373芯片的片选则需要138芯片的译码和04芯片的取反。
3. 调时的实现
利用单片机的外部中断和三个按键,我们可以方便的实现调时功能。比如三个按键开关产生的中断信息可以分别用于“开始(停止)调时”、“选择调时位”、“当前选择位+1”。
4. 实现按键的软件去抖动功能。
-1. The realization of a second timing. Set a timer interrupt every 100us, in the interrupt service routine, the number of interruptions to count, count 10000 times is 1 seconds. 2. Minutes and seconds are displayed using four digital tube 373 with the latch function of the chip can be a complete display minutes and seconds information. 373 chip-chip election would require 138 of the decoding chip and 04 chips from the anti-. 3. Tune realize single-chip computer at the time of the external interrupt and three buttons, we can realize a convenient function when transferred. For example, three button switches interrupt generated information can be used for
设定定时器每100us中断一次,在中断服务程序中,对中断次数进行计数,计数10000次就是1秒。
2.分、秒的显示
用四个数码管配合373芯片的锁存功能就可以完整地显示分、秒信息。373芯片的片选则需要138芯片的译码和04芯片的取反。
3. 调时的实现
利用单片机的外部中断和三个按键,我们可以方便的实现调时功能。比如三个按键开关产生的中断信息可以分别用于“开始(停止)调时”、“选择调时位”、“当前选择位+1”。
4. 实现按键的软件去抖动功能。
-1. The realization of a second timing. Set a timer interrupt every 100us, in the interrupt service routine, the number of interruptions to count, count 10000 times is 1 seconds. 2. Minutes and seconds are displayed using four digital tube 373 with the latch function of the chip can be a complete display minutes and seconds information. 373 chip-chip election would require 138 of the decoding chip and 04 chips from the anti-. 3. Tune realize single-chip computer at the time of the external interrupt and three buttons, we can realize a convenient function when transferred. For example, three button switches interrupt generated information can be used for
相关搜索: 去抖
(系统自动生成,下载前可以参看下载内容)
下载文件列表
clock0510.c