簡易檢索 / 詳目顯示

研究生: 何信良
Ho, Shin-Liang
論文名稱: 符合一般電腦需求的觸控面版
A General Purpose Touch Panel for Computers
指導教授: 洪茂峰
Houng, Mau-Phon
王永和
Wang, Yeong-Her
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 微電子工程研究所
Institute of Microelectronics
論文出版年: 2003
畢業學年度: 91
語文別: 英文
論文頁數: 83
中文關鍵詞: USB界面電阻式的觸控面版四線式
外文關鍵詞: USB interface, 4-wire resistance touch panel
相關次數: 點閱:88下載:3
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 一組觸控面版包涵三個主要的部份:
    (a) 感應器
    (b) 控制器
    (c) 軟體

    這篇論文的主要目標是完成一組觸控面版,我們將著重在控制器及軟體的部份,至於面版(感應器)的部份,我們將使用奇菱科技的產品。

    我們的觸控面版的主要規格是:
    (a) 四線式,電阻式的觸控面版
    (b) USB界面

    由於我們的界面是USB,所以我們使用Cypress半導體公司的產品: CYDB Debugger/CY3654 Development Kit去模擬USB微控制器。

    因為從觸控面版所得的訊號是類比的,因此必須使用類比數位轉換器將類比的訊號轉換成數位的訊號。我們是使用ADC0804這個類比數位轉換器。
    觸控面版需要開關去切換被激發的方向。在這個部份,我們選擇PC817系列以及BJT去扮演開關的角色。

    關於軟體,我們使用Visual Basic去撰寫我們的程式。

    A set of touch panel consists three main parts:
    (a) Sensor
    (b) Controller
    (c) Software

    The object of this thesis is to realize a set of touch panel. And we will focus on the parts of the controller and the software, as for the part of panel (sensor), we use the product of CHILIN TECHNOLOGY CO.,LTD.

    The main specifications of our touch panel are:
    (a) 4-wire resistance touch panel
    (b) USB interface

    Because the interface of our device is USB, we use the Cypress Semiconductor Corporation’s production:
    CYDB Debugger/CY3654 Development Kit
    to emulate the USB microcontrollers.

    The signals got from the touch panel are analog, so we must use an ADC to convert the analog signals to digital signals. The ADC we use is ADC0804.

    The touch panel needs switches to switch the energized direction. On this part, we choose PC817 series and BJTs to play the role of switches.

    In regard to the software we select Visual Basic to write our program.

    Abstract…………………………………………………………………………………… I Contents…………………………………………………………………………………… V List of Tables……………………………………………………………………………IX List of Figures……………………………………………………………………………X Contents Chapter 1 Introduction………………………………………………………………… 1 1…1 Introduction…………………………………………………………………………1 1…2 Motivation……………………………………………………………………………1 1…3 Design Goals…………………………………………………………………………1 1…4 Overview of This Thesis………………………………………………………… 2 CHAPTER 2 Introductions to Touch Panels……………………………………………4 2…1 General Introduction………………………………………………………………4 2…2 Types of Touch Panel………………………………………………………………5 2…2…1 Analog Resistive……………………………………………………………… 5 2…2…1-1 About Structure………………………………………………………………5 2…2…1-2 About Operation………………………………………………………………6 2…2…2 Capacitive……………………………………………………………………… 6 2…2…2-1 About Structure………………………………………………………………6 2…2…2-2 About Operation………………………………………………………………6 2…2…3 Scanning Infrared (IR)……………………………………………………… 7 2…2…3-1 About Structure………………………………………………………………7 2…2…3-2 About Operation………………………………………………………………7 2…2…4 Surface Acoustic Wave (SAW)…………………………………………………8 2…2…4-1 About Structure………………………………………………………………8 2…2…4-2 About Operation………………………………………………………………9 2…3 Advantages and Disadvantages of Touch Panels………………………………9 2…3…1 Analog Resistive……………………………………………………………… 9 2…3…2 Capacitive………………………………………………………………………10 2…3…3 Scanning Infrared (IR)………………………………………………………10 2…3…4 Surface Acoustic Wave (SAW)……………………………………………… 11 2…3…5 Comparison of Touch Panels Listing Above………………………………11 2…4 Market Application……………………………………………………………… 12 2…4…1 Application Field…………………………………………………………… 12 2…4…2 Application Examples…………………………………………………………12 2…5 Summary………………………………………………………………………………13 Chapter 3 A Brief Introduction to USB ……………………………………………14 3…0 About USB……………………………………………………………………………14 3…1 USB Feature…………………………………………………………………………14 3…2 The Players…………………………………………………………………………15 3…3 Bus Topology……………………………………………………………………… 15 3…3…1 Physical Bus Topology……………………………………………………… 15 3…3…2 Logical Bus Topology…………………………………………………………16 3…4 Keyed Connector Protocol……………………………………………………… 17 3…5 USB Cable……………………………………………………………………………17 3…6 Speed…………………………………………………………………………………18 3…6…1 Speed of USB Devices…………………………………………………………18 3…6…2 Device Speed Identification……………………………………………… 19 3…7 Data Encoding/Decoding………………………………………………………… 20 3…7…1 Data Encoding/Decoding………………………………………………………20 3…7…2 Bit Stuffing……………………………………………………………………20 3…7…3 Data Encoding Sequence………………………………………………………21 3…8 Data Flow Types……………………………………………………………………21 3…9 Configuration Process……………………………………………………………22 3…10 Descriptors……………………………………………………………………… 22 3…11 USB Device Requests…………………………………………………………… 24 Chapter 4 Introduction to The Hardware Part We Used………………………… 26 4…1 The USB Controller……………………………………………………………… 26 4…1…1 General Description of enCoRe™ USB CY7C637xx and CY7C632xx series………………………………………………………………………………………26 4…1…2 Overview of CYDB Debugger/CY3654 Development Kit……………………27 4…1…3 The P05 Personality Board………………………………………………… 27 4…1…4 Functional Description………………………………………………………29 4…1…4-1 Platform Board………………………………………………………………29 4…1…4-2 Personality Board………………………………………………………… 29 4…1…5 CY3654 Development Kit Installation…………………………………… 30 4…2 ADC……………………………………………………………………………………30 4…2…1 General Description………………………………………………………… 31 4…2…2 Features of ADC0804………………………………………………………… 31 4…2…3 Function Description…………………………………………………………32 4…2…4 Clocking Option……………………………………………………………… 32 4…2…5 Use a Microcontroller to Operate ADC0804………………………………32 4…3 PC817 Series……………………………………………………………………… 33 4…3…1 Features of PC817 Series……………………………………………………33 4…3…2 Applications of PC817 Series………………………………………………34 4…3…3 Test Circuit……………………………………………………………………34 4…4 BJTs………………………………………………………………………………… 34 Chapter 5 Method to Realize Our Design……………………………………………35 5…1 Detail Description of 4-wire Analog Resistive Touch Panel……………35 5…2 Our circuit…………………………………………………………………………37 5…2…1 Circuit 1……………………………………………………………………… 38 5…2…1-1 Circuit……………………………………………………………………… 38 5…2…1-2 How We Drive It…………………………………………………………… 38 5…2…1-3 Firmware………………………………………………………………………40 5…2…2 Circuit 2……………………………………………………………………… 43 5…2…2-1 Circuit……………………………………………………………………… 43 5…2…2-2 How We Drive It…………………………………………………………… 44 5…2…2-3 Firmware………………………………………………………………………45 5…2…3 Summary and Comparison of Circuit 1 and Circuit 2 …………………48 5…3 Software(visual basic) …………………………………………………………49 5…3…1 About Mouse Move………………………………………………………………49 5…3…2 Mouse Functions of Our Touch Panel………………………………………51 5…3…2-1 Mouse Left Button………………………………………………………… 52 5…3…2-2 Mouse Right Button…………………………………………………………52 5…3…2-3 DragDrop………………………………………………………………………53 5…3…3 How to Determine User’s Demanding Action…………………………… 53 5…3…4 About DoubleClick of Mouse…………………………………………………55 5…3…5 Some other function………………………………………………………… 56 5…3…5-1 4-corner calibration………………………………………………………57 5…3…5-2 Draw test…………………………………………………………………… 63 5…3…6 Feature and Interface of Our Software………………………………… 64 5…4 Summary of Our Software…………………………………………………………65 Chapter 6 Conclusion and Future Works…………………………………………… 67 6…1 Conclusion………………………………………………………………………… 67 6…2 Future Works……………………………………………………………………… 67 Reference………………………………………………………………………………… 69 Appendix A…………………………………………………………………………………71 Part I : our software about move cursor………………………………………… 71 Part II : our software about Double Click……………………………………… 73 Part III : our software about the three states…………………………………74 List of Tables Table…2-1 Comparison of touch panels…………………………………………… 12 Table…3-1 Summary of Key USB Features……………………………………………14 Table…3-2 Connector Pin Designations…………………………………………… 17 Table…3-3 Speed Comparison of Some Interfaces…………………………………18 Table…3-4 Standard Device Request…………………………………………………24 Table…5-1 Ports 0 and 1 Output Control Truth Table………………………… 39 Table…5-2 Configuration of Port 1 Output Control ……………………………40 Table…5-3 Port 0 Output Control that We Set for Circuit1: 1st state……41 Table…5-4 Port 0 Output Control that We Set for Circuit1: 2nd state……42 Table…5-5 Port 0 Output Control that We Set for Circuit2: 1st state……46 Table…5-6 Port 0 Output Control that We Set for Circuit2: 2nd state……47 Table…5-7 Comparison of circuit 1 and circuit 2………………………………48 List of Figures Figure…2-1 Top view of Analog Resistive Touch Panel………………………… 5 Figure…2-2 Structure of Capacitive Touch Panel…………………………………6 Figure…2-3 Top view of IR Touch Panel (NOT touched) …………………………7 Figure…2-4 Top view of IR Touch Panel (when touched) ……………………… 8 Figure…2-5 Top view of SAW Touch Panel (NOT touched) ……………………… 9 Figure…3-1 deeper overview of the USB……………………………………………15 Figure…3-2 USB’s Tiered Star Topology………………………………………… 16 Figure…3-3 USB Logical Bus Topology………………………………………………17 Figure…3-4 Full-speed Device Cable and Resistor Connections………………19 Figure…3-5 Low-speed Device Cable and Resistor Connections……………… 19 Figure…3-6 NRZI Data Encoding………………………………………………………20 Figure…3-7 Bit Stuffing………………………………………………………………21 Figure…3-8 Transfers Across USB Cables Employ NRZI Encoding and Differential Signaling…………………………………………………………………21 Figure…3-9 Standard Descriptors……………………………………………………24 Figure…4-1 USB Controller Logic Block Diagram…………………………………26 Figure…4-2 USB Controller Pin Configuration……………………………………26 Figure…4-3 USB Controller Pin Assignments………………………………………27 Figure…4-4 The CYDB Main Window……………………………………………………27 Figure…4-5 CY3654 Platform Board………………………………………………… 28 Figure…4-6 Personality Board, Flex Cable Assembly, Target Probe Adapters……………………………………………………………………………………28 Figure…4-7 Personality Board on the CY3654 Platform Board (with Flex Cable and Application Board)…………………………………………………………29 Figure…4-8 CY3654 Typical Hardware Setup……………………………………… 30 Figure…4-9 ADC0804 Connection Diagram……………………………………………31 Figure…4-10 ADC0804 Typical Application…………………………………………31 Figure…4-11 PC847………………………………………………………………………33 Figure…4-12 PC847 Connection Diagram…………………………………………… 33 Figure…4-13 PC817 Test Circuit…………………………………………………… 33 Figure…5-1 Apply Voltage to X direction…………………………………………36 Figure…5-2 Apply Voltage to Y direction…………………………………………37 Figure…5-3 Circuit 1 (PC847+PC827) ………………………………………………38 Figure…5-4 Drive Method of State1 (PC847+PC827) …………………………… 40 Figure…5-5 Drive Method of State2 (PC847+PC827) …………………………… 40 Figure…5-6 Circuit 2 (BJTs+PC827) ……………………………………………… 44 Figure…5-7 Drive Method of State1 (BJTs+PC827) ………………………………45 Figure…5-8 Drive Method of State2 (BJTs+PC827) ………………………………45 Figure…5-9 Flowchart: To reduce the problem of “cursor random move”…51 Figure…5-10 Flowchart: Mouse Functions………………………………………… 55 Figure…5-11 Flowchart: about Double Click………………………………………56 Figure…5-12 If we reverse the applied voltage…………………………………58 Figure…5-13 If we change the equipped direction………………………………58 Figure…5-14 Operation Overview…………………………………………………… 59 Figure…5-15 4-points calibration………………………………………………… 60 Figure…5-16 Flowchart: state1 to state2…………………………………………62 Figure…5-17 Flowchart: state2 to state3…………………………………………63 Figure…5-18 Flowchart: state3 to state1…………………………………………63 Figure…5-19 Main window of our software…………………………………………64 Figure…5-20 Mouse window and popup window………………………………………64 Figure…5-21 Window of 4-corner calibration…………………………………… 66 Figure…5-22 Draw test window of our software………………………………… 66 Figure…5-23 “About” window of our software………………………………… 66

    [1] Touch Panel dept. CHILIN TECHNOLOGY CO.,LTD.

    [2] 3M Touch Systems,http://www.3m.com/3MtouchSystems/

    [3] Elo TouchSystems,http://www.elotouch.com/

    [4] Universal Serial Bus Specification Revision 1.1

    [5] Don Anderson原著,陳振榮譯,”USB系統架構”,碁峰資訊股份有
    限公司,臺北市,1998

    [6] Don Anderson / Dave Dzatko,”UNIVERSAL SERIAL BUS SYSTEM
    ARCHITECTURE SECOND EDITION” ,MindShare, Inc. ,2001

    [7] 郭士秋,”USB理論規範與設計”,儒林圖書有限公司,臺北市,
    1999

    [8] “CY3654 Development Kit User’s Guide Version 1.00” ,Cypress
    Semiconductor Corporation,http://www.cypress.com/

    [9] “CY3654 Development Kit Reference Manual Version 1.00” ,Cypress
    Semiconductor Corporation,http://www.cypress.com/

    [10] “CY3654-P05 Personality Board Quick Start Guide” ,Cypress
    Semiconductor Corporation

    [11] CYASM ASSEMBLER USER’S GUIDE VERSION 1.95,Cypress
    Semiconductor Corporation,2001

    [12] enCoRe™ USB CY7C637xx and CY7C632xx series Datasheet,
    Cypress Semiconductor Corporation,2000

    [13] ADC0804 Datasheet,National Semiconductor

    [14] PC817 series Datasheet,SHARP

    [15] 許永和,”USB週邊裝置設計與應用-CY7C63系列”,全華科技圖
    書股份有限公司,臺北市,90年

    [16] Jan Axelson,Lakeview Research,http://www.lvr.com/

    [17] ALLAPI Network,http://www.allapi.net/

    下載圖示 校內:立即公開
    校外:2003-06-27公開
    QR CODE