文档详情

基于单片机的数字频率计设计谢业展第稿资料.doc

发布:2016-04-05约1.6万字共36页下载文档
文本预览下载声明
编号:059050241020 本 科 毕 业 论 文 题 目: 基于单片机的数字频率计设计 学 院: 物理与电子信息学院 专 业: 电子信息科学与技术 年  级: 2005电子1班    姓 名: 谢 业 展 指导教师: 刘 宝 成 完成日期: 2009年5月25日 目 录 中文摘要 1 英语摘要 2 引 言 3 一 方案论证 4 1.1数字频率计设计的几种方案 4 1.2几种方案的优劣讨论 5 1.3本次设计采用的方案 5 二 系统硬件设计 5 2.1数字频率计工作原理 5 2.2电路原理图 6 2.3电路PCB板 14 三 系统软件设计 15 3.1测频软件实现原理 15 3.2软软件流程图 16 3.3 程序 16 四 系统的仿真和调试 20 4.1硬件电路的仿真 20 4.2误差分析 23 结束语 23 参考文献 24 致 谢 25 个人简介 26 附 录 27 摘 要 随着电子信息产业的不断发展,信号频率的测量在科技研究和实际应用中的作用日益重要。传统的频率计通常是用很多的逻辑电路和时序电路来实现的,这种电路一般运行缓慢,而且测量频率的范围比较小。考虑到上述问题,本论文设计一个基于单片机技术的数字频率计。首先,我们把待测信号经过放大整形;然后把信号送入单片机的定时计数器里进行计数,获得频率值;最后把测得的频率数值送入显示电路里进行显示。本文从频率计的原理出发,介绍了基于单片机的数字频率计的设计方案,选择了实现系统得各种电路元器件,并对硬件电路进行了仿真。 关键字:单片机,频率计,测量,显示 ABSTRACT With the unceasing development of electronic information industry, the measurement of the signal frequency is playing a significant role in theory study and pratical application. The conventional frequency counter usually consists of a large number of hardware-based electric circuits, such as combined and time-serial electric circuits. It is bulky and slow. Considering the shortcomings above, this paper develops a kind of single chip-based frequency counter using micro-computer techniques. Firstly, the rectangular pulse, which the measured signal is amplified and reshaped, is used as control throttle valve. Then, the frequency counter counts the number of the periods using the internal timer/counter of signal is chip so as to gain the frequency value of measured signal. Finally, the frequency value of measured signal is displayed through static display circuits. Since the internal oscillation frequency of signalchip is very high, the measured error in one period is very small. Key Words: Micor- computer, Frequency, Measure,Display 引 言 随着电子信息产业的发展,信号作为其最基础的元素,其频率测量在科技研究和实际应用中的作用日益重要。传统的频率计通采用组合电路和时序电路等大量的硬件电路构成,产品不但体积较大,运行速度慢,。。。 一 方案论证 1.1数字频率计设计的几种方案 测量频率的方法有很多种,主要分为模拟法和数字法两大类,因为本次设计的要求和环境,现在主要讨论数字法中的电
显示全部
相似文档