单片机,数字时课程设计完整版.doc
文本预览下载声明
课程设计任务书
学生姓名: 江勇峰 专业班级: 自动化0607
指导教师: 刘教瑜 工作单位: 武汉理工大学自动化学院
题 目: 简易数字时钟
初始条件:
用C语言编写程序,实现简易数字时钟的功能。
要求完成的主要任务:
(1)简易数字时钟能实现时、分、秒的数字显示;
(2)可以对时钟、分钟进行调节并且校正。
近几年,单片机在各个领域得到广泛的应用。从工业到人们的日常生活,大部分的科技产品都是通过单片机来控制。在它问世之前,自动控制设备不能被广泛的应用,这是因为控制设备的体积庞大,耗电量大,价格昂贵。在第一台微处理器成功研制不久,第一个单片机就问世了。因为其小巧的体积,低功耗,以及高效的性能,单片机受到了大家的欢迎。今天,单片机成为了解决低复杂度,中等复杂度控制问题的传统选择。文章介绍了单片机在定时方面的基本功能。生活中,我们发现时间的准确显得重要我们选择的方法是单片机开发设计使用的传统方法,通过本次设计,可以了解整个单片机开发的流程。文章首先介绍了单片机的基本知识同时给出了框图,流程图等。论文涵盖了从需求分析,系统设计,编程原理图等产品开发的基本过程。关键词:单片机,软件仿真,原理图Single Chip Microcomputer has achieved a immemse popularity in all fileds in recent years.From industry to people’s common lives,most of technical applications are controlled by SCM. Before it appeared,the automatic devices could’t be widely used because of their huge size ,large quantity of power cost and high price.The first SCM appeared as soon as the first MCU(MicroController Unit) was successfully developed.Due to its small size,low power cost and high performance,it has been welcomed by people. Nowadays, SCM has been selected as a traditional solution for low?or?medium complexity problems about devices controlling.This essay shows a basic application of SCM in timing for people’s life. Time accuracy is a vital factor that effects the results.
The approach we choose is the common way for SCM developing from which we can get an acknowledge about the SCM develop flowing process.The paper first introduces knowledge on 51 serial SCM,then At it also shows block diagrams,flowing process diagrams and so on. It presents the process including requirement analysis ,system design,SCM programming ,program emulation , which forms a complete procedure for product manufacture。Key words: SCM,software emulation,schemetic
?
?
目录
1单片机的基本知识 5
1.1数码管动态显示原理 5
1.2键盘扫描原理 6
2程序说明和流程图 6
2.1程序说明 6
2.2流程图 8
3程序设计 9
4实验仿真和验证 13
5心得体会 14
6参考文献 15
简易数字时钟
1单片机的基本知识
图1数码管显示原理图
如图1数码管显示原理图所示,使用LED
显示全部