【正文】
單片機(jī) 系統(tǒng) 實(shí)訓(xùn) (論文 )說明書 題 目: 信號發(fā)生器 院 (系): 信息與通信 學(xué)院 專 業(yè): 電子信息工程 學(xué)生姓名: 蘇勇堅 學(xué) 號: 1101120424 指導(dǎo)教師: 符強(qiáng) 2021 年 12 月 31 日 1 摘 要 本文以 STC89C52 單片機(jī)為核 心設(shè)計了一個低頻函數(shù)信號發(fā)生器。信號發(fā)生器采用數(shù)字波形合成技術(shù) ,通過硬件電路和軟件程序相結(jié)合 ,DAC0832 可輸出自定義波形 ,如正弦波、方波、三角波 、三角波 ,波形的頻率和幅度在一定范圍內(nèi)可任意改變。波形和頻率的改變通過軟件控制,幅度的改變通過硬件 與軟件 實(shí)現(xiàn)。介紹了波形的生成原理、硬件電路和軟件部分的設(shè)計原理。本系統(tǒng)可以產(chǎn)生最高頻率 20HZ 的波形。該信號發(fā)生器具有體積小、價格低、性能穩(wěn)定、功能齊全的優(yōu)點(diǎn)。 關(guān)鍵詞 : 低頻信號發(fā)生器 。單片機(jī) STC89S52。D /A 轉(zhuǎn)換 。 2 Abstract This paper STC89C52 singlechip microputer as the core design a low frequency function signal generator. Signal generator with digital waveform synthesis technology, through the hardware circuit and software program, bining can output custom waveform, such as sine, square wave, triangle wave, triangle wave, wave frequency and amplitude in a certain range can be arbitrary change. Waveform and frequency change through the software control, amplitude change through the hardware and software realization. Introd uces the waveform generation principle, hardware circuit and software part of the design principle. This system can produce the highest frequency and hz waveform. The signal generator has small volume, low price, stable performance, fully functional advantages. Key words: Low frequency signal generator。 SCM STC89S52。 D/A conversion; 1 目 錄 緒論 ............................................................................................................... 錯誤 !未定義書簽。 1 系統(tǒng)硬件介紹 ................................................................................................................. 1 硬件主控芯片概述及功能介紹 .................................................................................... 1 STC89S52.............................................................................................................. 1 STC89S52 特性 ................................................................................................................ 1 STC89S52參數(shù) .................................................................................................................. 1 硬件電路 ............................................................................................................................ 2 .............................................................................................................. 2 ................................................................................................................ 3 數(shù)轉(zhuǎn)換部分 ....................................................................................................... 4 2 系統(tǒng)軟件設(shè)計 ................................................................................................................. 5 細(xì)分 程序 的設(shè)計 ................................................................................................................. 5 流程圖 ..................................................................................................................... 6 ......................................................................................................................... 6 圖 .................................................................................................................. 8 ............................................................................................................................ 8 .................................................................................................................10 ........................................................................................................................... 11 3 硬件制作與調(diào)試 ........................................................................................................... 11 系統(tǒng) PCB 板的設(shè)計 ........................................................................................................... 11 系統(tǒng)硬件調(diào)試 ...................................................................................................................12 軟件及聯(lián)機(jī)調(diào)試 ..................................................................