基于MCU和FPGA的低频数字相位测量仪设计 毕业设计论文.doc

基于MCU和FPGA的低频数字相位测量仪设计 毕业设计论文.doc

  1. 1、本文档共42页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于MCU和FPGA的低频数字相位测量仪设计 毕业设计论文

摘 要 本设计采用单片机与FPGA相结合的电路为方案,很好地发挥了FPGA运算速度快、资源丰富、编程为一便的特点,并利用了单片机较强的运算、控制功能,使得整个系统模块化、硬件电路简单、使用操方便。文章主要介绍方案的论证和系统硬件的设计,给出了详细的系统硬件电路图。LM339对正弦信号进行整形和放大,FPGA对此两路信号进行采集,测量和计算。FPGA内部的单片机完成对FPGA的控制后,使FPGA按照单片机的要求通过19根I/0线分时发送被测信号的周期数据、相位差对应的时间差数据。单片机通过分析和计算,把得出结果送串行口RXD和TXD显示。实践表明,该相位测量仪具有较好的性能。可以对20Hz~20kHz频率范围的信号进行频率、相位等参数的精确测量,测相绝对误差不大于2°;采用数码管显示被测信号的频率、相位差,硬件结构简单。与传统的电路系统相比,其有处理速度快、稳定性高、性价比高的优点。 关键词:单片机; 集成电路; 现场可编程门阵列 ABSTRACT The combination of MCU and FPGA is adopted in the design. The system exerts FPGA’s characteristics of high operating speed ,rich resource and convenient programming. The powerful operation and control functions of MCU are adopted, thus the system is modularized, the hardware is simple and the operation is easy. LM339 shaping of sinusoidal signals and amplification, FPGA has two signal acquisition, measurement and calculation. FPGA choice within a data line selector issued in accordance with handshake signal MCU, select the output frequency or phase binary data. Complete single-chip control of the FPGA after the FPGA to enable single-chip microcomputer in accordance with the requirements of the adoption of 19 I / 0 line time to send measured signal data of the cycle, the phase difference data corresponding to the time difference. Through the analysis and calculation of single-chip, and the results sent to the serial port RXD and TXD show.The demonstration of the design strategy, design of hardware are mainly introduced in the paper. The detailed hardware circuits are given. Keywords:MCU; IC; FPGA 目 录 绪论 1 1. 低频数字相位测量仪原理 3 2. 总体方案设计 5 2.1 总体方案选择及参数计算 5 2.2 输入电路的设计 6 2.3 FPGA电路的设计 7 2.4 MCU电路的设计 8 3. 单元电路设计及器件选择 9 3.1 AT89C51单片机 9 3.1.1 89C51的主要特性 9 3.1.2 AT89C51管脚说明 9 3.1.3 以单片机为核心的电路工作过程 11 3.2 FPGA现场可编程门阵列 14 3.2.1 FPGA工作原理 14 3.2.2 FPGA配置模式 14 3.2.3 FPGA工作过程 15 3.3 显示模块 17 3.3.1 八段共阴单字LED数码显示器 17 3.3.2 74LS164八位移位寄存器 18 3.3.3 单片机串行输出的工作过程 20 3.4 整形电路 21 3.4.1 LM339 21 3.4.2 斯密特触发器 22 3.4.3 整形电路工作原理 23 3.5 整机电路 25 4. PCB设计 29 结论 31

文档评论(0)

ligennv1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档