TWI304943B - - Google Patents

Download PDF

Info

Publication number
TWI304943B
TWI304943B TW94133372A TW94133372A TWI304943B TW I304943 B TWI304943 B TW I304943B TW 94133372 A TW94133372 A TW 94133372A TW 94133372 A TW94133372 A TW 94133372A TW I304943 B TWI304943 B TW I304943B
Authority
TW
Taiwan
Prior art keywords
unit
touch panel
terminal
switch
control
Prior art date
Application number
TW94133372A
Other languages
Chinese (zh)
Other versions
TW200632753A (en
Inventor
Junichi Kawada
Hirotaka Matsumoto
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of TW200632753A publication Critical patent/TW200632753A/en
Application granted granted Critical
Publication of TWI304943B publication Critical patent/TWI304943B/zh

Links

Landscapes

  • Position Input By Displaying (AREA)
  • Push-Button Switches (AREA)

Description

1304943 (1) 九、發明說明 【發明所屬之技術領域】 ' 本發明係關於觸摸面板用控制單元。更詳細爲關於, 於採用電阻膜方式之觸摸面板中,可對應不同驅動方式之 觸摸面板用控制單元。 【先前技術】 Φ 作爲以POS系統爲首之電腦系統的對人介面,係使用 觸摸面板。此觸摸面板之驅動方式,則有電阻膜方式,此 方式係有4線式電阻膜方式及5線式電阻膜方式。因應觸摸 面板的使用目的及使用形態等,來選擇能反應其特性之驅 動方式。 在以往,對應所選擇之觸摸面板驅動方式,而準備有 專用的控制單元。 關於和本件相關連之技術,請參照專利文獻1等。 ® [專利文獻1]日本專利特開平9_ 1 67047號公報 【發明內容】 [發明所欲解決之課題] 如以往般,如對應觸摸面板而準備專用的控制單元時 ,可使觸摸面板確實發揮功能。但是,觸摸面板的種類如 增加,控制單元的種類也增加,於各種控制單元之設計及 製作上,需要花費用。 因此,本發明人等針對以單一的控制單元來驅動控制1304943 (1) Description of the Invention [Technical Field of the Invention] The present invention relates to a control unit for a touch panel. More specifically, in the touch panel using the resistive film method, it is possible to correspond to a control unit for a touch panel of different driving methods. [Prior Art] Φ As a human interface for a computer system including a POS system, a touch panel is used. The touch panel is driven by a resistive film method. This method is a 4-wire resistive film method and a 5-wire resistive film method. Select the driving method that reflects its characteristics in response to the purpose of use of the touch panel and the form of use. In the past, a dedicated control unit has been prepared in accordance with the selected touch panel driving method. For the technology related to this item, please refer to Patent Document 1 and the like. [Patent Document 1] Japanese Laid-Open Patent Publication No. Hei 9- 1 67 047. SUMMARY OF THE INVENTION [Problems to be Solved by the Invention] As in the related art, when a dedicated control unit is prepared corresponding to a touch panel, the touch panel can be surely functioned. . However, as the types of touch panels increase, the types of control units increase, and it takes a lot of money to design and manufacture various control units. Therefore, the inventors have directed to driving control with a single control unit

-4 - (2) 1304943 不同的驅動方式之觸摸面板,重複專心硏究檢討。 [解決課題之手段] 其結果,本發明人等想到如下構造之觸摸面板用控制 單元。即爲一種觸摸面板用控制單元,是用以控制以第1 驅動方式來驅動第1觸摸面板和以第2驅動方式來驅動第2 觸摸面板的控制單元;其特徵爲具備有: • 對應前述第1驅動方式之第1控制電路部; 對應前述第2驅動方式之第2控制電路部; 可以連結前述第1控制觸摸面板及前述第2觸摸控制面 板之連結器; 特定連結到該連結器的觸摸面板的驅動方式之驅動方 式特定電路;以及 根據經由該驅動方式特定電路所特定的驅動方式,來 選擇控制電路部之第1選擇部。 • 如依據如此構成之觸摸面板用控制單元,連結於連結 器之觸摸面板的驅動方式,是經由驅動方式特定部所特定 _ ,依據該特定結果,來選擇對應連結到連結器之觸摸面板 的驅動方式之控制電路部。藉由此所選擇之控制電路部, 來驅動控制連結到連結器之觸摸面板,該功能得以恰當地 發揮。 本發明之第2局面的發明,係如下般所構成。即前述 第1控制電路部與前述第2控制電路部,係共有開關部;於 該開關部,相關連觸摸面板的X方向及Y方向的電壓檢測 -5- (3) 1304943 之4個開關單元中的其中3個,具有一對的電晶體,其他1 個是由1個電晶體所成;於前述第1驅動方式爲4線驅動方 ' 式的情形,構成前述3個的開關之各一對的電晶體之一方 爲停止狀態。 如依據如此構成之第2局面的發明,共有開關部,進 而在特定的開關中,做成以單品之電晶體所構成,所以, 控制單元的構成零件數可以削減,能使其便宜地提供。 # 如依據本發明之第3局面,係更具備有:保存有爲了 實行前述第1驅動方式的第1參數之第1參數保存部; 保存有爲了實行前述第2驅動方式的第2參數之第2參 數保存部; 保存有爲了實行前述第1驅動方式的第I控制程式模組 之第1程式模組保存部; 保存有爲了實行前述第2驅動方式的第2控制程式模組 之第2程式模組保存部; • 根據經由前述驅動方式特定部所特定的驅動方式,來 選擇參數之第2選擇部;以及 . 根據經由前述驅動方式特定部所特定的驅動方式,來 選擇控制程式模組之第3選擇部。 觸摸面板的驅動方式如不同,即使共用控制單元,該 驅動所必要之參數與控制程式模組也會有不同。因此,在 本發明中,事先準備各驅動方式最佳的參數與控制程式模 組,配合所被特定的驅動方式而選擇最佳的參數與控制程 式。 -6 - (4) 1304943 因此,觸摸面板可以恰當地受到控制. 【實施方式】 以下,說明本發明之構成要素。 (觸摸面板) 本發明設爲對象之電阻膜驅動方式之觸摸面板大略分 ® 別時,有提出:4線式電阻膜方式(以下,有時略稱爲「4 線式」)與5線式電阻膜方式(以下,有時略稱爲「5線式 」)。4線式電阻膜方式者之特性,爲位置精度的正確度 。另一方面,5線式電阻膜方式者之特性,爲耐久性高。 因此’使用者可以任意選擇慮及該特性之驅動方式者。知 道也有8線式電阻膜方式係使用與4線是相同動作原理。在 本說明書中,該8線式電阻膜方式者係與4線式者同等處置-4 - (2) 1304943 Touch panel with different driving methods, repeating the focus on review. [Means for Solving the Problem] As a result, the inventors of the present invention have thought of a control unit for a touch panel having the following structure. That is, a touch panel control unit is a control unit for controlling the first touch panel to be driven by the first driving method and the second touch panel by the second driving method, and is characterized in that: a first control circuit unit of the first driving method; a second control circuit unit corresponding to the second driving method; a connector for connecting the first control touch panel and the second touch control panel; and a touch specifically connected to the connector The driving mode specific circuit of the driving method of the panel; and the first selection unit of the control circuit unit are selected according to the driving method specified by the driving mode specific circuit. • According to the touch panel control unit configured as described above, the driving method of the touch panel connected to the connector is specified by the driving method specific unit, and the driving corresponding to the touch panel connected to the connector is selected based on the specific result. The control circuit part of the mode. The control circuit portion thus selected is used to drive and control the touch panel connected to the connector, and this function is properly exerted. The invention of the second aspect of the present invention is as follows. In other words, the first control circuit unit and the second control circuit unit share a switch unit, and the switch unit detects voltages in the X direction and the Y direction of the touch panel by four switching units of -5 (3) 1304943. Three of them have a pair of transistors, and the other one is formed by one transistor. In the case where the first driving method is a 4-wire driving type, each of the three switches is configured. One of the pair of transistors is in a stopped state. According to the invention of the second aspect configured as described above, the switch unit is shared and the specific switch is formed of a single crystal. Therefore, the number of components of the control unit can be reduced, and the number of components can be reduced. . According to the third aspect of the present invention, the first parameter storage unit that stores the first parameter for executing the first driving method is provided, and the second parameter that stores the second driving method is stored. a parameter storage unit; a first program module storage unit that stores a first control program module for executing the first drive mode; and a second program that stores a second control program module for executing the second drive system a module storage unit; • a second selection unit that selects a parameter based on a driving method specified by the driving method specific unit; and a control program module that is selected according to a driving method specified by the driving method specific unit Third choice. The touch panel is driven differently. Even if the control unit is shared, the parameters necessary for the driver and the control program module will be different. Therefore, in the present invention, the optimum parameters and control program modules for each drive mode are prepared in advance, and the optimum parameters and control modes are selected in accordance with the specific drive mode. -6 - (4) 1304943 Therefore, the touch panel can be appropriately controlled. [Embodiment] Hereinafter, constituent elements of the present invention will be described. (Touch Panel) In the present invention, the touch panel of the target resistive film driving method is slightly different. It is proposed that the 4-wire resistive film method (hereinafter sometimes referred to as "4-wire type") and the 5-wire type The resistive film method (hereinafter sometimes referred to as "5-wire type"). The characteristics of the 4-wire resistive film method are the accuracy of the positional accuracy. On the other hand, the characteristics of the 5-wire resistive film method are high in durability. Therefore, the user can arbitrarily choose the driver who takes this feature into consideration. It is known that the 8-wire resistive film method uses the same principle of operation as the 4-wire. In this specification, the 8-wire resistive film method is treated in the same way as the 4-wire type.

(控制電路部) 控制電路部係控制觸摸面板的動作。 在觸摸面板中,4線式及5線式都係2片的電阻膜保有 間隔而配置,使用者一觸摸上側之電阻膜時,在該被觸摸 之位置,2片的電阻膜接觸。由那時之電壓變化’可將被 觸摸的位置予以特定出。 在特定位置上,需要電阻膜之X方向及Y方向的座標 之特定。 (5) (5)1304943 在4線式之情形,爲了使電壓變化產生,於各方向配 置有2個開關(合計4個)’進而’爲了檢測2片的電阻膜 之接觸、非接觸,配設有1個開關。 另一方面,在5線式之情形’爲了使電壓變化產生, 於位於下部電阻膜之4角落之4個電極中之3個電極,配設 有2個開關(合計6個),於剩餘之1個電極配設有1個開關 。進而,和4線式相同,爲了檢測2片電阻膜之接觸、非接 觸,於上部電阻膜配設有1個開關。 在本發明之一個局面中,藉由謀求控制電路部中之開 關部的共有,以期望便宜之控制單元的提供。 當然,於控制單元中,獨立設置4線式用的控制電路 部與5線式用的控制電路部,依據後述之驅動方式特定部 的特定結果,只使其中一方動作,也係包含於本發明之範 圍’內。 (連結器) 連結器係具有複數的接腳,而被連結於觸摸面板。連 結器的特定接腳則連結於開關部,與開關部的開啓、關閉 同步而輸入有訊號,來控制對觸摸面板之電壓的施加。另 外’觸摸面板的輸出也係藉由連結器的特定接腳而輸入至 控制單元,於該處被解析。 在本發明所使用之連結器,可以連接於第1驅動方式 的第1觸摸面板及第2驅動方式的第2觸摸面板之其中任一 者。(Control Circuit Unit) The control circuit unit controls the operation of the touch panel. In the touch panel, the two types of resistive films of the four-wire type and the five-wire type are arranged at intervals, and when the user touches the upper resistive film, two resistive films are in contact at the touched position. The position touched by the voltage change at that time can be specified. The specificity of the coordinates of the resistive film in the X direction and the Y direction is required at a specific position. (5) (5) 1304943 In the case of the 4-wire type, in order to cause a voltage change, two switches (four in total) are arranged in each direction, and further, in order to detect the contact and non-contact of the two resistive films, There is a switch. On the other hand, in the case of the 5-wire type, in order to cause a voltage change, three of the four electrodes located at the corners of the lower resistive film are provided with two switches (a total of six), and the remaining One electrode is equipped with one switch. Further, in the same manner as the 4-wire type, in order to detect contact or non-contact between the two resistive films, one switch is disposed in the upper resistive film. In one aspect of the present invention, the provision of a control unit that is inexpensive is desired by seeking to share the switching portions in the circuit portion. Of course, in the control unit, the control circuit unit for the 4-wire type and the control circuit unit for the 5-wire type are independently provided, and only one of them is operated according to the specific result of the drive mode specific unit to be described later, and is also included in the present invention. The range 'inside. (Connector) The connector has a plurality of pins and is coupled to the touch panel. The specific pin of the connector is connected to the switch unit, and a signal is input in synchronization with the opening and closing of the switch unit to control the application of the voltage to the touch panel. In addition, the output of the touch panel is also input to the control unit by a specific pin of the connector, where it is parsed. The connector used in the present invention can be connected to any of the first touch panel of the first driving method and the second touch panel of the second driving method.

-8 - (6) (6)1304943 (驅動方式特定部) 驅動方式特定部係對連結有某一個觸摸面板之連結器 的第〗接腳輸入訊號,檢測從第2接腳之輸出,來特定連結 於連結器之觸摸面板的驅動方式。 對於連結器的第1接腳之訊號輸入,如實施例般,可 藉由開啓、關閉驅動電路部的特定之開關來進行。此訊號 ,在實施例中係採用對電阻膜之電極的電壓之高、低。 檢測來自連結器的第2接腳之輸出訊號,藉由將其加 以解析,可以將連結於連結器之觸摸面板的驅動方式加以 特定。例如,將特定的開關予以開啓,從第1接腳施加電 壓時,在第2接腳被檢測出之訊號,於4線式觸摸面板中, 成爲高,在5線式觸摸面板中,成爲低者時,連結於連結 器之觸摸面板的驅動方式,則可將特定的開關予以開啓, 並檢測第2接腳之輸出而加以特定。 在前述之外,也可以特定觸摸面板的驅動方式。例如 ’於驅動方式不同之第1觸摸面板與第2觸摸面板中,某部 份的電阻値爲不同時,藉由測定該部份之電阻値,可判別 第1觸摸面板與第2觸摸面板。在此情形,施加於該部份之 電壓’會成爲對連結器的第1接腳之輸入訊號,下降電壓 値則成爲顯現於第2接腳之輸出訊號。 以下’依據實施例來詳細說明本發明。 第1圖係表示本發明之實施例的控制單元丨之構造區塊 圖0 (7) 1304943 如第1圖所示般,實施例的控制單元1係具備有:控制 電路部1 0、連結器2 0、微控制器5 0。 連結器20係選擇性連接有4線式電阻膜方式之觸摸面 板24及5線式電阻膜方式之觸摸面板25之其中—方。 (4線式觸摸面板24的動作原理) 首先,依據第2圖來說明4線式觸摸面板24的動作原理 〇 第2圖中,各端子與其之功能,係如表1所示。 [表]] 端子名稱 功能說 明 S W1 # Y電極 電 壓 供 給 用 開 關 控 制 端 子 (Vcc 用) SW2 Y電極 電 壓 供 給 用 開 關 控 制 端 子 (GND 用) SW3# X電極 電 壓 供 給 用 開 關 控 制 端 子 (Vcc用) SW4 X電極 電 壓 供 給 用 開 關 控 制 端 子 (GND 用) SW0# 面板按 下 用 開 關 控 制 端 子 INT1# 面板按 下 用 分 配 端 子 ΑΝ0 電壓檢 測 用 端 子 AN1 電壓檢 測 用 端 子 AN2 電壓檢 測 用 端 子 AN3 電壓檢 測 用 端 子 在觸摸面板 24 中 5 首 先 5 進 行 面 板 的 按 下檢測。爲 如表2之「面板按下取入」般,控制連接於控制訊號線 -10- (8) 1304943 的各端子S W 1〜S W 0之開關單元,I nt 1 #之輸出爲L 〇時,視 爲有對觸摸面板之按下,進行輸入點(以圖中箭頭表示) 的座標檢測。 輸入點的座標檢測,係如下述般進行。 在檢測輸入點的X方向座標上,如表2的「X方向資料 取入」般,控制連接於控制訊號線的端子SW1〜SW0之開關 單元,解析檢測用端子ΑΝ0或ΑΝ1的輸出。-8 - (6) (6)1304943 (Drive mode specific unit) The drive mode specific unit inputs a signal to the first pin of the connector to which a touch panel is connected, and detects the output from the second pin to specify The driving method of the touch panel connected to the connector. The signal input to the first pin of the connector can be performed by turning on and off a specific switch of the driver circuit portion as in the embodiment. In this embodiment, the voltage of the electrode of the resistive film is high and low in the embodiment. The output signal from the second pin of the connector is detected, and by analyzing it, the driving method of the touch panel connected to the connector can be specified. For example, when a specific switch is turned on and a voltage is applied from the first pin, the signal detected at the second pin becomes high in the 4-wire touch panel, and becomes low in the 5-wire touch panel. In the case of the driving method of the touch panel connected to the connector, a specific switch can be turned on, and the output of the second pin can be detected and specified. In addition to the foregoing, the driving method of the touch panel can also be specified. For example, when the resistance 値 of a certain portion is different between the first touch panel and the second touch panel having different driving methods, the first touch panel and the second touch panel can be discriminated by measuring the resistance 该 of the portion. In this case, the voltage applied to the portion will become the input signal to the first pin of the connector, and the falling voltage 値 will be the output signal appearing at the second pin. The present invention will be described in detail below based on the examples. Fig. 1 is a structural block diagram showing a control unit of an embodiment of the present invention. Fig. 0 (7) 1304943 As shown in Fig. 1, the control unit 1 of the embodiment is provided with a control circuit unit 10 and a connector. 2 0, microcontroller 50. The connector 20 is selectively connected to the touch panel 25 of the 4-wire resistive film type and the touch panel 25 of the 5-wire resistive film type. (Operation Principle of 4-Wire Touch Panel 24) First, the operation principle of the 4-wire touch panel 24 will be described based on Fig. 2 〇 In Fig. 2, the functions of the terminals and their functions are as shown in Table 1. [Table]] Terminal name function description S W1 # Y electrode voltage supply switch control terminal (for Vcc) SW2 Y electrode voltage supply switch control terminal (for GND) SW3# X electrode voltage supply switch control terminal (for Vcc) SW4 X electrode voltage supply switch control terminal (for GND) SW0# Panel push switch control terminal INT1# Panel push distribution terminal ΑΝ0 Voltage detection terminal AN1 Voltage detection terminal AN2 Voltage detection terminal AN3 Voltage detection terminal In the touch panel 24, 5 first 5 performs panel depression detection. For the "panel press-in" of Table 2, the switch unit connected to each of the terminals SW 1 to SW 0 of the control signal line -10- (8) 1304943 is controlled, and when the output of I nt 1 # is L 〇, It is considered that there is a coordinate detection of the input point (indicated by the arrow in the figure) on the touch panel. The coordinate detection of the input point is performed as follows. In the X-direction coordinate of the detection input point, as in the "X-direction data acquisition" of Table 2, the switching unit connected to the terminals SW1 to SW0 of the control signal line is controlled, and the output of the detection terminal ΑΝ0 or ΑΝ1 is analyzed.

