簡易檢索 / 詳目顯示

研究生: 李佳宏
Chia-Hung Lee
論文名稱: USB-Based運動控制介面之研製
Implementation of USB-Based Motion Control Interface
指導教授: 莊華益
Hua-Yi Chuang
口試委員: 蔡明忠
Ming-Jong Tsai
吳忠霖
John-Ling Wu
學位類別: 碩士
Master
系所名稱: 工程學院 - 自動化及控制研究所
Graduate Institute of Automation and Control
論文出版年: 2010
畢業學年度: 98
語文別: 中文
論文頁數: 108
中文關鍵詞: 運動控制通用序列匯流排現場可規劃邏輯閘陣列硬體描述語言即時性控制
外文關鍵詞: motion control, USB, FPGA, VHDL, real-time control
相關次數: 點閱:353下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 運動控制器和電腦連接的介面一直是以ISA或是PCI BUS為主,因此,安裝時需打開外殼才能安裝。另外,這兩種介面也愈來愈少用於主機板上,而且筆記型電腦不能使用。然而,使用通用序列匯流排USB (Universal Serial Bus)介面即可改善上述的缺點。因為大部份的電腦都有此介面且具有隨插即用的特性,增加使用上的便利性及普及性。因此,開發USB-based運動控制介面為本論文研究的目的。
    研究項目包括USB控制IC韌體設計,現場可規劃邏輯閘陣列FPGA(Field Programmable Gate Array) IC內部的硬體描述語言VHDL(Very High Speed Integrated Circuit Hardware Description Language)程式設計,類比-數位轉換器(ADC)與數位-類比轉換器(DAC)電路與印刷電路板設計,以及運動控制介面的驗證。還完成設計12位元、轉換頻率為20kHz的ADC與DAC各一組,並且進行即時性控制驗證。
    實驗結果包括USB介面和外部的USB存取裝置做資料存取的功能。也完成可以同時控制三軸二相式步進馬達,以半步驅動方式進行正反轉控制及轉速檢測功能驗證。同時也完成可以同時控制六軸PWM驅動訊號之正反轉控制及轉速檢測功能驗證。


    A motion controller and computer interface is commonly connected with an ISA or PCI BUS. Therefore, it needs to open the computer case to install the devices. Both two interfaces are becoming increasingly less for a motherboard and not available for a notebook computer. However, an USB (Universal Serial Bus) interface can improve the shortcomings. Because most computers have such an interface which has a plug & play feature, it become convenient and popular for users. Therefore, the purpose of this study is to develop an USB-based control interface for motion control applications.
    The study topics include USB control IC firmware design, FPGA (Field Programmable Gate Array) IC's internal VHDL (Very High Speed Integrated Circuit Hardware Description Language) programming, analog to digital converter (ADC) and digital to analog converter (DAC) circuit design, printed circuit board design and verification of the motion control interfaces. Both 12-bit ADC and DAC with conversion frequency of 20 kHz were implemented. A real-time control capability is also tested.
    The experimental results include the data exchange of a computer and an USB accessible device through the USB interface. Three axes simultaneous control for a two-phase stepper motor with half step driving mode is also examined for reversible control and speed detection functions. Furthermore, a six axes simultaneous control with PWM driving signals is verified for both reversible control and speed detection functions.

    中文摘要 英文摘要 誌謝 目錄 圖目錄 表目錄 第一章 緒論 1.1 研究動機與目的 1.2 研究方法 1.3 論文架構 第二章 系統硬體架構與介紹 2.1 系統架構方塊圖 2.2 USB2.0 Bridge Board架構 2.2.1 硬體架構方塊圖 2.2.2 CY7C68013A- 56PVXC IC介紹 2.3 FPGA Board 架構 2.3.1 硬體架構方塊圖 2.3.2 XC2S200 PQ208 IC介紹 2.4 ADC/DAC Board架構 2.4.1硬體架構方塊圖 2.4.2 LM111比較器IC介紹與應用 2.5 訊號輸出入轉板 2.6 USB運動控制介面規劃圖 第三章 AD與DA轉換電路板設計 3.1 ADC與DAC的特性 3.2 AD轉換原理 3.3 DA轉換原理 3.4 FPGA Board與ADC/DAC Board的介面連接 第四章 FPGA IC VHDL程式設計 4.1 VHDL硬體描述語言簡介 4.2 FPGA IC內部功能架構 4.2.1 主程式設計 4.2.2 USB2.0 Slave FIFO控制電路程式設計 4.2.3 ADC/DAC控制電路程式設計 4.2.4 Step Motor控制電路程式設計 4.2.5 PWM控制電路程式設計 4.3 應用電路設計 4.3.1 除頻電路 4.3.1.1 自由計數器 4.3.1.2 計數除頻法 4.3.2 數位濾波電路 4.3.3 Slave FIFO同步讀取控制電路 4.3.4 Slave FIFO同步寫入控制電路 4.3.5 12位元AD轉換控制電路 4.3.6 步進馬達驅動訊號產生電路 4.3.7 PWM波形控制電路 第五章 人機操作介面應用程式與應用 5.1 Borland C++ Builder 軟體簡介 5.2 人機操作介面功能需求 5.3 人機介面視窗操作與功能介紹 5.3.1 步進馬達的控制訊號操作視窗介紹 5.3.2 PWM的控制訊號操作視窗介紹 5.3.3 輸入訊號放大倍率調整 第六章 運動控制介面的功能驗證 6.1 步進馬達的轉速控制與量測 6.1.1 驗證的目的 6.1.2 速度控制與量測 6.1.2.1 馬達速度控制 6.1.2.2 轉速量測 6.2 輸入輸出訊號轉換與量測 6.2.1 驗證的目的 6.2.2 輸入與輸出訊號的傳輸流程 6.2.3 訊號傳輸的耗時量測 第七章 結論與未來展望 7.1 結論 7.2 未來展望 參考文獻 附錄A USB2.0 Slave FIFO模式簡介 A-1 Slave FIFO硬體架構 A-2 訊號功能介紹 A-3 程式的部份原始碼 A-4 暫存器設定與功能描述 附錄B 接腳配置與電器規格 B-1 CY7C68013A-56PVXC SSOP接腳配置圖 B-2 LM111 IC的電器規格 B-3 FPGA IC腳位定義 作者簡介

    [1] USB官方網站,http://www.usb.org/home,July 2010
    [2] 許永和,“USB2.0 高速週邊裝置設計之實務應用”,台北市,全華,民95年
    [3] 王成儒、李英偉,許永和校訂,“USB2.0原理與研發技術” ,台北市,全華,民95年
    [4] 郭士秋,“USB 2.0 理論與規範”,台北市,儒林,民94年
    [5] 菙勝源,“單晶片MCS-51與C語言入門實習”,台北市,宏友,民91年
    [6] Cypress Semiconductor corporation “CY7C68013A/CY7C68014A/ CY7C68015A/ CY7C68016A EZ-USB FX2LPTM USB Microcontroller High-Speed USB Peripheral Controller”, San Jose, CA, U.S.A., Cypress, 2008.
    [7] 林育廷,“FPGA電路開發日誌”,台科大機械系電機控制實驗室,民90年
    [8] Xilinx, “Spartan-II 2.5v FPGA Family: Introduction and ordering Information”,Xilinx.com.tw,2003.
    [9] 陳丁再編譯,“A/D轉換器入門”,台北市,全華,民84年
    [10] 黃煌翔,“介面技術與週邊設備” ,台北市,全華,民92年
    [11] 王俞允,“PADS PCB高速電路設計.電路板篇”,台北市,碁峰資訊,民96年
    [12] National Semiconductor corporation “LM111/LM211/LM311 Voltage Comparator”, Arlington, TX, U.S.A., National Semiconductor, 1995.
    [13] 陳東敏等編譯,“數位訊號處理導論”,台北市,全華,民88年
    [14] 唐佩忠,“VHDL與數位邏輯設計”,台北市,高立,民88年
    [15] 林灶生、劉紹漢,“VHDL晶片設計:使用ISE、MODELSIM發展系統”,台北市,全華,民93年
    [16] 余明興、吳明哲、黃世陽、黃豊隆、紀旺忪、潘能煌,”Borland
    C++ Builder 6程式設計經典”,台北市,文魁資訊,民93年

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