簡易檢索 / 詳目顯示

研究生: 何顯興
Hsien-hsing Ho
論文名稱: 免撰寫驅動程式之USB初學者開發平台
USB Development Platform without Writing Driver for Beginners
指導教授: 王乃堅
Nai-Jian Wang
口試委員: 姚立德
none
鍾順平
none
姚嘉瑜
none
學位類別: 碩士
Master
系所名稱: 電資學院 - 電機工程系
Department of Electrical Engineering
論文出版年: 2009
畢業學年度: 97
語文別: 中文
論文頁數: 66
中文關鍵詞: 通用序列匯流排人機介面裝置大量儲存裝置驅動程式數位像框
外文關鍵詞: Universal Serial Bus, Human Interface Device, Mass Storage Device, Driver Software, Digital Picture Frame
相關次數: 點閱:270下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 在USB(Universal Serial Bus)產品的標準軟體開發要求裏,涵括了四大要求項目,分別為裝置端的USB協定與裝置韌體和功能應用韌體,主機端的驅動程式和應用程式。本文提出讓初學者只寫主機端的應用程式和裝置端的應用韌體部分,即可完成一個客製化USB裝置軟體開發的一個概念。

    USB的四大資料傳輸類型中,常見的鍵盤滑鼠等傳輸小量狀態資料的裝置屬於中斷傳輸,大拇哥隨身碟等傳輸大量資料屬於巨量傳輸,而且這兩類裝置應用於電腦上是不用再另外撰寫驅動程式。所以本文將此兩類的USB協定與裝置韌體加以修改,並合而為一個單一裝置韌體。如此初學者使用本韌體架構,即可運用在各類的USB傳輸應用上,且不需再親自撰寫或修改艱深的裝置韌體和驅動程式。

    最後本文用了一個手機LCD模組(Liquid Crystal Display Module)與本平台的I/O埠(Input/Output Port)連接,裝置端增加了控制LCD模組的應用韌體,與主機端的抓取照片和傳輸的應用程式,就快速的完成了一個USB數位像框產品的開發。


    There are four main requirements in the standard software development requirements of USB product. The first is the firmware of USB protocol for device side, the second is the firmware of device function for device side, the third is the driver software for host side, and the fourth is the application software for host side. We propose a solution that the novice writes only the firmware of device function and the application software, and then a USB device software development is completed.

    In the four types of USB data transfer, the Keyboard/Mouse device transfer a small amount of data that belongs to interrupt transfer, and the pen flash driver transfer a large amount of data that belongs to bulk transfer. These two types of devices on the computer are no longer needed to write the driver software. Therefore, we can modify these two types of USB protocol and device firmware, and merge them into a single device firmware. The novice using our firmware architecture can implement the various types of USB application, and do not need to write or modify personally difficult device firmware and driver software.

    Finally, we use a mobile phone LCD module to connect with the I/O port of our platform, add the control LCD module application firmware for device side, and write an application software that load and transfer photos. Then, it quickly completes a USB digital picture frame product development.

    摘要……………………………………………………………………………………I ABSTRACT…………………………………………………………………………… II 誌謝…………………………………………………………………………………III 目錄………………………………………………………………………………… IV 圖表索引……………………………………………………………………………VII 第一章 緒論………………………………………………………………………… 1 1.1 前言……………………………………………………………………………1 1.2 研究動機………………………………………………………………………1 1.3論文架構……………………………………………………………………… 2 第二章 USB理論 …………………………………………………………………… 3 2.1 簡介……………………………………………………………………………3 2.2 USB特性與優點……………………………………………………………… 3 2.3 USB匯流排結構……………………………………………………………… 4 2.4 USB機械與電氣環境………………………………………………………… 6 2.5 USB通信協定………………………………………………………………… 9 2.6 USB描述元……………………………………………………………………11 2.7 USB裝置類別…………………………………………………………………15 2.8 Human Interface Device, HID……………………………………………16 2.8.1 HID簡介…………………………………………………………………16 2.8.2 HID主要特性……………………………………………………………17 2.8.3 HID韌體要求……………………………………………………………17 2.9 Mass Storage Device, MSD………………………………………………18 2.9.1 MSD簡介…………………………………………………………………18 2.9.2 Bulk-Only Transport協定……………………………………………19 2.9.3 MSD韌體要求……………………………………………………………21 第三章 硬體組件和軟體開發工具簡介……………………………………………23 3.1 USB IC簡介………………………………………………………………… 23 3.1.1 EZ-USB FX2特性與優點……………………………………………… 23 3.1.2 EZ-USB FX2 硬體架構………………………………………………… 24 3.1.3 序列介面引擎………………………………………………………… 25 3.1.4 端點緩衝區…………………………………………………………… 26 3.1.5 重新列舉……………………………………………………………… 27 3.1.6 腳位配置……………………………………………………………… 28 3.2 軟體工具簡介……………………………………………………………… 29 3.2.1 Keil uVision2…………………………………………………………29 3.2.2 EZ-USB Control Panel…………………………………………………29 3.2.3 Bus Hound………………………………………………………………30 3.2.4 USB View…………………………………………………………………31 3.2.5 HID Descriptor Tool………………………………………………… 32 3.3 硬體發展工具EZ-USB FX2核心單板簡介………………………………… 33 3.4 FX2的韌體架構………………………………………………………………35 第四章 實作…………………………………………………………………………39 4.1 本文裝置之系統架構……………………………………………………… 39 4.2 本文裝置之硬體架構……………………………………………………… 40 4.3 本文裝置之韌體架構……………………………………………………… 40 4.3.1 HID韌體…………………………………………………………………41 4.3.2 MSD韌體…………………………………………………………………44 4.3.3 Composite Device韌體……………………………………………… 49 4.4 應用程式架構……………………………………………………………… 50 第五章 分析與實際應用……………………………………………………………53 5.1 結果分析…………………………………………………………………… 53 5.2 數位像框應用……………………………………………………………… 56 5.2.1 TFT-LCD和手機螢幕模組簡介…………………………………………56 5.2.2 數位像框硬體架構…………………………………………………… 58 5.2.3 數位像框韌體和應用軟體架構……………………………………… 58 5.2.4 數位像框成品………………………………………………………… 62 第六章 結論與未來展望……………………………………………………………64 6.1 結論………………………………………………………………………… 64 6.2 未來展望…………………………………………………………………… 64 參考文獻…………………………………………………………………………… 65 作者簡介…………………………………………………………………………… 66

    [1] Universal Serial Bus Revision 2.0 specification, http://www.usb.org, USB Implementers Forum, Inc. pp.16-199 (2008)
    [2] 陳永和,USB2.0高速週邊裝置設計之實務應用,全華科技圖書股份有限公司,台北,第14.1-14.42頁 (2006)。
    [3] 陳振榮,USB 系統架構,碁峰資訊股份有限公司,台北,第59-100頁 (2001)。
    [4] USB DIY講座,http://chamberplus.myweb.hinet.net,ChamberPlus System Level Studio. (2008)。
    [5] USB 基本概念,http://www.usblab.idv.tw,USB實驗室 (2008)。
    [6] 陳彥光,「以DSP為控制單元具USB2.0傳輸介面之UPS」,碩士論文,國立中山大學,高雄 (2003)。
    [7] 黃名斌,「USB介面之模組化腦波記錄儀」,碩士論文,中原大學,桃園(2003)。
    [8] 錢俊宏,「藉由USB介面建立數位電視接收系統」,碩士論文,國立中山大學,高雄 (2006)。
    [9] CY7C68013A Specification, http://www.cypress.com, Cypress Semiconductor Corporation. pp.1-14 (2005)
    [10] 溫植燁,8051單晶片實務與應用--使用Keil C,文魁資訊股份有限公司,台北,第1.2-1.22頁 (2002)。
    [11] USB Mass Storage Class Bulk-Only Transport, http://www.usb.org, USB Implementers Forum, Inc. pp.7-16 (1999)
    [12] Device Class Definition for HID 1.11, http://www.usb.org, USB Implementers Forum, Inc. pp.4-20 (2001)
    [13] SCSI Command sets, http://en.wikipedia.org, Wikimedia Foundation, Inc. (2001)
    [14] 林雯郁、陳美靜,Windows驅動程式設計指南 第二版,文魁資訊股份有限公司,台北,第764-803頁 (2004)。
    [15] MSDN, http://msdn.microsoft.com/en-us/default.aspx, Microsoft Corporation. (2009)
    [16] TFT-LCD簡介,http://www.cmo.com.tw,奇美電子股份有限公司 (2005)。
    [17] HX8310-A Data Sheet,http://www.himax.com.tw,奇景光電股份有限公司,第21-51頁 (2005)。
    [17] 李勁、鄭浩,精通C++Builder5.0,文魁資訊股份有限公司,台北,第27.1-27.23頁 (2001)。

    無法下載圖示 全文公開日期 2014/07/21 (校內網路)
    全文公開日期 本全文未授權公開 (校外網路)
    全文公開日期 本全文未授權公開 (國家圖書館:臺灣博碩士論文系統)
    QR CODE