項目 關動作 INTI# (Click 時) ANO 或ANl AN2 或 AN3 SW1 SW2 SW3 SW4 SWO 面板按下取入 OFF OFF OFF ON ON Lo X方向資料取入 OFF OFF ON ON OFF — 與XI程比例之電壓 (Xl/X) xVcc 一 Y方向資料取入 ON ON OFF OFF OFF — 一 與Y1程比例之電壓 (Yl/Y) xVcc 注意:X及Υ係表示觸摸面板之X方向及Υ方向的電極間的 距離 上側的觸摸面板在輸入點中,由於和下側的觸摸面板 接觸,所以,對ΑΝ0(或ΑΝ1)輸出和距離XI成比例之電壓 (XWX ) xVcc。此處,X係安裝於上側之電阻膜中之X方 向兩端的電極間距離。Item off action INTI# (Click) ANO or AN1 AN2 or AN3 SW1 SW2 SW3 SW4 SWO Panel presses OFF OFF OFF ON ON Lo X direction data is taken OFF OFF ON ON OFF — Voltage proportional to XI path (Xl /X) xVcc A Y direction data is taken ON ON OFF OFF OFF — A voltage proportional to Y1 (Yl/Y) xVcc Note: X and Υ indicate the distance between the X and Υ directions of the touch panel. The touch panel is in the input point, and because of the contact with the lower touch panel, the voltage (XWX) xVcc which is proportional to the distance XI is output to ΑΝ0 (or ΑΝ1). Here, X is attached to the distance between the electrodes in the X direction of the upper resistive film.

