【正文】
統(tǒng)提供技術(shù)基礎(chǔ),這不僅具有重要的理論意義,同時(shí)還具有重要的實(shí)際意義 ]3[ 。由于它具有豐富的硬件資源、改進(jìn)的哈佛結(jié)構(gòu)、高速數(shù)據(jù)處理能力和強(qiáng)大的指令系統(tǒng),使得它在通信、航空、航天、雷達(dá)、工業(yè)控制、網(wǎng)絡(luò)及家用電器等各個(gè)領(lǐng)域得到了廣泛應(yīng)用 ]2[ 。因而隨著數(shù)字技術(shù)的發(fā)展,用數(shù)字技術(shù)實(shí)現(xiàn)濾波器的功能越來越受到人們的注意和廣泛的應(yīng)用 ]1[ 。并且數(shù)字濾波技術(shù)也是進(jìn)行數(shù)字信號(hào)處理的最基本手段之一,它是對(duì)數(shù)字輸人信號(hào)進(jìn)行運(yùn)算,產(chǎn)生數(shù)字輸出信號(hào),以改善信號(hào)品質(zhì)、提取有用信息、或者把組合在一起的多個(gè)信號(hào)分量分離開來為目的。 關(guān)鍵詞 帶阻濾波器 工頻干擾 DSP TMS320VC5402 基于 DSP 的帶阻濾波器設(shè)計(jì) II BASEDON DSP DESIGN OF BANDSTOP FILTER ABSTRACT In the industrial field of signal processing, there are all kinds of noise from outside, especially in the frequency interference is the most mon sources of interference. When the detection signal is relatively weak, and the frequency close to 50Hz, the frequency the more prominent of the measured signal interference and caused great difficulties to the smallsignal extraction of the industrial field. The subject intends to take advantage of the digital filter to remove the impact of the industrial field signal frequency interference. Firstly, on the basis of industry scene signal characteristics, using MATLAB simulation of the bandstop filter performance index can meet the requirements of the scene of the signal filter coefficient table. Then, based on the estimated operation corresponding to the selected DSP processor chip, and according to the conversion accuracy to choose A/D and D/A converter chip, and because the processor memory for FLASH, SRAM and PRAM external memory expansion to design a DSP application system, and set the parameters of them. Finally, in the CCS development environment to use software programming to achieve the required design of bandstop filter. KEY WORDS Bandstop filters Frequency interference DSP TMS320VC5402 基于 DSP 的帶阻濾波器設(shè)計(jì) 目 錄 摘要 ....................................................................................................................................... I ABSTRACT............................................................................................................................. II 1 緒論 .................................................................................................................................. 1 課題背景 ............................................................................................................ 1 研究意義 ............................................................................................................ 2 主要研究內(nèi)容 ................................................................................................... 2 2 DSP 數(shù)字濾波器關(guān)鍵指標(biāo)分析與方案設(shè)計(jì) ........................................................ 4 3 DSP 系統(tǒng)的硬 件電路設(shè)計(jì) .......................................................................................... 7 DSP 與 A/D 和 D/A 轉(zhuǎn)換器的接口 ............................................................... 7 DSP 與 A/D 轉(zhuǎn)換器的接口 .......................................................................... 7 DSP 與 D/A 轉(zhuǎn)換器的接口 .......................................................................... 9 DSP 存儲(chǔ)器的擴(kuò)展 .......................................................................................... 11 FLASH 的擴(kuò)展 ............................................................................................. 11 SRAM 的擴(kuò)展 ...............................................................................................12 PRAM 的擴(kuò)展 ...............................................................................................13 DSP 系統(tǒng)的外圍電路設(shè)計(jì) ............................................................................14 電源電路的設(shè)計(jì) ........................................................................................14 復(fù)位電路的設(shè)計(jì) ........................................................................................16 時(shí)鐘電路的設(shè)計(jì) ........................................................................................17 JTAG 仿真接口電路的設(shè)計(jì) .........................................................................19 4 帶阻濾波器的 DSP 實(shí)現(xiàn) ...........................................................................................22 FFT/IFFT 算法程序及應(yīng) 用 ..........................................................................22 基于 DSP 的帶阻濾波器設(shè)計(jì) FFT 設(shè)計(jì)方法 .............................................................................................22 FFT 算法的實(shí)現(xiàn) .........................................................................................23 CCS 開發(fā)環(huán)境 ...................................................................................................24 帶阻濾波器的軟件設(shè)計(jì) ...............................................................................26 帶阻濾波器的程序流程 ............................................................................26 帶阻濾波器的實(shí)現(xiàn) ....................................................................................28 結(jié)束語 ................................................................................................................................30 致謝 .....................................................................................................................................31 參考文獻(xiàn) ............................................................................................................................32 附錄 .....................................................................................................................................33 基于 DSP 的帶阻濾波器設(shè)計(jì) 1 1 緒論 課題背景 目前,各種干擾在各類工業(yè)現(xiàn)場中均存在,所以儀表及控制系統(tǒng)的可靠性直接影響到現(xiàn)代化工業(yè)生產(chǎn)裝置安全、穩(wěn)定運(yùn)行,系統(tǒng)的抗干擾能力是關(guān)系到整個(gè)系統(tǒng)可靠運(yùn)行的關(guān)鍵。課題擬利用數(shù)字濾波器去除工業(yè)現(xiàn)場小信號(hào)中工頻干擾的影響。 10 畢業(yè)設(shè)計(jì)完成后,要求提交論文,包括詳細(xì)的設(shè)計(jì)說明、圖紙等技術(shù)資料。 6 要求能夠方便地修改濾波參數(shù)。 2 學(xué)習(xí) DSP 的相關(guān)知識(shí)。 二. 基本要求 1 學(xué)習(xí)濾波器的工作原理。 5 設(shè)計(jì)人機(jī)交互接口。 9 如果進(jìn)度可行,試制實(shí)際電路系統(tǒng)。當(dāng)被檢測的信號(hào)比較弱 ,并且 頻率也比較接近 50Hz 時(shí) ,工頻對(duì)被測信號(hào)的 干擾就越加突出 , 對(duì)工業(yè)現(xiàn)場小信號(hào)的提取造成了很大的困難。最后在 CCS 開發(fā)環(huán)境下用軟件編寫程序來實(shí)現(xiàn)本課題中所 需 設(shè)計(jì)的帶阻濾波器。因此,我們要設(shè)計(jì)數(shù)字濾波器來濾除此工頻干擾,來解決它在工業(yè)現(xiàn)場中造成的困難。其 中數(shù)字濾波器具有穩(wěn)定性高、精度高、設(shè)計(jì)靈活、實(shí)現(xiàn)方便等許多突出的優(yōu)點(diǎn),避免了模擬濾波器所無法克服的電壓漂移、溫度漂移和噪聲等問題。使用以串行運(yùn)算為主的通用 DSP芯片實(shí)現(xiàn)要簡單,它是