文档详情

用51单片机完成等精度频率测量仪的设计_毕业论文.doc

发布:2016-06-10约2.58万字共53页下载文档
文本预览下载声明
摘 要 频率测量是电子学测量中最为基本的测量之一。频率计主要是由信号输入和放大电路、单片机模块、分频模块及显示电路模块组成。AT89C51单片机是频率计的控制核心,来完成它待测信号的计数,译码,显示以及对分频比的控制。利用它内部的定时/计数器完成待测信号频率的测量。在整个设计过程中,所制作的频率计采用外部分频,实现10Hz-500kHz的频率测量,而且可以实现量程自动切换流程。以AT89C51单片机为核心,通过单片机内部定时/计数器的门控时间,方便对频率计的测量。其待测频率值使用LCD液晶显示器显示,并可以自动切换量程。本次采用单片机技术设计一种数字显示的频率计,具有测量准确度高,响应速度快,体积小等优点。 关键词:周期测频法,单片机控制,软硬件结合。 ABSTRACT Frequency measurement is the most basic measurement in Electronic field. Frequency meter is mainly composed of a signal input and an amplifying circuit, SCM module, frequency module and a display circuit module. AT89C51 MCU is the control core frequency of dollars to complete its count of the signal under test, decoding, display and control of the frequency division ratio. Using its internal timer or counter to complete the signal of the under test cycle / frequency of measurement. Throughout the design process, periodic measurement of the frequency meter application and the corresponding mathematical treatment to achieve 1Hz ~ 500 KHz frequency measurements, and can automatically switch the flow to achieve scale. To the core of AT89C51 micro-controller, with the MCU internal timer / counter gate time, it can be easier for frequency measurement. The use of microcomputer technology to design a digital display of frequency meter, have a measurement of high accuracy, fast response, small size and so on. KEYWORDS: The cycle frequency measurement, Single chip control, The combination of hardware and software. 目 录 1 绪 论 7 1.1 数字频率计简介 7 1.2 单片机系统的研究现状 7 1.3频率计的研究现状 2 1.4论文的主要工作和难点 3 2 等精度频率计的原理与应用 5 2.1 等精度频率计的原理 5 2.1.1 D触发器 5 2.1.2 等精度频率计测量的原理 5 2.2 等精度频率计的误差分析 6 2.3本章小结 7 3硬件电路设计 9 3.1单片机周边电路框图以及电路设计 9 3.2 51单片机及AT89C52介绍 10 3.2.1单片机简介 10 3.2.2 AT89C52简介 11 3.2.3 管脚说明 11 AT89C52管脚图如图3-4所示。 11 3.2.4 AT89C52主要性能 13 3.3各部分电路图及电路工作原理分析 13 3.3.1时钟脉冲电路 13 3.3.2同步门逻辑控制电路 14 3.3.3静态显示电路 15 4软件设计 17 4.1 KEIL51软件简介 17 4.2软件的模块化设计及各部说明 17 4.2.1定时中断模块 17 4.2.3测量模块 18 4.2.4显示模块 18 4.3软件流程图 18 5 系统仿真与调试 19 5.1 Proteus软件简介 19 5.2 Proteus的电路
显示全部
相似文档