同樣地,在檢測輸入點的Y方向座標上,如表2的「Y 方向資料取入」般,控制連接於控制訊號線的端子 SW1〜SW0之開關單元,解析檢測用端子AN2或AN3的輸出 -11 - (9) 1304943 。上側的觸摸面板在輸入點中,由於和下側的觸摸面板接 觸’所以,對AN2 (或AN3 )輸出和距離Y 1成比例之電壓( Yl/Y ) xVcc。此處,Y係安裝於上側之電阻膜中之Y方向 兩端的電極間距離。 (5線式觸摸面板之動作原理) 接著,依據第3圖來說明5線式電阻膜方式之觸摸面板 2 5的動作原理。 第3圖中,各端子與其之功能係如表3所示。 [表3] 端子名稱 功 能 說 明 S W0# 上 部 薄 膜 PU控 制 器 用 端 子 SW1# 面 板 驅 動 開 m 關 控 制 輸 出 端 子 (P1 用) SW2 面 板 驅 動 開 關 控 制 輸 出 端 子 (P3 用) S W3# 面 板 驅 動 開 關 控 制 輸 出 端 子 (P2 用) S W4 面 板 驅 動 開 關 控 制 輸 出 端 子 (P42 用) AN 1 4 面 板 電 壓 檢 測 用 端 子 INTI# 面 板 按 下 用 分 配 輸 入 用 -Lt 11 m 子 觸摸面板25中,首先,進行面板的按下檢測。爲此, 如表4之「面板按下取入」般,控制連接於控制訊號線的 各端子SW〗〜SW0之開關單元,解析AN14及INTO#之輸出, 進行對觸摸面板之按下判斷。在有按下時,進行輸入點( 以圖中箭頭表不)的座標檢測。 -12- (10) 1304943 輸入點的座標檢測,係如下述般進行。 在檢測輸入點的X方向座標上,如表4的「X方向資料 取入J般,控制連接於控制訊號線的端子SW 1〜SW0之開關 單元,解析端子AN14的輸出。 [表4] 項目 開關動1 乍 AN]4輸入 INTO#輸入 SW0 SW1 (PI) SW2 (P2) SW3 (P3) SW4 (P4) 面板按下取入 Lo Hi Hi Hi Hi OV Lo X方向資料取入 Hi Lo Hi Hi LO 與XI程比例之電壓(Xl/X) xVcc Y方向資料取入 Hi Hi Hi Lo Lo 與Y】程比例之電壓(Y〗/y) xVcc 一 注意:X及Y係表示觸摸面板之X方向及Y方向的電極間的 距離 上側的觸摸面板在輸入點中,由於和下側的觸摸面板 接觸,所以,對AN 1 4輸出和距離X 1成比例之電壓(X 1 /X )xVcc。此處,X係安裝於薄膜側電阻膜中之X方向兩端 的電極間距離。 同樣地,在檢測輸入點的Y方向座標上,如表4的「Y 方向資料取入」般,控制開關,對檢測用端子AN 1 4輸出 和距離Y1成比例之電壓(Yl/Y) xVcc。此處,Y係安裝於 薄膜側電阻膜中之γ方向兩端的電極間距離。 利用第4圖〜第7圖,更詳細說明5線式之觸摸面板25的 動作原理。 如第4圖般,5線式觸摸面板係由:2片的電阻膜與玻 -13- (11) 1304943 璃螢幕、薄膜所構成,電阻膜係黏貼於玻璃螢幕與薄膜之 個別的內側。在附電阻膜玻璃螢幕與電阻膜薄膜間,以一 ' 定間隔配置有高度均勻之間隔物,通常,配置爲2片的電 阻膜間並不接觸。另外,5線式觸摸面板中,上部電阻膜 係被使用爲電壓檢測用之針測器,下部電阻膜係被使用於 依據按下點而產生分壓。此處,如按下觸摸面板的薄膜側 時,2個電阻膜則相互接觸。 # 第5圖係表示X方向之位置電壓檢測方法。電阻膜薄膜 係具有與距離成比例之均勻的電阻値。因此,如第5圖般 ,如接觸PI、P2、P3、P4時,電流從P1-P4側流向P2-P3側 。在此狀態下,下部電阻膜產生電壓斜度,所以,位於觸 摸面板上之任意點的X方向位置電壓,可藉由電壓計或可 測量電壓値之儀器來測定。 第6圖係表示Y方向之位置電壓檢測方法。如第6圖般 ,如接觸P 1、P 2、P 3、P 4時,電流從p 3 - P 4側流向P 1 - P 2側 ® 。在此狀態下,下部電阻膜產生電壓斜度,所以,位於觸 摸面板上之任意點的Y方向位置電壓,係和X方向位置電 . 壓相同,可藉由電壓計或可測量電壓値之儀器來測定。 第7圖係表示按下檢測方法。如第7圖般,如接觸P1、 P2、P3、P4時,下部電阻膜成爲Lo位準。進而,上部電阻 膜由於藉由昇壓電阻而連接於電源,所以,成爲Hi位準。 在此狀態下,上部電阻膜一被按下時,上部電阻膜從Hi位 準往L 〇位準變化,所以,以電壓計或可測量電壓値之儀器 來檢測該電壓値,能檢測按下。 -14 - (12) (12)1304943 藉由前述之位置電壓檢測方法與按下檢測方法,P 1、 P2、P3、P4之控制方法,可以彙整如表5般。 [表5] P1 P2 P3 P4 X位置電壓檢測 Hi Lo Lo Hi Y位置電壓檢測 Lo Lo Hi Hi 按下檢測 Lo Lo Lo Lo 必要開關數(電晶體) 2個 1個 2個 2個 即相關連觸摸面板X方向及Y方向的電壓檢測之4個開 關單元中的3個,需要一對的電晶體,相對於此,剩餘之1 個可只由一個電晶體來構成。 (控制電路部1 0 ) 第8圖表示控制電路部1 0的詳細。 控制電路部1 0係具有5條訊號線,於該各端子(S W 1 # 、SW2、SW3#、SW4、SW0# )連接有開關單元。此開關 單元係分別對應第2圖所示之4線式觸摸面板及第3圖所示 之5線式觸摸面板的開關。即作爲連接有檢測面板的按下 之端子SW0#的開關單元,係具備1個電晶體Q1。連接於爲 了求得按下位置的座標之4個端子SW1#、SW2、SW3#、 SW4之開關單元中,分別連接於SW1#者係由2個電晶體Q2 、Q3所形成,連接於SW2者係由1個電晶體Q6所形成,連 接於S W3#者係由2個電晶體Q4、Q5所形成,連接於SW4者 -15- (13) 1304943 係由2個電晶體Q7、Q8所形成。將此控制電路部1 〇適用於 5線式時,如表5所說明的,爲了求得按下位置的座標之4 個開關單元中的一個,可以由1個電晶體來構成。 在將此控制電路部1 〇適用於4線式觸摸面板時,各開 關單元都可以是1個電晶體。因此,於控制電路部1 0設置 有使電晶體停止之控制線5 Wi reE I #。例如,如使5 Wir eE 1 # 成爲高(Hi )時,電晶體Q3、電晶體Q5及電晶體Q7成爲 停止狀態。第9圖係表示此狀態。第9圖之狀態的控制電路 部,係驅動4線式觸摸面板者,第8圖所示狀態之控制電路 部,係驅動5線式觸摸面板者。 此5 WireEl#係藉由面板控制器之開關選擇部3 3所控制 〇 控制電路部10係具備有6個類比開關1 1-16。類比開關 11、14及16係使用於4線式觸摸面板,類比開關12、13及 15係使用於5線式觸摸面板。類比開關係藉由5WireE2#之 控制訊號而被選擇。5WireE2#之訊號爲高(Hi )時,類比 開關1 1、14及16成爲可動作狀態,該訊號爲低(l〇 )時, 類比開關12、13及15成爲可以動作狀態。此5WireE2#係藉 由連結器用開關選擇部34而受到控制。 類比開關11係對連結器20的4個接腳(3pin、2pin、 8pin、7pin )連接A/D轉換器的輸入端子ANO、AN1、AN2 、AN3。這些4個接腳係連接於觸摸面板的x方向及γ方向 的4個電極。 類比開關〗4係對連結器之3個接腳(! ρ丨η、5 p i η、6 p i 11 -16- (14) 1304943 )分別連接Y方向下側電極(YL ) 、X方向右側電極(XR) 、X方向左側電極(XL )之控制訊號。 ' 類比開關1 6係將連結器的4個接腳連接於Y方向下側電 極(YL)。 類比開關1 2係在5線式觸摸面板利用時,將A/D轉換器 之輸入端子連接於第4〜7圖中說明之下部電阻膜的4角落之 電極PI、P2、P3及P4。類比開關13係將端子AN14連接於 φ 5-8接腳。類比開關15係將電極P3、P2及P4之控制訊號分 別輸入至2接腳、3接腳及1接腳。 控制電路部1 〇係連接於微控制器5 0之面板控制器3 0及 A/D轉換器52。 如第1圖所示般’面板控制器3 0係具備面板主控制部 3 1。藉由此面板主控制部3 1,開關控制器3 2、開關選擇部 3 3、連結器用開關選擇部3 4、驅動方式特定部3 5、診斷部 3 6、參數選擇部3 7、模組選擇部3 8受到控制。 Φ 開關控制器3 2係依據來自面板主控制部3 1之指令,而 對5個端子SW0#〜SW4施加高或低之訊號。開關選擇部33係 . 藉由將施加於控制線5WireEl#之電壓控制爲高或低,來選 擇可以動作之電晶體。連結器用開關選擇部34係藉由將施 加於控制線5WireE2#之電壓控制爲高或低,來選擇可以動 作之類比開關。診斷部3 6係依據特定的規則,來診斷所被 選擇之控制電路的電晶體(開關單元)的動作狀況。驅動 方式特定部3 5係利用診斷部3 6 ’在使特定的開關動作時, 解析從A/D轉換器的特定端子所獲得之輸入訊號,來將連 -17- (15) 1304943 結於連結器之觸摸面板的驅動方式加以特定出。開關選擇 部33及連結器用開關選擇部34係藉由驅動方式特定部35, 因應所被特定的驅動方式,而控制控制線5WireEl#及 5WireE2#之輸出。參數選擇部37係從參數記憶體41選擇執 行所被特定的驅動方式時所必要的參數。模組選擇部38係 從模組記憶體3 7選擇執行所被特定的驅動方式時所必要的 控制程式模組。 • 面板主控制部3 1係在微控制器50的主控制裝置5 ]之控 制下。輸入A/D轉換器5 2之訊號,係藉由此主控制裝置5 1 而被輸入面板控制器3 0。另外,主電腦係藉由輸入輸出介 面53而連接於主控制裝置51,按下位置資料被輸出。 依據第1 〇圖之流程圖來說明如此構成之控制單元1的 動作。 觸摸面板被連結於連結器(步驟1),特定的檢查訊 號一被輸入微控制器50時,訊號從該主控制裝置51被送至 • 面板主控制部3 1。在將觸摸面板連結於連結器之後時,該 檢查訊號也可以從該連結器輸入微控制器5 0。 _ 在步驟3中,將所被連結之觸摸面板是否爲4線式加以 特定出。在此實施例中,藉由來自面板主控制部31之指令 ,開關選擇部33將5 WireEl#設爲高’連結器用開關選擇部 34將5WireE2#設爲高,於第9圖表示控制電路部1〇的構造 。之後,藉由開關控制器32來檢查開關的動作,判定所被 連結之觸摸面板是否爲4線式者。例如如表6所示,於檢查 連接於端子sw 1 #之開關單元時’使連接於端子SW2之開關 -18 - (16) 1304943 單元成爲開啓’而且,使連接於端子SW0#之開關單元成 爲關閉,切換連接於端子s W I #之開關單元的開啓、關閉 ' ,檢查那時之A/D轉換器的輸入端子ΑΝ0之電壓位準》和 連接於端子S W 1 #之開關單元的開啓、關閉同步,而使端 子ΑΝ0之輸出從高切換爲低時,則連接於端子SW1#之開關 單元爲對應4線式觸摸面板而動作,其結果爲*所被連接 之觸摸面板被判斷爲4線式觸摸面板,移往步驟1 1。 • 另外,在5線式觸摸面板被連接時,ΑΝ0被固定爲高 的關係,所以可以加以區別。Similarly, in the Y-direction coordinate of the detection input point, as in the "Y-direction data acquisition" of Table 2, the switching unit connected to the terminals SW1 to SW0 of the control signal line is controlled, and the output of the detection terminal AN2 or AN3 is analyzed. -11 - (9) 1304943. The upper touch panel outputs a voltage (Yl/Y) xVcc proportional to the distance Y 1 to AN2 (or AN3) due to contact with the lower touch panel at the input point. Here, Y is attached to the distance between the electrodes at both ends in the Y direction in the upper resistive film. (Operation Principle of 5-Wire Touch Panel) Next, the operation principle of the touch panel 25 of the 5-wire resistive film method will be described based on Fig. 3 . In Figure 3, the terminals and their functions are shown in Table 3. [Table 3] Terminal name function description S W0# Upper film PU controller terminal SW1# Panel drive open m OFF control output terminal (for P1) SW2 Panel drive switch control output terminal (for P3) S W3# Panel drive switch control output Terminal (for P2) S W4 Panel drive switch control output terminal (for P42) AN 1 4 Panel voltage detection terminal INTI# Panel input distribution input -Lt 11 m Sub touch panel 25, first, press the panel Under test. For this reason, as shown in the "panel press-in" of Table 4, the switch unit connected to each of the terminals SW to SW0 of the control signal line is controlled, and the outputs of AN14 and INTO# are analyzed, and the depression of the touch panel is judged. When pressed, the coordinates of the input point (not shown by the arrow in the figure) are detected. -12- (10) 1304943 The coordinate detection of the input point is performed as follows. In the X-direction coordinate of the detection input point, as shown in Table 4, "X-direction data is taken in J, the switching unit connected to the terminals SW 1 to SW0 of the control signal line is controlled, and the output of the terminal AN14 is analyzed. [Table 4] Switching 1 乍 AN] 4 input INTO # input SW0 SW1 (PI) SW2 (P2) SW3 (P3) SW4 (P4) Panel pressed to enter Lo Hi Hi Hi Hi OV Lo X direction data to enter Hi Lo Hi Hi LO Voltage to X-channel (Xl/X) xVcc Y-direction data is taken into Hi Hi Hi Lo Lo and Y] proportional voltage (Y 〗 / y) xVcc Note: X and Y indicate the X direction of the touch panel and The touch panel on the upper side of the distance between the electrodes in the Y direction is at the input point, and is in contact with the lower touch panel, so that the AN 1 4 outputs a voltage (X 1 /X ) x Vcc proportional to the distance X 1 . X is mounted on the film-side resistive film at the distance between the electrodes in the X direction. Similarly, in the Y-direction coordinate of the detection input point, as in the "Y-direction data acquisition" of Table 4, the control switch is detected. The terminal AN 1 4 outputs a voltage (Yl/Y) xVcc proportional to the distance Y1. Here, Y is attached to the distance between the electrodes in the γ direction in the film side resistive film. The operation principle of the 5-wire type touch panel 25 will be described in more detail with reference to Figs. 4 to 7 . As shown in Fig. 4, the 5-wire touch panel consists of two resistive films and a glass film, a film, and a resistive film adhered to the inside of the glass screen and the film. Between the resistive film glass screen and the resistive film, spacers of uniform height are arranged at a certain interval. Usually, the two resistive films are not in contact with each other. Further, in the 5-wire type touch panel, the upper resistive film is used as a pin detector for voltage detection, and the lower resistive film is used to generate a divided voltage in accordance with the pressed point. Here, when the film side of the touch panel is pressed, the two resistive films are in contact with each other. # Picture 5 shows the position voltage detection method in the X direction. The resistive film film has a uniform resistance 成 proportional to the distance. Therefore, as shown in Fig. 5, when contacting PI, P2, P3, and P4, current flows from the P1-P4 side to the P2-P3 side. In this state, the lower resistive film generates a voltage gradient, so that the X-direction position voltage at any point on the touch panel can be measured by a voltmeter or an instrument capable of measuring voltage 値. Fig. 6 is a view showing a method of detecting a position voltage in the Y direction. As shown in Fig. 6, when contacting P 1 , P 2 , P 3 , P 4 , current flows from the p 3 - P 4 side to the P 1 - P 2 side ® . In this state, the lower resistive film generates a voltage gradient, so the positional voltage in the Y direction at any point on the touch panel is the same as the voltage in the X direction, and can be measured by a voltmeter or a voltage measuring device. To determine. Figure 7 shows the press detection method. As shown in Fig. 7, when the contacts P1, P2, P3, and P4 are contacted, the lower resistive film becomes the Lo level. Further, since the upper resistive film is connected to the power source by the boosting resistor, it becomes the Hi level. In this state, when the upper resistive film is pressed, the upper resistive film changes from the Hi level to the L 〇 level, so that the voltage 値 can be detected by a voltmeter or an instrument capable of measuring voltage 値, and the press can be detected. . -14 - (12) (12)1304943 By the above-mentioned position voltage detection method and pressing detection method, the control methods of P1, P2, P3, and P4 can be summarized as shown in Table 5. [Table 5] P1 P2 P3 P4 X position voltage detection Hi Lo Lo Hi Y position voltage detection Lo Lo Hi Hi Press to detect Lo Lo Lo Lo necessary number of switches (transistor) 2 1 2 2 2 ie related touch Three of the four switching units for detecting the voltage in the X direction and the Y direction of the panel require a pair of transistors, whereas the remaining one can be constituted by only one transistor. (Control Circuit Unit 1 0) Fig. 8 shows the details of the control circuit unit 10. The control circuit unit 10 has five signal lines, and a switching unit is connected to each of the terminals (S W 1 #, SW2, SW3#, SW4, SW0#). The switch unit corresponds to the 4-wire touch panel shown in Fig. 2 and the 5-wire touch panel switch shown in Fig. 3, respectively. In other words, the switching unit to which the terminal SW0# of the detection panel is connected is provided with one transistor Q1. The switch unit connected to the four terminals SW1#, SW2, SW3#, and SW4 of the coordinate for obtaining the pressed position is connected to the SW1# by two transistors Q2 and Q3, and is connected to the SW2. It is formed by one transistor Q6, connected to S W3# by two transistors Q4 and Q5, and connected to SW4 by -15- (13) 1304943 is formed by two transistors Q7 and Q8. . When the control circuit unit 1 is applied to the 5-wire type, as described in Table 5, one of the four switching units for obtaining the coordinates of the pressed position can be constituted by one transistor. When the control circuit unit 1 is applied to a 4-wire touch panel, each of the switching units may be one transistor. Therefore, the control circuit unit 10 is provided with a control line 5 Wi reE I # for stopping the transistor. For example, when 5 Wir eE 1 # becomes high (Hi ), the transistor Q3, the transistor Q5, and the transistor Q7 are in a stopped state. Figure 9 shows this state. The control circuit unit in the state of Fig. 9 is a driver who drives a 4-wire touch panel, and the control circuit unit in the state shown in Fig. 8 drives a 5-line touch panel. The 5 WireEl# is controlled by the switch selection unit 3 3 of the panel controller. The control circuit unit 10 is provided with six analog switches 1 1-16. Analog switches 11, 14, and 16 are used in 4-wire touch panels, and analog switches 12, 13, and 15 are used in 5-wire touch panels. The analogy relationship is selected by the 5WireE2# control signal. When the signal of 5WireE2# is high (Hi), the analog switches 1 1, 14 and 16 become active. When the signal is low (l〇), the analog switches 12, 13 and 15 are in an operable state. This 5WireE2# is controlled by the connector switch selection unit 34. The analog switch 11 is connected to the four terminals (3pin, 2pin, 8pin, and 7pin) of the connector 20 to the input terminals ANO, AN1, AN2, and AN3 of the A/D converter. These four pins are connected to four electrodes in the x direction and the gamma direction of the touch panel. The analog switch is based on the three pins of the connector (! ρ丨η, 5 pi η, 6 pi 11 -16- (14) 1304943) connected to the Y-direction lower electrode (YL) and the X-direction right electrode ( XR), X-direction left electrode (XL) control signal. The analog switch 16 connects the four pins of the connector to the lower electrode (YL) in the Y direction. When the analog switch 1 2 is used in a 5-wire touch panel, the input terminals of the A/D converter are connected to the electrodes PI, P2, P3, and P4 at the four corners of the lower resistive film described in Figs. 4 to 7. The analog switch 13 connects the terminal AN14 to the φ 5-8 pin. The analog switch 15 inputs the control signals of the electrodes P3, P2, and P4 to the 2 pins, 3 pins, and 1 pin, respectively. The control circuit unit 1 is connected to the panel controller 30 of the microcontroller 50 and the A/D converter 52. As shown in Fig. 1, the panel controller 30 includes a panel main control unit 31. The panel main control unit 3 1, the switch controller 3, the switch selection unit 3 3, the connector switch selection unit 34, the drive method specific unit 35, the diagnosis unit 36, the parameter selection unit 37, and the module The selection unit 38 is controlled. The Φ switch controller 32 applies a high or low signal to the five terminals SW0# to SW4 in accordance with an instruction from the panel main control unit 31. The switch selecting unit 33 selects a transistor that can operate by controlling the voltage applied to the control line 5WireEl# to be high or low. The connector switch selecting unit 34 selects an analog switch that can be operated by controlling the voltage applied to the control line 5WireE2# to be high or low. The diagnosis unit 36 diagnoses the operation state of the transistor (switch unit) of the selected control circuit in accordance with a specific rule. The drive mode specifying unit 35 uses the diagnosing unit 3 6 ' to analyze the input signal obtained from the specific terminal of the A/D converter when the specific switch is operated, and connects the -17-(15) 1304943 to the link. The driving method of the touch panel of the device is specified. The switch selection unit 33 and the connector switch selection unit 34 control the outputs of the control lines 5WireEl# and 5WireE2# by the drive mode specifying unit 35 in accordance with the specific drive mode. The parameter selection unit 37 selects parameters necessary for executing the specific drive mode from the parameter memory 41. The module selection unit 38 selects a control program module necessary for executing the specific drive mode from the module memory 37. • The panel main control unit 31 is under the control of the main control unit 5 of the microcontroller 50. The signal input to the A/D converter 52 is input to the panel controller 30 by the main control unit 51. Further, the host computer is connected to the main control unit 51 via the input/output interface 53, and the pressed position data is output. The operation of the control unit 1 thus constructed will be described based on the flowchart of Fig. 1 . The touch panel is coupled to the connector (step 1). When a specific inspection signal is input to the microcontroller 50, the signal is sent from the main control unit 51 to the panel main control unit 31. The check signal can also be input to the microcontroller 50 from the connector when the touch panel is attached to the connector. _ In step 3, specify whether the connected touch panel is 4-wire type. In this embodiment, the switch selecting unit 33 sets the 5 WireEl# high "connector switch selecting unit 34 to 5WireE2# by the command from the panel main control unit 31, and the control circuit unit is shown in FIG. 1 〇 structure. Thereafter, the switch controller 32 checks the operation of the switch to determine whether or not the touch panel to be connected is a 4-wire type. For example, as shown in Table 6, when the switch unit connected to the terminal sw 1 # is inspected, 'the switch -18 - (16) 1304943 connected to the terminal SW2 is turned "on" and the switch unit connected to the terminal SW0# is turned on. Turn off, switch the opening and closing of the switch unit connected to the terminal s WI #, check the voltage level of the input terminal ΑΝ0 of the A/D converter at that time, and the opening and closing of the switch unit connected to the terminal SW 1 # When the output of the terminal ΑΝ0 is switched from high to low, the switch unit connected to the terminal SW1# operates in response to the 4-wire touch panel, and as a result, the touch panel to which the * is connected is judged to be 4-wire type. Touch the panel and move to step 1 1. • In addition, when the 5-wire touch panel is connected, ΑΝ0 is fixed to a high relationship, so it can be distinguished.

