1、 摘摘 要要 在电子领域内,频率是一种最基本的参数,并与其他许多电参量的测量方案和测量结 果都有着十分密切的关系。由于频率信号抗干扰能力强、易于传输,可以获得较高的测 量精度。因此,频率的测量就显得尤为重要,测频方法的研究越来越受到重视。 频率计作为测量仪器的一种,常称为电子计数器,它的基本功能是测量信号的频率 和周期频率计的应用范围很广,它不仅应用于一般的简单仪器测量,而且还广泛应用于教 学、科研、高精度仪器测量、工业控制等其它领域。随着微电子技术和计算机技术的迅 速发展,特别是单片机的出现和发展,使传统的电子侧量仪器在原理、功能、精度及自 动化水平等方面都发生了巨大的变化,形成一种完全突破
2、传统概念的新一代侧量仪器。 频率计广泛采用了高速集成电路和大规模集成电路,使仪器在小型化、耗电、可靠性等 方面都发生了重大的变化。目前,市场上有各种多功能、高精度、高频率的数字频率计, 但价格不菲。 为适应实际工作的需要,本次设计给出了一种较小规模和单片机(AT89S52)相结合的 频率计的设计方案,不但切实可行,而且体积小、保密性强、设计简单、成本低、精度高、 可测频带宽,大大降低了设计成本和实现复杂度。频率计的硬件电路是用 Protel 绘图软 件绘制而成, 软件部分的单片机控制程序, 是以 KeilC 做为开发工具用 C 语言编写而成, 而频率计的实现则是选用 Ptotues 仿真软件来
3、进行模拟和测试。 关键关键词词:单片机;AT89S52;频率计;C 语言 ABSTRACT In the electronic field, frequency is a kind of most basic parameter, and all there are close relations in the measurement schemes of many other electric parameters and result of measuring. Because the signal anti-interference ability of frequency is str
4、ong, easy to transmit, can obtain higher measurement precision. So, the measurement of frequency seems particularly important, the research of the method is being paid attention to. The Frequency meter, as one kind of the measuring instrument, often called the electronic counter, its basic function is that frequency and application of cycle Frequency meter of measuring the signal are in a very large range, it not only applies to general simple instrument measurement but also apply to other f