本科毕业设计(论文) ( 2014 届 )
题 目 波形采集、存储与回放系统
设计
学 院 物理与电子工程学院 专 业 电气工程及其自动化 班 级 10电气工程(1)班 学 号 1030230005 学生姓名 徐由刚 指导教师 杨金伟 讲师 完成日期 2014年3月
台州学院毕业设计(论文)
波形采集、存储与回放系统设计
Waveform Capture Storage and Playback System Design
学生姓名:徐由刚
Student: Xu Yougang
指导教师:杨金伟 讲师
Advisor: Lecturer Yang Jinwei
台州学院
物理与电子工程学院
School of Physics & Electronic Engineering
Taizhou University Taizhou, Zhejiang, China
2014年3月
March 2014
I
台州学院毕业设计(论文)
摘 要
本系统基于数字存储示波器的原理,以单片机89s52为控制核心,通过高速AD对信号的实时采样,上升沿内触发方式,实现波形的单次和多次触发存储和实时连续显示,又具有锁存功能,能通过操作“移动”键显示被存储波形的任一部分。以实用数字示波器为依据,实现了双踪采集与显示。同时,系统还增加了AUTO,上下左右平移,频率、峰-峰值和平均值的显示,频谱分析和波形细节分析的功能。整个系统操作简便,界面友好,达到了较好的性能指标。
关键词
数字, 单片机 , 存储,波形
II
台州学院毕业设计(论文)
Abstract
This system based on the principle of digital storage oscilloscope, MCU 89S52 as the control core, through the real-time sampling speed AD on signal, rising along the inner trigger mode, realize the waveform of single and multiple triggers the storage and real-time display, and a latch function, through the operation \button to display is either stored waveform part of the. Based on the practical Digital oscilloscope, realization of the dual trace acquisition and display. At the same time, the system also increased AUTO, shift up and down about, frequency, peak to peak value and average value, frequency spectrum analysis and waveform analysis of the details of the function. The whole system is simple, friendly interface, to achieve good performance.
Key words
Digital, MCU, Storage, Waveform
III
台州学院毕业设计(论文)
目 录
1. 引言 ................................................................................................................................ 1 2.研究内容与方案论证 ..................................................................................................... 1
2.1 研究内容 ................................................................................................................. 1 2.2 方案论证 ................................................................................................................. 2 3. 系统硬件设计 ................................................................................................................. 3
3.1 系统原理概述 ......................................................................................................... 3 3.2 微型处理器 ............................................................................................................. 4 3.3 系统扩展 ................................................................................................................. 7
3.3.1 I/O接口的扩展 ........................................................................................ 7 3.3.2 存储功能扩展 ........................................................................................... 8 3.4 输入模块 ............................................................................................................... 10 3.5 输出模块 ............................................................................................................... 13 3.6 显示与控制模块 .................................................................. 错误!未定义书签。 3.7 掉电保护电路控制 ............................................................................................... 14 3.8 电源 ....................................................................................................................... 15 4. 系统软件设计 ............................................................................................................. 15
4.1 软件流程 ............................................................................................................... 15 4.2 功能模块分析 ....................................................................................................... 16 5. 调试 ................................................................................................................................ 19
5.1 测试设备 ............................................................................................................... 19 5.2 测试 ....................................................................................................................... 19
5.2.1 测试方法 ..................................................................................................... 19 5.2.2 测试结果 ..................................................................................................... 19 5.2.3 误差分析 ..................................................................................................... 21 5.3 调试小结 ............................................................................................................... 21 6 结论 ................................................................................................................................. 22 参考文献 ............................................................................................................................. 25 谢 辞 ................................................................................................................................. 26
IV