-19- (17) 1304943 [表6] 檢查對象 SW1# SW2 SW3# SW4 swo# 判定 4 線 式 SW1# ON ON (L〇) ON (Hi) OFF (Hi) AN0=H OFF OFF (Hi) AN0=L SW2 ON ON (L〇) ON (Hi) OFF (Hi) AN1=L OFF OFF (Lo) AN1=H SW3# ON ON (L〇) ON (Hi) AN2=H OFF OFF (Hi) AN2=L SW4 ON ON (L〇) ON (Hi) AN3=L OFF OFF (L〇) AN3=H SW0# ON OFF (Hi) ②OFF (L〇) ①ON (Lo) AN1=H OFF ④ON (Hi) ©OFF (L〇) ③OF (Hi) AN1=L(在④在使電荷放電, 不使TP殘留電荷-19- (17) 1304943 [Table 6] Inspection object SW1# SW2 SW3# SW4 swo# Judgment 4-wire type SW1# ON ON (L〇) ON (Hi) OFF (Hi) AN0=H OFF OFF (Hi) AN0 =L SW2 ON ON (L〇) ON (Hi) OFF (Hi) AN1=L OFF OFF (Lo) AN1=H SW3# ON ON (L〇) ON (Hi) AN2=H OFF OFF (Hi) AN2= L SW4 ON ON (L〇) ON (Hi) AN3=L OFF OFF (L〇) AN3=H SW0# ON OFF (Hi) 2OFF (L〇) 1ON (Lo) AN1=H OFF 4ON (Hi) ©OFF (L〇) 3OF (Hi) AN1=L (discharges the charge at 4, does not make TP residual charge

