- 6
- 0
- 约1.73万字
- 约 20页
- 2016-12-10 发布于贵州
- 举报
《单片机原理及接口技术课程设计报告-多通道百分秒表设计》
《单片机原理及接口技术》
课程设计
基于单片机的多通道百分秒表设计
摘要:
近年来随着科技的飞速发展,单片机的运用正在不断的走向深入,同时带动传统控制检测日新月异的更新。本秒表设计采用8051单片机为中心器件,利用其定时/计数器定时、计数的原理,结合显示电路、按键控制电路等外围电路来完成。将软、硬件有机的结合起来,使得系统能够实现4位LED显示,显示时间为00.00到99.99秒,每秒自动加一,可以用开关控制开始、停止、复位,并且能拥有多通道(两个或以上)分别计时功能。其软件系统采用C语言编写程序,包括:显示程序、中断初始化程序、中断服务程序、显示程序及开关控制程序。通过KEIL4与PROTEUS进行联合调试,使得硬件与软件有机的结合起来,达到了预期目的。
关键词:单片机,秒表,多通道
Abstract:
In recent years along with the rapid development of science and technology, the single-chip microcomputer application is constantly deepening, led the traditional control test at the same time change rapidly update. The stopwatch design using 8051 single chip as a core device, using the timer / counter timing, counting principles, combined with display circuit, control circuit and other peripheral circuit to complete. The soft, hardware of organic combination, so that the system can achieve 4 LED display, display time is 0 to 99.99 seconds, plus a second automatic, can use the switch to control start, stop, reset, and can have multiple channels ( two or more ) are functions of time. The system software using C language programming, including: display program, interrupt initialization, interrupt service routines, display and switch control procedures. Through the KEIL4 and PROTEUS joint debugging, which makes hardware and software combined with organic, to achieve the expected goal.
Key words: Single Chip Microcomputer; Stopwatch; Multi Channel
目录
一、内容提要 3
1.设计任务 3
2.主要功能 3
3.设计提示 3
二、步骤及方案 3
三、硬件设计 4
1.单片机的选择与外围电路 4
2.单片机与显示模块电路 5
3.开关电路 6
4.显示LED电路 6
5.外围小灯电路 7
6.整体电路protuus仿真图 8
四、软件设计 8
1.系统主函数程序 8
2.初始化函数程序 9
3.显示函数程序 9
4.开关函数程序 10
5.中断函数程序 11
五、调试 12
六、课程设计体会 13
七、参考文献 13
附录: 14
源程序代码 14
一、内容提要
1.设计任务
基于AT89C51设计一个5位LED数码作为“多通道百分秒表”。
2.主要功能
(1)、显示时间为00.00到99.99,每百分之一秒自动加一。
(2)、设计一个有五个按键的键盘。K1:开始,K2:停止,K3:复位,K4通道加1,K5:通道减1。
(3)、◎设计LED提醒,即D1小灯按照当前通道隔一秒亮一次,可以通过开关关闭该功能。
(4)、☆其他功能:D2、D3小灯按照01、02通道分别计时时间到10秒时熄灭。(定时:到某一时间有LED提醒功能)。
3.设计提示
(1)、用1个6位7段LED数码管作为显示设备,最高位显示通道号,低四位显示时间。
(
您可能关注的文档
最近下载
- (2026年)实施指南《GBT13265.1-1997纤维光学隔离器第1部分总规范》.pptx VIP
- 2026-2030中国沉香木行业市场深度调研及发展趋势与投资前景研究报告.docx
- 东北证券-博源化工-000683-稀缺天然碱领军企业阿碱项目稳步扩产.pdf VIP
- JB_T 8531-2013阀门手动装置 技术条件.pdf
- 武术套路单项比赛所需物品明细单.docx VIP
- 部编版小学语文教师:统编版语文1-6年级语文要素梳理.pdf VIP
- 2026年江苏城市职业学院单招职业技能考试必刷测试卷附答案.docx VIP
- 船上见习记录簿(样式).pdf
- (2026春新版)三年级下册道德与法治全册教案.docx
- (2025年)广东省公务员招录面试真题及答案.docx
原创力文档

文档评论(0)