论文部分内容阅读
本文根据扫频系统的发展趋势,阐述了基于单片机的扫频系统的设计全过程。本文介绍的单片微机扫频系统,用于实现对方波的分频,同时能够显示所扫频率值。该系统采用了单片机AT89C51作为CPU,它是系统的控制核心。系统同时利用8254定时/计数器、74244缓冲器、4051数据选择器、CD4511译码器、LED数码管等来输出方波并显示所扫频率。系统开机后总中断打开,按下键盘S_1到S_7,系统开始通过由单片机来控制定时/计数器,对单片机写算法来控制对20MHz方波的分频,另外,再通过LED显示器输出相应的显示数字。系统的软件采用C语言编写。
Based on the development trend of the frequency sweep system, this article elaborated the whole process of the design of the frequency sweep system based on the single chip microcomputer. This article describes the single-chip microcomputer frequency sweep system, used to achieve the square wave frequency division, at the same time be able to show the swept frequency value. The system uses a microcontroller AT89C51 as a CPU, it is the core of the system control. The system also uses 8254 timer / counter, 74244 buffer, 4051 data selector, CD4511 decoder, LED digital tube to output the square wave and display the swept frequency. After the system is turned on, the total interrupt is turned on. Pressing the keyboard S_1 to S_7, the system begins to control the timer / counter by the singlechip and writes the algorithm to the microcontroller to control the frequency division of the 20MHz square wave. In addition, the LED display outputs the corresponding display number . System software written in C language.