【编者按】网学网自动化PLC相关毕业设计频道为大家收集整理了“基于单片机数字式频率计的硬件设计“提供大家参考,希望对大家有所帮助!
论文编号:DQ201 论文字数:20314,页数:49
摘要
数字式频率计在现代化工业技术上得到广泛的应用,其作用为对周期信号实现频率与周期参数的测量。本文以单片机为核心,引入相应的外围硬件电路,设计制作了一个数字式频率计系统。系统的硬件电路由单片微处理器、信号整形与放大电路、隔直电路、触发电路、数据显示等部分组成。系统设计的基本思想是通过钳压电路对输入信号进行整形,由运算放大器电路对输入信号进行放大,经触发电路实现输入信号的锁存,单片微处理器完成信号的处理与运算,利用译码器译码,在LED显示器上显视被测频率参数。实际运行表明,所设计的系统运行正常,结果正确。同时,通过对输入信号的波形整形可实现对各种周期性变化信号的频率及周期参数测量,若配以适当的传感器,本系统也可实现多种非电量周期信号参数的测量,如机械振动的频率,转速,声音的频率等。
关键词: 数字频率计,单片机系统,硬件设计
Abstract
Intelligent digital frequency meter is widely applied in the modern industrial technology, whose role is to realize the signal measurement of the cycle frequency. Based on the single-chip microcomputer, and introduced by relative the periphery circuits, a digital frequency meter system was designed and established. The hardware circuit consisted of the single-chip microprocessors, signal shaping and amplification circuits, DC circuits, trigger circuit, display circuit, and other components. System design through the basic idea is to clamp voltage circuit of the input signal shaping,op amp circuit from the input signal amplification, by the trigger circuit latches the input signal to achieve, complete single-chip microprocessor signal processing and computing, the use of decoder decoding, in the LED display on the frequency of significant parameters, as measured.Show that the actual operation, system designed to run normal, andthe results of the correct. At the same time, by shaping the waveform of the input signal can be achieved on a variety of cyclical changes in the frequency and signal parameter measurement cycle, the sensor with the appropriate, the system also enables a variety of non-periodic signal power measurement parameters, such as the frequency of mechanical vibration, speed, the frequency of sound.
Key words:Digital frequency meter,single-chip microcomputer system,,hardware design
目录
摘要 I
1 前言 1
1.1 数字频率计研究的意义与目的 1
1.2 数字频率计的现状和发展前景 1
1.3 本文所做的主要工作 2
2 89S51单片机简介 3
2.1 89S51 和MCS-51 的区别 3
2.2 89S51单片机的基本组成 5
2.3 89S51单片机工作方式 7
2.4 89S51单片机并行I/O接口 8
2.5 89S51单片机串行接口 9
2.6 89S51单片机中断系统 11
3 外围电路设计 13
3.1 信号输入单元 13
3.1.1信号输入单元原理图 13
3.1.2信号输入单元电路图 14
3.1.3 741型集成运放电路简介 14
3.2 数字显示电路 17
3.2.1 元件引脚图 17
3.1.2 元件功能表 18
3.2.3 数码显示管介绍 18
4 数字式频率计硬件设计 22
4.1 数字频率计的工作原理 22
4.2 数字频率计的系统级框图 22
4.3 数字频率计硬件设计原理 22
4.4 系统总设计 23
2.5 系统硬件调试 25
2.6 硬件调试工具—面包板简绍 25
2.7 系统元器件简绍 25
2.7.1 电阻 25
2.7.2 电容 27
2.8 PROTEL介绍 29
5 软件系统设计 31
5.1程序的设计总述 31
5.2数字频率计系统总体程序 31
5.3程序调试 42
6 总结 43
致谢 44
参考文献 45
附录:数字式频率计原理图 46