- 1、本文档共99页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
单片机实习报告
PAGE
PAGE 1
目录
TOC \o 1-3 \h \z \u 摘要 2
Abstract 3
1.实习任务与要求 4
1.1实习目的 4
1.2实习任务 4
1.3实习要求 5
2.基本原理 6
2.1数字时钟基本原理 6
2.2温度计工作基本原理 6
2.3频率计工作基本原理 6
3.方案论证 7
3.1键盘显示接口部分 7
3.2温度计部分 7
4.硬件设计 9
4.1最小系统设计 9
4.1.1晶振振荡器电路 9
4.1.2复位电路 9
4.2下载电路 11
4.3键盘电路 12
4.4显示电路 13
4.4.1数码管结构 13
4.4.2LED显示器工作原理 14
4.5温度传感器电路设计 16
4.5.1DS18B20的工作原理 16
4.5.2DS18B20的测温原理 19
4.6总电路 21
5.软件设计 22
5.1主程序流程图 22
5.2定时器0中断处理流程图 23
5.3时钟子程序 24
5.4温度子程序 25
5.5双机通信 26
5.6频率计子程序 28
5.7程序清单 28
6.仿真分析 41
6.1数字时钟仿真分析 41
6.2温度计仿真 43
6.3频率计仿真 45
7.实物运行照片 48
8 小结 51
参考文献 52
摘要
本次单片机实习的主要目的是巩固单片机的理论知识及锻炼实际动手能力。主要任务是在最小系统的基础上设计键盘显示电路,然后编程实现数字时钟,数字温度计和数字频率计。其中数字时钟要有调时调分调秒的功能;而温度计能完成串行通信,将温度显示在另一个单片机上.最后要求整个系统能通过按键实现数字时钟与温度计和频率计之间的相互切换。在实习过程要记录每天的实习内容包括方案的论证,硬件设计,软件设计,仿真分析及实物制作等。
关键词:单片机,数字时钟,温度计,频率计
Abstract
The main goal of the Single Chip Microcomputer practice is to renforce the speculative knowledge and train the ability of handwork.
The main task is to design the keyboard display circuit on the base of DIY.Then we should programme to realize the digital clock,digtal thermometer and digital frequency meter.what’more,the digital clock is required to have the function of adjust the second,muinute and hour.The
Digtal thermometer is required to accomplish the communication of two
Single Chip Microcomputers,the temperature can be displayed on the second Single Chip Microcomputer.At last,the whole system is required to realize the mutual switch between the clock and the thermometer ,the clock and the frequency meter.In the practice course ,we should write down the practice contents everyday,including the choice of scheme ,hardware design,software design,simuation analysis,making material object and so on .
Key words: Single Chip Microcomputer, digital clock, digtal thermometer , digital frequency meter
1.实习任务与要求
1.1实习目的
1、巩固《单片机原理与应用》理论课的理论知识;
2、熟悉单片机应用系统的硬件设计及软件设计的基本方法;
3、将
文档评论(0)