多功能电脑时钟(000001).pdf
《多功能电脑时钟(000001).pdf》由会员分享,可在线阅读,更多相关《多功能电脑时钟(000001).pdf(24页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、重庆科技学院C 语言课程设计报告第 1 页 共 24 页课程设计报告院(系):班 级:学生姓名:学 号:设计地点(单位)_I301_设计题目:完成日期:2010 年 7 月 15日指导教师评语:_ _成绩(五级记分制):_ _教师签名:_ 重庆科技学院C 语言课程设计报告第 2 页 共 24 页自我评价为期两个星期的 c 语言课程设计已经结束,从接触单片机到学习使用单片机,其中的兴奋是不言而喻的。从最开始的点亮一个LED灯开始,到最后的设计一个多功能的电脑时钟,其中一点点的小成就就足以让人兴奋不已,看着自己写的程序慢慢的达到预期的效果,那种成就感有说不出的舒心。在此学习的过程中,虽然不太能明白
2、那些原理,也不懂为什么那些程序的条件要那样限制,不过倒是大体上能明白主要的步骤写的是什么,有什么作用学单片。虽然学得是迷迷糊糊,但这并不妨碍我学习的积极性,从学单片机的过程中我明白到,在复杂的东西都是从简单的开始,也都是能学会的。在此学习的过程中,我以尽了最大的努力。文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档
3、编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:C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 ZY3H1Q9Y7I6文档编码:CE3B5H2A
7、7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4
8、G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7
9、I6重庆科技学院C 语言课程设计报告第 3 页 共 24 页目录摘要.11 多功能电脑时钟的功能规划.51.1 基本的北京时间的显示.51.2 时钟时针的调试 .51.3 时钟分针的调试 .51.4 可设定时间的闹钟功能.51.3 秒表功能 .51.4 倒计时功能.52 方案设计 .62.1 硬件方案设计.62.2 软件方案设计.63 硬件电路设计与分析 .83 1 数码管显示电路.83.2 按键接口电路.93.3 LED 指示电路.103.5 蜂鸣器接口电路 .104、软件设计 .104.1 初始化程序 .114.2 数码管显示程序.114.3 时钟程序 .114.4 秒表程序 .124.5
10、 闹铃程序 .144.6 倒计时程序 .144.7 按键扫描及处理程序.155、调试与测试 .165.1 调试方法及步骤.165.2 测试方法及测试结果.166 技术小结 .167 参考文献 .17文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9
11、Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B
12、5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1
13、Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 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7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6重庆科技学院C 语言课程设计报告第 4 页 共 24 页摘要随着科
17、学技术的发展,单片机在各个领域的运用越来越广泛。本次课程设计所使用的单片机为 STC89C51,STC89C51 是一个低电压,高性能CMOS 8 位单片机,片内含4k bytes的可反复擦写的 Flash 只读程序存储器和128 bytes 的随机存取数据存储器(RAM),器件采用 STCMEL 公司的高密度、非易失性存储技术生产,兼容标准MCS-51指令系统,片内置通用 8 位中央处理器和Flash 存储单元,内置功能强大的微型计算机的STC89C51 提供了高性价比的解决方案。利用单片机开发系统板设计一个多功能电脑时钟系统或者倒计时器等,掌握Protel设计单片机应用系统硬件线路图的方法
18、,掌握使用Keil C51开发单片机应用系统控制程序的基本步骤和方法。任务涉及的知识面包括C51程序语言设计、MCS-51 单片机 I/O 口应用、中断与定时器应用、人机接口应用技术等关键字:STC89C51 单片机定时器中断数码管文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9
19、Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3
20、H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:
21、CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 H
22、O9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 Z
23、Y3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编
24、码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6文档编码:CE3B5H2A7N4 HO9Y1Z5W4G10 ZY3H1Q9Y7I6重庆科技学院C 语言课程设计报告
25、第 5 页 共 24 页1 多功能电脑时钟的功能规划1.1 基本的北京时间的显示进入时钟模式,LED P23灯亮。北京时间的显示用4 位数码管显示,2 位显示小时,2位显示分钟,第 2 位小数点 0.5 秒亮,0.5 秒灭。1.2 时钟时针的调试进入时钟时针调整模式,LED P24灯亮,按 up 键时针数增加,按down键时针数减少。1.3 时钟分针的调试进入时钟分针调整模式,LED P25灯亮,按 up 键分针数增加,按down键分针数减少。1.4 可设定时间的闹钟功能进入闹钟模式,四个LED指示全亮。闹钟设定的时间可以用up 和 down 按键来调整。Up键调整时针数,down键调整分针数
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 多功能 电脑 时钟 000001
限制150内