簡易檢索 / 詳目顯示

研究生: 黃南溢
Huang, Nan-Yi
論文名稱: 通用串列匯流排控制器硬體設計之實現與應用
Hardware Implementation and Application of Universal Serial Bus Controller
指導教授: 廖德祿
Liao, The-Lu
學位類別: 碩士
Master
系所名稱: 工學院 - 工程科學系
Department of Engineering Science
論文出版年: 2004
畢業學年度: 92
語文別: 中文
論文頁數: 77
中文關鍵詞: 通用串列匯流排
外文關鍵詞: USB
相關次數: 點閱:93下載:2
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  •   萬用串列匯流排(Universal Serial Bus, USB)裝置是目前電腦配備的標準介面之一,在傳統的電腦介面中有很大的突破,它帶來了實用性和方便性,但也因為USB裝置局限在電腦系統上,這是美中不足的地方,本篇論文將探討,讓USB裝置在離開電腦系統時也可以做資料的傳輸動作,並說明USB的理論與實際設計的USB控制器來驗証。
      本篇論文中,使用Xilinx公司所提供的FPGA發展板,做為程式設計驗証的環境,並以市面上的產品“隨身碟”做為應用,以FPGA、隨身碟和MP3 Decode,做為一個MP3即時撥放系統。

      Nowadays, Universal Serial Bus (USB) is one of the essential interfaces in computers. It brings practicality and convenience. However, there is a shortcoming that USB must be confined to the computer systems. This thesis will introduce the USB theory and implement the USB host controller, which can transfer the data without the computer system.
      In this thesis, we design a FPGA-based development board to verify the implementation of USB host controller. As an application system, the USB host controller (FPGA) will read the data from the Flash disk and then transfer it to the MP3 Decoder to form a MP3 real-time player system. The experimental results verify the effectiveness of the proposed MP3 play system.

    目 錄 摘     要..............................................................I 英 文 摘 要..............................................................II 致     謝..............................................................III 目   錄..............................................................IV 圖  目  錄..............................................................VII 表  目  錄..............................................................X Chapter 1萬用串列匯流排USB系統..............................................1 1-1:動機...................................................................1 1-2:USB簡介................................................................1 1-3:USB系統溝通流程........................................................1 1-4:USB實体裝置聯結........................................................2 1-5:USB連接狀況............................................................3 Chapter 2 USB protocol layer................................................5 2-1:USB 通訊協定...........................................................5 2-2:封包格式...............................................................6 2-2-2:封包辨識(Packet Identifier PID)..................................7 2-2-3:資料封包資訊.......................................................8 2-2-4:CRC (Cyclic Redundancy Checking)...................................9 2-2-5:EOP封包............................................................11 2-3:傳輸型態...............................................................11 2-3-1:即時型傳輸(Isochronous Transfers)..................................11 2-3-2:中斷型傳輸(Interrupt Transfers)....................................12 2-3-3:控制型傳輸(Control Transfers)......................................13 2-3-4:巨量型傳輸(Bulk Transfers).........................................14 2-4:NRZI編碼與解碼(Non-Return to Zero Inverted Encode And Decode)..........15 2-5:位元填塞(Bit Stuffing).................................................16 2-6:裝置要求(Device Request)...............................................16 2-7:標準裝置要求(Standard Device Request)..................................17 2-7-1:設定與清除特色(Set/Clear Feature)....................................20 2-7-2:設定與取得配置(Set/Get Configuration)................................21 2-7-3:設定與取取得描述元(Set/Get Descriptor).............................. 22 2-7-4:設定位址(Set address)............................................... 22 2-7-5:設定配置(Set Configuration)......................................... 23 2-8:描述元( Descriptor)................................................... 23 2-8-1:裝置描述元(Device Descriptor)........................................23 2-8-2:配置描述元(Configuration Descriptor).................................25 2-8-3:介面描述元(Interface Descriptor).....................................26 2-8-4:端點描述元(Endpoint Descriptor)..................................... 27 Chapter 3 USB 主機與裝置...................................................29 3-1:Host controller........................................................29 3-2:主機設定程序(Host configuration process)...............................29 3-2-1:Address 0 和 Endpoint 0..............................................29 3-2-2:設定裝置位址(Assigns a unique device address).......................30 3-2-3:使用新的位址取得裝置描述元...........................................31 3-2-4:使用新的位址取得配置描述元(Configuration descriptor).................32 3-2-5:設定完成.............................................................32 3-3:錯誤復原(Error recovery)...............................................32 3-3-1:EOP Error............................................................32 3-3-2:封包錯誤(Packet Error)...............................................33 3-3-3:逾時偵測(Time-Out)...................................................34 3-3-4:Data Toggle 錯誤(Data Toggle Error)..................................34 Chapter 4 磁碟邏輯結構......................................................42 4-1:概述...................................................................42 4-2:MBR的結構..............................................................43 4-3: DBR的結構..............................................................47 4-4: FAT的結構.............................................................50 4-5:Directory的結構........................................................51 4-6:總結...................................................................53 Chapter5 USB主機控制器設計..................................................55 5-1:概述...................................................................55 5-2:SIE (Serial Interface Engine)..........................................56 5-2-1:P2S (Parallel to Serial)Block........................................58 5-2-2:CRC5/16 運算.........................................................58 5-2-3:MUX Block............................................................59 5-2-4:Bit-Stuffing Block...................................................60 5-2-5:NRZI Encode Block....................................................61 5-2-6:NRZI Decode Block....................................................61 5-2-7:Re-Bit Stuffing Block................................................62 5-2-8:CRC16 CHECK Block....................................................63 5-2-9:PID CHECK Block.....................................................63 5-2-10:S2P (Serial to Parallel)Block.................................64 5-3:Controller Block............................................65 5-3-1:Connect and reconnect Check Block....................................66 5-3-2:USB Device Type Check Block..........................................67 5-3-3:USB Request ROM Block................................................68 5-3-4:Request and status state.............................................68 5-3-5:Timer Block..........................................................69 5-3-6:Data-Toggle Check Block..............................................70 5-3-7:CRC_ERR Check Block..................................................71 5-3-8:MP3 Decode interface.................................................72 5-4:PDIUSBP11 A Transceiver...............................................73 5-5:IC2201 MP3 Decode Controller...........................................76 Chapter 6 結論與未來發展....................................................77 參 考 文 獻..........................................78

    [1] http://www.usb.org。
    [2] ”Universal serial bus specification Revision1.1” September 23,1998.
    [3] Universal serial bus Mass storage class Bulk Only Transport Revision1.0 September 31, 1999.
    [4] Universal serial bus Mass storage class UFI command specification Revision1.0 December 14 ,1998.
    [5] Don Anderson ; 陳振榮編譯 / USB系統架構 / 碁峰資訊發行(1999)。
    [6] 許永和編著 / 微處理機-USB週邊裝置設計與應用 / 長高股份有限公司(2002)。
    [7] 黃英叡.,黃稚存,張銓淵,江文啓 / VERILOG硬體描述語言/全華科技圖書股份有限公司(2002)。
    [8] SGS-THOMSON MICROELECTRONICS / MK 5025 NRZ TO NRZI CONVERSION.
    [9] PHILIPS-PDIUSBP11A universal serial bus TRANSCERIVER DATA SHEET.
    [10] BSI-BS62LV256PS CMOS SRAM DATA SHEET。
    [11] 林東和編著 / 硬碟救護DIY /全欣資訊(1995)。
    [12] ICSI-IC2201 DATA SHEET。
    [13] http://www2.rad.com/networks/1994/err_con/crc_how.htm (ABOUT CRC)

    下載圖示 校內:2005-07-09公開
    校外:2005-07-09公開
    QR CODE