於輸出端子AN 0沒有產生前述之輸出時,移往步驟5 ,則特定觸摸面板是否爲5線式。 藉由來自面板主控制部3 1之指令,開關選擇部3 3將 5WireEl#訊號設爲低,連結器用開關選擇部34將5WireE2# 設爲低,於第8圖表示控制電路部1 0的構造。之後,藉由 開關控制器3 2來檢查開關的動作,判定所被連結之觸摸面 -20 - (18) 1304943 板是否爲5線式者。例如如表7所示’於檢查連接於端子 SW1#之開關單元(電晶體Q2、Q3 )時’使連接於端子 SW2、SW3#及SW4之開關單元成爲開啓,而且’使連接於 端子SW0#之開關單元成爲關閉,切換連接於端子SW1#之 開關單元的開啓、關閉,檢查那時之端子AN 0之輸出。和 連接於端子SW1#之開關單元的開啓、關閉同步 > 而使端 子ANO之輸出從高切換爲低時,則連接於端子SW1#之開關 • 單元爲對應5線式觸摸面板而動作,其結果爲,所被連接 之觸摸面板被判斷爲5線式觸摸面板,移往步驟2 ]。When the output terminal AN 0 does not generate the aforementioned output, the process proceeds to step 5, and the specific touch panel is a 5-line type. The switch selection unit 33 sets the 5WireEl# signal to be low by the command from the panel main control unit 31, and the connector switch selection unit 34 sets 5WireE2# to be low, and the structure of the control circuit unit 10 is shown in FIG. . Thereafter, the operation of the switch is checked by the switch controller 32 to determine whether the connected touch surface -20 - (18) 1304943 is a 5-wire type. For example, as shown in Table 7, 'When checking the switching unit (transistor Q2, Q3) connected to the terminal SW1#, the switching unit connected to the terminals SW2, SW3#, and SW4 is turned on, and 'the connection is made to the terminal SW0#. The switching unit is turned off, and the switching unit connected to the terminal SW1# is switched on and off, and the output of the terminal AN 0 at that time is checked. When the output of the terminal ANO is switched from high to low, and the output of the terminal ANO is switched from high to low, the switch unit connected to the terminal SW1# operates in response to the 5-wire touch panel. As a result, the connected touch panel is judged to be a 5-line touch panel, and moves to step 2].

-21 - (19)1304943 [表7]-21 - (19)1304943 [Table 7]

