嵌入式VxWorks下的PCI總線設計與USB驅(qū)動開發(fā)
本文關(guān)鍵詞: 系統(tǒng)移植 PCI總線 USB總線 驅(qū)動 出處:《華中科技大學》2012年碩士論文 論文類型:學位論文
【摘要】:本文中所介紹的嵌入式系統(tǒng)選用的是摩托羅拉公司生產(chǎn)POWERPC系列處理器,該處理器具有運算速率快,外設功能多,指令運行效率高等特點,是一款非常強大的通信處理器。由于本系統(tǒng)需要運用到高速列車上進行數(shù)據(jù)傳輸,對處理器的運算能力提出了更高的要求,因此選擇了以POWERPC為核心來設計整個系統(tǒng)。 本文主要介紹了三個方面的工作,分別為:VxWorks操作系統(tǒng)移植,PCI總線設計,USB接口驅(qū)動設計。 本系統(tǒng)選用的是VxWorks操作系統(tǒng),VxWorks具有實時性好,可移植性高的特點。運用在鐵路通信上非常適合,可以保證通信的穩(wěn)定性和實時性。本文介紹了POWERPC處理器結(jié)構(gòu)和VxWorks操作系統(tǒng),并根據(jù)板級支持包的啟動流程詳細說明了VxWorks操作系統(tǒng)的移植工作。包括板級支持包的編寫、配置和調(diào)制原理和相關(guān)過程,主要是圍繞調(diào)試過程來闡述系統(tǒng)的啟動過程,過程中遇到了很多問題,并給出了相應的解決方案。 本文中介紹了PCI總線的相關(guān)標準和數(shù)據(jù)通信過程,以及整體的硬件、軟件設計以及相關(guān)的調(diào)試過程。根據(jù)處理器的外部接口和PCI總線設計的要求,選用了PLX9056這款芯片來完成PCI通信。PLX9056需要完成PCI主橋和PCI子設備的工作,其中一塊作為PCI主橋,其他的作為PCI設備。介紹了硬件設計原理以及電路。根據(jù)硬件設計,詳細說明了各個模塊的軟件設計。并對調(diào)試過程給出了詳細敘述。 介紹了USB接口,詳細敘述了USB的通信原理和與NANDFLASH、NORFLASH相結(jié)合的文件系統(tǒng)。根據(jù)設計需求選用了CH376來作為文件管理芯片,完成對U盤和SD卡中的數(shù)據(jù)訪問。結(jié)合NANDFLASH、NORFLASH,系統(tǒng)中設計了三者之間數(shù)據(jù)訪問的功能,,本文詳細介紹了軟件程序設計。 最后給出了對各個程序的調(diào)試原理,并對調(diào)試過程做出了說明。各個模塊的功能均通過調(diào)試,能工作穩(wěn)定正常。但依然有可待改善的地方,文中也寫出了部分設計思路。
[Abstract]:The embedded system introduced in this paper is a series of POWERPC processors produced by Motorola Company. The processor has the characteristics of fast computing speed, many peripheral functions, high command efficiency, etc. It is a very powerful communication processor. Because the system needs to be applied to the high-speed train for data transmission, it has higher requirements for the processor's computing ability, so it chooses POWERPC as the core to design the whole system. This paper mainly introduces three aspects of the work, namely, the design of USB interface driver for the PCI bus transplant of the VxWorks operating system. In this system, VxWorks operating system VxWorks has the characteristics of good real-time and high portability. It is suitable for railway communication and can guarantee the stability and real-time of communication. This paper introduces the POWERPC processor structure and VxWorks operating system. According to the startup process of board support package, the transplantation of VxWorks operating system is explained in detail, including the writing, configuration, modulation principle and related process of board support package, which mainly explains the startup process of the system around the debugging process. A lot of problems are encountered in the process, and the corresponding solutions are given. This paper introduces the related standards of PCI bus and the process of data communication, as well as the whole hardware, software design and related debugging process. According to the external interface of the processor and the requirements of the design of PCI bus, The PLX9056 chip is selected to complete the work of PCI communication. PLX9056. PCI main bridge and PCI sub-equipment are needed. One of them is used as PCI main bridge and the other as PCI device. The hardware design principle and circuit are introduced. The software design of each module is explained in detail, and the debugging process is described in detail. This paper introduces the USB interface, describes in detail the communication principle of USB and the file system combined with NAND flash flash. According to the design requirements, CH376 is selected as the file management chip. Data access to U disk and SD card is completed. In combination with NAND flash flash, the function of data access between the three systems is designed. The software programming is introduced in detail in this paper. Finally, the debugging principle of each program is given, and the debugging process is explained. The function of each module can work stably and normally through debugging, but there are still some things to be improved.
【學位授予單位】:華中科技大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP368.1;TP336
【參考文獻】
相關(guān)期刊論文 前10條
1 沈海斌,潘國振,何樂年,嚴曉浪;PCI Bridge智權(quán)芯核(IP)的設計研究[J];電路與系統(tǒng)學報;2003年06期
2 彭海蘭,張翌暉,蔣志龍;基于PCI總線的高精度數(shù)據(jù)采集系統(tǒng)[J];電網(wǎng)技術(shù);2004年04期
3 晁建剛 ,魏安陽 ,邱淑范;通用串行總線(USB)設備的驅(qū)動[J];電子技術(shù)應用;2001年05期
4 汪麗云;徐曉蘇;;基于VxWorks的PCI設備驅(qū)動程序開發(fā)[J];艦船電子工程;2006年01期
5 李立志,張朝陽,陳文正;實時操作系統(tǒng)VxWorks設備驅(qū)動程序的編寫[J];計算機工程;2003年04期
6 孫庚,蔣國強;USB塊傳輸設備的設計與實現(xiàn)[J];計算機工程;2003年06期
7 趙錫凱,楊申,戴冠中;PCI總線擴展技術(shù)研究[J];計算機工程與科學;1997年02期
8 張立倩,白鳳山;基于PCI總線的數(shù)據(jù)傳輸系統(tǒng)設計[J];內(nèi)蒙古大學學報(自然科學版);2005年01期
9 馬玉英,馬義德;PCI總線傳輸?shù)慕K止方式探析[J];青海大學學報(自然科學版);2005年04期
10 任秀麗,馬春熠;Vx Works操作系統(tǒng)中PCI總線驅(qū)動程序的設計與實現(xiàn)[J];沈陽師范學院學報(自然科學版);2001年03期
本文編號:1530244
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1530244.html