- 18
- 0
- 约 31页
- 2016-12-10 发布于贵州
- 举报
《单片机课程设计报告-简易书数字频率计》
课程设计报告
设计课题: 简易书数字频率计
专业班级:
学生姓名:
学 号:
指导教师:
设计时间:2011年6月20号中文摘要频率测量是电子学测量中最为基本的测量之一。频率计主要是由信号输入和放大电路、单片机模块、分频模块及显示电路模块组成。AT89C52单片机是频率计的控制核心,来完成它待测信号的计数,译码,显示以及对分频比的控制。利用它内部的定时/计数器完成待测信号频率的测量。
在整个设计过程中,所制作的频率计采用外部分频,实现1Hz~1MHz的频率测量,而且可以实现量程自动切换流程。以AT89C52单片机为核心,通过单片机内部定时/计数器的门控时间,方便对频率计的测量。其待测频率值使用四位共阴极数码管显示,并可以自动切换量程,单位分别由3个发光二极管指示。本次采用单片机技术设计一种数字显示的频率计,具有测量准确度高,响应速度快,体积小等优点。
关键词:频率计;单片机;计数器;量程自动切换
The design of simple Frequency Measurement
ABSTRACT
Frequency measurement is the most basic measurement in Electronic field. A simple frequency meter mainly by the signal input and amplifying circuit, microcontroller module, sub-frequency circuit module and display module. AT89S52 MCU is the control core frequency of dollars to complete its count of the signal under test, decoding, display and control of the frequency division ratio. Using its internal timer or counter to complete the signal of the under test cycle / frequency of measurement.
Throughout the design process, periodic measurement of the frequency meter application and the corresponding mathematical treatment to achieve 1Hz ~ 1MHz frequency measurements, and can automatically switch the flow to achieve scale. To the core of AT89S52 microcontroller, with the MCU internal timer / counter gate time, it can be easier for frequency measurement. The use of microcomputer technology to design a digital display of frequency meter, have a measurement of high accuracy, fast response, small size and so on.
KEY WORD: Frequency meter; single chip; counter; range automatically switch目录
第一章 前言 1
1.1频率计概述 1
1.2频率计发展与应用 1
1.3频率计设计内容 1
第二章 系统总体方案设计 2
2.1测频的原理 2
2.2总体思路 3
2.3具体模块 3
第三章 硬件电路具体设计 4
3.1 AT89C52主控制器模块 4
3.1.1 AT89C52的介绍 4
3.1.2 复位电路及时钟电路 5
3.1.3 引脚功能 6
3.1.4 单片机引脚分配 8
3.2放大整形模块 8
3.3 分频设计模块 9
3.3.1 分频电路分析 9
3.3.2 74LS161芯片介绍 10
3.3.3 74LS151芯片介绍 11
3.3.4 分频电路 12
3.4 显示模块 12
3.4.1 数码管介绍 13
第四章 系统的软件设计 13
4.1 软件模块设计 13
4.2 中断服务子程序 14
4.3 显示子程序 15
4.4 量程档自动转换子程序 16
4.5 应用软件简介 17
4.5.1 Keil简介 17
原创力文档

文档评论(0)