AT89C51单片机的低频信号源设计_电子信息工程毕业论文
发布时间:
2014-09-29
来源:
人大经济论坛
目录
摘 要I
ABSTRACTII
第一章 绪论1
1.1 引言1
1.2 波形发生器的发展状况1
第二章 相关芯片介绍3
2.1 AT89C51单片机3
2.1.1 单片机引脚信息3
2.1.2 AT89C51的引脚及其功能4
2.1.3 时钟控制寄存器CKCON7
2.1.4可编程时钟输出7
2.2 DAC0832介绍8
2.2.1 DAC0832引脚及其功能8
2.2.2 DAC0832的工作方式9
2.3 74LS164芯片介绍10
2.4 LM358双运算放大器介绍11
第三章 硬件电路设计和软件设计12
3.1 硬件电路的实现原理与构思12
3.1.1 AT89C51单片机控制两片DAC0832的原理图12
3.1.2 键盘显示电路的构思12
3.2 硬件电路的设计13
3.2.1 电路总体方框图13
3.3 软件设计的构思18
3.3.1 幅度控制18
3.3.2 频率控制18
3.3.3 主程序流程图19
3.4 各部分软件设计20
第四章 毕业设计总结25
4.1 难点及解决25
4.1.1 系统软件的调试25
4.1.2 调试过程中遇到的问题25
4.2 设计总结26
致谢28
参考文献29
附录130
摘 要
各种各样的信号是通信领域的重要组成部分,其中正弦波、三角波和方波等是较为常见的信号。在科学研究及教学实验中常常需要这几种信号的发生装置。为了实验、研究方便,研制一种灵活适用、功能齐全、使用方便的信号源是十分必要的。
本次设计主要利用AT89C51单片机和数模转换器件DAC0832产生所需不同信号的低频信号源,其信号幅度和频率都是可以按要求控制。在本文中主要介绍了利用单片机采用程序设计的方法来产生三角波、正弦波、矩形波三种波形的输出,通过键盘来控制三种波形的类型选择、幅值变化、频率变化,并由LED数码管显示其各自的类型以及数值,再通过D/A转换器将数字信号转换成模拟信号,滤波放大,另附加时钟功能。系统大致包括信号发生部分、数/模转换部分以及LED显示三部分,其中尤其对数模转换部分以及波形产生和变化进行详细论述。
关键字:单片机、波形发生器、数模转换器
ABSTRACT
Various signals are an important part of correspondent area. In this area, sine wave, triangle wave and square wave are common signals. In science research and teaching experiment, we often need the occurrence equipment of these signals. In order to make the experiment and research easier, to develop a suitable, full functional and easily used signals source is essential.
This design mainly use the AT89C51 and DAC0832 to produce the low frequency sources of different signals. Its signal range and frequency can be controlled by requirement. In this paper, we briefly introduces the use of central processor to generate three kinds of waves, they are triangle wave, and control wave form choosing, frequency, range, and displays them through liquid crystal display of LED. Moreover it adds clock procedure, and displays it. Besides, it has clock function. In general, this design includes three modules. They are D/A conversion module, wave generate module and liquid crystal display of LED module. In this design, the wave generator into wave form module and D/A conversion module are discussed in detail.
Keyword: MCU, waveform generator, DAC0832