基于单片机的函数信号发生器论文答辩PPT 长江大学
- 格式:ppt
- 大小:828.00 KB
- 文档页数:17
编号:____________审定成绩:____________毕业设计(论文)设计(论文)题目:___基于单片机的信号发生器设计____单位(系别):______________________学生姓名:______________________专业:______________________班级:______________________学号:______________________指导教师:______________________答辩组负责人:______________________摘要随着现代电子技术的飞速发展,电子测量技术不断完善,信号发生器作为电子测量技术的关键设备也不断更新,信号发生器的频率精度和频率稳定性已成为关注的焦点,国内信号发生器频率精度不高,频率稳定性差,成为约束信号发生器技术发展的瓶颈。
本文从提高信号发生器的频率精度和稳定性的角度出发,利用单片机和频率控制实现信号幅度数字存储和转换的方案和实现。
在本文中,对信号发生器硬件系统的设计过程进行了研究,并进行了电路设计,充分发挥了高精度,高稳定性的特点。
然后,软件系统的设计从整体软件流程图计划。
整个软件系统分为程序初始化模块,键盘显示模块,频率控制字计算模块,频率控制字传输模块等,频率输出控制更准确。
在本文中,分析了数字信号发生器组装和调试的硬件系统,组装和调试过程,故障现象的组装和调试过程进行了分析和解决;在完成硬件系统的基础上,然后软件逐步调试,获得准确的测试数据,通过最终的测试数据验证数字信号发生器具有高精度和高稳定性的优异性能。
最后,本文总结和展望了整个设计和验证过程,提出了进一步提高信号发生器精度和稳定性的思想。
它还提出了如何提高输出频率范围的想法。
如何进一步提高数字信号发生器的性能和未来的研究工作。
【关键词】信号发生器髙性能高精度高稳定度单片机ABSTRACTWith the rapid development of modern electronic technology, electronic measurement technology continues to improve, the signal generator as the key equipment of electronic measurement technology is also constantly updated, the signal generator frequency accuracy and frequency stability has become the focus of attention, the domestic signal generator frequency Accuracy is not high, the frequency stability is poor, become a constraint signal generator technology development bottleneck. In this paper, the frequency and stability of the signal generator to improve the accuracy and stability of the use of single-chip and frequency control to achieve signal amplitude digital storage and conversion program and implementation.In this paper, the signal generator hardware system design process was studied, and the circuit design, give full play to the high precision, high stability characteristics. Then, the software system is designed from the overall software flow chart. The whole software system is divided into program initialization module, keyboard display module, frequency control word calculation module, frequency control word transmission module, focusing on frequency control word calculation method improvement, frequency output control more accurate.In this paper, the hardware system, the assembly and debugging process of the digital signal generator assembly and debugging are analyzed and the process of assembling and debugging the fault phenomena is analyzed and solved. On the basis of the hardware system, the software is gradually debugged and obtained accurately Of the test data, through the final test data to verify that the digital signal generator with high accuracy and high stability of the excellent performance.Finally, this paper summarizes and prospects the whole design and verification process, and puts forward the idea of further improving the accuracy and stability of the signal generator. It also raises the idea of how to increase the output frequencyrange. How to further improve the performance of digital signal generator and future research work.【Keywords】signal generator high performance high precision high stability single chip目录摘要 (I)ABSTRACT (II)引言 (1)第一章绪论 (2)第一节研究背景 (2)第二节研究现状 (2)第三节研究目的及意义 (4)第二章方案设计 (6)第一节方案比较 (6)一、方案一 (6)二、方案二 (6)三、方案三 (7)四、选出方案 (7)第二节芯片选择 (7)一、方案一 (7)二、方案二 (8)三、选出方案 (9)第三章电路设计 (10)第一节基本原理 (10)第二节单片机资源分配 (10)一、单片机基本原理介绍 (10)二、AT89S51工作原理 (14)第三节资源分配 (14)第四节电路原理 (15)一、DAC0832芯片原理 (15)二、DAC0832工作原理 (16)第五节 MC1403 (18)第六节 LM324 电压放大器 (19)第四章软件设计 (20)第一节主程序框架 (20)第二节子程序框架 (21)一、锯齿波形 (21)二、三角波形 (22)三、正弦波形 (22)四、方波波形 (23)五、延时程序 (24)第五章测试结果展示 (25)第一节仿真波形 (25)一、锯齿波 (26)二、三角波 (26)三、正弦波 (27)四、方波 (27)第二节产生各波形的数据 (28)第三节波形结果分析 (28)总结 (29)参考文献 (30)致谢 (31)引言如今是科技和仪器仪表高度智能化的信息社会快速发展的时代,电子技术进步,带来根本性的变化。
毕业论文设计题目名称: 基于单片机的多功能函数信号发生器设计题目类型: 毕业设计院 (系): 电子信息学院专业班级:学生姓名:指导教师:辅导教师:时间:2013年3月至2013年6月目录长江大学毕业设计论文任务书I毕业设计(论文)开题报告III长江大学毕业论文设计指导教师评审意见X长江大学毕业论文设计评阅教师评语XI长江大学毕业论文设计答辩记录及成绩评定XII中文摘要XIII英文摘要XIV1 绪论11.1单片机概述 11.2函数发生器的分类 11.3 研究内容 22 方案的设计与选择3 2.1 方案的比较 32.2 设计原理 32.3 设计思想 42.4 设计功能 43 主要器件介绍 63.1 AT89C51简介 63.2 8255简介 83.3 DAC0832简介83.4 数码管显示原理9 4硬件设计114.1 硬件原理框图 114.2 主控电路114.3 数/模转换电路12 4.4 按键接口电路 134.5 时钟电路144.6 显示电路155 软件设计165.1 设计构思165.2 程序流程图165.3 波形图226 结论25参考文献27附录1 电路原理图28附录2 源程序 29附录3 器件清单40长江大学毕业设计论文任务书学院(系)电子信息学院专业电气工程及其自动化班级学生姓名指导教师/职称1.毕业设计论文题目:基于单片机的多功能函数信号发生器设计2.毕业设计论文起止时间:2013年3月11日~2013年6月10日3.毕业设计论文所需资料及原始数据(指导教师选定部分)1 王世虎,刘明杰,李晓峰.基于C8051F单片机信号发生器设计与应用[J].中国科技信息,20092 徐爱钧.智能化测量控制仪表原理与设计[M].电子工业出版社,20053 张洪涛,万红,杨述斌,数字信号处理[M].华中科技大学出版社,20064 徐爱钧.8051单片机实践教程[M].电子工业出版社,20055 CNKI中国知网上关于利用单片机设计信号发生器的期刊论文,硕士论文等4.毕业设计论文应完成的主要内容 (1)熟悉单片机开发方法,熟练掌握汇编语言; (3)探讨单片机产生方波,正弦波,三角波的方法;(3)研究产生任意波形的方法;(4)设计单片机和DA转换器的连接方法;(5)设计单片机驱动DA转换器的汇编语言程序,并调试5.毕业设计论文的目标及具体要求要求熟练掌握单片机的开发流程。
毕业设计课题名称基于单片机的方波信号发生器姓名学号所在系电子系专业年级指导教师_ _职称_副教授__二O一O 年月日目录摘要 .................................................................................................................................... I II ABSTRACT . (IV)8255芯片简介 (4)74LS373简介 (5)4.2.3 系统工作原理 (5)第5章.控制器的软件设计 (5)计数器初值计算 (5)计算公式 (6)1秒的方法 (6)软件延时 (7)时间及信号灯的显示 (7)8051并行口的扩展 (7)8255与8051的连接: (7)一、概述 (8)、设计内容 (8)、设计的基本要求 (8)二、方波发生器设计方案 (9)、方案介绍 (9).2、设计的基本要求 (9)、方波发生器的原理与功能 (10)三、系统的硬件设计 (11)、单片机最小系统 (11)、小键盘接口电路 (12).3、LED显示电路 (12)、LED显示电路 (13)四、系统的软件设计 (13)、系统初始化子程序 (14)、显示子程序 (14)程序源代码 (15)结束语 (21)参考文献 (22)致谢 (22)摘要近年来随着科技的飞速发展,单片机的应用正在不断地走向深入。
在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及针对具体应用对象特点的软件结合,加以完善。
本文首先对智能交通灯的研究意义和智能交通灯的研究现状进行了分析,指出了现状交通灯存在的缺点,并提出了改进方法。
智能交通灯控制系统通常要实现自动控制。
本文还对AT89S51单片机的结构特点和重要引脚功能进行了介绍,同时对智能交通灯控制系统的设计进行了详细的分析。
我汉科牧女曇屮南今機本科毕业设计(论文)题目:基于单片机的函数发生器的设计和实现学院:信息工程学院专业: _______________________ 学 #: ________________________ 学生姓名:___________________ 指导教师:___________________-O一一年五月八日基于单片机的函数发生器的设计和实现XXX摘要函数发生器是一种用于产生标准信号的电子仪器,它广泛用于工业生产、科研和国防等各个领域中,所以论文选题具有一定的实用意义。
本文在介绍了函数发生器的基本概念及原理的基础上,核心采用AT89C52单片机,完成了简易的DDS函数发生器的硬件设计和软件编程,并通过调试实现了其功能和主要技术指标。
在系统的硬件部分,设计了由单片机最小系统为核心、通过接口设计,扩展了DAC转换模块、按键和LED显示模块。
其中,采用两片DAC0832实现了全数字化的频率合成器(简称DDS)。
系统的软件设计是在ke订uVision4的集成开发环境下,采用C语言完成了应用系统软件编程, 包括主程序、产生四种常用信号的程序、按键功能和显示子程序等电脑模块;模块化的编程使得程序具有可读性和易于维护的特点。
最后,作者用protel 99SE设计并制作了函数发生器的印制电路板PCB;并完成了样机的制作和调试。
在实验室里,进行了测试,结果表明系统达到设计要求。
关键词:信号发生器,AT89C52,keilc51MCU-based Function Signal Generator DesignXiongChengshuangABSTRACTThe function generator is one kind uses in producing the standard signal electronic instrumentation, it widely uses in the industrial production, the scientific research and the national defense and so on each domain, therefore the paper selected topic has certain practical significance.This article lay between the Shao function generator the basic concept and in the principle foundation, used at89C52 monolithic integrated circuit is the core, has completed the simple DDS function generator hardware design and the software programming, and has realized its function and the major technique target through the debugging.In system's hardware part, has designed by the monolithic integrated circuit smallest system for the core, through the connection design, expanded the DAC transformation module, the pressed key and the LED display module. And, used two piece of DAC0832 to realize Entire digitized frequency synthesizer (i.e. DDS). System's software design is under the keil uVision4 integrated development environment, used the C language to complete the application system software programming, including the master routine, had four kind of commonly used computer modules and so on signal procedures, pressed key function and demonstration subroutine; The modular programming enables the procedure to have the characteristic which the readability and easy to maintain.Finally, the author designed and has manufactured function generator print circuit wafer PCB with protel 99SE; And has completed prototyped manufacture and the debugging. In the laboratory, has carried on the test, finally indicated that the system achieves the design requirements.Key words:Signal generating device, 89C52,keilc51目录前言 (1)第1章函数发生器系统设计 (2)§1.1设计方案的比较 (2)§ 1. 2系统模块设计 (2)§ 1.2. 1控制模块 (3)§1.2.2按键及其显示模块: (3)§1.2.3波形产生模块 (3)§1.2.4 D/A 转换 (3)§1.3系统总体框图 (3)§ 1.4理论分析 (4)§ 1. 4. 1电路的理论计算 (4)§ 1.4.2波形产生相关理论 (6)第2章系统硬件电路的设计 (8)§2. 1单片机的接口电路 (8)§ 2. 2幅度控制模块 (10)§ 2. 2. 1单片机与DAC0832的接口 (10)§ 2. 2. 2 DAC0832与运放的连接 (10)第3章系统软件设计 (13)§ 3. 1系统软件设计方案 (13)§ 3. 2系统软件流程图 (14)§3.3信号产生程序 (15)§ 3. 3. 1正弦波产生 (15)§3. 3. 2三角波产生 (15)§3. 3. 3方波产生 (15)§3. 3. 4锯齿波的产生 (16)第4章系统调试与测试 (17)§4. 1 调试 (17)§ 4. 2 测试 (19)结论 (22)致谢 (23)参考文献 (24)附录 (25)刖吕函数发生器又称信号源或振荡器,在生产实践和科技领域中有着广泛的信号发生器又称信号源或振荡器,在生产实践和科技领域中有着广泛的应用。
本文介绍一种用AT89C51单片机构成的波形发生器,可产生方波、三角波、正弦波、锯齿波等多种波形,波形的周期可用程序改变,并可根据需要选择单极性输出或双极性输出,具有线路简单、结构紧凑、性能优越等特点。
文章给出了源代码,通过仿真测试,其性能指标达到了设计要求。
关键词:单片机;DAC;信号发生器摘要...................................................................n录 ...................................................................第一章绪论.............................................................1.1单片机概述........................................................1・2信号发生器的分类 ................................................1・3研究内容 ........................................................第二章方案的设计与选择.................................................2.1方案的比较 .......................................................2.2设计原理..........................................................2.3设计思想 .........................................................2.4设计功能..........................................................第三章硬件设计.........................................................3.1硬件原理框图 .....................................................3.2主控电路..........................................................3.3数、模转换电路....................................................3.4按键接口电路 .....................................................3. 5时钟电路..........................................................3.6显示电路 ......................................................... 第四章软件设计.........................................................4.1程序流程图 ....................................................... 第五章总结与展望....................................................... 致谢................................................................... 参考文献............................................................... 附录1电路原理图....................................................... 附录2源程序........................................................... 附录3器件清单 ........................................................第一章绪论1.1单片机概述随着大规模集成电路技术的发展,屮央处理器(CPU)、随机存取存储器(RAM)、只读存储器(ROM)、(I/O)接口、定时器/计数器和串行通信接口,以及其他一些计算机外围电路等均可集成在一块芯片丄构成单片微型计算机,简称为单片机。
基于单片机的函数信号发生器的设计摘要本课题是采用低成本的MCS-51系列单片机构成具有高可靠性的函数信号发生器的应用设计。
本设计通过单片机运算产生二进制控制信号去控制AD9850进而实现函数波形的产生。
基于单片机的函数信号发生器抗干扰性强、功耗低、成本低、易实现,具有很高的实用价值。
本系统以51单片机为控制核心,由电源模块、单片机AT89S52最小系统模块、中断键盘模块、函数信号发生模块、MAX7219显示模块组成。
采用中断键盘扫描方式计算所需频率,用数控的方法控制DDS芯片AD9850产生100Hz-40MHz正弦信号,100Hz-5MHz方波信号,波形输出较稳定,且精度较高。
采用MAX7219驱动两个四位一体的八段LED数码管,显示出当前波形的频率。
系统用C语言编写模块化程序,增强可读性,便于AT89S52对各模块的控制,实现各功能的设置。
关键词:单片机、直接数字频率合成(DDS)、 AD9850 、函数信号、正弦波、方波MCU-based Function Signal Generator DesignABSTRACTThis issue is low-cost microcontroller MCS-51 family of highly reliable functions constitute a signal generator applications. This design generates a binary control signal MCU operation to control the AD9850 to realize the function of waveform generation. Function Generator based on single chip and strong anti-interference, low power consumption, low cost, easy to implement, has high practical value.The system control microcontroller core 51 by the power supply module, MCU AT89S52 minimum system module, the keyboard interrupt module, function signal generator module, MAX7219 display module. Calculated by scanning the keyboard interrupt the required frequency, using numerical methods to control DDS chip AD9850 produced 100Hz-40MHz sinusoidal signal, 100Hz-5MHz square wave signal, the waveform output is stable and high precision. Use of MAX7219 drives four in one of eight out of two LED digital tube, showing the frequency of the current waveform. Modular system with C language programs to enhance readability, ease of AT89S52 on the module controlRealize the function of setting.Key words:Singlechip Direct Digital Synthesizer(DDS)AD9850Function Signal Sine wave Square Wave目录摘要 (I)ABSTRACT ................................................. I I 1 绪论 (1)1.1 设计背景 (1)1.2 设计目的 (2)1.3 设计意义 (2)2 课题设计相关理论知识 (3)2.1 DDS的系统简介 (3)2.1.1 DDS的基本原理 (3)2.1.2 DDS的性能特点 (3)2.2 AD9850简介 (4)2.2.1 AD9850功能概述 (4)2.2.2 AD9850的引脚功能 (5)2.2.3 AD9850工作原理 (5)2.2.4 AD9850应用与设计 (6)3 系统的总体设计 (8)3.1 方案论证 (8)3.2 设计原理框图 (8)4 系统硬件设计 (9)4.1 电源电路 (9)4.2 AT89S52单片机最小系统 (9)4.2.1 AT89S52的资源参数 (9)4.2.2 最小系统与I/O连接情况 (10)4.3 中断键盘设计电路 (11)4.4 MAX7219显示电路 (12)4.5 AD9850函数信号发生模块 (13)4.5.1 AD9850模块主电路 (13)4.5.2 AD9850模块时钟电路 (14)4.5.3 AD9850模块输入输出口定义 (15)4.6 AT89S52单片机ISP下载线 (15)4.6.1 ISP简介 (15)4.6.2 AT89S52单片机ISP下载线原理 (16)4.6.3 电脑并口DB25引脚定义说明 (17)4.7 小结 (17)5 系统软件设计 (18)5.1 单片机MCS-51系列简介 (18)5.2 MAX7219模块驱动程序 (18)5.2.1 初始化程序 (20)5.2.2 送显子程序 (21)5.2.3 数据传送程序 (22)5.3 AD9850的驱动程序设计 (23)5.3.1 初始化程序 (23)5.3.2 写控制字子程序 (24)5.4 主函数程序设计 (26)5.4.1 中断INT0服务函数 (26)5.4.2 主函数 (27)5.5 Keil C51介绍 (29)5.6 ISPlay v1.5介绍 (30)5.7 小结 (31)6 系统调试与分析 (33)6.1 硬件调试 (33)6.2 软件调试 (34)6.3 系统调试 (37)6.3.1 独立按键与显示测试 (37)6.3.2 波形测试 (38)6.3.3 与开题要求对比 (40)6.4 小结 (41)参考文献 (42)附录 1 (43)附录 2 (50)附录 3 (51)附录 4 (52)谢辞 (54)基准时钟 相位累加器 相位/幅度变换 D/A 变换 低通滤波 比较器1 绪论1.1 研究背景近年来随着计算机在社会领域的渗透, 单片机的应用正在不断地走向深入,同时带动传统函数信号发生器日新月益更新。
毕业设计(论文)中文摘要(题目):基于单片机的信号发生器设计摘要:此函数信号发生器是基于单片机AT89C51设计而成的,能够产生频率范围在0Hz—535Hz的锯齿波、正弦波、三角波、矩形波四种波形,并且能够通过液晶屏1602显示各自的波形类型以及频率数值。
首先,单片机AT89C51经过程序设计的方法生成各种数字信号,再通过D/A转换器DAC0832将数字信号转换成模拟信号,滤波放大。
接着,通过按键来控制四种波形的类型选择、和频率数值选择,并由液晶屏1602显示其频率数值和波形类型。
总的系统包括信号发生部分、数/模转换部分以及液晶显示部分三大部分,其中尤其对数/模转换部分和波形产生和变化部分进行详细论述。
关键词:AT89C51DAC0832 液晶屏1602Title :Abstract:This function signal generator is based on the AT89C51 microcontroller design, capable of generating frequency range 0Hz-535Hz sawtooth, sine, triangle wave, square wave, four types of waveforms, and each type of waveform and frequency can be displayed by the LCD screen 1602value. First, AT89C51 microcontroller programming method to generate a variety of digital signal through the D / A converter DAC0832 converts the digital signal into an analog signal, filtered and amplified. Then, the key to control the four waveform type selection, and frequency selection of values, the value of its frequency and waveform type is displayed by the LCD screen 1602. The total system including a signal generating part of the digital / analog converting section and a liquid crystal display section of three parts, wherein in particular for the digital / analog conversion part and the waveform generating and changing part discusses in detail.keywords: AT89C51 DAC0832 LCD in screen 1602目录1 引言 (1)1.1研究背景 (1)1.2 国内外的研究现状和发展趋势 (2)2 设计要求 (2)3 设计总体方案 (2)4 硬件电路实现 (4)4.1 单片机最小系统的设计 (4)4.1.1 时钟电路 (5)4.1.2 复位电路 (5)4.2 D/A转换电路 (6)4.3 放大滤波电路 (9)4.4 键盘模块的设计 (10)4.5 显示模块的设计 (11)5 软件程序设计 (12)6 测试仪器及测试说明 (14)结论 (14)致谢 (14)参考文献 (15)附录A (16)附录B (17)1 引言信号发生器是一种常用信号源。