檢查對象 SW1# SW2 SW3# SW4 swo# 判定 5 線 式 Q] Q3 ON Lo (Q1 ON) AN 14=H(設Diagnostic 線 (PE4)爲輸入設定(Hi-Z)) Q1 OFF OFF (Hi) AN 14=L(設Diagnostic 線(PE4) 爲輸出設定後,變更爲L,經 過一定時間後,設爲輸入設定 (Hi-Z)) Q2 Q2 ON Hi Lo Hi Hi Hi AN0=H(但是,以5WireE]#=L Q3 Q3 OFF (Q2 ON, (Q6 ON) (Q4 OFF, (Q7 OFF, 、5WireE2#= L之條件來實施) (H瀚出) 〇3 OFF) Q5 ON) 〇SON) Q2 OFF Hi Lo Lo Lo AN0=L(但是,以5WireEl#=L Q3 0N (Q2 OFF, (Q6 OFF) (Q4 ON, (Q7 ON, 、5WireE2#= L之條件來實施) (Lo輸出) 〇3 ON) Q5 OFF) Q8 OFF Q4 Q4 0M Hi Hi Hi Lo Hi AN2=H(但是,以5WireEl#=L Q5 Q5 OFF (Q2 OFF, (Q6 ON) (Q4 ON, (Q7 0FF, 、5WireE2#= L之條件來實施) (H瀚出) 〇3 ON) 〇5 OFF) 〇8 ON) Q4 OFF Lo Lo Hi Lo AN2=L(但是,以5WireEl#=L Q5 0N (Q2 ON, (Q6 OFF) (Q4 OFF, (Q7 ON, 、5WireE2#= L之條件來實施) (Lo輸出) 〇3 OFF) 〇5 ON Q8 OFF Q7 Q7 ON Hi Hi Hi Hi Lo AN3=H(但是,以5WireEl#=L Q8 Q8 OFF (Q2 OFF, (Q6 ON) (Q4 OFF, (Q7 ON, 、5WireE2#= L之條件來實施) (H瀚出) 〇3 ON) 05 ON) Q8 OFF) Q7 OFF Lo Lo Lo Hi AN3=L(但是,以5WireEl#=L Q8 0N (Q2 ON, (Q6 OFF) (Q4 ON, (Q7 OFF, 、5WireE2#= L之條件來實施) (Lo輸出) 〇3 OFF) 05 OFF) 〇8 ON) Q6 Q6 OFF Hi Lo Lo Lo Lo AN1=H (Q2〇N, (Q6 OFF) (Q4 ON, (Q7 ON, (但是,以 5WireEl#=L、 Q3 OFF) 〇5 OFF) 〇8 OFF) 5WireE2#= L之條件來實施) Q6 ON Hi Lo Hi Lo Lo AN1=L (Q2 ON, (Q6 ON) (Q4 ON, (Q7 ON, (但是,以 5WireE]#=L、 Q3 OFF) Q5 OFF) Q8 OFF) 5WireE2#= L之條件來實施) 在輸入端子ΑΝ0沒有產生前述之電壓位準的變化時, -22- (20) 1304943 判斷爲所連接之觸摸面板,不是4線式,也不是5線式(或 者,也有連接於端子SW 1 #之開關單元爲故障的可能性) ,錯誤訊號被送出(步驟7 ) ° 另外,在4線式觸摸面板被連接時,AN 0未被驅動, 所以,不產生電壓變化,可以加以區別。 在所連接的觸摸面板被特定爲4線式的情形,於步驟 1 1中,控制電路部1 〇的開關被選擇。即維持藉由開關選擇 部33使5WireEl#訊號成爲高’藉由連結器用開關選擇部34 使5 WireE2訊號成爲高之狀態’使特定的開關成爲可以動 作狀態。 接著,在步驟13中,參數選擇部37從記憶體40的參數 記憶體4 1,讀出適合4線式之各種參數,保存於記憶體43 。具體而言,係將事先保存於非揮發性記憶體40之參數的 地址寫於記憶體4 3,藉由寫於記憶體4 3之地址,可以存取 該參數。此種參數可以舉:按下定之電壓臨界値或A/D轉 換開始爲止之權重、或者切換構成開關單元之電晶體的開 啓、關閉之權重等。 在步驟1 5中,模組選擇部38從記憶體40之模組記億體 4 2,讀出對應4線式之控制程式的模組,保存於記憶體4 3 。具體而言,係將事先保存於非揮發性記憶體40之控制程 式模組的地址寫於記憶體4 3,藉由寫入記憶體4 3之地址而 讀出該控制程式,使用於控制電路部的控制。 在所連接的觸摸面板被特定爲5線式的情形,於步驟 2 1中,控制電路部1 0的開關被選擇。即維持藉由開關選擇 -23- (21) (21)1304943 部3 3而將5 WireEl#訊號設爲低,藉由連結器用開關選擇部 34而將5WireE2#訊號設爲低之狀態,使特定的開關成爲可 以動作狀態。 接著,在步驟23中,參數選擇部37從記億體40的參數 記憶體4 1,讀出適合5線式之各種參數,保存於記憶體4 3 。具體而言,係將事先保存於非揮發性記憶體40之參數的 地址寫於記憶體43,藉由寫於記憶體43之地址,可以存取 該參數。此種參數可以舉和4線式的情形相同之參數。 在步驟25中,模組選擇部38從記憶體40之模組記億體 42,讀出對應5線式之控制程式的模組,保存於記憶體43 。具體而言,係將事先保存於非揮發性記憶體40之控制程 式模組的地址寫於記憶體43,藉由寫入記憶體43之地址而 讀出該控制程式,使用於控制電路部的控制。 如以上說明般,如依據本實施例之控制單元1,在連 接有第2圖及第3圖所示之不同的驅動方式的觸摸面板時, 可以自動地特定該觸摸面板的驅動方式。而且,對應所被 特定出之驅動方式,可從控制電路部選擇特定的開關,且 使可以動作。藉此,以一個控制單元可以進行2個觸摸面 板的驅動控制。在此實施例中,控制電路部的構成要素係 在4線式驅動模式與5線式驅動模式中共用。因此,控制單 元的要素數目變少,其可以便宜地提供。 接著,針對連接於連結器20之觸摸面板的驅動方式被 特定出,對應該驅動方式,控制電路部10的要素被選擇, 進而,爲了使該控制電路部1 0動作,必要之參數與控制程 -24- (22) 1304943 式模式受到選擇之控制單元,其是否如預定般動作’也是 自動地加以診斷。 此診斷在將觸摸面板連接於連結器之當初來進行之外 ,也可作爲維護之一環而定期地進行。 在第2圖所示之4線式觸摸面板連結於連結器的情形, 自我診斷係依據第1 1圖的流程圖來進行。 在步驟31中,檢查訊號一被輸入微控制器50之主控制 裝置51時,主控制裝置51對面板控制器30的面板主控制部 3 1發送指令。面板主控制部3 1檢查作爲其之控制程式而被 選擇之模式是否正確地動作(步驟3 3 )。此檢查例如係藉 由檢查全部模組之檢驗和來進行。在所被選擇之模組有不 當時,即在有軟體錯誤時,進行錯誤送訊(步驟39)。此 錯誤送訊係藉由微控制器50而透過輸入輸出介面,例如送 至主電腦。 在所被選擇之模組爲正常時,進入步驟41,進行硬體 檢查。此處所謂之硬體檢查,係檢查控制面板的功能零件 (具體而言,構成開關部之電晶體)是否正常(步驟41) 。硬體檢査也正常時,則驅動觸摸面板(步驟43 )。另外 ,在硬體檢查的結果爲NG時,進行錯誤送訊(步驟39) 〇 步驟41中之硬體檢査係藉由由診斷部3 6依據事先保存 之程式,來控制開關控制器3 2、開關選擇部3 3及連結器用 開關選擇部34而進行。具體而言,使各開關如表6般依序 動作,來解析A/D轉換器之輸入端子的電壓變化。即連接 -25- (23) 1304943 於端子S W ] #之開關單元的檢查,係如下述般進行。使端 子SW2之開關單元開啓、端子SW0#之開關單元關閉’在端 子SW1#的開關單元爲開啓時,端子ΑΝ0之電壓位準爲高, 而且,端子SW1#之開關單元爲關閉時,端子ΑΝ0之電壓位 準如爲低時,則知道連接於端子SW1#之開關單元爲正常 另外,連接於端子SW2之開關單元的檢查,係如下述 般進行。使端子SW1#之開關單元開啓、端子SW0#之開關 單元關閉,在端子SW2的開關單元爲開啓時’端子AN1之 電壓位準爲低,而且,端子SW2之開關單元爲關閉時’端 子AN1之電壓位準如爲高時,則知道連接於端子SW2之開 關單元爲正常。 連接於端子SW3#之開關單元的檢查’係如下述般進 行。使端子SW4之開關開啓、端子SW3#之開關開啓’端子 AN2之電壓位準爲高,而且,端子SW3#之開關單元爲關閉 時,端子AN2之電壓位準如爲低時,則知道連接於端子 SW3#之開關單元爲正常。 連接於端子SW4之開關單元的檢查’係如下述般進行 。使端子SW3#之開關單元開啓、端子SW4之開關單元開啓 ,端子AN3之電壓位準爲低,而且’端子SW4之開關單元 爲關閉時’端子AN 3之電壓位準如爲高時’則知道連接於 端子SW4之開關單元爲正常° 連接於按下檢查之SW0#之開關單元的檢查’係如下 述般進行。端子S W ]#之開關單元’在檢查中爲關閉狀態 -26- (24) 1304943 。而且’將SW2之開關單元設爲關閉,而且,確認SW0#之 開關單元爲開啓時之端子AN 1的電壓位準爲高。然後,在 使端子S W0#之開關單元成爲關閉之狀態下,使端子S W2之 開關單元一次成爲開啓,將觸摸面板的電荷放出。之後, 將端子SW2之開關單元設爲關閉。此時,端子AN〗之電壓 位準如成爲低,則判斷連接於SW0#之開關單元爲正常。 如此’在連接有4線式觸摸面板時,完全不用操作觸 摸面板’可以診斷驅動其所必要之全部的開關(電晶體) °另外’觸摸面板本身即使有不良時,A/D轉換器的輸入 端子之電壓位準成爲不穩定,所以,在執行前述之診斷的 情形’也可以判定爲哪個開關之不良。但是,藉由實行此 種診斷’可以明白哪個觸摸面板或控制單元之其一的硬體 要素有不良。因此,藉由能特定硬體有問題,系統產生不 良時之原因解析等維護作業可以容易,且能迅速地進行。 檢查之開關的順序,並不特別限定。 5線式觸摸開關之自我診斷,係如下述般進行。 5線式觸摸開關的自我診斷係和4線式觸摸開關相同, 依據第1 1圖的流程圖來進行。 但是,開關的動作係依據表7來進行。另外,在執行 表7的開關動作時,於此實施例中,係如第3圖所示般,追 加有Diagnostic線(診斷線)。此診斷線係連接於構成觸 摸面板的上部電阻膜(電源側電阻膜)。此診斷線係設爲 在任意之時機能使使用於按下判定的開關單元爲開啓所致 之觸摸面板的電荷放電。 -27- (25) 1304943 在連接有第3圖之5線式觸摸開關時,步驟4 1中之硬體 檢查係如表7所示般,使各開關(電晶體)依序動作’解 析其之端子輸出。 構成端子s W 0 #之開關單元的電晶體Q 1之檢查’係如 下述般進行。 在按下等待中,上部電阻膜由於端子SW0#的開關單 元成爲開啓,爲帶電狀態。於動作時,藉由被按下’電荷 通過下部電阻膜而跑掉。但是,於自我診斷時’不伴隨使 用者操作,所以,除了自然放電以外,電荷並無跑掉之手 段。因此,即使檢測A/D轉換器的輸入端子AN 1 4 ’也不會 因SW0#之開關單元的開啓/關閉而即刻產生電壓位準的 變化(高/低之狀態變化)。因此,如第1 2圖所示般,利 用微控制器之任意的輸入輸出埠(此處,設爲PE4 ),藉 由將其一次變'更爲低輸出,進行上部電阻膜所帶之電荷的 放電,使得可以即刻判別端子SW0#之開關單元被關閉。 具體而言,將准斷線設爲高阻抗狀態,使構成端子 SW0#之開關的電晶體Q1成爲開啓。此時,上部電阻膜藉 由電阻R而被昇壓,輸入端子AN 14的電壓位準成爲高。之 後,將端子SW0#之開關單元,即電晶體Q1關閉,使診斷 線成爲低輸出,將觸摸面板的電荷加以放電。一定時間後 ’使診斷線恢復爲高阻抗。之後,確認輸入端子AN 1 4之 電壓位準,如其爲低時,可以確認電晶體Q 1爲正常動作。 連接於其它控制線之端子的開關單元之檢查時,將端 子sW0#之開關單元(電晶體Q〗)設爲經常關閉之狀態。 -28- (26) 1304943 構成端子SW1#之開關單元的電晶體Q2及Q3的檢查’ 係如下述般進行。 將端子SW2、SW3#及SW4都設爲高時,如第13圖所示 般,電極P2、P3及P4都成爲低。此處,如將端子SW1#設 爲低時,電極PI成爲高’連接於電極P1之輸入端子AN0之 電壓位準成爲高。之後’如將端子SW2、SW3#及SW4都設 爲低時,電極P 3成爲關閉,電極P 2及P 4都成爲高。此時’ 如將端子S W 1 #設爲高時’電極P 1成爲低’連接於電極P 1 之輸入端子ΑΝ0之電壓位準也成爲低。 假如Q2或Q3不是正常動作的情形’根據不直接連接 有輸入端子ΑΝ0之電極的影響’假定之電壓位準成爲不同 結果,所以,在前述動作正常被執行時,可以判定電晶體 Q2、Q3都爲正常。 同樣地,連接於控制線之端子S W3 #之開關單元(電 晶體Q4及Q5 )的檢査,係如下述般進行。 將端子SW1#、SW2及SW4都設爲高時,電極pi、P3及 P4都成爲低。此處’如將端子SW3#設爲低時,電極p2成 爲高,連接於電極P2之輸入端子AN2之電壓位準成爲高。 之後’如將端子SW1#、SW2及SW4都設爲低時,電極P3$ 爲關閉,電極P1及P4都成爲高。此時,如將端子SW3#設 爲高時,電極P2成爲低,連接於電極P2之輸入端子AN2之 電壓位準也成爲低。假如Q4或Q5不是正常動作的情形, 根據不直接連接有輸入端子AN2之電極的影響,假定之電 壓位準成爲不同結果’所以’在前述動作正常被執行時, -29- (27) (27)1304943 可以判定電晶體Q4、Q5都爲正常。 同樣地,連接於控制線之端子S W 4之開關單元(電晶 體Q 7及Q 8 )的檢查,係如下述般進行。 將端子SW1#、SW2及SW3#都設爲高時,電極PI、P3 及P2都成爲低。此處,如將端子SW4設爲低時,電極P4成 爲高’連接於電極P4之輸入端子AN3之電壓位準成爲高。 之後’如將端子SW1#、SW2及SW3#都設爲低時,電極P3 成爲關閉’電極P1及P2都成爲高。此時,如將端子SW4設 爲高時,電極P4成爲低,連接於電極P4之輸入端子AN3之 電壓位準也成爲低。假如Q7或Q8不是正常動作的情形, 根據不直接連接有輸入端子AN3之電極的影響,假定之電 壓位準成爲不同結果’所以,在前述動作正常被執行時, 可以判定電晶體Q7及Q8都爲正常。 連接於端子SW2之開關單元(電晶體Q6 )的檢查,係 如下述般進行。 將端子SW1#、SW3及SW4都設爲低時,電極Pl、P2及 p4都成爲高。此處,如將端子SW2設爲低時,電極P3成爲 高’連接於電極P3之輸入端子AN 13之電壓位準成爲高。 之後,如將端子SW2設爲低時,電極P3成爲低,連接於電 極p3之輸入端子AN1之電壓位準也成爲低。假如Q6不是正 常動作的情形,根據不直接連接有輸入端子AN 1之電極的 影響’假定之電壓位準成爲不同結果,所以,在前述動作 i常被執行時,可以判定電晶體Q6爲正常。 如此,在連接有5線是觸摸面板時,完全不用操作觸 -30- (28) 1304943 摸面板’可以診斷驅動其所必要之全部的要素(電晶體) 。另外’觸摸面板本身即使有不良時,施加於A/D轉換器 ' 的輸入端子之電壓位準不會變化,而成爲假定外之結果, 所以,在執行前述之診斷的情形,也可以判定爲哪個開關 之不良。但是,藉由實行此種診斷,可以明白哪個觸摸面 板或控制單元之其一的硬體要素有不良。因此,系統產生 不良時之原因解析等維護作業可以變得容易。 • 檢査之開關單元(電晶體)的順序,並無特別限定。 本發明並不限定於前述發明之實施形態及實施例之說 明。於不脫離專利申請範圍之記載,該業者可以容易想到 之範圍內,各種之變形形態也包含於本發明。 【,圖式簡單說明】 第1圖係表示本發明之控制單元的全體構造區塊圖。 第2圖係表示4線式觸摸面板之驅動原理。 • 第3圖係表示5線式觸摸面板之驅動原理。 第4圖係說明同樣之5線式觸摸面板的基本構造。 第5圖係說明同樣之5線式觸摸面板的X方向驅動。 第6圖係說明同樣之5線式觸摸面板的Y方向驅動。 第7圖係說明同樣之5線式觸摸面板的按下檢測原理。 第8圖係實施例的控制電路部(5線式對應)之詳細圖 〇 第9圖係實施例之控制電路部(4線式對應)之詳細圖 -31 - (29) (29)1304943 第1 0圖係說明自動認識觸摸面板之驅動方式之動作流 程圖。 第11圖係說明觸摸面板之自我診斷動作的流程圖。 第1 2圖係說明5線式觸摸面板中之按下檢測用端子 SW0#之開關單元的自我診斷原理。 第13圖係說明5線式觸摸面板中之端子SW1#的開關單 元之自我診斷原理。 [主要元件符號說明】 1 〇 :控制電路部 11〜1 6 :類比開關 20 :連結器 3 〇 :面板控制器 3 1 :面板主控制部 3 2 :開關控制器 3 3 :開關選擇部 3 4 :連結器用開關選擇部 3 5 :驅動方式特定部 3 6 :診斷部 3 7 :參數選擇部 3 8 :模組選擇部 40 :記憶體 4 1 :參數記億體 42 :模組記憶體 -32- (30) (30)1304943Inspection object SW1# SW2 SW3# SW4 swo# Judgment 5-line type Q] Q3 ON Lo (Q1 ON) AN 14=H (Set Diagenostic line (PE4) as input setting (Hi-Z)) Q1 OFF OFF (Hi) AN 14=L (Set the Diagnostic line (PE4) to the output setting, change it to L, and set it to the input setting (Hi-Z) after a certain period of time) Q2 Q2 ON Hi Lo Hi Hi Hi AN0=H (However, to 5WireE ]#=L Q3 Q3 OFF (Q2 ON, (Q6 ON) (Q4 OFF, (57E, 5WireE2#=L conditions are implemented) (H瀚) 〇3 OFF) Q5 ON) 〇SON) Q2 OFF Hi Lo Lo Lo AN0=L (However, 5WireEl#=L Q3 0N (Q2 OFF, (Q6 OFF) (Q4 ON, (57E, 5WireE2#= L condition) (Lo output) 〇3 ON Q5 OFF) Q8 OFF Q4 Q4 0M Hi Hi Hi Lo Hi AN2=H (However, 5WireEl#=L Q5 Q5 OFF (Q2 OFF, (Q6 ON) (Q4 ON, (Q7 0FF, , 5WireE2#= L Condition to implement) (H瀚) 〇3 ON) 〇5 OFF) 〇8 ON) Q4 OFF Lo Lo Hi Lo AN2=L (However, to 5WireEl#=L Q5 0N (Q2 ON, (Q6 OFF) (Q4 OFF, (Q7 ON, , 5WireE2#= L conditions are implemented) (Lo output) 〇3 OFF) 〇5 ON Q8 OFF Q7 Q7 ON Hi Hi Hi Hi Lo AN3=H (However, 5WireEl#=L Q8 Q8 OFF (Q2 OFF, (Q6 ON) (Q4 OFF, (57E, 5WireE2#= L condition) (H output) 〇3 ON) 05 ON) Q8 OFF) Q7 OFF Lo Lo Lo Hi AN3=L (However, the condition of 5WireEl#=L Q8 0N (Q2 ON, (Q6 OFF) (Q4 ON, (Q7 OFF, , 5WireE2#= L) To implement) (Lo output) 〇3 OFF) 05 OFF) 〇8 ON) Q6 Q6 OFF Hi Lo Lo Lo Lo AN1=H (Q2〇N, (Q6 OFF) (Q4 ON, (Q7 ON, (but, 5WireEl#=L, Q3 OFF) 〇5 OFF) 〇8 OFF) 5WireE2#= L conditions are implemented) Q6 ON Hi Lo Hi Lo Lo AN1=L (Q2 ON, (Q6 ON) (Q4 ON, (Q7 ON , (But, 5WireE]#=L, Q3 OFF) Q5 OFF) Q8 OFF) 5WireE2#= L condition is implemented.) When input terminal ΑΝ0 does not produce the aforementioned voltage level change, -22- (20) 1304943 It is determined that the connected touch panel is not a 4-wire type or a 5-wire type (or there is a possibility that a switch unit connected to the terminal SW 1 # is faulty), and an error signal is sent (step 7) ° AN 0 is not driven when the 4-wire touch panel is connected Therefore, no voltage changes, can be distinguished. In the case where the connected touch panel is specified to be 4-wire type, in step 1 1, the switch of the control circuit portion 1 is selected. In other words, the switch select unit 33 maintains the 5WireEl# signal high. The switch select unit 34 causes the 5 WireE2 signal to be high. The specific switch is enabled. Next, in step 13, the parameter selection unit 37 reads out various parameters suitable for the four-line type from the parameter memory 4 1 of the memory 40, and stores them in the memory 43. Specifically, the address of the parameter previously stored in the non-volatile memory 40 is written in the memory 43, and the parameter can be accessed by writing to the address of the memory 43. Such parameters may be given by weighting the predetermined voltage threshold or the start of the A/D conversion, or by switching the weights of the transistors that constitute the switching unit. In step 15, the module selecting unit 38 reads out the module corresponding to the 4-wire type control program from the module of the memory 40, and stores it in the memory 4 3 . Specifically, the address of the control program module previously stored in the non-volatile memory 40 is written in the memory 43, and the control program is read by writing the address of the memory 43 for use in the control circuit. Departmental control. In the case where the connected touch panel is specified to be 5-wire type, in step 21, the switch of the control circuit portion 10 is selected. That is, the 5 WireEl# signal is set to be low by the switch selection -23-(21) (21) 1304943 part 3 3, and the 5WireE2# signal is set to the low state by the connector switch selection unit 34, so that the specific The switch becomes operational. Next, in step 23, the parameter selection unit 37 reads out various parameters suitable for the 5-line type from the parameter memory 4 1 of the syllabus 40, and stores them in the memory 4 3 . Specifically, the address of the parameter previously stored in the non-volatile memory 40 is written in the memory 43, and the parameter can be accessed by writing to the address of the memory 43. Such parameters can be the same as in the case of the 4-wire type. In step 25, the module selection unit 38 reads out the module corresponding to the 5-line control program from the module 400 of the memory 40, and stores it in the memory 43. Specifically, the address of the control program module previously stored in the non-volatile memory 40 is written in the memory 43, and the control program is read by writing the address of the memory 43 and used in the control circuit unit. control. As described above, according to the control unit 1 of the present embodiment, when the touch panel of the different driving method shown in Figs. 2 and 3 is connected, the driving method of the touch panel can be automatically specified. Further, a specific switch can be selected from the control circuit unit in accordance with the specific driving method, and the operation can be performed. Thereby, the drive control of the two touch panels can be performed by one control unit. In this embodiment, the components of the control circuit unit are shared between the 4-wire drive mode and the 5-wire drive mode. Therefore, the number of elements of the control unit becomes small, which can be provided inexpensively. Next, the driving method of the touch panel connected to the connector 20 is specified, and the elements of the control circuit unit 10 are selected corresponding to the driving method, and further, the parameters and the control steps are necessary in order to operate the control circuit unit 10. -24- (22) 1304943 The selected mode control unit, whether it is acting as scheduled, is also automatically diagnosed. This diagnosis is performed at the beginning of the connection of the touch panel to the connector, and can also be performed periodically as one of the maintenance rings. In the case where the 4-wire touch panel shown in Fig. 2 is connected to the connector, the self-diagnosis is performed in accordance with the flowchart of Fig. 11. In step 31, when the check signal is input to the main control unit 51 of the microcontroller 50, the main control unit 51 sends an instruction to the panel main control unit 31 of the panel controller 30. The panel main control unit 31 checks whether the mode selected as the control program thereof is correctly operated (step 3 3 ). This check is performed, for example, by checking the checksum of all modules. When the selected module is not in use, that is, when there is a software error, an error message is sent (step 39). The error message is transmitted through the input and output interface by the microcontroller 50, for example, to the host computer. When the selected module is normal, the process proceeds to step 41 to perform a hardware check. Here, the hard body inspection is to check whether the functional parts of the control panel (specifically, the transistors constituting the switch unit) are normal (step 41). When the hardware inspection is also normal, the touch panel is driven (step 43). In addition, when the result of the hardware inspection is NG, error communication is performed (step 39). The hardware inspection in step 41 is controlled by the diagnosis unit 36 according to a program saved in advance, and the switch controller 3, the switch is controlled. The selection unit 3 3 and the connector switch selection unit 34 perform the selection. Specifically, each switch is operated in the same manner as in Table 6, and the voltage change at the input terminal of the A/D converter is analyzed. That is, the connection of -25- (23) 1304943 to the switch unit of terminal S W ] # is performed as follows. The switch unit of the terminal SW2 is turned on, and the switch unit of the terminal SW0# is turned off. When the switch unit of the terminal SW1# is turned on, the voltage level of the terminal ΑΝ0 is high, and when the switch unit of the terminal SW1# is turned off, the terminal ΑΝ0 If the voltage level is low, it is known that the switching unit connected to the terminal SW1# is normal, and the inspection of the switching unit connected to the terminal SW2 is performed as follows. The switching unit of the terminal SW1# is turned on, the switching unit of the terminal SW0# is turned off, and when the switching unit of the terminal SW2 is turned on, the voltage level of the terminal AN1 is low, and when the switching unit of the terminal SW2 is turned off, the terminal AN1 is If the voltage level is high, it is known that the switching unit connected to the terminal SW2 is normal. The inspection of the switch unit connected to the terminal SW3# is performed as follows. When the switch of the terminal SW4 is turned on and the switch of the terminal SW3# is turned on, the voltage level of the terminal AN2 is high, and when the switching unit of the terminal SW3# is turned off, when the voltage level of the terminal AN2 is low, it is known that the voltage is connected to The switch unit of terminal SW3# is normal. The inspection of the switching unit connected to the terminal SW4 is performed as follows. When the switch unit of the terminal SW3# is turned on, the switch unit of the terminal SW4 is turned on, the voltage level of the terminal AN3 is low, and when the switch unit of the terminal SW4 is turned off, the voltage level of the terminal AN3 is high, then it is known. The switching unit connected to the terminal SW4 is normally "connected to the inspection of the switch unit of the SW0# to be inspected" as follows. The switch unit of terminal S W ]# is turned off during inspection -26- (24) 1304943. Further, the switching unit of SW2 is turned off, and the voltage level of the terminal AN1 when the switching unit of SW0# is turned on is high. Then, in a state where the switching unit of the terminal S W0# is turned off, the switching unit of the terminal S W2 is turned on once, and the electric charge of the touch panel is released. After that, the switch unit of the terminal SW2 is set to off. At this time, if the voltage level of the terminal AN is low, it is judged that the switch unit connected to SW0# is normal. In this way, when the 4-wire touch panel is connected, the touch panel can be used at all without diagnosing all the switches (transistors) necessary to drive it. In addition, the touch panel itself has an input even if there is a defect, the input of the A/D converter. Since the voltage level of the terminal becomes unstable, it is also possible to determine which switch is defective in the case of performing the aforementioned diagnosis. However, by performing such a diagnosis, it can be understood which one of the touch panel or the control unit has a defective hardware element. Therefore, maintenance work such as analysis of the cause of the system failure can be easily performed by the problem that the specific hardware is problematic, and the operation can be performed quickly. The order of the switches to be inspected is not particularly limited. The self-diagnosis of the 5-wire touch switch is performed as follows. The self-diagnosis of the 5-wire touch switch is the same as that of the 4-wire touch switch, and is performed according to the flowchart of Fig. 11. However, the operation of the switch is performed in accordance with Table 7. Further, when the switching operation of Table 7 is performed, in this embodiment, as shown in Fig. 3, a Diagnostic line (diagnostic line) is added. This diagnostic line is connected to the upper resistive film (power supply side resistive film) that constitutes the touch panel. This diagnostic line is set to discharge the charge of the touch panel which is turned on when the switch unit for pressing the determination is turned on at any timing. -27- (25) 1304943 When the 5-wire touch switch of Figure 3 is connected, the hardware inspection in step 41 is as shown in Table 7, and each switch (transistor) is operated in sequence to 'analyze its Terminal output. The inspection of the transistor Q 1 constituting the switching unit of the terminal s W 0 # is performed as follows. During the press wait, the upper resistive film is in a charged state because the switching unit of the terminal SW0# is turned on. During operation, it is ran away by being pressed through the lower resistive film. However, in the case of self-diagnosis, it is not accompanied by the user's operation, so the charge does not run away except for the natural discharge. Therefore, even if the input terminal AN 1 4 ' of the A/D converter is detected, the voltage level change (high/low state change) is not instantaneously caused by the ON/OFF of the SW0# switching unit. Therefore, as shown in Fig. 1, using any input/output 埠 (here, set to PE4) of the microcontroller, the charge of the upper resistive film is performed by changing it to a lower output. The discharge makes it possible to immediately judge that the switching unit of the terminal SW0# is turned off. Specifically, the quasi-breaking line is set to a high impedance state, and the transistor Q1 constituting the switch of the terminal SW0# is turned on. At this time, the upper resistive film is boosted by the resistor R, and the voltage level of the input terminal AN 14 becomes high. Thereafter, the switching unit of the terminal SW0#, that is, the transistor Q1 is turned off, the diagnostic line is made low, and the electric charge of the touch panel is discharged. After a certain period of time, 'restore the diagnostic line to high impedance. Thereafter, the voltage level of the input terminal AN 1 4 is confirmed, and if it is low, it can be confirmed that the transistor Q 1 is in a normal operation. When the switching unit connected to the terminals of other control lines is inspected, the switching unit (transistor Q) of the terminal sW0# is set to be in a normally closed state. -28- (26) 1304943 The inspection of the transistors Q2 and Q3 constituting the switching unit of the terminal SW1# was performed as follows. When the terminals SW2, SW3#, and SW4 are all set to high, as shown in Fig. 13, the electrodes P2, P3, and P4 are all low. Here, when the terminal SW1# is set to be low, the electrode PI becomes high. The voltage level of the input terminal AN0 connected to the electrode P1 becomes high. Thereafter, when the terminals SW2, SW3#, and SW4 are all set to be low, the electrode P3 is turned off, and the electrodes P2 and P4 are both high. At this time, when the terminal S W 1 # is set high, the electrode P 1 is low. The voltage level of the input terminal ΑΝ0 connected to the electrode P 1 is also low. If Q2 or Q3 is not in normal operation, 'the voltage level is assumed to be different depending on the influence of the electrode that is not directly connected to the input terminal ΑΝ0. Therefore, when the above operation is normally performed, it can be determined that the transistors Q2 and Q3 are both It is normal. Similarly, the inspection of the switching units (the transistors Q4 and Q5) connected to the terminal S W3 # of the control line is performed as follows. When the terminals SW1#, SW2, and SW4 are all set to high, the electrodes pi, P3, and P4 are all low. Here, when the terminal SW3# is set to be low, the electrode p2 is made high, and the voltage level of the input terminal AN2 connected to the electrode P2 is high. Thereafter, when the terminals SW1#, SW2, and SW4 are all set to low, the electrode P3$ is turned off, and the electrodes P1 and P4 are both high. At this time, if the terminal SW3# is set to be high, the electrode P2 is low, and the voltage level of the input terminal AN2 connected to the electrode P2 is also low. If Q4 or Q5 is not in normal operation, the voltage level is assumed to be a different result according to the influence of the electrode not directly connected to the input terminal AN2. Therefore, when the above action is normally performed, -29-(27) (27 ) 1304943 It can be determined that the transistors Q4 and Q5 are all normal. Similarly, the inspection of the switching units (the transistors Q 7 and Q 8 ) connected to the terminals S W 4 of the control line is performed as follows. When the terminals SW1#, SW2, and SW3# are all set to high, the electrodes PI, P3, and P2 are all low. Here, when the terminal SW4 is set to be low, the electrode P4 becomes high. The voltage level of the input terminal AN3 connected to the electrode P4 becomes high. Thereafter, when the terminals SW1#, SW2, and SW3# are all set to be low, the electrode P3 is turned off. The electrodes P1 and P2 are both high. At this time, if the terminal SW4 is set to be high, the electrode P4 is low, and the voltage level of the input terminal AN3 connected to the electrode P4 is also low. If Q7 or Q8 is not in normal operation, the voltage level is assumed to be different depending on the influence of the electrode that is not directly connected to the input terminal AN3. Therefore, when the above operation is normally performed, it can be determined that the transistors Q7 and Q8 are both It is normal. The inspection of the switching unit (transistor Q6) connected to the terminal SW2 is performed as follows. When the terminals SW1#, SW3, and SW4 are all set to be low, the electrodes P1, P2, and p4 are both high. Here, when the terminal SW2 is set to be low, the electrode P3 becomes high. The voltage level of the input terminal AN13 connected to the electrode P3 becomes high. Thereafter, when the terminal SW2 is set to be low, the electrode P3 is made low, and the voltage level of the input terminal AN1 connected to the electrode p3 is also low. If Q6 is not normally operated, the voltage level assumed to be different depending on the influence of the electrode directly connected to the input terminal AN1 is different. Therefore, when the above operation i is often performed, it can be determined that the transistor Q6 is normal. In this way, when the 5-wire is connected to the touch panel, the touch panel -30-(28) 1304943 touch panel can be used to diagnose all the necessary elements (transistors) for driving. In addition, even if there is a defect in the touch panel itself, the voltage level applied to the input terminal of the A/D converter ' does not change, and it is a result of the assumption. Therefore, in the case of performing the above-described diagnosis, it may be determined as Which switch is bad. However, by performing such a diagnosis, it can be understood which one of the touch panel or the control unit has a defective hardware element. Therefore, it is easy to perform maintenance work such as analysis of causes when the system is defective. • The order of the switch unit (transistor) to be inspected is not specifically limited. The invention is not limited to the embodiments of the invention described above and the description of the embodiments. Various modifications may be made without departing from the scope of the patent application, and various modifications are possible within the scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a view showing the entire construction block of the control unit of the present invention. Fig. 2 shows the driving principle of the 4-wire touch panel. • Figure 3 shows the driving principle of a 5-wire touch panel. Fig. 4 is a view showing the basic configuration of the same 5-wire type touch panel. Fig. 5 is a view showing the X-direction driving of the same 5-wire type touch panel. Fig. 6 is a view showing the Y-direction driving of the same 5-wire type touch panel. Fig. 7 is a view showing the principle of pressing detection of the same 5-wire type touch panel. Fig. 8 is a detailed view of a control circuit unit (5-line type correspondence) of the embodiment. Fig. 9 is a detailed view of a control circuit unit (4-wire type) of the embodiment - 31 - (29) (29) 1304943 1 0 is a flow chart showing the action of automatically understanding the driving mode of the touch panel. Figure 11 is a flow chart illustrating the self-diagnosis action of the touch panel. Fig. 1 is a diagram showing the principle of self-diagnosis of the switching unit of the pressing detection terminal SW0# in the 5-wire type touch panel. Fig. 13 is a diagram showing the self-diagnosis principle of the switching unit of the terminal SW1# in the 5-wire type touch panel. [Description of main component symbols] 1 〇: Control circuit sections 11 to 1 6 : Analog switch 20 : Connector 3 〇 : Panel controller 3 1 : Panel main control section 3 2 : Switch controller 3 3 : Switch selection section 3 4 : Connector selection unit 3 5 : Drive system specific unit 3 6 : Diagnostic unit 3 7 : Parameter selection unit 3 8 : Module selection unit 40 : Memory 4 1 : Parameter unit 42 : Module memory - 32 - (30) (30)1304943

