基于CPLD的频率计设计

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

山东理工大学

毕业设计(论文)

题目:基于CPLD的频率计设计

学院:电气与电子工程学院

专业:电子信息工程

学生姓名:

学号:

指导教师:

毕业设计(论文)时间:二О一三年 2月 20日~ 6 月8日共 16 周

I

摘要

频率检测是电子领域里最基本的测量,也是最重要的测量。由于频率信号抗干扰能力强、易于传输,可以得到相对较高的测量精度,因此频率测量方法的研究也受到越来越多的关注。基于传统测频原理的频率计的测量精度将随被测信号频率的下降而降低,本次设计中共提出了四种设计方案,通过论证最终决定用等精度的测量方法来完成本次频率计的设计。

在本次设计中选择AT89C51单片机和CPLD的结合来实现。其中单片机完成整个测量电路的测试控制、数据处理和显示输出;CPLD主要完成频率测量功能,频率的测量范围在1HZ—1MHZ之间,其中测量误差在1HZ;键盘信号由AT89C51单片机进行处理,它从CPLD读回计数数据并进行运算,向显示电路输出测量结果;显示器电路采用5段LED动态显示,由1个74HC138译码器和74HC573锁存器驱动5个数码管。

关键词: 频率计,EDA技术,CPLD,单片机,等精度测量

I

Abstract

Frequency detection is the most basic in the electronics field measurement, which is the most important measurement. Due to frequency signal transmission, strong anti-jamming capability, easy can get relatively high measurement precision, so frequency measurement methods of research have also been more and more attention. Based on the traditional principle of frequency meter frequency measurement accuracy will be along with the decline of the measured signal frequency is reduced, the design of the communist party of China puts forward four kinds of design scheme, through the argument finally decided to use equal precision measurement method to complete the design of frequency meter.

In this design choose the combination of the AT89C51 single-chip microcomputer and CPLD to implement. The single-chip microcomputer control, the entire measurement circuit test data processing and display output; CPLD main complete frequency measurement function, frequency of measurement range between 1 hz to 1 MHZ, which measurement error in 1 hz; Keyboard signals are processed using single-chip computer AT89C51, it read back from CPLD count data and calculation, the measurement results to display circuit output; 5 LED dynamic display, display circuit used by 1, 74 hc138 decoder and 74 hc573 latch drive five digital tube.

Key Words: frequency meter, EDA technologythe, CPLD and single chip microcomputer, such as precision measurement

II

目录

摘要 ................................................................. I Abstract ............................................................ II 第一章概述 .......................................... 错误!未定义书签。第二章系统设计方案与论证 . (3)

2.1 测量原理 (3)

2.1.1 直接测频法 (3)

2.1.2 测周期法 (4)

2.1.3 倍频法 (4)

2.1.4 等精度测频法 (4)

2.2 系统设计指标 (6)

2.3 系统总体设计框图 (6)

第三章硬件电路设计 (8)

3.1系统的组成 (8)

3.2 系统的基本工作方式 (9)

3.3 CPLD测频专用模块 (9)

3.3.1 CPLD的结构与功能介绍 (9)

3.3.2 CPLD测频专用模块逻辑设计 (10)

3.3.2.1测频/测周期的实现 (11)

3.3.2.2控制部件设计 (11)

3.3.2.3计数部件设计 (12)

3.3.2.4脉冲宽度测量和占空比测量模块设计 (12)

3.4 单片机主控模块硬件电路设计 (13)

3.4.1 AT89C51单片机 (13)

3.4.3七段LED数码管 (18)

3.4.4 74HC573锁存器 (19)

3.4.5 单片机与LED显示模块的设计 (19)

第四章单片机控制与运算程序的设计 (22)

4.1程序流程图及相关程序 (22)

结论 (28)

参考文献 (29)

致谢 (30)

III

相关文档
最新文档