基于单片机的波形发生器设计毕业设计论文.doc

基于单片机的波形发生器设计毕业设计论文.doc

黄冈职业技术学院(论文) PAGE \* MERGEFORMAT 61 毕业设计 题 目 基于单片机的波形发生器设计 目录 TOC \o 1-3 \h \z \u 1 绪论 h 5 1.1 选题背景及意义 h 5 1.1.1 本课题的研究现状 h 5 1.1.2 选题目的及意义 h 6 1.2 设计任务及要求 h 6 1.2.1 设计的基本要求 h 7 1.2.2 本文结构安排 h 7 2 函数发生器系统设计 h 8 2.1 设计方案的比较 h 8 2.2 系统模块设计 h 8 2.2.1 控制模块: h 8 2.2.2 按键及其显示模块: h 9 2.2.3 波形产生模块 h 9 2.2.4 D/A转换 h 10 2.3 系统总体框图 h 11 2.4 理论分析 h 12 2.4.1 电路的理论计算 h 12 2.4.2 波形产生相关理论 h 14 2.5 单片机软件开发系统 h 15 3 系统硬件电路的设计 h 17 3.1 单片机最小系统 h 17 3.2 单片机的接口电路 h 18 3.3 幅度控制模块 h 22 3.3.1 单片机与DAC0832的接口 h 22 3.3. 2DAC0832与运放的连接 h 22 4 系统软件设计 h 25 4.1 系统软件设计方案 h 25 4.2 系统软件流程图 h 25 4.3 信号产生程序 h 26 4.3.1 正弦波产生 h 27 4.3.2 三角波产生 h 27 4.3.2 方波产生 h 28 4.3.4 锯齿波的产生 h 30 5 系统调试与测试 h 31 5.1 调试 h 31 5.2 测试 h 34 6 结论与展望 h 37 6.1 结论 h 37 6.2 展望 h 37 致 谢 h 38 参考文献 h 50 附 录 h 39 附录一 系统软件部分源程序 h 39 附录二 系统原理图 h 48 附录三 系统PCB图 h 49 基于单片机的波形发生器的设计 学 生:李利刚 指导老师:李 敏 (黄冈职业技术学院) 摘要:函数发生器是一种用于产生标准信号的电子仪器,它广泛用于工业生产、科研和国防等各个领域中,所以论文选题具有一定的实用意义。本文介在绍了函数发生器的基本概念及原理的基础上,采用AT89C51单片机为核心,完成了简易的DDS函数发生器的硬件设计和软件编程,并通过调试实现了其功能和主要技术指标。在系统的硬件部分,设计了由单片机最小系统为核心、通过接口设计,扩展了DAC转换模块、按键和LED显示模块。其中,采用两片DAC0832实现了全数字化的频率合成器(简称DDS)。系统的软件设计是在keil uVision4的集成开发环境下,采用C语言完成了应用系统软件编程,包括主程序、产生四种常用信号的程序、按键功能和显示子程序等电脑模块;模块化的编程使得程序具有可读性和易于维护的特点。 关键词:信号发生器 单片机 keilc51 Based on SCM waveform generator design Abstract:Function generator is used to produce a standard signal electronic instrument, it is widely used in industrial production, scientific research and national defense, and other fields, so the thesis has certain practical significance. This paper in shaoxing interface the function generator of basic concepts and principles, and on the basis of the AT89C51 microcontroller as the core, the completion of the simple DDS function generator hardware design and software programming, and through the debugging realized its function and the main technical i

文档评论(0)

1亿VIP精品文档

相关文档