高精度频率计设计要点.doc

  1. 1、本文档共16页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于单片机的数字频率计设计 摘要:本文设计了一种以单片机STC89C52为核心的数字频率计,介绍了单片机、放大整形模块、分频模块和LCD1602显示模块等各个模块的组成和工作原理。测量时,将被测输入信号送给单片机计数,通过程序控制计数,结果送LCD1602显示频率值。本次设计是以单片机STC89C52为控制核心,单片机系统通过定时器、计数器对正弦波,方波三角波信号进行脉冲计数,将得到的频率数据在液晶显示屏上进行显示,最后显示测量的频率值。本次设计所制作的频率计外围电路简单,大部分功能都通过软件编程实现,利用单片机控制继电器实现频率计的自动换挡功能;用单片机T0控制端口实现频率的测量功能;通过分频电路实现对频率档位的控制。本次设计的频率计具有测量准确度高,响应速度快,体积小等优点。实现了1Hz~1MHz范围的频率测量,而且可以实现量程自动切换。 关键词:频率计;单片机;计数器;测量 The Design of Digital Frequency Meter Based on Single-Chip Computer This paper introduces a microcontroller STC89C52 as the core design of digital frequency meter. Introduced of the composition and working principle of microcontroller, amplifying and shaping module, frequency division module and LCD1602 display module and other modules. The design is based on STC89C52 microcontroller for the control of the core, using its internal timer and counter to complete the test signal frequency measurement. Application control features of the microcontroller and the operational ability of the counting function and frequency conversion, and finally use displays the measured frequency value. The design frequency meter produced peripheral circuits is simple, most of the functions are controlled via software programming, application control features of the microcontroller to achieve the frequency of automatic shift function; frequency measurement functions the microcontroller interrupt control port; control of the frequency of stalls by the divider circuit. The design of the frequency meter is high accuracy, fast response, small size, etc. Achieve100Hz to 4MHz frequency measurements, and can automatically switch the flow to achieve scale. Key words:Frequency meter; microcontroller; counter; measurement一、系统总体设计及方案分析 3 1、数字频率计的设计参数和功能指标 3 2、系统设计原理分析 3 3、系统总方案论证与设计 4 三、系统软件流程设计 8 1、系统主程序流程框图 8 2、系统部分程序如下: 9 四、系统调试结果 11 1、系统的软硬件调试结果 11 2、系统误差分析与改进方法 12 五、实习总结 12 参考文献 13 附录 14 1、 系统硬件总电路图 15 2、 元件清单 16 一、系统总体设计及方案分析 1、数字频率计的设计参数和功能指标 设计一个数字频率计,具体要求如下: (1)测量范围信号:方波、正弦波;幅度:1V-5V,直流偏置0V-1V;频率:

文档评论(0)

文档资料 + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档