随着数字技术和计算机技术的发展,数字示波器已经逐渐取代了模拟示波器。作为电子测量领域的基础测量仪器,简易、轻便越来越成为示波器的重要指标。
本设计采用的是基于ARM Cortex M4内核的TM4C123GH6新型芯片。所设计的数字示波器具有低耗、高效、操作简单、体积小、稳定性好等特点。硬件由数据采集模块、定时器中断模块、复位模块和LCD显示模块等部分构成。软件部分主要实现了模数转换器的采样、波形显示、数据计算、按键控制和LED灯报警显示等功能。实现了对输入信号的实时采样,再通过描点函数将波形显示在LCD。为了使数据实时显示在LCD上,采用了实时采样的采样方式和先入先出的输出方式。程序实现了模块化的设计要求,具有可读性和易维护的特点。42913
最后是关于简易数字示波器的调试工作,在实验室中通过信号发生器输入信号与标准示波器比对,验证本系统达到了设计要求。
Simple digital oscilloscope design based on TM4C123G
Abstract
With the development of digital technology and computer technology, digital oscilloscopes have been gradually replaced analog oscilloscope. As the basis for measuring instruments in the field of electronic measurement, simple, lightweight increasingly become an important indicator of the oscilloscope.
This design uses is based on the ARM Cortex M4 core chip TM4C123GH6. Digital oscilloscope design involved have low consumption, high efficiency, simple operation, small size, good stability. The hardware consists of a data acquisition module, the timer interrupt module, reset module and LCD display some modules like. Some of the major software sampling ADC, waveform display, data calculation, control buttons and LED lights alarm display. To achieve a real-time sampling of the input signal, and then through plot points function waveform display in LCD. To make the data real-time display on the LCD, real-time sampling using a sampling method and the FIFO output mode. Program to achieve a modular design requirements, readable and easy maintenance.
Finally, there is a simple digital oscilloscope commissioning work in the laboratory standard oscilloscope input signal and the signal generator by comparison, verify the system meets the design requirements.
Keywords: simple digital oscilloscope; TM4C123G; SCM
目 次
第1章绪论 7
1.1课题研究的背景 7
1.1.1数字示波器的介绍 7
1.1.2简易数字示波器的发展 8
1.2 课题研究目的及意义 10
第2章 示波器总体设计方案 11
2.1 示波器总体设计思路 11
2.2 数据采样技术 11
2.3 波形显示 13
第3章硬件设计 14
3.1 TM4C123G整体介绍 14
3.1.1 TM4C123G微控制器 14
3.1.2 TM4C123G的封装引脚和电气特性 17
3.2 TM4C123G的最小应用系统 19
3.3 ADC模块 20
3.4 LCD模块 22