【正文】
. . . .波形發(fā)生器的設(shè)計與仿真學(xué)生姓名:李芃博 指導(dǎo)老師:朱曉娟(信息與控制工程學(xué)院 電子信息工程專業(yè))【摘要】:波形發(fā)生器是一種應(yīng)用廣泛的信號源。它輸出的常規(guī)波形經(jīng)常應(yīng)用在電子電路的性能測試、參數(shù)測量,電子技術(shù)實驗等科研領(lǐng)域。本文設(shè)計一種基于單片機AT89C52的波形發(fā)生器。系統(tǒng)根據(jù)查表法基本原理,采用單片機查詢片內(nèi)ROM波形函數(shù)表,并用DAC0832進(jìn)行數(shù)模轉(zhuǎn)換實現(xiàn)波形生成。雙D/A數(shù)控電位器實現(xiàn)幅度控制。系統(tǒng)利用軟件方式實現(xiàn)直接數(shù)字頻率合成,并使用LED燈作為波形的輸出顯示。輸出波形包括正弦波、方波、三角波信號以及上述三種波形線性組合波,可以進(jìn)行波形幅值和頻率的調(diào)節(jié),并用采用中斷式鍵盤實現(xiàn)人機交互,串行E2PROM(AT24C02)實現(xiàn)了波形數(shù)據(jù)的掉電保護(hù)功能。該波形發(fā)生器具有操作簡便靈活,性價比高和智能化程度高等特點?!娟P(guān)鍵詞】:波形發(fā)生器;數(shù)字頻率合成;單片機AT89C52;D/A轉(zhuǎn)換【abstract】:The Waveform generator is a widely used conventional waveform of its output is often used in performance testing of electronic circuit,parameter measurement, electronic technology experiment and other research areas. This paper design a waveform generator based on SCM to the basic principle of lookup table method,the system use the SCM to query the Onchip ROM waveform function table and use the DAC0832 chip to generate the waveform by digital to analog date dual D/A digitally controlled potentiometers realize the waveform amplitude system achieve the Direct Digital Frequency Synthesizer by programing as well as use the LED lamp to show the current waveforms include sine, squae, triangular wave signal and a linear bination wave of the above three kinds of waveforms. The amplitude and frequency of the waveform can be user can control the waveform generator by using the interrupttype keyboard. Serial E2PROM (AT24C02) realizes the waveform data protection against power waveform generator is simple, flexible, costeffective an