【正文】
摘 要: 本系統(tǒng)利用單片機(jī) AT89S52 采用程序設(shè)計(jì)方法產(chǎn)生鋸齒波、正弦波、矩形波三種波形,再通過 D/A 轉(zhuǎn)換器 DAC0832 將數(shù)字信號轉(zhuǎn)換成模擬信號,濾波放大,最終由示波器顯示出來,能產(chǎn) 1Hz—3kHz 的波形。通過鍵盤來控制三種波形的類型選擇、頻率變化,并通過液晶屏 1602 顯示其各自的類型以及數(shù)值,系統(tǒng)大致包括信號發(fā)生部分、數(shù)/模轉(zhuǎn)換部分以及液晶顯示部分三部分,其中尤其對數(shù)/模轉(zhuǎn)換部分和波形產(chǎn)生和變化部分進(jìn)行詳細(xì)論述。關(guān)鍵詞:單片機(jī) AT89S5DAC083液晶 1602Abstract: this system capitalize on AT89s52,it makes use of central processor to generate three kinds of waves, they are triangle wave, and use D/A conversion module, wave generate module and liquid crystal display of 1602, it can have the 1Hz3KHz profile. In this system it can control wave form choosing, frequency, range,can have the sine wave, the squarewave, the triangular wave. Simultaneously may also take the frequency measurement frequency,and displays them through liquid crystal display of 1602. this design includes three modules. They are D/A conversion module, wave generate module and liquid crystal display of LED module. In this design, the wave generator into wave form module and D/A conversion module are discussed in detail. key word: AT89S52, DAC0832, liquid crystal 1602. 3目錄 系統(tǒng)設(shè)計(jì) ................................................................................................................................設(shè)計(jì)要求 ................................................................................................................................方案設(shè)計(jì)與論證 ..................................................................................................................總體系統(tǒng)設(shè)計(jì) ......................................................................................................................硬件實(shí)現(xiàn)及單元電路設(shè)計(jì) ..............................................................................................7 、軟件設(shè)計(jì)流程 ...................................................................................................................源程序 ...................................................................................................................................11輸出波形的種類與頻率的測試 ................................................................................1測量儀器及測試說明 ......................................................................................................1測試過程 ..............................................................................................................................1測試結(jié)果 ............