5 0 :微控制器 5 1 :主控制裝置 52 : A/D轉換器 53:輸入輸出介面 -33-5 0 : Microcontroller 5 1 : Main control unit 52 : A/D converter 53 : Input/output interface -33-

Claims (1)

卿。月7日修正Qing. Revised on July 7 1304943 十、申請專利範圍 第94 1 3 3 3 72號專利申請案 中文申請專利範圍修正本 民國97年10月7 日修正 1 一種觸摸面板用控制單元,是用以控制以第1驅 動方式來驅動第1觸摸面板和以第2驅動方式來驅動第2 觸瘼面板的控制單元;其特徵爲具備有:1304943 X. Patent Application No. 94 1 3 3 3 72 Patent Application Chinese Patent Application Revision Amendment October 7, 1997 Revision 1 A control unit for a touch panel is used to control driving in the first driving mode. a first touch panel and a control unit that drives the second touch panel by the second driving method; and is characterized by: 對應前述第1驅動方式之第1控制電路部; 對應前述第2驅動方式之第2控制電路部; 可以連結前述第1觸摸面板及前述第2觸摸面板之連 結器; 特定連結到該連結器之觸摸面板的驅動方式之驅動方 式特定部;以及 根據經由該驅動方式特定部所特定的驅動方式,來選 擇控制電路部之第1選擇部。 2.如申請專利範圍第1項所記載之觸摸面板用控制 單元,其中: 前述第1控制電路部與前述第2控制電路部,係共有 開關部;於該開關部,相關連觸摸面板的X方向及Y方 向的電壓檢測之4個開關單元中的其中3個,具有一對的 電晶體,其他1個是由1個電晶體所成;於前述第1驅動 方式爲4線驅動方式的場合,構成前述3個的開關之各一 對的電晶體的一方爲停止狀態。 3.如申請專利範圍第1項或第2項所記載之觸摸面 1304943a first control circuit unit corresponding to the first driving method; a second control circuit unit corresponding to the second driving method; a connector for connecting the first touch panel and the second touch panel; and a connection to the connector The driving mode specifying unit of the driving method of the touch panel; and the first selecting unit of the control circuit unit is selected according to a driving method specified by the driving method specifying unit. 2. The touch panel control unit according to the first aspect of the invention, wherein the first control circuit unit and the second control circuit unit share a switch unit; and the switch unit is associated with a touch panel X. Three of the four switching units for detecting the voltage in the direction and the Y direction have a pair of transistors, and the other one is formed by one transistor; in the case where the first driving method is the 4-wire driving method One of the transistors constituting each of the three switches is in a stopped state. 3. Touch surface as described in item 1 or 2 of the patent application scope 1304943 板用控制單元,其中更具備有: - 保存有爲了實行前述第1驅動方式的第1參數之第1 ' 參數保存部; 保存有爲了實行前述第2驅動方式的第2參數之第2 參數保存部; 保存有爲了實行前述第1驅動方式的第1控制程式模 組之第1程式模組保存部; g 保存有爲了實行前述第2驅動方式的第2控制程式模 組之第2程式模組保存部; 根據經由前述驅動方式特定部所特定的驅動方式’來 選擇參數之第2選擇部;以及 根據經由前述驅動方式特定部所特定的驅動方式,來 選擇控制程式模組之第3選擇部。Further, the plate control unit further includes: - a first 'parameter storage unit that stores the first parameter for performing the first drive mode; and a second parameter storage for storing the second parameter of the second drive mode a first program module storage unit that stores a first control program module for implementing the first drive mode; g a second program module that stores a second control program module for executing the second drive method a second selection unit that selects a parameter based on a drive mode specified by the drive mode specific unit; and a third selection unit that selects a control program module based on a drive mode specified by the drive mode identification unit . Ι3Ό4943 第94133372號專利申請案 中文圖式修正頁 力年?胙日修工:餓1丨 民國97年9月8日修正 10 參 猶8SΙ3Ό4943 Patent Application No. 94133372 Chinese Picture Revision Page Lien? The next day's repair: Hungry 1丨 The Republic of China revised on September 8, 1997 10 Sensation 8S 1304943 月 1 參1304943 month 1 媿9S愧9S
TW094133372A 2004-09-30 2005-09-26 Control unit for contact screen TW200632753A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004288666A JP4622432B2 (en) 2004-09-30 2004-09-30 Touch panel control unit

