编号:
桂林电子科技大学信息科技学院
毕业设计(论文)说明书
题 目:基于单片机的波形发生器的设计 系 别: 信息工程系 专 业: 通信工程 学生姓名: 李润杰 学 号: 0951100210 指导教师: 梁红玉
职 称: 讲师
题目类型:?理论研究 ?实验研究 ?工程设计 ?工程技术研究 ?软件开发 ?应用研究
2013年5月24日
摘 要
本论文主要介绍基于单片机的波形发生器,该系统是基于AT89S52单片机的低频信号发生器。主要采用AT89S52单片机作为控制核心,外围电路包括数字/模拟转换电路(DAC0832)、运放电路(TL082CP)、按键和液晶等。同时用液晶显示其对应的波的名称及频率。可产生方波、三角波、正弦波、等多种波形,波形的频率以可以通过编程,利用按键控制,可以根据需要,选择不同类型的波形输出,并且可以通过电位器调节输出波形峰峰值。
单片机控制信号输出,通过D/A转换器DAC0832将数字信号转换成模拟信号,滤波放大,最终由示波器显示出来,能产1Hz—3kHz的波形。通过按键来控制三种波形的类型选择、频率变化,并通过1602液晶屏显示其各自的类型以及数值,系统大致包括信号发生部分、数/模转换部分以及液晶显示部分三部分。
本系统具有线路简单、结构紧凑、性能优越等特点。文章给出了源代码,通过仿真测试,其性能指标达到了设计要求,可用于多种需要低频信号的场所,具有一定的实用性。
关键词:单片机;波形;信号发生器;DAC0832
Abstract
This paper describes the waveform generator consisting of, the system was using AT89S52 microcontroller digital low-frequency signal generator. Control using AT89S52 microcontroller as the core, peripheral circuits including digital \\ analogue conversion circuit (DAC0832), and discharge (TL082CP), the keypad and LCD. Both LCD displays the name of the corresponding wave and frequency. To produce square wave, triangle wave, sine wave, such as a variety of waveforms. Waveform frequency can also be controlled through programming and keys, and you can adjust the waveform peaks peaks. Can select different types of waveform output.
Single chip microcomputer control signal output through DAC0832 D\\A converter to convert the digital signal into an analog signal, filter amplifier, and ultimately by the oscilloscope display, 1Hz-3kHz waveform. To control three wave types by pressing select, change, and by 1602 LCD display their types and values. Systems generally include \\ mode conversion and the signal generator parts, and liquid crystal display parts in three parts.
The system has simple lines, compact, excellent performance characteristics. Article gives a source, through simulation tests, their performance meets the design requirements, places of low-frequency signals can be used for a variety of needs, has a certain relevance.
Key words: SCM; waveform;signal generator;DAC0832
目 录
引言 ........................................................... 1 1 设计课题概况 ................................................ 2
1.1 课题背景及重要意义 ......................................................................................................... 2 1.1.1课题的背景 ....................................................................................................................... 2 1.1.2课题的意义 ....................................................................................................................... 2 1.2 课题设计的目的 ................................................................................................................. 3 1.3 本论文所做的工作 ............................................................................................................. 3
2 设计的主要内容及性能要求 .................................... 4
2.1设计主要内容 ...................................................................................................................... 4 2.2 基本内容和性能要求 ......................................................................................................... 4 2.3 创新部分 ............................................................................................................................. 4
3 方案论证与比较 .............................................. 4
3.1 参考方案及分析 ................................................................................................................. 4 3.2 方案选择及理由 ................................................................................................................. 5
4 整体设计思路及原理 .......................................... 5
4.1 方案介绍 ............................................................................................................................. 5 4.1.1毕业设计题目要求 ........................................................................................................... 5 4.1.2方案介绍 ........................................................................................................................... 5 4.2 设计原理 ............................................................................................................................. 6 4.2.1系统设计原理 ................................................................................................................... 6 4.2.2系统设计框图 ................................................................................................................... 6 4.2.3硬件原理 ........................................................................................................................... 6 4.2.4软件原理 ........................................................................................................................... 6
5 硬件设计部分 ................................................ 7
5.1主要器件介绍 ...................................................................................................................... 7 5.1.1AT89S52单片机 ............................................................................................................... 7 5.1.2数模转换芯片DAC0832 ................................................................................................. 8 5.1.3液晶显示屏LCD1602 ...................................................................................................... 8 5.1.4双运算放大器TL082CP .................................................................................................. 9 5.2 单元电路设计 ................................................................................................................... 10 5.2.1供电电路的设计 ............................................................................................................. 10 5.2.2单片机最小系统电路的设计 ......................................................................................... 10 5.2.3主控电路设计 ................................................................................................................. 11 5.2.4数/模转换电路设计 ........................................................................................................ 12 5.2.5运算放大电路及波形输出电路 ..................................................................................... 13 5.2.6按键接口电路 ................................................................................................................. 13 5.2.7时钟电路 ......................................................................................................................... 14 5.2.8 LCD1602液晶显示屏电路 ............................................................................................ 14
6 软件设计部分 ............................................... 14
6.1 软件部分设计方案 ........................................................................................................... 15 6.2 单片机开发所使用的软件 ............................................................................................... 16 6.2.1Keil C51软件介绍 .......................................................................................................... 16 6.2.2uVision4集成开发环境介绍 .......................................................................................... 16 6.2.3编辑器和调试器 ............................................................................................................. 16 6.2.4仿真软件Proteus介绍 ................................................................................................... 16 6.3 系统程序流程图 ............................................................................................................... 17 6.4 软件部分主要模块设计 ................................................................................................... 18 6.4.1三种波形产生程序 ......................................................................................................... 18
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库基于单片机的函数信号发生器 论文 - 图文在线全文阅读。
相关推荐: