【正文】
西南科技大學(xué)畢業(yè)設(shè)計(論文)題目名稱:基于 DSP 和以太網(wǎng)的數(shù)據(jù)采集系統(tǒng)軟件設(shè)計西 南 科 技 大 學(xué) 教 務(wù) 處 制西南科技大學(xué)本科生畢業(yè)論文 I基于 DSP 和以太網(wǎng)的數(shù)據(jù)采集系統(tǒng)軟件設(shè)計摘要:充分利用 DSP 的優(yōu)良性能,將計算機網(wǎng)絡(luò)技術(shù)引入以 DSP 為核心的嵌入式系統(tǒng),已成為一個重要的研究課題。本文設(shè)計了一種基于 TI 公司的 DSP 芯片 TMS320VC5509A 的以太網(wǎng)終端系統(tǒng)方案并給出了該方案的具體設(shè)計實現(xiàn)。本論文對 TCP/IP 協(xié)議進行了分析,論述了基于DSP 芯片和網(wǎng)卡接口控制芯片的以太網(wǎng)設(shè)計,討論了在 VB 開發(fā)環(huán)境下 PC 機與終端系統(tǒng)的數(shù)據(jù)交互問題并編寫了實際的 PC 機控制軟件。同時,討論了在 DSP 開發(fā)環(huán)境下的主程序設(shè)計和 C 語言開發(fā)程序需要編寫的輔助文件,包括頭文件、中斷向量文件和命令文件。最后,對設(shè)計軟件進行了測試。驗證了本課題研究的基于 DSP 和以太網(wǎng)的數(shù)據(jù)采集系統(tǒng)可以實現(xiàn)數(shù)據(jù)的以太網(wǎng)傳輸。關(guān)鍵詞:DSP;以太網(wǎng);VB;TCP/IP ;AD 轉(zhuǎn)換西南科技大學(xué)本科生畢業(yè)論文 IIThe Software Design of Data Sampling System Based on DSP and EtherAbstract:Based on the excellent performance of DSP, this paper introduces the embedded system cored with DSP into puter work. This application system bees a significant research problem.In this paper, we design an Ether terminal system based on the TI Company’s DSP of TMS320VC5509 and present the scheme39。s softwarerealization in detail. TCP/IP is studied and analyzed firstly and chosen while the real condition is considered. And then the Ether is designed with DSP chip and work interface controller (NIC) chip. We discuss the PC39。s data exchange with the Ether terminal in VB development environment and pile PC software to realization controllable program. Then, we discuss the main program and the initialized program is designed in DSP development environment. At the same time, the auxiliary files are discussed which is demanded when the protocol program is designed with C language in DSP development environment, including header file and interrupt vectors file and mand file. In the end, the designed program is tested. The result indicates data sampling system that was researched in my subject could realize the transmission of the data through Ether based on DSP and Ether.Key words: DSP, Ether, VB, TCP/IP, AD Transition 西南科技大學(xué)本科生畢業(yè)論文 III目 錄第 1 章 緒論???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????1 概述 ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????1 本課題研究的背景及依據(jù)?????????????????????????????????????????????????????????????????????????????????1 本課題研究的意義?????????????????????????????????????????????????????????????????????????????????????????????1 本課題研究的主要內(nèi)容?????????????????????????????????????????????????????????????????????????????????????2 本課題的關(guān)鍵問題及解決方案???????????????????????????????????????????????????????????????????????????????????2 本課題的關(guān)鍵問題?????????????????????????????????????????????????????????????????????????????????????????????2 解決方案?????????????????????????????????????????????????????????????????????????????????????????????????????????????2 國內(nèi)外研究現(xiàn)狀及趨勢???????????????????????????????????????????????????????????????????????????????????????????????3 本章小結(jié)???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????4第 2 章 網(wǎng)絡(luò)協(xié)議概述及規(guī)范???????????????????????????????????????????????????????????????????????????????????????????????????5 概述???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????5 引言?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????5 網(wǎng)絡(luò)協(xié)議的分層?????????????????????????????????????????????????????????????????????????????????????????????????5 協(xié)議規(guī)范???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????6 地址解析協(xié)議(ARP) ???????????????????????????????????????????????????????????????????????????????????????????6 網(wǎng)際協(xié)議(IP) ??????????????????????????????????????????????????????????????????????????????????????????????????????6 互聯(lián)網(wǎng)控制報文協(xié)議(ICMP) ????????????????????????????????????????????????????????????????????????????8 用戶數(shù)據(jù)報協(xié)議(UDP) ??????????????????????????????????????????????????????????????????????????????????????9 本章小結(jié)?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????10第 3 章 系統(tǒng)硬件實現(xiàn)?????????????????????????????????????????????????????????????????????????????????????????????????????????????11 硬件介紹?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????11 硬件設(shè)計?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????12 硬件設(shè)計框圖???????????????????????????????????????????????????????????????????????????????????????????????????12 硬件選擇和實現(xiàn)???????????????????????????????????????????????????????????????????????????????????????????????13 本章小結(jié)?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????15第 4 章 系統(tǒng)軟件實現(xiàn)?????????????????????????????????????????????????????????????????????????????????????????????????????????????16西南科技大學(xué)本科生畢業(yè)論文 IV 系統(tǒng)軟件開發(fā)環(huán)境(CCS ) ?????????????????????????????????????????????????????????????????????????????????????16 VB 的通信程序設(shè)計 ???????????????????????????????????????????????????????????????????????????????????????????????????16 VB 的 Winsock 控件簡介 ?????????????????????????????????????????????????????????????????????????????????16 VB 編程所用 Winsock 控件的屬性 ?????????????????????????????????????????????????????????????????17 VB 編程所用 Winsock 控件的部分方法和事件 ?????????????????????????????????????????????17 程序需要解決的主要問題???????????????????????????????????????????????????????????????????????????????18 通信程序的主要代碼及作用???????????????????????????????????????????????????????????????????????????19 RTL8019AS 的編程 ????????????????????????????????????????????????????????????????????????????????????????????????????20 RTL8019AS 的編程所用資源 ??????????????????????????????????????????????????????????????????????????20 RTL8019AS 的初始化和編程 ???????????????????????????????????????????????????????