Publications (2)

Publication Number Publication Date
TW200632753A TW200632753A (en) 2006-09-16
TWI304943B true TWI304943B (en) 2009-01-01

Family

ID=36376547

Family Applications (1)

Application Number Title Priority Date Filing Date
TW094133372A TW200632753A (en) 2004-09-30 2005-09-26 Control unit for contact screen

Country Status (3)

Country Link
JP (1) JP4622432B2 (en)
CN (1) CN100410859C (en)
TW (1) TW200632753A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408816B (en) 2007-10-12 2010-12-29 群康科技(深圳)有限公司 Touch screen, drive method of touch screen and display apparatus of touch screen
JP4433035B2 (en) * 2007-11-05 2010-03-17 エプソンイメージングデバイス株式会社 Display device and electronic device
JP5642500B2 (en) * 2010-07-22 2014-12-17 富士通コンポーネント株式会社 Touch panel position detection method, touch panel, touch panel initialization method
CN102314257A (en) * 2011-09-22 2012-01-11 中兴通讯股份有限公司 Touch device and user terminal
CN105445984B (en) * 2015-12-09 2019-01-15 厦门天马微电子有限公司 A kind of touch display screen and touch control display method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100300397B1 (en) * 1994-04-21 2001-10-22 김순택 System having touch panel and digitizer function and driving method
JPH09167047A (en) * 1995-12-14 1997-06-24 Fujitsu Takamizawa Component Kk Coordinate detector and error correcting method
GB9708464D0 (en) * 1997-04-25 1997-06-18 Raychem Ltd Converter for resistive touchscreens
US6424094B1 (en) * 2001-05-15 2002-07-23 Eastman Kodak Company Organic electroluminescent display with integrated resistive touch screen
KR100474724B1 (en) * 2001-08-04 2005-03-08 삼성전자주식회사 Apparatus having touch screen and external display device using method therefor
KR100847813B1 (en) * 2001-12-27 2008-07-23 엘지디스플레이 주식회사 Apparatus And Method for Driving Touch Panel
KR100480823B1 (en) * 2002-11-14 2005-04-07 엘지.필립스 엘시디 주식회사 touch panel for display device
JP2006106840A (en) * 2004-09-30 2006-04-20 Seiko Epson Corp Control unit for touch panel and touch panel

Also Published As

Publication number Publication date
CN100410859C (en) 2008-08-13
TW200632753A (en) 2006-09-16
CN1766821A (en) 2006-05-03
JP2006106839A (en) 2006-04-20
JP4622432B2 (en) 2011-02-02

Similar Documents

Publication Publication Date Title
TWI304943B (en)
US8421772B2 (en) Resistive touch control device and driving method and driving controller thereof
US5644705A (en) Method and apparatus for addressing and testing more than two ATA/IDE disk drive assemblies using an ISA bus
US7246273B2 (en) Method of, apparatus and graphical user interface for automatic diagnostics
CN102455826B (en) Use display device and the driving method thereof of infrared sensor module
US20160188084A1 (en) Touch panel testing using mutual capacitor measurements
US20060103635A1 (en) Device and method of avoiding noise in touch screen panel
JP2006513505A (en) Touch simulation system and method
CN101131648A (en) On-line updating method for USB interface control panel
AU2004232237A1 (en) Remote touch simulation systems and methods
CN104423695A (en) Display device and driving method thereof
CN1678980A (en) Touch sensing
KR101013514B1 (en) Test apparatus for capacitive touch panel and test method using the same
CN106980456A (en) The control method and projector equipment of projector equipment
KR20190062785A (en) Touch sensing device and image display device using the same
US6876942B2 (en) Methods and systems for enhanced automated system testing
CN106354312B (en) Touch screen and display screen integrated test system based On-Cell
CN114115585B (en) Touch display device, driving circuit and automatic flaw detection method
US20210011569A1 (en) Self-test method, corresponding circuit and device
US11079868B2 (en) Touch panel recognizing virtual touches in addition to actual touches, method for operation of such touch panel, and touch display device
CN100416512C (en) Embedded apparatus debugging method and debugging tool therefor
JP2006106840A (en) Control unit for touch panel and touch panel
CN221199824U (en) Universal detection device for display control terminal
US6874112B1 (en) Fault coverage and simplified test pattern generation for integrated circuits
CN115686977B (en) On-site programmable gate array chip capable of quickly selecting output and setting method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees