1、 1 吉 首 大 学 JISHOU UNIVERSITY 本科生毕业设计本科生毕业设计 题目名称 数字频率计设计 学生姓名 王粲 学 院 信息科学与工程学院 专业年级 电子信息工程、2008 级 指导教师 孟凡斌 职称 高级实验师 写作时间 2011 年 11 月至 2012 年 5 月 吉首大学教务处制 2 数 字 频 率 计 设 计 王粲 (吉首大学信息科学与工程学院,湖南 吉首 416000) 摘摘 要要 数字频率计设计主要以单片机为核心,包括时基电路,逻辑控制电路,放大整形电 路,闸门电路,计数电路,锁存电路,译码显示电路等七大部分。测频的基本原理是采 用直接测频法,被测信号先进入信号
2、放大电路进行放大,再被送到波形整形电路整形, 把被测的正弦波或三角波整形为方波,利用单片机的计数器和定时的功能对被测信号进 行计数,编写好相应的程序可以使单片机自动调节测量的量程,并把测出的频率数据送 到显示电路上显示。系统简单可靠、操作简易,能基本满足一般情况下的需要。既保证 了系统的测频精度,又使系统具有较好的实时性。本频率计设计简洁,便于携带,扩展 能力强,适用范围广。 关键词:单片机;运算;频率计;显示电路 The Design of Digital Frequency Meter WangCan (College of Information Science and Engineer
3、ing,Jishou University,Jishou,Hunan 416000) Abstract Design of digital frequency meter microcontroller as the core, the logic control circuit, amplifier shaping circuit, the gate circuit, the counting circuit, latch circuit, decoding circuit most of the seven shows, Frequency measurement of the basic
4、 principle is the use of direct side frequency method, the measured signal the first amplifier to amplify the incoming signal, and then was sent to the waveform shaping circuit surgery, the measured sine wave or triangle wave shaping as a square wave. Counter and timer microchip features of the sign
5、al count. Write the corresponding program can automatically adjust the measurement range of SCM, and the frequency of the measured data to the display circuit displays.System is simple, reliable, easy to operate and can basically meet the general needs. Both to ensure the accuracy of the system freq
6、uency measurement, but also the system has good real-time. The frequency meter design is simple and easy to carry, expansion capability, wide application. Key words: microcontroller;operation,;frequency meter; Show circuit 3 目 录 第一章 绪论 1 1.1 课题背景 . 1 1.2 课题研究的目的和意义 . 1 1.3 设计任务与要求 . 1 第二章 数字频率计总体设计方案 2 2.1 方案比较 . 2 2.2 方案论证 . 3 2.3 方案选择 . 3 第三章 数字频率计的硬件系统设计 . 4 3.1 数字频率计的硬件系统框架 . 4 3.2 数字频率计的主机电路设计 . 4 3.3 数字频率计的信号输入电路设计 . 7 3.4 数字频率计显示电路的设计 . 7 3.4.1 LED 段显