毕业设计(论文)基于AT89S52简易数字频率计的设计.doc
文本预览下载声明
目 录 I
Abstract.. II
第一章 绪论 1
1.1 选题的目的及意义 1
1.2 课题的产生背景 1
1.3 国内外研究现状及发展趋势 2
第二章 频率计的原理及总体方案设计 3
2.1 数字频率计概述 3
2.2 基本设计原理 3
2.3 设计方案的选择 3
2.4 设计思路及方法 4
第三章 硬件电路设计 6
3.1 AT89S52简介 6
3.2 单片机最小电路 6
3.2.1 时基信号产生电路 6
3.2.2 复位电路 7
3.3 LCD1602显示电路 7
第四章 频率计软件设计 10
4.1 软件设计分析 10
4.2 主程序流程图 10
4.3 中断服务子程序设计 11
4.4 显示子程序 12
第五章 Proteus仿真系列组图 13
5.1 Proteus软件简介 13
5.2 放大整形电路仿真 13
5.3 复位图 14
5.4 频率计仿真图 14
结 论 15
参考文献(References) 16
致 谢 17
附 录 18
基于AT89S52简易数字频率计的设计
摘要:频率是电子技术中最基本的参数,在科学研究和实际应用中起着重要的作用,频率的测量也是学习的一个最基本的测量。频率的测量方法有很多种,包括传统的由组合电路和时序电路等大量的硬件电路构成的频率计,具备自动化测量的电子计数器等,随着测量要求的不断提高以及微处理器的引入,测量的数字化,频率的测量变得更加的功能齐全和智能化,使其拥有高性能,精度高,价格低,稳定性好等众多优点。
测频原理的实质是在单位时间内对被测信号进行计数。本次设计结构包括时钟信号发生电路、波形放大整形电路、单片机控制电路和LCD显示电路组成;使用单片机AT89S52构建硬件电路,通过C语言进行软件设计,采用软件阀门控制,通过单片机的定时计数功能来完成待测信号周期和频率的测量。待测信号直接通过放大整形电路把信号变成矩形波后接入单片机,以T1为计数器、T0为定时器,软件阀门设置为1秒,对输入信号进行计数,然后将测量结果送LCD1602显示,实现0.5V——5V、1HZ——65HZ的正弦波、方波、三角波的频率和周期的测量。
Design simple digital frequency meter based on AT89S52
Abstract:Frequency is a basic parameter in the electronic technology, plays an important role in scientific research and practical application, one of the most basic measurement frequency measurement is also learning. There are many kinds offrequency measurement method, including the traditional by combinational circuits and sequential circuits, a large number of hardware circuit of the cymometer, withautomatic measurement of electronic counter,With the increasing measurement requirements and introduction of the microprocessor, digital measurement, the measurement of frequency become more multifunctional and intelligent, it has high performance, high precision, low price, good stability etc..
The essence of frequency measurement principle is to count the number of the signal to be measured in a unit of time. The design of structure includes a clocksignal generation circuit, amplifying the waveform shaping circuit, MCU control circuit and LCD display circuit; the use of SCM AT89S52 construction hardwarecircuit, software de
显示全部