【正文】
西安工程大學本科畢業(yè)設計 ( 論文 ) 摘 要 TMS320VC5416 處理器 因 具有 快速運算能力 , 使得它在 消費 類電子 產品的研制中發(fā)揮著越來越大的作用,但由于 TMS320VC5416 處理器是 RAM 型器件,掉電后不能保存任何用戶程序 ,所以在應用過程中一般對其 經行 自舉設計。但是在現(xiàn)有的自舉模塊 的 實現(xiàn)非常 繁瑣,并且不利于產品的更新與升級 。 因此, 本文 提出 一種便捷的 DS P 自舉 模塊 設計 。 該模塊 利用 C8051F340 單片機實現(xiàn) TMS 320VC 5416 的自舉方案,既節(jié)省了資源又降低了設計成本,并且提高了系統(tǒng)的穩(wěn)定性和集成度。 本系統(tǒng)包括上位機和下位機 , 上位機完 成用戶文件的從 .out 到 .dat 的格式轉換并通過 USB通信將更新代碼移植 ; 下位機 C8051F340 的片內 FLASH 用作 DSP 的片外存儲器, 并 通過 SPI 接口 實現(xiàn) 對 DSP 自舉 代碼 的 更新 。 該模塊能夠實現(xiàn)一鍵自舉功能。 實驗證明:本文設計的 一種 便捷 DSP 自舉模塊 是合理可行的。 本文首先介紹了所要用到的一些基本原理及相關設計工具;其次是系統(tǒng)的硬件設計及軟件設計部分;最后詳細介紹了系統(tǒng)的調試結果與分析部分。 關鍵詞 : DSP, TMS320VC5416, C8051F340, 自舉 , FLASH 西安工程大學本科畢業(yè)設計 ( 論文 ) ABSTRACT The TMS320VC5416 processor has the fast puting ability, so it plays an important role in the research of consuming electronics products. The reason why the processor can not save any user’s program when it is power off is that it is RAM type devices. So we monly use the bootstrapped method to solve it. But the existing bootstrapped method is plicated and difficult to update and upgrade, we present a simple bootstrapped DSP method in this paper. In the paper we use the C8051F340 MCU to achieve the bootstrapped method, which has a low cost and gets the stability and high integration level. The system includes upper and lower machine: PC of the upper machine transforms user’s files from .out to .dat and USB munication will update the code automatically。 lower machine C8051F340 chip Flash for DSP chip memory, and DSP through the SPI interface on the bootstrap code updates. This module can achieve the bootstrapped method in one key. Experimental results show that the design of this kind of convenient bootstrap DSP module is reasonable and feasible. This paper firstly introduces the basic principle and designing tool, then the hardware and software design of the system. We do a detailed analysis of debugging results in the end of paper. . KEY WORDS: DSP, TMS320VC5416, C8051F340, boot, FLASH 西安工程大學本科畢業(yè)設計 ( 論文 ) 目 錄 前 言 .............................................................................................................................. 1 第 1 章 基本原理與系統(tǒng)方案 .................................................................................. 2 基本原理 ................................................................................................................. 2 自舉的基本原理 ........................................................................................... 2 SPI 通信的基本原理 ...................................................................................... 3 系統(tǒng)方案設計 ......................................................................................................... 4 系統(tǒng)功能 ....................................................................................................... 4 系統(tǒng)方案 ....................................................................................................... 4 系統(tǒng)硬件構架 ......................................................................................... 5 器件介紹 ................................................................................................. 6 軟件環(huán)境 ............................................................................................... 10 系統(tǒng)測試 ............................................................................................... 12 論文章節(jié)安排 ....................................................................................................... 12 第 2 章 硬件設計 .................................................................................................... 13 系統(tǒng)硬件功能描述 ............................................................................................... 13 硬件總體設計 ....................................................................................................... 13 硬件詳細設計 ....................................................................................................... 14 單片機系統(tǒng)設計 .......................................................................................... 14 DSP 系統(tǒng)設計 .............................................................................................. 17 DSP 與單片機之間的互連設計 .................................................................. 20 系統(tǒng)硬件原理圖設計 ........................................................................................... 20 系統(tǒng)硬件 PCB 圖設計 .......................................................................................... 21 西安工程大學本科畢業(yè)設計 ( 論文 ) 第 3 章 軟件設計 .................................................................................................... 23 軟件設計的功能 ................................................................................................... 23 軟件總體設計 ....................................................................................................... 23 上位機 LABVIEW 總 體程序設計 ....................................................................... 23 下位機 C8051F340 總體程序設計 .................................................................... 24 軟件詳細設計 ........................................................................................................ 27 上位機 LABVIEW 詳細程序設計 ..................................................................... 27 上位機前面板詳細程序設計 ..................................................................... 27 上位機后面板詳細程序設計 ..................................................................... 28 下位機 C8051F340 詳細程序設計 .................................................................. 29 主程序設計 .............................................................................................. 29 初始化程序設計 ...................................................................................... 31 通信程序 設計 .......................................................................................... 32 自舉程序設計 .......