没有合适的资源?快使用搜索试试~ 我知道了~
单片机数字频率计设计-毕设论文.doc
0 下载量 12 浏览量
2023-07-02
18:07:26
上传
评论
收藏 2.09MB DOC 举报
温馨提示
试读
36页
单片机数字频率计设计-毕设论文.doc
资源推荐
资源详情
资源评论
本科毕业设计(论文)
题目: 数字频率计设计
教学单位: 机电工程系
专 业: 自动化
2013 年 5 月
I
摘 要
设计以 AT89C51 单片机为核心,被测的矩形波或者方波整形为脉冲后输入单片
机。利用单片机的计数器和定时器的功能对被测信号进行计数。编写相应的程序可
以使单片机自动调节测量的量程,并把测出的频率数据送到显示电路显示。
本设计的目的是通过对单片机原理及应用的学习,以及查阅相关资料,培养自
学与动手能力,把学到的知识应用到日常生活当中。在设计的过程中,不断的补充
不知道的知识、巩固所学、相互讨论,运用科学分析问题的方法解决设计中遇到的
困难,掌握单片机系统一般的开发流程,学会对常见问题的处理方法,积累设计系
统的经验,充分发挥教学与实践的结合。设计出符合要求的数字频率计。
关键词:单片机;数字频率计;设计;
II
Abstract
Design USES AT89C51 microcontroller as the core, measured in square wave or a
square wave input microcontroller after plastic for pulse. Using single chip microcomputer
counter and timer function to count the signal to be measured. Write the corresponding
program can make the single chip microcomputer automatic adjust the range of
measurement, and send the frequency of the measured data display circuit.
The purpose of this design is based on single chip microcomputer principle and
application of learning, and access to relevant data, the cultivation of self-study and
practical ability, the application of knowledge to the daily life. Supplement in the process
of design, and constantly don't know knowledge, consolidate learning, mutual discussion,
using the scientific method to analyze the problem to deal with the difficulties encountered
in the design, master the single-chip microcomputer system development process, learn to
deal with common methods, accumulate the experience of the design system, give full
play to the combination of teaching and practice. Digital frequency meter designed to meet
the requirements.
Key words: single chip microcomputer; Digital frequency meter; Design;
III
目 录
第 1 章 前言............................................................................................................................................1
1.1 题目背景及研究意义 ...............................................................................................................1
1.2 设计内容及参数要求 ...............................................................................................................2
1.2.1 设计内容 ........................................................................................................................2
1.2.2 参数要求 ........................................................................................................................2
第 2 章 方案的设计与论证....................................................................................................................3
2.1 测频原理 ...................................................................................................................................3
2.2 方案一 .......................................................................................................................................4
2.3 方案二 .......................................................................................................................................4
2.4 方案选择 ...................................................................................................................................5
第 3 章 硬件的设计................................................................................................................................6
3.1 基本设计原理 ...........................................................................................................................6
3.2 系统硬件模块关系 ...................................................................................................................6
3.2.1 系统总体 ........................................................................................................................6
3.2.2 单片机管脚说明 ............................................................................................................7
3.2.3 单片机 I/O 口分配表...................................................................................................10
3.2.4 频率显示电路 ..............................................................................................................10
3.2.5 时钟电路 ......................................................................................................................10
3.2.6 电源电路 ......................................................................................................................11
3.2.7 复位按钮 ......................................................................................................................11
3.2.8 数码管显示电路 ..........................................................................................................12
3.2.9 输入信号的要求 ..........................................................................................................14
3.3 最终的硬件电路图 .................................................................................................................15
第 4 章 软件的设计..............................................................................................................................16
4.1 程序的流程图 .........................................................................................................................16
4.2 数码管扫描部分 .....................................................................................................................19
4.3 频率计主程序 .........................................................................................................................19
第 5 章 软件与硬件调试......................................................................................................................20
5.1 C 程序编译与仿真结果 .........................................................................................................20
IV
5.2 在 Proteus ISIS 上的仿真结果..............................................................................................20
第 6 章 设计总结与体会......................................................................................................................23
致 谢 ......................................................................................................................................................24
参考文献..................................................................................................................................................25
附录 A 系统硬件电路图 ......................................................................................................................26
附录 B 元器件清单 ..............................................................................................................................27
附录 C 源程序 ......................................................................................................................................28
剩余35页未读,继续阅读
资源评论
yyyyyyhhh222
- 粉丝: 418
- 资源: 6万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功