基于AVR單片機的數字示波器的設計與實現(xiàn)
本文選題:數字示波器 + 直接數字式頻率合成器; 參考:《武漢工業(yè)學院》2012年碩士論文
【摘要】:數字示波器是一種用于觀察、測量、分析、記錄各種動態(tài)信號并可以用圖形方式顯示的電子儀器。市面上所售的示波器往往價格昂貴,對此本文提出了一種低成本數字示波器的設計方案。 文中的內容主要分為兩部分:數字示波器的硬件設計和軟件設計。硬件電路主要包括信號調理電路、AD采樣與FIFO緩沖存儲電路、DDS時鐘電路、TFT顯示器與功能按鍵電路。系統(tǒng)軟件的設計是指對微控制器外圍電路中相關器件的控制與驅動,以及對采集到的波形數據的分析與處理。 本數字示波器以艾特梅爾公司的AVR單片機為控制核心,AVR是8位的RISC微控制器,它在指令和數據吞吐能力方面比傳統(tǒng)的CISC結構要快很多倍。在數字示波器的信號調理電路中,使用了增益可變運算放大器和高精度DAC的結構,即放大倍數由DAC的輸出電壓控制,而DAC的輸出電壓由AVR單片機的控制數據決定。這種結構不僅可降低電路功耗而且可以用軟件對放大倍數進行調整使得控制更加方便。在數字示波器的采樣電路中使用了BB公司的高速AD轉換器ADS830E,它的最高工作頻率可達60MHz,遠高于AVR單片機的工作頻率,所以在AD之后加入了高速FIFO緩沖存儲器,讓其與高速AD同步工作。AD轉換器的采樣時鐘信號由DDS電路生成,DDS即直接數字式頻率合成器,其應用簡單,無需外接元件,輸出頻率和相位都可通過軟件編程,易于調節(jié)。傳統(tǒng)示波器一般采用多級門電路對主時鐘振蕩器進行分頻得到所需采樣時鐘,電路不僅結構復雜而且功耗大,兩相比較,DDS具有很大的優(yōu)勢。 經過調試,數字示波器最終正常運行。系統(tǒng)帶寬達到1MHz,輸入信號范圍為5m V~160V。實現(xiàn)了采樣與波形顯示、測量頻率和峰值以及FFT頻譜分析等功能。
[Abstract]:A digital oscilloscope is an electronic instrument used to observe, measure, analyze, record and display various dynamic signals. The oscilloscopes sold on the market are often expensive. This paper presents a design for low cost digital oscilloscopes.
The contents of the paper are divided into two parts: the hardware design and the software design of the digital oscilloscope. The hardware circuit mainly includes the signal conditioning circuit, the AD sampling and the FIFO buffer storage circuit, the DDS clock circuit, the TFT display and the function key circuit. The system software is designed to control and drive the related devices in the peripheral circuits of the micro controller. And the analysis and processing of the collected waveform data.
The digital oscilloscope is controlled by et Mel's AVR microcontroller, and AVR is a 8 bit RISC microcontroller. It is much faster than the traditional CISC structure in instruction and data throughput. In the signal conditioning circuit of the digital oscilloscope, the gain variable operational amplifier and the high precision DAC structure are used. The output voltage of the DAC is controlled, and the output voltage of the DAC is determined by the control data of the AVR MCU. This structure can not only reduce the power consumption of the circuit, but also make the control more convenient by using the software to adjust the magnification. In the sampling circuit of the digital oscilloscope, the high speed AD converter ADS830E of the BB company is used, and the highest frequency of its working frequency is in the digital oscilloscope. The rate is up to 60MHz, far higher than the working frequency of AVR MCU, so the high-speed FIFO buffer memory is added after AD, so that the sampling clock signal of the.AD converter with high speed AD is generated by DDS circuit, DDS is the direct digital frequency synthesizer, its application is simple, no external connection element is needed, the output frequency and phase can be compiled by software. The traditional oscilloscope usually uses a multistage gate circuit to divide the main clock oscillator into the required sampling clock. The circuit is not only complicated but also has large power consumption. The DDS has a great advantage in two phase comparison.
After debugging, the digital oscilloscope runs normally. The bandwidth of the system reaches 1MHz. The input signal range is 5m V~160V., which realizes the functions of sampling and waveform display, measuring frequency and peak and FFT spectrum analysis.
【學位授予單位】:武漢工業(yè)學院
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TM935.37;TP368.1
【參考文獻】
相關期刊論文 前6條
1 周希偉;;基于AVR單片機的數字存儲示波器設計[J];電腦知識與技術;2009年19期
2 李維森;;當代數字示波器的發(fā)展應用[J];中國電子商情(基礎電子);2007年Z1期
3 胡麗瑩;肖蓬;;快速傅里葉變換在頻譜分析中的應用[J];福建師范大學學報(自然科學版);2011年04期
4 黃斌;洪嬴政;朱康生;;基于AD9833的高精度可編程波形發(fā)生器系統(tǒng)設計[J];電子設計工程;2009年05期
5 呂冬梅,王小兵;示波器的基本結構和發(fā)展歷史[J];貴州農機化;2001年03期
6 王智瑋;王文捷;龐佑兵;;一種基于線性功放技術的DC/AC變換器[J];微電子學;2009年03期
相關碩士學位論文 前7條
1 趙紅;超聲治療儀控制系統(tǒng)的設計與實現(xiàn)[D];華東師范大學;2010年
2 顧耕;電子功能模件自動測試及故障診斷系統(tǒng)的研制[D];哈爾濱理工大學;2010年
3 王鑫;X波段多普勒測速接收機關鍵技術研究[D];南京理工大學;2007年
4 李曉強;無人機飛行控制系統(tǒng)的硬件設計與研究[D];西安理工大學;2008年
5 滕志超;四通道數字示波器數據采集與存儲設計[D];電子科技大學;2009年
6 張一嬌;四通道數字示波器數據處理與顯示模塊軟件設計[D];電子科技大學;2009年
7 錢者鳳;調頻連續(xù)波近程探測系統(tǒng)信號檢測與處理[D];南京理工大學;2009年
,本文編號:1894259
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1894259.html