1、 I 摘摘 要要 电子计数器是电子测量领域中最常见的测量仪器之一,它可以测量方波和正弦波的 频率、周期和脉冲宽度等时间参数。 本设计主要以AT89S52作为控制单元, 采用了直接测量法完成高精度频率计的设计, 在软件编程中采用的是 C 语言。本论文由五部分组成:第一部分是绪论;第二部分是电 子计数器的原理介绍;第三部分是单元电路的设计;第四部分是程序设计;第五部分是 结论。 系统以单片机 AT89S52 为核心的控制系统,不但缩短了开发研制周期,并使本系统 具有结构紧凑、体积小、可靠性高、测频范围宽、精度高等特点。 关键词关键词:频率计;89S52 单片机;C 语言 II Abstract E
2、lectronic counter is the most common measure in the field of electronic measuring, it can measure many time parameters: frequency of square wave and sine wave, the time period, pulse width and so on. The AT89S52 is the mainly control unit of the design, complete the high-precision frequency meter wi
3、th direct measurement, the C programming language is used during Software programming. This paper consists of five parts, the first part is introduction, the second part introduces the principles of the electronic counter, and the third part is the design of the circuit unit, the fourth part is the
4、program design, the fifth part is the conclusion. AT89S52 microcontroller is the core of the control system, shorten the deceloped cycle, and so that the system has a compact structure, small size, high reliability and wide range of frequency measurement, high precision. Key Words: Cymometer; The single chip microcomputer 89S52; C Programming Language III 目目 录录 摘 要 . I ABSTRACT II 1. 绪论 . 1 1.1 电子计数器概述 . 1 1.2 电子计数器背景及发展趋势 . 2 1.3 课题研究的意义与作用 . 3 1.4 电子计数器的设计要求及技术指标 . 4 2. 电子计数器的工作原理 . 5 2.1 电