数字频率计设计摘要:本文提出设计数字频率计的多种方案,重点介绍以单片机 AT89C52 为控制核心,实现频率测量的数字频率计设计。测频的基本原理是采纳在高频段直接测频法,在低频段测周期法的设计思路;硬件部分由放大电路、波形变换和整形电路、闸门时基控制电路、分频电路、单片机和数据显示电路组成;软件部分由信号频率测量模块、周期测量模块、定时器中断服务模块、数据显示模块等功能模块实现。应用单片机的控制功能和数学运算能力,实现计数功能和频率、周期的换算。设计的频率计测量围能够达到 2HZ~50MHZ,满足所要求的频率围,测量精度较高,平均相对误差仅为 0.3401%。另外,文章对频率测量过程中数据误差的来源进行了探讨,提出了减小误差的措施。最后,文章还对频率计的设计方案提出了可扩展的地方。关键词:数字频率计;单片机 AT89C52;频率测量;周期测量;误差Thedesign of digital frequency meterLU JiabinCollege of Engineering and Technology, SouthwestUniversity, Chongqing 400716, ChinaAbstract : This article proposes many kinds of plans design digital frequency meter, highlighting the design taking monolithic integrated circuit AT89C52 as the control core, the realization frequency measurement of digital frequency meter.Selected design ideas which directly measuring frequency lawin the high-band and testing cycle lawin the low-band; The hardware partially is composed by enlarged circuit、the profile transformation and the reshapingcircuit、the gate at the base control circuits、sub-frequency circuits、the microcontroller and the data display electric circuit; The software design is achieved by many functional modules, such as the signal frequency measurement module 、 the signal cycle survey module、timer interruption of service module、the data display module and so on. Achieving counting function and conversion between cycle and frequency by usingcontrol functions and mathematics operation ability of microcontroller. Like these the survey scope can achieve 2...