单片机技术课程设计说明书
数字电子钟
系、部: 电气与信息工程系
学生姓名:
指导教师: 职称
专业: 电子信息工程
班级:
完成时间:
摘要
电子钟现如今已非常普遍而且也早已成为人生日常生活中必不可少的必需品,广泛应用于家庭、学校、车站、剧院、商店、办公室等场所。几乎走到哪都我们都离不开对时间的控制,甚至有的场合对其精确度有着很高的要求。因而电子钟给人们的生活、学习、工作带来了极大的方便。本课题中采用单片机技术设计电子钟。采用AT89S52单片机为主控芯片,实现了时间的显示、调整及整点报时功能。根据时钟时、分和秒之间的关系通过软件编程的方法实现电子钟的运行。用8位7段LED数码管(两个四位一体数码管)显示。具有走时准确、显示直观、精度、稳定等优点。更具有推广应用价值。
关键词电子钟;单片机;硬件系统;软件系统
ABSTRACT
Electric clock has now mon but also has already e life daily life essential necessities, widely used in family, school, station, theatres, stores, offices and other places. Almost go where are we all is inseparable from the time of control and even some occasions with high accuracy of the request. Thus electric clock to the life of people, study, work brought great convenience. This topic in the one-puter technology design electric clock. Adopt AT89S52 SCM as the controller chip, has realized the time display, adjustment and integral point to announce the function. According to the clock, minutes, and seconds when the relationship between through programming method of realization electric clock operation. The 8-bit seven sections LED digital tube (two four-in-one digital tube) displays. With traveltime accurate, show intuitional, precision, stability, etc. The more has higher application value.
Keywords electric clock; microcontroller; hardware system;software system
目录
1 设计课题任务、功能要求说明及总体方案介绍 4
设计课题任务 4
功能要求说明 4
设计课题总体方案介绍及工作原理说明 4
2 设计课题硬件系统的设计 6
设计课题硬件系统各模块功能 6
设计课题相关图纸 6
设计课题元器件清单 6
3 设计课题软件系统的设计 7
设计课题使用单片机资源的情况 7
设计课题软件系统各模块功能 7
设计课题软件系统程序流程框图 7
设计课题软件系统程序清单 11
4 设计结论及教学建议 12
设计课题的设计结论及使用说明 12
设计课题的仿真结果 12
设计课题的误差分析 13
设计心得及教学建议 13
参考文献 14
致谢 15
附录 16
附录一 16
附录二 19
附录三 20
1 设计课题任务、功能要求说明及总体方案介绍
设计课题任务
设计一个具有特定功能的电子钟。
功能要求说明
该电子钟上电或按键复位后能自动显示系统提示符“P.”, 进入时钟准备状态;第一次按电子钟启动/调整键,电子钟从0时0分0秒开始运行,进入时钟运行状态;再次按电子钟启动/调整键,则电子钟进入时钟调整状态,此时可利用各调整键调整时间,调整结束后可按启动/调整键再次进入时钟运行状态。
设计课题
《单片机技术》课程设计说明书-数字电子钟 来自淘豆网m.daumloan.com转载请标明出处.