【正文】
轉(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 and high intelligence. 【key words】:Waveform generator。隨著電子測(cè)量以及很多部門對(duì)各種波形信號(hào)發(fā)生器的廣泛需要以及電子技術(shù)的快速發(fā)展,促使信號(hào)發(fā)生器性能提高,種類增多?;贒DS技術(shù)的任意波形信號(hào)發(fā)生器(AWG,Arbitrary Waveform Generator)具有較高的輸出帶、寬精細(xì)的頻率分辨率、頻率轉(zhuǎn)換靈活、輸出波形靈活等特點(diǎn)。但是這種模塊產(chǎn)生的波形都不是純凈的波形,并且不能完全濾除掉。方案四:采用單片機(jī)和DAC0832數(shù)模轉(zhuǎn)換器生成波形,由于是軟件濾波,所以不會(huì)有寄生的高次諧波分量,生成的波形比較純凈。本系統(tǒng)包括:?jiǎn)纹瑱C(jī)模塊,波形生成模塊,調(diào)幅模塊,鍵盤模塊,波形指示燈模塊,掉電保護(hù)模塊和電源模塊。具體電路圖如圖22所示。3硬件設(shè)計(jì)AT89C52是一個(gè)低電壓,高性能CMOS 8位單片機(jī),片內(nèi)含8k bytes的可反復(fù)擦寫的Flash只讀程序存儲(chǔ)器和256 bytes的隨機(jī)存取數(shù)據(jù)存儲(chǔ)器(RAM),兼容標(biāo)準(zhǔn)M