JIMI 发表于 20:51

基于AT89C2051单片机 的专用频率计的设计

论文编号:DZXX019  论文字数:13222,页数:35
摘 要
 在电子技术领域内,频率是一个最基本的参数,频率的检测与许多电气参数的测量都有着十分密切的关系。因此,频率的测量就显得更为重要。                                                                                     
 本论文主要介绍频率计的硬件结构和软件设计。硬件部分通过采用AT89C2051单片机构成核心控制电路,在设计中,使用AT89C2051的P1.0口作为待测频率信号的脉冲输入计数部件,定时器T1用来对脉冲信号的周期进行计数,测量结果以十进制数在4位LED数码管上显示。软件设计采用模块编程的方法来实现,主要完成频率测量及结果显示。设计过程中使用到的工具有Protel和Keil uVision2。                                                                   
 许多出口的电器设备的性能必须在60Hz交流电源下测试,为了监视60Hz交流电源的频率,就必须要用频率计。针对这个问题,本课题设计了一台专用频率计,频率测量范围在20.00Hz~99.99Hz。                                                             
关键词:频率计;单片机;AT89C2051                                                       
ABSTRACT
 In the field of electronic technology, the frequency is basic parameter, Frequency of Detection and many of the measurement of electrical parameters have a very close relationship. Therefore, the measurement of frequency is even more important.                                                          This paper introduces the hardware and software design of frequency meter. The part of hardware constitute the core control circuits adopted AT89C2051. This design uses P1.0 of AT89C2051 as the pulse input counting parts of analytic signal frequency. The timer of T1 is used to count the signal pulse cycle. The results of measurement display in the 4 LED digital tubes with a decimal number. The design of software is achieved with the method of Programming Module, and to achieve the measurement of frequency and display the results. Protel and Keil uVision2 are used in the design process.                                                                      
 The performance of many electrical types of equipment which exported should be tested under the 60 Hz AC power. We must use frequency meter to monitor 60 Hz frequency AC power. To this issue, the task designs an exclusive frequency meter, the range of frequency measurement in 20.00 Hz ~ 99.99Hz.                                                                                              
Keywords: frequency meter; single chip processor ;AT89C2051     
目录                                     
摘 要…………………………………………………………………………………..… I
ABSTRACT…………………………………………………………………………….. II
第1章 绪论……………………………………………………………………………. 1
1.1课题的背景及意义………………………………………………………………….1
1.1.1 课题的背景…………………………………………………………............ …….1
1.1.2 课题的意义……………………………………………………………………… .2
1.2课题设计的目的及目标…………………………………...………………………..2
1.2.1 课题的目的……………………………………………………………………….2
1.2.2 课题的目标…………………………………………………………..………..…. 3
第2章 设计方案论证………………………………………………………………….4
2.1 频率计设计方案选择………………………………………………………………4
2.1.1 基于VHDL的设计方案………………………………………………………… 4
2.1.2 基于CPLD的设计方案………………………………………….……………… 6
2.1.3 基于AT89C2051的设计方案……………………………………………………7
2.2 频率测量方法的选择………………………………………………………………8
2.3 软件主体设计方案…………………………………………………………………9
第3章 系统硬件设计………………………………………………………………... 10
3.1 芯片及工具介绍…………………………………………………………………..10
3.1.1  AT89C2051的主要特性……………………………………………………… 10
3.1.2  AT89C2051的引脚功能………………………………………….…………… 11
3.1.3  AT89C2051的振荡特性……………………………………………………… 12
3.1.4  AT89C2051的空闲和掉电模式………………………………………………. 12
3.1.5  AT89C2051的编程规则………………………………………………………. 13
3.1.6  Protel简介……………………………………………………………………... 13
3.2电路设计…………………………………………………….………………..........14
3.2.1  整体电路图………………………………………………………….………… 14
3.2.2  时钟电路………………………………………………………………………. 15
3.2.3  显示模块…………………………………………………………….………… 16
3.2.4  5V直流电压供电电路………………………………………………………... 17
3.2.5  信号接口电路………………………………………………………………….18
第4章 系统软件设计 …………………………………………………………......….20
4.1  Keil uVision2软件介绍………………………….….………………………..….20
4.2  脉冲信号计数模块程序设计……………………………………………………22
4.3  定时模块程序设计………………………………………………………………22
4.4  频率显示模块程序设计…………………………………………………………22
第5章 毕业设计总结………………………………………………………………... 24
致谢………………………………………………………………………………...….. 25
参考文献………………………………………………………………………………. 26
附录: 程序………………………………………………………………………….. 27
页: [1]
查看完整版本: 基于AT89C2051单片机 的专用频率计的设计