JP5486472B2 - Touch panel device and touch input point distance detection method of touch panel - Google Patents

Touch panel device and touch input point distance detection method of touch panel Download PDF

Info

Publication number
JP5486472B2
JP5486472B2 JP2010263709A JP2010263709A JP5486472B2 JP 5486472 B2 JP5486472 B2 JP 5486472B2 JP 2010263709 A JP2010263709 A JP 2010263709A JP 2010263709 A JP2010263709 A JP 2010263709A JP 5486472 B2 JP5486472 B2 JP 5486472B2
Authority
JP
Japan
Prior art keywords
voltage
points
point
touch
detecting
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
JP2010263709A
Other languages
Japanese (ja)
Other versions
JP2011134316A (en
Inventor
潤一 若杉
海鎮 李
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Asahi Kasei EMD Corp
Original Assignee
Asahi Kasei EMD 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 Asahi Kasei EMD Corp filed Critical Asahi Kasei EMD Corp
Priority to JP2010263709A priority Critical patent/JP5486472B2/en
Publication of JP2011134316A publication Critical patent/JP2011134316A/en
Application granted granted Critical
Publication of JP5486472B2 publication Critical patent/JP5486472B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、タッチパネル装置及びタッチパネルのタッチ入力点間距離検出方法に関し、特にタッチパネル上の2点を同時にタッチした際の2点間距離を検出可能な抵抗膜式のタッチパネル装置及び当該2点間距離を検出する方法に関する。   The present invention relates to a touch panel device and a touch input point distance detection method of a touch panel, and in particular, a resistive touch panel device capable of detecting a distance between two points when two points on the touch panel are touched simultaneously and the distance between the two points. It relates to a method of detecting.

従来のタッチパネル装置としては、例えば特許文献1に記載の技術がある。この技術は、タッチパネル上で2点がタッチされると、2層タッチパネルに設けた対向する端子間の抵抗値が低下する現象を利用して、2点タッチを判定するものである。
ここでは、2点タッチされたときの2点間の距離が大きいほど対向する端子間の抵抗値が大きくなることを利用して、X方向の端子間の抵抗値およびY方向の端子間の抵抗値に基づいて、X方向およびY方向の2点間の距離をそれぞれ検出している。
As a conventional touch panel device, for example, there is a technique described in Patent Document 1. This technique determines a two-point touch by utilizing a phenomenon in which a resistance value between opposing terminals provided on a two-layer touch panel decreases when two points are touched on the touch panel.
Here, using the fact that the resistance value between the opposing terminals increases as the distance between the two points when the two points are touched increases, the resistance value between the terminals in the X direction and the resistance between the terminals in the Y direction. Based on the value, the distance between two points in the X direction and the Y direction is detected.

特開2009−176114号公報JP 2009-176114 A

しかしながら、対向する端子間の抵抗値は、2点間の距離だけでなくタッチ入力点の押圧力にも影響する。すなわち、2点間の距離が同じであっても、タッチ入力点の押圧力が異なると、対向する端子間の抵抗値は変化する。
したがって、上記特許文献1に記載のタッチパネル装置のように、単に対向する端子間の抵抗値に基づいて2点間距離を検出する方法では、正確な2点間距離を求めることができず、操作者の意図に反する操作が認識されてしまうおそれがある。
そこで、本発明は、タッチパネル上で2点がタッチされた際の2点間距離を精度良く検出することができるタッチパネル装置及びタッチパネルのタッチ入力点間距離検出方法を提供することを目的としている。
However, the resistance value between the opposing terminals affects not only the distance between the two points but also the pressing force at the touch input point. That is, even if the distance between the two points is the same, if the pressing force at the touch input point is different, the resistance value between the opposing terminals changes.
Therefore, the method of detecting the distance between two points based on the resistance value between the terminals facing each other as in the touch panel device described in Patent Document 1 cannot obtain an accurate distance between the two points. There is a possibility that an operation contrary to the intention of the person will be recognized.
Therefore, an object of the present invention is to provide a touch panel device that can accurately detect a distance between two points when two points are touched on the touch panel, and a touch input point distance detection method of the touch panel.

本発明は、このような目的を達成するためになされたもので、請求項1に記載の発明は、一対の電極端子が対向する端辺部にそれぞれ設けられた2枚の抵抗膜を、上下で前記電極端子が直交するように互いに接触可能に近接対向させて構成したタッチパネルを備えるタッチパネル装置であって、一方の抵抗膜の一対の電極端子間に電源電圧を印加し、且つ他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第1の電圧検出手段と、前記一方の抵抗膜の一対の電極端子間に抵抗を介して電源電圧を印加し、且つ前記他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第2の電圧検出手段と、前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比に基づいて、前記タッチパネル上で2点がタッチされたか否かを判定する2点タッチ判定手段と、前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記他方の抵抗膜の一方の電極端子の電圧を検出する第3の電圧検出手段と、前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記一方の抵抗膜の他方の電極端子の電圧を検出する第4の電圧検出手段と、前記2点タッチ判定手段で2点がタッチされたと判定したとき、前記第1の電圧検出手段で検出した電圧と前記第3の電圧検出手段で検出した電圧と前記第4の電圧検出手段とで検出した電圧に基づいて、2点タッチ入力に共通の押圧力を検出する押圧力検出手段と、前記2点タッチ判定手段で2点がタッチされたと判定したとき、前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比と、前記押圧力検出手段で検出した押圧力とに基づいて、タッチされた2点間の距離を検出する2点間距離検出手段と、を備えることを特徴としている。 The present invention has been made in order to achieve such an object, and the invention according to claim 1 is characterized in that two resistive films provided respectively on end portions where a pair of electrode terminals are opposed to each other are provided on the upper and lower sides. A touch panel device comprising a touch panel configured to be close to each other so that the electrode terminals are orthogonal to each other so that the electrode terminals are orthogonal to each other, wherein a power supply voltage is applied between a pair of electrode terminals of one resistance film, and the other resistance film In a state where the pair of electrode terminals are short-circuited, a first voltage detecting means for detecting a voltage of one of the pair of electrode terminals of the other resistance film, and a pair of the one resistance film One of the pair of electrode terminals of the other resistance film in a state where a power supply voltage is applied between the electrode terminals of the other resistance film and the pair of electrode terminals of the other resistance film is short-circuited. Second power to detect terminal voltage Based on the ratio of the voltage detected by the detection means and the voltage detected by the first voltage detection means and the voltage detected by the second voltage detection means, it is determined whether or not two points are touched on the touch panel 2 Applying a power supply voltage to the point touch determination means and one electrode terminal of the one resistance film, opening the other electrode terminal of the one resistance film, and opening one electrode terminal of the other resistance film And third voltage detecting means for detecting the voltage of one electrode terminal of the other resistance film in a state where the other electrode terminal of the other resistance film is grounded, and one electrode of the one resistance film A power supply voltage is applied to the terminal, the other electrode terminal of the one resistive film is opened, and one electrode terminal of the other resistive film is opened, and the other electrode terminal of the other resistive film is grounded In the state, the other electrode terminal of the one resistance film A fourth voltage detecting means for detecting the pressure, when the two points is determined to have been touched by the two-point touch decision means, detected by the voltage detected by said first voltage detecting means and said third voltage detecting means Based on the detected voltage and the voltage detected by the fourth voltage detecting means, a pressing force detecting means for detecting a pressing force common to a two-point touch input , and two points touched by the two-point touch determining means When the determination is made, the touch is made based on the ratio between the voltage detected by the first voltage detecting means and the voltage detected by the second voltage detecting means and the pressing force detected by the pressing force detecting means. A point-to-point distance detecting means for detecting a distance between the two points.

このように、タッチ入力の押圧力を考慮してタッチされた2点間の距離を検出するので、例えば、操作者が2点タッチした際に、2点間距離を一定としたままでタッチ開始時から徐々に押圧力を変化させるような操作を行った場合であっても、適正に一定の2点間距離を検出することができるなど、2点間距離を精度良く求めることができる。   In this way, since the distance between two touched points is detected in consideration of the pressing force of the touch input, for example, when the operator touches two points, the touch starts while the distance between the two points is kept constant. Even when an operation that gradually changes the pressing force from the time is performed, the distance between the two points can be accurately obtained, for example, a constant distance between the two points can be detected.

また、請求項2に記載の発明は、請求項1に記載の発明において、前記2点間距離検出手段は、前記タッチパネルが1点タッチされているときに前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比と、前記タッチパネルが2点タッチされているときに前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比との差分に基づいて、前記2点間の距離の基準値を算出する基準値算出手段と、前記押圧力検出手段で検出した押圧力が小さいほど、前記基準値算出手段で算出した前記2点間の距離の基準値を増加補正する補正手段と、を備えることを特徴としている。 The invention according to claim 2 is the invention according to claim 1 , wherein the distance detection means between the two points is detected by the first voltage detection means when the touch panel is touched by one point. The ratio of the voltage to the voltage detected by the second voltage detection means, the voltage detected by the first voltage detection means when the touch panel is touched at two points, and the detection by the second voltage detection means The reference value calculating means for calculating the reference value of the distance between the two points based on the difference from the ratio to the measured voltage, and the reference value calculating means as the pressing force detected by the pressing force detecting means is smaller. Correction means for increasing and correcting the calculated reference value of the distance between the two points.

このように、2点間の距離に応じて前記第1の電圧検出部で検出した電圧と前記第2の電圧検出部で検出した電圧との比が変化することを利用して、2点間距離を検出するので、適正に2点間距離を検出することができる。また、座標検出や2点タッチ判定に用いる測定電圧を用いて2点間距離を検出することができるので、新たに2点間距離検出用の電圧測定を行う必要がない。したがって、その分電圧測定の回数を削減することができる。   As described above, the ratio between the voltage detected by the first voltage detector and the voltage detected by the second voltage detector changes according to the distance between the two points. Since the distance is detected, the distance between the two points can be properly detected. Further, since the distance between two points can be detected using the measurement voltage used for coordinate detection and two-point touch determination, it is not necessary to newly perform voltage measurement for detecting the distance between the two points. Therefore, the number of voltage measurements can be reduced accordingly.

また、請求項3に記載の発明は、請求項1または2に記載の発明において、前記押圧力検出手段は、前記2点タッチ判定手段で2点がタッチされたと判定したとき、タッチ入力の押圧力と相関関係にあり且つ各点の押圧力との相関度合いが同等又は略同等となる押圧パラメータを検出することを特徴としている。
このように、各点の押圧力の影響が同等程度となるような押圧パラメータを用いることで、各点の押圧力が異なる場合等であっても、より精度良く2点間距離を求めることができる。
According to a third aspect of the present invention, in the first or second aspect of the present invention, when the pressing force detecting means determines that two points are touched by the two-point touch determining means, the touch input pressing is performed. It is characterized by detecting a pressing parameter that is correlated with the pressure and that has the same or substantially the same degree of correlation with the pressing force at each point.
In this way, by using a pressing parameter that makes the influence of the pressing force at each point comparable, even when the pressing force at each point is different, the distance between the two points can be obtained more accurately. it can.

また、請求項4に記載の発明は、一対の電極端子が対向する端辺部にそれぞれ設けられた2枚の抵抗膜を、上下で前記電極端子が直交するように互いに接触可能に近接対向させて構成したタッチパネルのタッチ入力点間距離検出方法であって、一方の抵抗膜の一対の電極端子間に電源電圧を印加し、且つ他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第1の電圧検出ステップと、前記一方の抵抗膜の一対の電極端子間に抵抗を介して電源電圧を印加し、且つ前記他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第2の電圧検出ステップと、前記第1の電圧検出ステップにおいて検出された電圧と前記第2の電圧検出ステップにおいて検出された電圧との比に基づいて、前記タッチパネル上で2点がタッチされたか否かを判定する2点タッチ判定ステップと、前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記他方の抵抗膜の一方の電極端子の電圧を検出する第3の電圧検出ステップと、前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記一方の抵抗膜の他方の電極端子の電圧を検出する第4の電圧検出ステップと、前記2点タッチ判定ステップにおいて2点がタッチされたと判定されたとき、前記第1の電圧検出手段で検出した電圧と前記第3の電圧検出手段で検出した電圧と前記第4の電圧検出手段とで検出した電圧に基づいて、2点タッチ入力に共通の押圧力を検出する押圧力検出ステップと、前記2点タッチ判定ステップにおいて2点がタッチされたと判定されたとき、前記第1の電圧検出ステップにおいて検出された電圧と前記第2の電圧検出ステップにおいて検出された電圧との比と、前記押圧力検出ステップにおいて検出された押圧力とに基づいて、タッチされた2点間の距離を検出する2点間距離検出ステップと、を備えることを特徴としている。
このように、タッチ入力の押圧力を考慮してタッチされた2点間の距離を検出する方法
であるので、2点間距離を精度良く求めることができる。
According to a fourth aspect of the present invention, the two resistive films respectively provided on the end sides where the pair of electrode terminals face each other are placed close to each other so that they can contact each other so that the electrode terminals are perpendicular to each other. A touch input point distance detection method of a touch panel configured by applying a power supply voltage between a pair of electrode terminals of one resistance film, and shorting between a pair of electrode terminals of the other resistance film, A first voltage detection step for detecting a voltage of one of the pair of electrode terminals of the other resistance film; and a power supply voltage via a resistor between the pair of electrode terminals of the one resistance film. A second voltage detecting step of detecting a voltage of one of the pair of electrode terminals of the other resistive film in a state where the pair of electrode terminals of the other resistive film is short-circuited. And the first voltage detection step. On the basis of the ratio of the detected voltage in the a detected voltage second voltage detection step at two points on the touch panel and two-point touch judgment step of judging whether or not touched, the one A power supply voltage is applied to one electrode terminal of the resistance film, the other electrode terminal of the one resistance film is opened, and one electrode terminal of the other resistance film is opened, and the other of the other resistance film is opened. A third voltage detecting step of detecting a voltage of one electrode terminal of the other resistive film in a state where the electrode terminal is grounded, applying a power supply voltage to one electrode terminal of the one resistive film, Opening the other electrode terminal of one resistance film, opening one electrode terminal of the other resistance film, and grounding the other electrode terminal of the other resistance film, The voltage of the other electrode terminal A fourth voltage detecting step of leaving, when the two points is determined to have been touched in the two-point touch decision step, detected by the voltage detected by said first voltage detecting means and said third voltage detecting means Based on the voltage and the voltage detected by the fourth voltage detection means, it is determined that two points are touched in the pressing force detection step for detecting a pressing force common to the two-point touch input and the two-point touch determination step. When based on the ratio of the voltage detected in the first voltage detection step and the voltage detected in the second voltage detection step, and the pressing force detected in the pressing force detection step, A point-to-point distance detection step for detecting a distance between the two touched points.
In this way, since the distance between the two touched points is detected in consideration of the pressing force of the touch input, the distance between the two points can be obtained with high accuracy.

本発明によれば、タッチパネル上で2点がタッチされた際の2点間の距離を精度良く検出することができるので、操作者の意図に合致した操作を認識することができるタッチパネル装置とすることができる。   According to the present invention, since the distance between two points when the two points are touched on the touch panel can be detected with high accuracy, the touch panel device can recognize an operation that matches the operator's intention. be able to.

本発明の実施形態におけるタッチパネル装置の構成を示す回路図である。It is a circuit diagram which shows the structure of the touchscreen apparatus in embodiment of this invention. 制御部10で実行する初期化処理手順を示すフローチャートである。3 is a flowchart illustrating an initialization process procedure executed by a control unit 10. R_XP測定時における回路図である。It is a circuit diagram at the time of R_XP measurement. R_YP測定時における回路図である。It is a circuit diagram at the time of R_YP measurement. 制御部10で実行する2点タッチ処理手順を示すフローチャートである。4 is a flowchart showing a two-point touch processing procedure executed by the control unit 10. Xp1,Xp2測定時における回路図である。It is a circuit diagram at the time of Xp1, Xp2 measurement. Yp1,Yp2測定時における回路図である。It is a circuit diagram at the time of Yp1, Yp2 measurement. Z1測定時における回路図である。It is a circuit diagram at the time of Z1 measurement. Z2測定時における回路図である。It is a circuit diagram at the time of Z2 measurement. 1点タッチの場合の端子間抵抗の状態を示す図である。It is a figure which shows the state of the resistance between terminals in the case of 1-point touch. 2点間距離を一定としたときの押圧力と(R_YP0−R_YP)との関係を示す図である。It is a figure which shows the relationship between the pressing force when making distance between 2 points | pieces constant, and (R_YP0-R_YP). 本発明の第1の実施形態の効果を説明するための図である。It is a figure for demonstrating the effect of the 1st Embodiment of this invention. 2点タッチのジェスチャを示す図である。It is a figure which shows the gesture of a 2-point touch. ジェスチャ判断処理手順を示すフローチャートである。It is a flowchart which shows a gesture judgment processing procedure. 回転判断処理手順を示すフローチャートである。It is a flowchart which shows a rotation judgment processing procedure. 縮小動作時における補正前の(R_YP0−R_YP)を示す図である。It is a figure which shows (R_YP0-R_YP) before correction | amendment at the time of reduction operation | movement. 縮小動作時における補正後の2点間距離YDualを示す図である。It is a figure which shows distance YDual between 2 points | pieces after correction | amendment at the time of reduction operation | movement. 2点タッチの場合のZ1,Z2測定時における回路図である。It is a circuit diagram at the time of Z1, Z2 measurement in the case of two-point touch. 2点タッチ時のZ1,Z2測定の抵抗モデルを示す図である。It is a figure which shows the resistance model of Z1, Z2 measurement at the time of two-point touch. 押圧パラメータ算出処理手順を示すフローチャートである。It is a flowchart which shows a pressing parameter calculation process procedure. xa<xb,ya>ybのときのタッチ入力点の状態を示す図である。It is a figure which shows the state of the touch input point at the time of xa <xb, ya> yb. Z1NP,Z2NP測定時における回路図である。It is a circuit diagram at the time of Z1NP and Z2NP measurement. xa<xb,ya<ybのときのタッチ入力点の状態を示す図である。It is a figure which shows the state of the touch input point at the time of xa <xb, ya <yb. Z1PP,Z2PP測定時における回路図である。It is a circuit diagram at the time of Z1PP and Z2PP measurement. 本発明の第3の実施形態におけるタッチパネル装置の構成を示す回路図である。It is a circuit diagram which shows the structure of the touchscreen apparatus in the 3rd Embodiment of this invention. 第3の実施形態の制御部10で実行する初期化処理手順を示すフローチャートである。It is a flowchart which shows the initialization process procedure performed with the control part 10 of 3rd Embodiment. Xp21測定時における回路図である。It is a circuit diagram at the time of Xp21 measurement. Yp21測定時における回路図である。It is a circuit diagram at the time of Yp21 measurement. RXp21測定時における回路図である。It is a circuit diagram at the time of RXp21 measurement. RYp21測定時における回路図である。It is a circuit diagram at the time of RYp21 measurement. 第3の実施形態における2点タッチ処理手順を示すフローチャートである。It is a flowchart which shows the 2-point touch processing procedure in 3rd Embodiment. Yp1測定時における回路図である。It is a circuit diagram at the time of Yp1 measurement. Z1,Z2測定時における回路図である。It is a circuit diagram at the time of Z1, Z2 measurement. Z1PP,Z2PP測定時における回路図である。It is a circuit diagram at the time of Z1PP and Z2PP measurement.

以下、本発明の実施の形態を図面に基づいて説明する。
(第1の実施形態)
(構成)
図1は、本発明の実施形態におけるタッチパネル装置の構成を示す回路図である。
タッチパネル装置は、装置全体を制御する制御部10と、必要な情報を表示するためのLCDモジュール11と、LCDモジュール11上に設置されるタッチパネルTPとを備える。
タッチパネルTPは、2枚のタッチパネルTP1,TP2から構成される。タッチパネルTP1は、タッチパネルTP2上に微小な隙間を設けて重ね合わせる。タッチパネルTP1は、Y方向に伸びた一対の電極からなる端子Y1,Y2間に延設された抵抗膜を有する。また、タッチパネルTP2は、Y方向に直交するX方向に伸びた一対の電極からなる端子X1,X2間に延設された抵抗膜を有する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
(Constitution)
FIG. 1 is a circuit diagram showing a configuration of a touch panel device according to an embodiment of the present invention.
The touch panel device includes a control unit 10 that controls the entire device, an LCD module 11 for displaying necessary information, and a touch panel TP installed on the LCD module 11.
The touch panel TP includes two touch panels TP1 and TP2. The touch panel TP1 is superimposed on the touch panel TP2 with a small gap. The touch panel TP1 has a resistance film extending between terminals Y1 and Y2 made of a pair of electrodes extending in the Y direction. In addition, the touch panel TP2 includes a resistance film extending between the terminals X1 and X2 including a pair of electrodes extending in the X direction orthogonal to the Y direction.

タッチパネルTP1及びTP2は、それぞれの抵抗膜を張り合わせて構成されるアナログタッチパネルであり、人間の指やペン等でそのタッチ感応表面上のどこにタッチしても、そのタッチを検出できるようになっている。
また、このタッチパネル装置は、スイッチSW1〜SW6を備える。
スイッチSW1の一端は、所定の直流電圧を印加する電源VDDに接続され、その他端は、タッチパネルTP1の端子Y1に接続されている。スイッチSW2の一端は電源VDDに接続され、その他端は抵抗R1を介してタッチパネルTP1の端子Y1に接続されている。スイッチSW3の一端は接地接続され、その他端はタッチパネルTP1の端子Y2に接続されている。
The touch panels TP1 and TP2 are analog touch panels configured by sticking respective resistance films, and the touch can be detected by touching anywhere on the touch-sensitive surface with a human finger or a pen. .
The touch panel device also includes switches SW1 to SW6.
One end of the switch SW1 is connected to a power supply VDD that applies a predetermined DC voltage, and the other end is connected to a terminal Y1 of the touch panel TP1. One end of the switch SW2 is connected to the power supply VDD, and the other end is connected to the terminal Y1 of the touch panel TP1 via the resistor R1. One end of the switch SW3 is grounded, and the other end is connected to the terminal Y2 of the touch panel TP1.

また、スイッチSW4の一端は電源VDDに接続され、その他端はタッチパネルTP2の端子X1に接続されている。スイッチSW5の一端は電源VDDに接続され、その他端は抵抗R2を介してタッチパネルTP2の端子X1に接続されている。スイッチSW6の一端は接地接続され、その他端はタッチパネルTP2の端子X2に接続されている。
これらスイッチSW1〜SW6は、制御部10によってそれぞれ開閉状態が制御されるようになっている。
One end of the switch SW4 is connected to the power supply VDD, and the other end is connected to the terminal X1 of the touch panel TP2. One end of the switch SW5 is connected to the power supply VDD, and the other end is connected to the terminal X1 of the touch panel TP2 via the resistor R2. One end of the switch SW6 is grounded, and the other end is connected to the terminal X2 of the touch panel TP2.
The switches SW1 to SW6 are controlled to be opened and closed by the control unit 10, respectively.

制御部10は、スイッチSW1〜SW6を開閉制御し、所定の接続状態で各端子X1,X2,Y1,Y2に発生した電圧XP,XN,YP,YNを取得する。ここで、制御部10は、図示しないADコンバータを備え、測定電圧をデジタルデータに変換する。
そして、制御部10は、これらの取得した電圧値をもとに、タッチパネルTP上で2点がタッチされたか否かを判定すると共に、1点がタッチされた場合にはそのタッチ位置(X座標,Y座標)、2点がタッチされた場合には2点の中心座標と2点間の距離(X方向距離,Y方向距離)を検出し、出力する。
The controller 10 controls opening and closing of the switches SW1 to SW6, and acquires voltages XP, XN, YP, and YN generated at the terminals X1, X2, Y1, and Y2 in a predetermined connection state. Here, the control unit 10 includes an AD converter (not shown) and converts the measurement voltage into digital data.
Then, the control unit 10 determines whether or not two points are touched on the touch panel TP based on the acquired voltage values, and when one point is touched, the touch position (X coordinate) is determined. , Y coordinate) When two points are touched, the center coordinates of the two points and the distance (X direction distance, Y direction distance) between the two points are detected and output.

図2は、制御部10で実行する初期化処理手順を示すフローチャートである。
この初期化処理は、タッチパネルTPがタッチされていないときに実行する。
先ずステップS1で、図3に示す状態での端子X1の電圧XP(電圧R_XP)を取得する。すなわち、スイッチSW5及びSW6を閉状態とし、それ以外のスイッチを開状態に制御することで、端子X1に抵抗R2を介して電源VDDの電圧を与えると共に、端子X2を接地接続する。このように、抵抗R2を介して端子X1,X2間に電源VDDの電圧を印加する。そして、この状態で、端子X1の電圧レベルを測定する。
このとき測定される電圧レベルは、端子X1,X2間の抵抗値と既知の抵抗値R2とで分圧した値となる。このようにして、端子X1,X2間の抵抗値に相当する電圧レベルを求めることができる。なお、図3は、2点タッチした際の端子X1,X2間の回路構成を示している。
FIG. 2 is a flowchart showing an initialization processing procedure executed by the control unit 10.
This initialization process is executed when the touch panel TP is not touched.
First, in step S1, the voltage XP (voltage R_XP) of the terminal X1 in the state shown in FIG. 3 is acquired. That is, the switches SW5 and SW6 are closed and the other switches are controlled to be open, so that the voltage of the power supply VDD is applied to the terminal X1 via the resistor R2 and the terminal X2 is connected to the ground. Thus, the voltage of the power supply VDD is applied between the terminals X1 and X2 via the resistor R2. In this state, the voltage level of the terminal X1 is measured.
The voltage level measured at this time is a value obtained by dividing the resistance value between the terminals X1 and X2 and the known resistance value R2. In this way, a voltage level corresponding to the resistance value between the terminals X1 and X2 can be obtained. FIG. 3 shows a circuit configuration between the terminals X1 and X2 when two points are touched.

次に、ステップS2では、図4に示す状態での端子Y1の電圧YP(電圧R_YP)を取得する。すなわち、スイッチSW2及びSW3を閉状態とし、それ以外のスイッチを開状態に制御することで、端子Y1に抵抗R1を介して電源VDDの電圧を与えると共に、端子Y2を接地接続する。このように、抵抗R1を介して端子Y1,Y2間に電源VDDの電圧を印加する。そして、この状態で、端子Y1の電圧レベルを測定する。   Next, in step S2, the voltage YP (voltage R_YP) of the terminal Y1 in the state shown in FIG. 4 is acquired. That is, the switches SW2 and SW3 are closed and the other switches are controlled to be open, so that the voltage of the power supply VDD is applied to the terminal Y1 via the resistor R1, and the terminal Y2 is grounded. In this way, the voltage of the power supply VDD is applied between the terminals Y1 and Y2 via the resistor R1. In this state, the voltage level of the terminal Y1 is measured.

このとき測定される電圧レベルは、端子Y1,Y2間の抵抗値と既知の抵抗値R1とで分圧した値となる。このようにして、端子Y1,Y2間の抵抗値に相当する電圧レベルを求めることができる。なお、図4は、2点タッチした際の端子Y1,Y2間の回路構成を示している。
次に、ステップS3では、前記ステップS1で取得した電圧R_XPを基準電圧R_XP0に設定すると共に、前記ステップS2で取得した電圧R_YPを基準電圧R_YP0に設定する。
そして、ステップS4では、前記ステップS3で設定した基準電圧R_XP0,R_YP0をメモリ(不図示)に記憶して、初期化処理を終了する。
The voltage level measured at this time is a value obtained by dividing the resistance value between the terminals Y1 and Y2 by the known resistance value R1. In this way, a voltage level corresponding to the resistance value between the terminals Y1 and Y2 can be obtained. FIG. 4 shows a circuit configuration between the terminals Y1 and Y2 when two points are touched.
Next, in step S3, the voltage R_XP acquired in step S1 is set to the reference voltage R_XP0, and the voltage R_YP acquired in step S2 is set to the reference voltage R_YP0.
In step S4, the reference voltages R_XP0 and R_YP0 set in step S3 are stored in a memory (not shown), and the initialization process ends.

図5は、制御部10で実行するタッチ処理手順を示すフローチャートである。
このタッチ処理は、タッチパネルTPがタッチされているときに所定時間毎(2msec〜10msec毎)に実行し、先ずステップS11で、各種データを取得する。具体的には、電圧R_XP,R_YP,Xp1,Xp2,Yp1,Yp2,Z1,Z2を取得する。
電圧R_XPは、図3に示す状態で測定した電圧XPであり、電圧R_YPは、図4に示す状態で測定した電圧YPである。
FIG. 5 is a flowchart illustrating a touch processing procedure executed by the control unit 10.
This touch process is executed at predetermined time intervals (every 2 msec to 10 msec) when the touch panel TP is touched, and first, at step S11, various data are acquired. Specifically, the voltages R_XP, R_YP, Xp1, Xp2, Yp1, Yp2, Z1, and Z2 are acquired.
The voltage R_XP is the voltage XP measured in the state shown in FIG. 3, and the voltage R_YP is the voltage YP measured in the state shown in FIG.

また、電圧Xp1及びXp2は、図6に示す状態で測定した電圧YP及びYNである。すなわち、図3の状態に対し、スイッチSW5を開状態、スイッチSW4を閉状態として、端子X1,X2間に電源VDDの電圧を印加した状態で、他方のパネルの端子Y1,Y2の電圧レベルをそれぞれ測定する。
電圧Yp1及びYp2は、図7に示す状態で測定した電圧XP及びXNである。すなわち、図4の状態に対し、スイッチSW2を開状態、スイッチSW1を閉状態として、端子Y1,Y2間に電源VDDの電圧を印加した状態で、他方のパネルの端子X1,X2の電圧レベルをそれぞれ測定する。
Voltages Xp1 and Xp2 are voltages YP and YN measured in the state shown in FIG. That is, with respect to the state of FIG. 3, with the switch SW5 open and the switch SW4 closed, the voltage level of the power supply VDD is applied between the terminals X1 and X2, and the voltage levels of the terminals Y1 and Y2 of the other panel are Measure each.
The voltages Yp1 and Yp2 are the voltages XP and XN measured in the state shown in FIG. That is, with respect to the state of FIG. 4, with the switch SW2 open and the switch SW1 closed, the voltage level of the terminals X1 and X2 on the other panel is set with the voltage of the power supply VDD applied between the terminals Y1 and Y2. Measure each.

さらに、電圧Z1は、図8に示す状態で測定した電圧XPである。すなわち、電圧Z1の測定時には、スイッチSW1及びSW6を閉状態とし、それ以外のスイッチを開状態に制御することで、端子Y1に電源VDDの電圧を与えると共に、端子X2を接地接続する。そして、この状態で、端子Y1の電圧レベルを測定する。ここで、図8は、1点タッチした際の各端子間の回路構成を示している。   Further, the voltage Z1 is the voltage XP measured in the state shown in FIG. That is, when the voltage Z1 is measured, the switches SW1 and SW6 are closed and the other switches are controlled to be open, so that the voltage of the power supply VDD is applied to the terminal Y1 and the terminal X2 is grounded. In this state, the voltage level of the terminal Y1 is measured. Here, FIG. 8 shows a circuit configuration between the terminals when one point is touched.

また、電圧Z2は、図9に示す状態で測定した電圧YNである。すなわち、電圧Z2の測定時には、図8と同様にスイッチSW1及びSW6を閉状態とし、それ以外のスイッチを開状態に制御することで、端子Y1に電源VDDの電圧を与えると共に、端子X2を接地接続する。そして、この状態で、端子Y2の電圧レベルを測定する。ここで、図9は、1点タッチした際の各端子間の回路構成を示している。
なお、各種データを取得する際には、平均化処理等を実施するようにしてもよい。平均化処理としては、例えば、6データを取得し、その6データのうち最大値及び最小値を削除した後、残りの4データの平均を取る処理を行う。これにより、測定データの信頼性を向上させることができる。
Voltage Z2 is voltage YN measured in the state shown in FIG. That is, when the voltage Z2 is measured, the switches SW1 and SW6 are closed and the other switches are controlled to be open as in FIG. 8, so that the voltage of the power supply VDD is applied to the terminal Y1 and the terminal X2 is grounded. Connecting. In this state, the voltage level of the terminal Y2 is measured. Here, FIG. 9 shows a circuit configuration between the terminals when one point is touched.
In addition, when acquiring various data, an averaging process or the like may be performed. As the averaging process, for example, 6 data are acquired, and after the maximum value and the minimum value are deleted from the 6 data, a process of averaging the remaining 4 data is performed. Thereby, the reliability of measurement data can be improved.

次に、ステップS12では、前記ステップS11で取得した電圧Xp1及びXp2に基づいて、下記(1)式をもとにX座標Xpを算出し、前記ステップS11で取得した電圧Yp1及びYp2に基づいて、下記(2)式をもとにY座標Ypを算出する。
Xp=(Xp1+Xp2)/2 ………(1)
Yp=(Yp1+Yp2)/2 ………(2)
ここで算出した座標(Xp,Yp)は、2点タッチの際の2点の中心座標となる。
次に、ステップS13では、前記ステップS11で取得した電圧R_XPと、メモリに記憶した基準電圧R_XP0との差分(R_XP0−R_XP)が、予め設定した判定閾値D_XYより大きいか否かを判定する。そして、R_XP0−R_XP>D_XYである場合には、2点タッチされていると判断して後述するステップS15に移行する。
Next, in step S12, based on the voltages Xp1 and Xp2 acquired in step S11, the X coordinate Xp is calculated based on the following equation (1), and based on the voltages Yp1 and Yp2 acquired in step S11. The Y coordinate Yp is calculated based on the following equation (2).
Xp = (Xp1 + Xp2) / 2 (1)
Yp = (Yp1 + Yp2) / 2 (2)
The coordinates (Xp, Yp) calculated here are the center coordinates of two points at the time of two-point touch.
Next, in step S13, it is determined whether or not the difference (R_XP0-R_XP) between the voltage R_XP acquired in step S11 and the reference voltage R_XP0 stored in the memory is greater than a preset determination threshold D_XY. If R_XP0-R_XP> D_XY, it is determined that two points are touched, and the process proceeds to step S15 described later.

一方、R_XP0−R_XP≦D_XYである場合にはステップS14に移行し、前記ステップS11で取得した電圧R_YPと、メモリに記憶した基準電圧R_YP0との差分(R_YP0−R_YP)が、予め設定した判定閾値D_XYより大きいか否かを判定する。そして、R_YP0−R_YP≦D_XYである場合には、1点タッチであると判断してステップS15に移行する。   On the other hand, if R_XP0−R_XP ≦ D_XY, the process proceeds to step S14, and a difference (R_YP0−R_YP) between the voltage R_YP acquired in step S11 and the reference voltage R_YP0 stored in the memory is set in advance as a determination threshold value. It is determined whether it is greater than D_XY. If R_YP0−R_YP ≦ D_XY, it is determined that the touch is one point, and the process proceeds to step S15.

ステップS15では、前記ステップS11で取得した電圧Xp1,Yp1をタッチ位置のXY座標として出力し、タッチ処理を終了する。
一方、前記ステップS14で、R_YP0−R_YP>D_XYであると判定した場合には、2点タッチされていると判断してステップS16に移行し、押圧パラメータXZ21を算出する。この押圧パラメータXZ21は、タッチ入力点の押圧力と相関関係のあるパラメータであり、当該押圧力が大きいほど小さくなる値である。ここでは、次式をもとに押圧パラメータXZ21を算出する。
XZ21=Xp/4096(Z2/Z1−1) ………(3)
なお、上記(3)式は、12bit(212=4096)の場合の算出式である。
In step S15, the voltages Xp1 and Yp1 acquired in step S11 are output as XY coordinates of the touch position, and the touch process is terminated.
On the other hand, if it is determined in step S14 that R_YP0-R_YP> D_XY, it is determined that two points are touched, the process proceeds to step S16, and the pressing parameter XZ21 is calculated. The pressing parameter XZ21 is a parameter having a correlation with the pressing force at the touch input point, and is a value that decreases as the pressing force increases. Here, the pressing parameter XZ21 is calculated based on the following equation.
XZ21 = Xp / 4096 (Z2 / Z1-1) (3)
The above equation (3) is a calculation equation for 12 bits (2 12 = 4096).

次に、ステップS17では、前記ステップS16で算出した押圧パラメータXZ21が、予め設定した判定閾値D_XZ21より小さいか否かを判定する。そして、XZ21≧D_XZ21である場合には、タッチ入力点に一定圧力がかかっていないものと判断して、そのままタッチ処理を終了する。一方、XZ21<D_XZ21である場合には、タッチ入力点に一定圧力がかかっているものと判断してステップS18に移行する。
ステップS18では、次式をもとにX方向の2点間距離XDualを算出する。
XDual=A・(R_XP0−R_XP−B)・(XZ21+C)+D ………(4)
ここで、A,B,C,Dはそれぞれ予め設定した定数である。
Next, in step S17, it is determined whether or not the pressing parameter XZ21 calculated in step S16 is smaller than a preset determination threshold value D_XZ21. If XZ21 ≧ D_XZ21, it is determined that a constant pressure is not applied to the touch input point, and the touch process is terminated as it is. On the other hand, if XZ21 <D_XZ21, it is determined that a constant pressure is applied to the touch input point, and the process proceeds to step S18.
In step S18, a distance XDual between two points in the X direction is calculated based on the following equation.
XDual = A. (R_XP0-R_XP-B). (XZ21 + C) + D (4)
Here, A, B, C, and D are preset constants.

このように、基準電圧R_XP0と電圧R_XPとの差分に基づいて算出される2点間距離基準値A・(R_XP0−R_XP−B)を、押圧パラメータXZ21ともとに設定される補正係数(XZ21+C)で補正することで、X方向の2点間距離XDualを算出する。
次に、ステップS19では、次式をもとにY方向の2点間距離YDualを算出する。
YDual=A・(R_YP0−R_YP−B)・(XZ21+C)+D ………(5)
Thus, the correction coefficient (XZ21 + C) that is set together with the pressing parameter XZ21 by using the two-point distance reference value A · (R_XP0−R_XP−B) calculated based on the difference between the reference voltage R_XP0 and the voltage R_XP. By correcting with, the distance XDual between two points in the X direction is calculated.
Next, in step S19, the distance YDual between two points in the Y direction is calculated based on the following equation.
YDual = A. (R_YP0-R_YP-B). (XZ21 + C) + D (5)

このように、基準電圧R_YP0と電圧R_YPとの差分に基づいて算出される2点間距離基準値A・(R_YP0−R_YP−B)を、押圧パラメータXZ21ともとに設定される補正係数(XZ21+C)で補正することで、Y方向の2点間距離YDualを算出する。
そして、ステップS20では、前記ステップS18及びS19で算出した2点間距離XDual及びYDualを出力し、ステップS21に移行する。
ステップS21では、前記ステップS12で検出した2点の中心座標(Xp,Yp)を出力し、ステップS22へ移行する。
Thus, the correction coefficient (XZ21 + C) that is set together with the pressure parameter XZ21 using the distance between the two-point reference value A · (R_YP0−R_YP−B) calculated based on the difference between the reference voltage R_YP0 and the voltage R_YP. The distance YDual between the two points in the Y direction is calculated by correcting with.
In step S20, the two-point distances XDual and YDual calculated in steps S18 and S19 are output, and the process proceeds to step S21.
In step S21, the central coordinates (Xp, Yp) of the two points detected in step S12 are output, and the process proceeds to step S22.

ステップS22では、前記ステップS11で取得した電圧Yp2が電圧Yp1より大きいか否かを判定する。そして、Yp2>Yp1である場合にはステップS23に移行し、2点の方向を示す情報dYを“+1”に設定して後述するステップS25に移行する。一方、Yp2≦Yp1である場合にはステップS24に移行し、上記dYを“−1”に設定して後述するステップS25に移行する。   In step S22, it is determined whether or not the voltage Yp2 acquired in step S11 is greater than the voltage Yp1. If Yp2> Yp1, the process proceeds to step S23, information dY indicating the direction of two points is set to “+1”, and the process proceeds to step S25 described later. On the other hand, if Yp2 ≦ Yp1, the process proceeds to step S24, dY is set to “−1”, and the process proceeds to step S25 described later.

2点の座標を(xa,ya)、(xb,yb)(但し、xa<xb)としたとき、2点の中心座標と2点間距離の情報では、y座標値が入れ替わった(xa,yb)、(xb,ya)との区別ができない。図7の回路では、XNの電圧はyaの影響、XPの電圧はybの影響を受けやすいため、Yp2>Yp1のときはya>yb、Yp2<Yp1のときはya<ybであると判断する。
すなわち、xa<xb且つya>ybのときはdY=+1、xa<xb且つya<ybのときはdY=−1となる。
そして、ステップS25では2点の方向を示す情報dYを出力し、タッチ処理を終了する。
なお、図5のステップS11が端子間抵抗測定手段に対応し、ステップS13及びS14が2点タッチ判定手段に対応し、ステップS16が押圧力検出手段に対応し、ステップS18及びS19が2点間距離検出手段に対応している。
When the coordinates of the two points are (xa, ya) and (xb, yb) (where xa <xb), the y-coordinate values are interchanged in the information of the center coordinates of the two points and the distance between the two points (xa, yb) and (xb, ya) cannot be distinguished. In the circuit of FIG. 7, the voltage of XN is easily affected by ya and the voltage of XP is easily affected by yb. Therefore, it is determined that ya> yb when Yp2> Yp1, and ya <yb when Yp2 <Yp1. .
That is, dY = + 1 when xa <xb and ya> yb, and dY = −1 when xa <xb and ya <yb.
In step S25, information dY indicating the direction of the two points is output, and the touch process is terminated.
5 corresponds to the inter-terminal resistance measuring means, steps S13 and S14 correspond to the two-point touch determination means, step S16 corresponds to the pressing force detection means, and steps S18 and S19 are between the two points. It corresponds to the distance detection means.

(動作)
次に、本実施形態の動作について説明する。
今、操作者がタッチパネルTPをタッチしていない状態であるとすると、制御部10は、図2の初期化処理を実行開始し、図3に示す接続状態となるようにスイッチSW1〜SW6を制御して電圧R_XPを測定する(ステップS1)。次に、図4に示す接続状態となるようにスイッチSW1〜SW6を制御して電圧R_YPを測定する(ステップS2)。そして、測定した電圧を、それぞれ電圧R_XP0及び電圧R_YP0として設定し(ステップS3)、これらをメモリに格納する(ステップS4)。
(Operation)
Next, the operation of this embodiment will be described.
Now, assuming that the operator is not touching the touch panel TP, the control unit 10 starts executing the initialization process of FIG. 2 and controls the switches SW1 to SW6 so as to be in the connection state shown in FIG. Then, the voltage R_XP is measured (step S1). Next, the switches SW1 to SW6 are controlled so that the connection state shown in FIG. 4 is obtained, and the voltage R_YP is measured (step S2). Then, the measured voltages are set as a voltage R_XP0 and a voltage R_YP0, respectively (step S3), and these are stored in the memory (step S4).

その後、タッチパネルTPがタッチされると、制御部10は図5のタッチ処理を実行開始する。そして、タッチ位置の座標検出、2点タッチ判定及び2点間距離の検出に用いる各種データ(電圧R_XP,R_YP,Xp1,Xp2,Yp1,Yp2,Z1,Z2)を取得する(ステップS11)。
図10は、1点タッチの場合の端子間抵抗の状態を示す図である。ここでは、A点をタッチした場合を示している。
Thereafter, when the touch panel TP is touched, the control unit 10 starts executing the touch process of FIG. Then, various data (voltages R_XP, R_YP, Xp1, Xp2, Yp1, Yp2, Z1, Z2) used for coordinate detection of the touch position, two-point touch determination, and detection of the distance between the two points are acquired (step S11).
FIG. 10 is a diagram illustrating a state of resistance between terminals in the case of one-point touch. Here, a case where point A is touched is shown.

このように、1点タッチの場合、端子Y1,Y2間の抵抗値は、点Aの位置にかかわらずR3+R4=R0(一定)であるため、電圧R_YPも点Aの位置にかかわらず一定値となる。また、1点タッチの場合の端子間抵抗値は、タッチされていない場合の端子間抵抗値と等しく、1点タッチ時の電圧R_YPは、タッチされていないときの電圧R_YP0と同じ値となる。同様に、1点タッチ時の電圧R_XPは、タッチされていないときの電圧R_XP0と同じ値となる。
したがって、この場合にはR_XP0−R_XP<D_XY(ステップS13でNo)、R_YP0−R_YP<D_XY(ステップS14でNo)となるため、制御部10は1点タッチであると判断し、タッチ位置の座標Xp1,Yp1を出力して(ステップS15)タッチ処理を終了する。
In this way, in the case of one-point touch, the resistance value between the terminals Y1 and Y2 is R3 + R4 = R0 (constant) regardless of the position of the point A, so that the voltage R_YP is also a constant value regardless of the position of the point A. Become. Further, the inter-terminal resistance value in the case of one-point touch is equal to the inter-terminal resistance value in the case of not touching, and the voltage R_YP at the time of one-point touch becomes the same value as the voltage R_YP0 when not touched. Similarly, the voltage R_XP at the time of one-point touch has the same value as the voltage R_XP0 when not touched.
Therefore, in this case, R_XP0-R_XP <D_XY (No in step S13) and R_YP0-R_YP <D_XY (No in step S14), so that the control unit 10 determines that the touch is one point, and coordinates of the touch position Xp1 and Yp1 are output (step S15), and the touch process is terminated.

次に、2点タッチの場合について説明する。
図4に示すように、タッチパネルTP上の点B1,B2をタッチした場合、端子Y1,Y2間には、B1,B2で上層パネル(タッチパネルTP1)が下層パネル(タッチパネルTP2)と接触することにより、抵抗R8〜R10が発生する。ここで、抵抗R8は点B1での上下パネル間の抵抗値、抵抗R9は点B2での上下パネル間の抵抗値、R10はタッチパネルTP2上での点B1−B2間の抵抗値である。
Next, the case of two-point touch will be described.
As shown in FIG. 4, when the points B1 and B2 on the touch panel TP are touched, the upper panel (touch panel TP1) contacts the lower panel (touch panel TP2) at B1 and B2 between the terminals Y1 and Y2. Resistors R8 to R10 are generated. Here, the resistance R8 is the resistance value between the upper and lower panels at the point B1, the resistance R9 is the resistance value between the upper and lower panels at the point B2, and R10 is the resistance value between the points B1 and B2 on the touch panel TP2.

すなわち、2点タッチの場合、端子Y1,Y2間の抵抗値は、R5+(R7//(R8+R9+R10))+R6となる。ここで、「//」は、並列接続の合成抵抗値を示す記号である。
このように、B1,B2間の抵抗(R7//(R8+R9+R10))は、上層パネル(タッチパネルTP1)上での点B1−B2間の抵抗R7より小さくなる。そのため、2点タッチ時の電圧R_YPは、タッチされていないときの電圧R_YP0より小さくなる。
That is, in the case of two-point touch, the resistance value between the terminals Y1 and Y2 is R5 + (R7 // (R8 + R9 + R10)) + R6. Here, “//” is a symbol indicating the combined resistance value of the parallel connection.
Thus, the resistance (R7 // (R8 + R9 + R10)) between B1 and B2 is smaller than the resistance R7 between the points B1 and B2 on the upper panel (touch panel TP1). Therefore, the voltage R_YP at the time of two-point touch is smaller than the voltage R_YP0 when not touched.

したがって、この場合にはR_YP0−R_YP>D_XY(ステップS14でYes)となるため、制御部10は2点タッチであると判断する。
このように、2点タッチのときは1点タッチのときと比較して各パネルの端子間抵抗値が小さくなることを利用して、2点タッチであるか否かを判定する。そして、2点タッチであると判定した場合には、その2点間の距離を算出する処理を行う。
Therefore, in this case, since R_YP0−R_YP> D_XY (Yes in step S14), the control unit 10 determines that the touch is a two-point touch.
In this way, it is determined whether or not the touch is a two-point touch by utilizing the fact that the resistance value between terminals of each panel is smaller in the case of a two-point touch than in the case of a one-point touch. If it is determined that the touch is a two-point touch, a process for calculating the distance between the two points is performed.

ところで、(R_XP0−R_XP)や(R_YP0−R_YP)は、上下パネルの接触点での接触抵抗値(タッチ入力点の押圧力)が一定である場合には2点間距離のみに相関のある値となる。しかしながら、2点間距離が一定であっても、接触抵抗値が変化すると、(R_XP0−R_XP)や(R_YP0−R_YP)も変化する。
図11は、2点間距離を一定としたときの接触抵抗値と(R_YP0−R_YP)との関係を示す図であり、横軸にパネルのX方向の抵抗値で正規化した接触抵抗値、縦軸に(R_YP0−R_YP)を取っている。この図11に示すように、押圧力が大きいほど、即ち接触抵抗値が小さいほど(R_YP0−R_YP)は大きくなる。したがって、2点間距離を正確に算出するには、この接触抵抗値(押圧力)を考慮する必要がある。
By the way, (R_XP0-R_XP) and (R_YP0-R_YP) are values that correlate only with the distance between two points when the contact resistance value (the pressing force at the touch input point) at the contact point of the upper and lower panels is constant. It becomes. However, even if the distance between the two points is constant, if the contact resistance value changes, (R_XP0-R_XP) and (R_YP0-R_YP) also change.
FIG. 11 is a diagram showing the relationship between the contact resistance value when the distance between two points is constant and (R_YP0−R_YP), and the horizontal axis represents the contact resistance value normalized by the resistance value in the X direction of the panel. The vertical axis represents (R_YP0−R_YP). As shown in FIG. 11, the larger the pressing force, that is, the smaller the contact resistance value, the larger (R_YP0-R_YP). Therefore, in order to accurately calculate the distance between two points, it is necessary to consider this contact resistance value (pressing force).

そこで本実施形態では、接触抵抗値(押圧力)と相関関係のある押圧パラメータXZ21を用いて2点間距離XDual,YDualを補正する。
1点タッチの場合の接触抵抗値Rtは、X方向のタッチパネルTP2のシート抵抗Rxplateが既知の場合、次式で求められる。
Rt=Rxplate・Xp/4096(Z2/Z1−1) ………(6)
そこで、上記(6)式をもとに上記(3)式に示すパラメータを設定し、これを押圧パラメータXZ21として算出する(ステップS16)。
Therefore, in the present embodiment, the distance between two points XDual and YDual is corrected using a pressing parameter XZ21 having a correlation with the contact resistance value (pressing force).
When the sheet resistance Rxplate of the touch panel TP2 in the X direction is known, the contact resistance value Rt in the case of one-point touch is obtained by the following equation.
Rt = Rxplate · Xp / 4096 (Z2 / Z1-1) (6)
Therefore, the parameter shown in the above equation (3) is set based on the above equation (6), and this is calculated as the pressing parameter XZ21 (step S16).

2点タッチの場合、上記(6)式をもとに算出した接触抵抗値Rtは、電圧Z1,Z2の測定点に近い方に位置するタッチ入力点での接触抵抗値の影響を受け易くなるが、2点の接触抵抗値が同程度であれば、上記(3)式により接触抵抗にほぼ比例する値を得ることができる。そのため、本実施形態では、2点タッチの場合であっても、1点タッチの場合の接触抵抗算出式をもとに押圧パラメータXZ21の算出式を設定する。このように、1点タッチ時の算出式で代用することで、押圧パラメータXZ21の算出処理を簡潔にすることができる。   In the case of two-point touch, the contact resistance value Rt calculated based on the above equation (6) is easily affected by the contact resistance value at the touch input point located closer to the measurement point of the voltages Z1 and Z2. However, if the contact resistance values at the two points are approximately the same, a value substantially proportional to the contact resistance can be obtained from the above equation (3). For this reason, in the present embodiment, even in the case of two-point touch, the calculation formula of the pressing parameter XZ21 is set based on the contact resistance calculation formula in the case of one-point touch. In this way, the calculation process of the pressing parameter XZ21 can be simplified by substituting the calculation formula at the time of one-point touch.

次に、算出した押圧パラメータXZ21を用いて、上記(4)式及び(5)式をもとに2点間距離XDual,YDualを算出する(ステップS18,S19)。
このとき、タッチ入力点の押圧力が大きいほど接触抵抗値は小さくなるため、上記(3)式における電圧Z1と電圧Z2とが近い値となって、Z2/Z1が“1”に近づく。つまり、押圧パラメータXZ21は“0”に近づく。
Next, using the calculated pressing parameter XZ21, the distance between two points XDual, YDual is calculated based on the above equations (4) and (5) (steps S18, S19).
At this time, the larger the pressing force at the touch input point, the smaller the contact resistance value. Therefore, the voltage Z1 and the voltage Z2 in the above equation (3) are close to each other, and Z2 / Z1 approaches “1”. That is, the pressing parameter XZ21 approaches “0”.

したがって、タッチ入力点の押圧力が大きいほど、2点間距離基準値A(R_YP0−R_YP−B)の補正量は小さくなる。換言すると、タッチ入力点の押圧力が小さいほど押圧パラメータXZ21を大きな値に設定して、2点間距離基準値A(R_YP0−R_YP−B)を増加する補正を行う。
このように、押圧力に応じて補正係数(XZ21+C)を決定し、2点間距離基準値A(R_YP0−R_YP−B)を補正するので、押圧力に応じた適正な2点間距離を求めることができる。
Therefore, the greater the pressing force at the touch input point, the smaller the correction amount for the distance reference value A between two points (R_YP0-R_YP-B). In other words, the pressing parameter XZ21 is set to a larger value as the pressing force at the touch input point is smaller, and the correction for increasing the two-point distance reference value A (R_YP0-R_YP-B) is performed.
In this way, the correction coefficient (XZ21 + C) is determined according to the pressing force and the two-point distance reference value A (R_YP0-R_YP-B) is corrected, so that an appropriate distance between the two points according to the pressing force is obtained. be able to.

図12は、本発明の第1の実施形態の効果を説明するための図であり、押圧力に応じた2点間距離の補正を施した場合のYDualを示している。
この図12に示すように、2点間距離を一定とし、押圧力を変化させてYDualを算出した場合、押圧力(接触抵抗値)の影響を抑制したYDualを算出することができる。これは、X方向の2点間距離XDualについても同様である。
FIG. 12 is a diagram for explaining the effect of the first embodiment of the present invention, and shows YDual when the distance between two points is corrected according to the pressing force.
As shown in FIG. 12, when YDual is calculated by changing the pressing force with the distance between the two points constant, YDual in which the influence of the pressing force (contact resistance value) is suppressed can be calculated. The same applies to the distance XDual between two points in the X direction.

(効果)
このように、上記実施形態では、タッチパネル上の2点がタッチされているとき、タッチ入力点の押圧力を考慮して2点間の距離を算出する。そのため、例えば、操作者が2点間距離を一定として押圧力を変化させる操作を行った場合であっても、適正に一定の2点間距離を算出することができる。また、操作者が押圧力を変化させながら2点間距離を変化させる操作を行った場合に、2点間距離が一定であると誤判定してしまうのを防止することができる。このように、精度良く2点間距離を算出することができる。
(effect)
As described above, in the above embodiment, when two points on the touch panel are touched, the distance between the two points is calculated in consideration of the pressing force of the touch input point. Therefore, for example, even when the operator performs an operation of changing the pressing force while keeping the distance between the two points constant, the constant distance between the two points can be calculated appropriately. Further, when the operator performs an operation of changing the distance between the two points while changing the pressing force, it is possible to prevent erroneous determination that the distance between the two points is constant. Thus, the distance between two points can be calculated with high accuracy.

また、2点間距離を算出する際には、タッチパネルがタッチされていないときの端子間抵抗値と、タッチパネルがタッチされたときの端子間抵抗値との差分に基づいて2点間距離の基準値を算出し、この基準値を押圧力に応じて補正する。これにより、押圧力(接触抵抗値)の変化に伴う端子間抵抗値の変化分を補正することができるので、適正な2点間距離を算出することができる。
さらに、電圧Z1,Z2を測定し、演算により押圧力と相関関係のある押圧パラメータを求めるので、タッチ入力点の押圧力を検出するためのセンサ等を別途設ける必要がなく、タッチパネル装置の小型化及びコストの削減を実現することができる。
Further, when calculating the distance between two points, the reference of the distance between the two points based on the difference between the inter-terminal resistance value when the touch panel is not touched and the inter-terminal resistance value when the touch panel is touched. A value is calculated, and this reference value is corrected according to the pressing force. Thereby, since the change of the resistance value between terminals accompanying the change of pressing force (contact resistance value) can be correct | amended, the appropriate distance between two points can be calculated.
Further, since the voltage Z1 and Z2 are measured and a pressing parameter correlated with the pressing force is obtained by calculation, there is no need to separately provide a sensor or the like for detecting the pressing force at the touch input point, and the touch panel device can be downsized. In addition, cost reduction can be realized.

(応用例)
なお、上記第1の実施形態においては、2点間距離XDual,YDualを算出した後、これら2点間距離XDual,YDualを用いて、図13に示す2点タッチのジェスチャ(拡大(2本の指を開く動作)、縮小(2本の指を閉じる動作)、回転(指を移動する動作))を判定するようにしてもよい。この場合、上述した図5のタッチ処理を実行した後、図14に示すジェスチャ判断処理を実行する。
先ずステップS31で、次式をもとに2点間距離の変化量DualMoveを算出する。
DualMove=XDual−XDual0+YDual−YDual0 ………(7)
ここで、XDual0,YDual0は前回のサンプリングで算出した2点間距離XDual,YDualである。
(Application examples)
In the first embodiment, after calculating the two-point distances XDual and YDual, the two-point distance XDual and YDual are used to perform a two-point touch gesture (enlarged (two) (Operation to open a finger), reduction (operation to close two fingers), rotation (operation to move a finger)) may be determined. In this case, the gesture determination process shown in FIG. 14 is executed after the touch process shown in FIG. 5 is executed.
First, in step S31, a change amount DualMove of the distance between two points is calculated based on the following equation.
DualMove = XDual−XDual0 + YDual−YDual0 (7)
Here, XDual0 and YDual0 are the two-point distances XDual and YDual calculated in the previous sampling.

次にステップS32では、X方向の2点間距離XDualが前回値XDual0より大きいか否かを判定し、XDual>XDual0である場合には、X方向の2点間距離が増加していると判断してステップS33に移行し、XDual≦XDual0である場合には後述するステップS36に移行する。
ステップS33では、Y方向の2点間距離YDualが前回値YDual0より大きいか否かを判定し、YDual>YDual0である場合には、Y方向の2点間距離が増加していると判断してステップS34に移行し、YDual≦YDual0である場合には後述するステップS40に移行する。
Next, in step S32, it is determined whether or not the distance XDual between the two points in the X direction is greater than the previous value XDual0. If XDual> XDual0, it is determined that the distance between the two points in the X direction has increased. Then, the process proceeds to step S33. If XDual ≦ XDual0, the process proceeds to step S36 described later.
In step S33, it is determined whether or not the distance YDual between the two points in the Y direction is greater than the previous value YDual0. If YDual> YDual0, it is determined that the distance between the two points in the Y direction has increased. The process proceeds to step S34, and if YDual ≦ YDual0, the process proceeds to step S40 described later.

ステップS34では、前記ステップS31で算出した2点間距離の変化量DualMoveが、予め設定した判定閾値n1より大きいか否かを判定する。そして、DualMove≦n1である場合には後述するステップS40に移行し、DualMove>n1である場合には、ステップS35に移行して2点タッチのジェスチャが拡大操作であると判断し、ジェスチャ判断処理を終了する。
ステップS36では、Y方向の2点間距離YDualが前回値YDual0より小さいか否かを判定し、YDual<YDual0である場合には、Y方向の2点間距離が減少していると判断してステップS37に移行し、YDual≧YDual0である場合には後述するステップS40に移行する。
In step S34, it is determined whether or not the change amount DualMove of the distance between the two points calculated in step S31 is larger than a predetermined determination threshold value n1. If DualMove ≦ n1, the process proceeds to step S40, which will be described later. If DualMove> n1, the process proceeds to step S35, where it is determined that the two-point touch gesture is an enlargement operation, and gesture determination processing is performed. Exit.
In step S36, it is determined whether or not the distance YDual between the two points in the Y direction is smaller than the previous value YDual0. If YDual <YDual0, it is determined that the distance between the two points in the Y direction has decreased. The process proceeds to step S37, and if YDual ≧ YDual0, the process proceeds to step S40 described later.

ステップS37では、前記ステップS31で算出した2点間距離の変化量DualMoveの符号を反転し、ステップS38に移行する。そして、ステップS38では、前記ステップS37で設定した2点間距離の変化量DualMoveが、予め設定した判定閾値n2より大きいか否かを判定する。DualMove≦n2である場合には後述するステップS40に移行し、DualMove>n2である場合には、ステップS39に移行して2点タッチのジェスチャが縮小操作であると判断し、ジェスチャ判断処理を終了する。   In step S37, the sign of the change amount DualMove of the distance between the two points calculated in step S31 is inverted, and the process proceeds to step S38. In step S38, it is determined whether or not the change amount DualMove of the distance between the two points set in step S37 is larger than a preset determination threshold value n2. If DualMove ≦ n2, the process proceeds to step S40, which will be described later. If DualMove> n2, the process proceeds to step S39, where it is determined that the two-point touch gesture is a reduction operation, and the gesture determination process ends. To do.

また、ステップS40では、2点タッチのジェスチャが回転操作であると判断し、図15に示す回転判断処理を実行してからジェスチャ判断処理を終了する。
図15に示すように、回転判断処理では、先ずステップS41でX方向変化量dXp=Xp−Xp0を算出する。ここで、Xp0は、前回のサンプリングで算出したX座標Xpである。
次にステップS42では、Y方向変化量dYp=Yp−Yp0を算出する。ここで、Yp0は、前回のサンプリングで算出したY座標Ypである。
In step S40, it is determined that the two-point touch gesture is a rotation operation, the rotation determination process shown in FIG. 15 is executed, and the gesture determination process is terminated.
As shown in FIG. 15, in the rotation determination process, first, in step S41, an X direction change amount dXp = Xp−Xp0 is calculated. Here, Xp0 is the X coordinate Xp calculated in the previous sampling.
Next, in step S42, a Y-direction change amount dYp = Yp−Yp0 is calculated. Here, Yp0 is the Y coordinate Yp calculated in the previous sampling.

次にステップS43では、前記ステップS41で算出したX方向変化量dXpが予め設定した回転判断閾値D_Rot(>0)より大きいか否かを判定する。そして、dXp>D_Rotである場合にはステップS44に移行して、2点タッチのジェスチャが右回転操作であると判断し、回転判断処理を終了する。一方、dXp≦D_Rotである場合にはステップS45に移行し、前記ステップS42で算出したY方向変化量dYpが回転判断閾値D_Rotより大きいか否かを判定する。そして、dYp>D_Rotである場合には前記ステップS44に移行し、dYp≦D_Rotである場合にはステップS46に移行する。   Next, in step S43, it is determined whether or not the X-direction change amount dXp calculated in step S41 is greater than a preset rotation determination threshold value D_Rot (> 0). If dXp> D_Rot, the process proceeds to step S44, where it is determined that the two-point touch gesture is a right rotation operation, and the rotation determination process ends. On the other hand, if dXp ≦ D_Rot, the process proceeds to step S45, and it is determined whether or not the Y-direction change amount dYp calculated in step S42 is larger than the rotation determination threshold D_Rot. If dYp> D_Rot, the process proceeds to step S44. If dYp ≦ D_Rot, the process proceeds to step S46.

ステップS46では、前記ステップS41で算出したX方向変化量dXpが回転判断閾値−D_Rotより小さいか否かを判定する。そして、dXp<−D_Rotである場合にはステップS47に移行して、2点タッチのジェスチャが左回転操作であると判断し、回転判断処理を終了する。一方、dXp≧−D_Rotである場合にはステップS48に移行し、前記ステップS42で算出したY方向変化量dYpが回転判断閾値−D_Rotより小さいか否かを判定する。そして、dYp<−D_Rotである場合には前記ステップS47に移行し、dYp≧−D_Rotである場合にはそのまま回転判断処理を終了する。   In step S46, it is determined whether or not the X-direction change amount dXp calculated in step S41 is smaller than the rotation determination threshold -D_Rot. If dXp <−D_Rot, the process proceeds to step S47, where it is determined that the two-point touch gesture is a left rotation operation, and the rotation determination process ends. On the other hand, if dXp ≧ −D_Rot, the process proceeds to step S48, and it is determined whether or not the Y-direction change amount dYp calculated in step S42 is smaller than the rotation determination threshold −D_Rot. If dYp <−D_Rot, the process proceeds to step S47. If dYp ≧ −D_Rot, the rotation determination process is terminated.

上述したように、2点間距離XDual,YDualを算出する際に、押圧力に応じた補正を施し接触抵抗値の影響を抑制しているため、このようにして算出した2点間距離XDual,YDualを用いることで、精度の良いジェスチャ判定を行うことができる。
例えば、縮小の動作においては、2点が押され始めてから、2本指を閉じるにしたがって押圧力が徐々に大きくなる場合がある。このような場合、押圧力を考慮した補正を行わないと、時間経過に伴って(R_YP0−R_YP)は図16に示すように変化する。このように、実際の2点間距離は徐々に小さくなっているにもかかわらず、図中αで示す期間では(R_YP0−R_YP)が増加傾向にあり、2点間距離が増加している(拡大操作をしている)と誤判断してしまう。
As described above, when calculating the distance between two points XDual, YDual, the influence of the contact resistance value is suppressed by performing correction according to the pressing force, and thus the distance between the two points XDual, By using YDual, accurate gesture determination can be performed.
For example, in the reduction operation, the pressing force may gradually increase as the two fingers are closed after two points start to be pressed. In such a case, if correction in consideration of the pressing force is not performed, (R_YP0−R_YP) changes as shown in FIG. 16 as time elapses. Thus, although the actual distance between the two points is gradually decreasing, (R_YP0−R_YP) tends to increase during the period indicated by α in the figure, and the distance between the two points is increasing ( It is misjudged that you are performing an enlargement operation.

これに対して、本実施形態のように押圧力を考慮した補正を施すと、縮小操作時に押圧力が徐々に大きくなったとしても、図17に示すように2点間距離(ここではYDualを示す)が徐々に減少しているのを確実に認識することができる。そのため、この場合には、2点が押されてから短時間で適正に縮小との判断を行うことができる。
このように、押圧力を考慮した補正を行うことでジェスチャの判断の確度を向上させることができ、操作者の意図に合致した操作を認識することができるタッチパネル装置とすることができる。
なお、ジェスチャ判断のみを行うタッチパネル装置とする場合には、上記(4)及び(5)式において、A=1,D=0とすることもできる。これにより2点間距離の算出処理を簡潔にすることができる。
On the other hand, when correction is made in consideration of the pressing force as in this embodiment, even if the pressing force gradually increases during the reduction operation, the distance between the two points (here, YDual is set as shown in FIG. 17). (Shown) can be recognized with certainty. Therefore, in this case, it can be determined that the image is properly reduced in a short time after two points are pressed.
As described above, by performing correction in consideration of the pressing force, the accuracy of gesture determination can be improved, and a touch panel device that can recognize an operation that matches the operator's intention can be provided.
In the case of a touch panel device that performs only gesture determination, A = 1 and D = 0 in the above equations (4) and (5). Thereby, the calculation process of the distance between two points can be simplified.

(第2の実施形態)
次に、本発明の第2の実施形態について説明する。
この第2の実施形態は、前述した第1の実施形態において、2点間距離の算出に際し、上記(3)式をもとに算出した押圧パラメータXZ21を用いているのに対し、2点タッチ時の各点の接触抵抗の影響を考慮した押圧パラメータXZ21を用いるようにしたものである。
(Second Embodiment)
Next, a second embodiment of the present invention will be described.
The second embodiment uses the pressing parameter XZ21 calculated based on the above equation (3) when calculating the distance between the two points in the first embodiment described above, but the two-point touch. The pressing parameter XZ21 is used in consideration of the influence of contact resistance at each point at the time.

(構成)
2点タッチの場合、電圧Z1,Z2測定時は図18に示す回路構成となる。すなわち、このときの抵抗モデルは図19に示すようになる。
なお、ここでは、タッチされている2点をA,Bとし、タッチパネルTP1側のタッチ入力点をA1,B1、タッチパネルTP2側のタッチ入力点をA2,B2としている。また、タッチ入力点Aの座標を(xa,ya)、タッチ入力点Bの座標を(xb,yb)とする。なお、xa<xbである。
この第2の実施形態では、タッチパネルTPがタッチされているとき、前述した第1の実施形態と同様に、制御部10で図5に示すタッチ処理を実行する。但し、この図5において、ステップS16の処理が異なる。
(Constitution)
In the case of two-point touch, the circuit configuration shown in FIG. 18 is obtained when the voltages Z1 and Z2 are measured. That is, the resistance model at this time is as shown in FIG.
Here, two touched points are A and B, touch input points on the touch panel TP1 side are A1 and B1, and touch input points on the touch panel TP2 side are A2 and B2. Further, the coordinates of the touch input point A are (xa, ya) and the coordinates of the touch input point B are (xb, yb). Note that xa <xb.
In the second embodiment, when the touch panel TP is touched, the touch process shown in FIG. 5 is executed by the control unit 10 as in the first embodiment described above. However, the processing in step S16 is different in FIG.

本実施形態では、ステップS16で図20に示す押圧パラメータ算出処理を実行する。
先ずステップS51で、タッチされた2点の位置関係を判定する。ここでは、xa<xb且つya>ybであるか否かを判定し、xa<xb且つya>ybである場合には、点A,Bが図21に示す位置関係にあると判断してステップS52に移行する。具体的には、ステップS11で測定したYp1、Yp2に基づいて、Yp1<Yp2のとき、xa<xb且つya>ybと判断する。
In the present embodiment, the pressing parameter calculation process shown in FIG. 20 is executed in step S16.
First, in step S51, the positional relationship between the two touched points is determined. Here, it is determined whether or not xa <xb and ya> yb. If xa <xb and ya> yb, it is determined that the points A and B are in the positional relationship shown in FIG. The process proceeds to S52. Specifically, based on Yp1 and Yp2 measured in step S11, when Yp1 <Yp2, it is determined that xa <xb and ya> yb.

ステップS52では、図22(a)に示す状態での電圧XN(電圧Z1NP)と、図22(b)に示す状態での電圧YP(電圧Z2NP)を取得する。すなわち、端子Y2に直接電源VDDの電圧を与えると共に、端子X1を接地接続する。そして、この状態で、端子X2及びY1の電圧レベルを測定する。
すなわち、この第2の実施形態では、端子Y2に電源VDD、端子X1にGNDを接続可能な構成とする。
次にステップS53では、次式をもとに押圧パラメータXZ21NPを算出する。
XZ21NP=(4096−Xp)/4096(Z2NP/Z1NP−1) ………(8)
In step S52, the voltage XN (voltage Z1NP) in the state shown in FIG. 22A and the voltage YP (voltage Z2NP) in the state shown in FIG. 22B are acquired. That is, the voltage of the power supply VDD is directly applied to the terminal Y2, and the terminal X1 is grounded. In this state, the voltage levels of the terminals X2 and Y1 are measured.
That is, in the second embodiment, the power supply VDD can be connected to the terminal Y2, and the GND can be connected to the terminal X1.
Next, in step S53, the pressing parameter XZ21NP is calculated based on the following equation.
XZ21NP = (4096-Xp) / 4096 (Z2NP / Z1NP-1) (8)

また、前記(3)式をもとに、押圧パラメータXZ21(以下、XZ21PNと称す)を算出する。
そして、前記XZ21PNと前記XZ21NPとの平均を求め、それを最終的な押圧パラメータXZ21としてから押圧パラメータ算出処理を終了する。
一方、前記ステップS51で、xa<xb且つya<ybであると判定した場合(ステップS11で測定したYp1、Yp2に基づいて、Yp1>Yp2であると判定した場合)には、点A,Bが図23に示す位置関係にあると判断してステップS54に移行する。
Further, a pressing parameter XZ21 (hereinafter referred to as XZ21PN) is calculated based on the equation (3).
And the average of said XZ21PN and said XZ21NP is calculated | required, and after making it into the final press parameter XZ21, a press parameter calculation process is complete | finished.
On the other hand, if it is determined in step S51 that xa <xb and ya <yb (when it is determined that Yp1> Yp2 based on Yp1 and Yp2 measured in step S11), points A and B Are in the positional relationship shown in FIG. 23, and the process proceeds to step S54.

ステップS54では、図24(a)に示す状態での電圧XN(電圧Z1PP)と、図24(b)に示す状態での電圧YN(電圧Z2PP)を取得する。すなわち、端子Y1に直接電源VDDの電圧を与えると共に、端子X1を接地接続する。そして、この状態で、端子X2及びY2の電圧レベルを測定する。
次にステップS55では、次式をもとに押圧パラメータXZ21PPを算出する。
XZ21PP=(4096−Xp)/4096(Z2PP/Z1PP−1) ………(9)
そして、前記(9)式をもとに算出したXZ21PPを最終的な押圧パラメータXZ21としてから、押圧パラメータ算出処理を終了する。
In step S54, the voltage XN (voltage Z1PP) in the state shown in FIG. 24A and the voltage YN (voltage Z2PP) in the state shown in FIG. 24B are acquired. That is, the voltage of the power supply VDD is directly applied to the terminal Y1, and the terminal X1 is grounded. In this state, the voltage levels of the terminals X2 and Y2 are measured.
Next, in step S55, the pressing parameter XZ21PP is calculated based on the following equation.
XZ21PP = (4096-Xp) / 4096 (Z2PP / Z1PP-1) (9)
Then, after the XZ21PP calculated based on the equation (9) is set as the final pressing parameter XZ21, the pressing parameter calculation process is terminated.

(動作)
次に、本発明の第2の実施形態の動作について説明する。
今、図21に示す2点A,Bをタッチしているものとする。この場合、R_XP0−R_XP>D_XY(図5のステップS13でYes)となるため、制御部10は2点タッチであると判断する。すると、制御部10は、図20の押圧パラメータ算出処理を実行する。
このとき、xa<xb且つya>yb(ステップS51でYes)であるため、前記(3)式をもとに算出したXZ21(XZ21PN)と前記(8)式をもとに算出したXZ21NPとの平均を、最終的な押圧パラメータXZ21として算出する。
(Operation)
Next, the operation of the second exemplary embodiment of the present invention will be described.
Assume that two points A and B shown in FIG. 21 are touched. In this case, since R_XP0-R_XP> D_XY (Yes in step S13 in FIG. 5), the control unit 10 determines that the touch is a two-point touch. Then, the control part 10 performs the press parameter calculation process of FIG.
At this time, since xa <xb and ya> yb (Yes in step S51), XZ21 (XZ21PN) calculated based on the above equation (3) and XZ21NP calculated based on the above equation (8) The average is calculated as the final pressing parameter XZ21.

図21に示す2点A,Bをタッチしている場合、タッチパネルTP1上の抵抗Ry4と抵抗Ry5との関係は、Ry4>Ry5となる。また、タッチパネルTP2上の抵抗Rx4と抵抗Rx5との関係は、Rx4>Rx5となる。そのため、前記(3)式のXZ21PNの算出に用いる電圧Z1及びZ2は、点Aよりも点B側の接触抵抗値の影響を受け易くなる。   When the two points A and B shown in FIG. 21 are touched, the relationship between the resistance Ry4 and the resistance Ry5 on the touch panel TP1 is Ry4> Ry5. Further, the relationship between the resistor Rx4 and the resistor Rx5 on the touch panel TP2 is Rx4> Rx5. Therefore, the voltages Z1 and Z2 used for the calculation of XZ21PN in the equation (3) are more susceptible to the contact resistance value on the point B side than the point A.

したがって、XZ21PNは、点Bの接触抵抗値の影響を大きく受けた値となる。換言すると、XZ21PNは、点Bの接触抵抗値(押圧力)との相関度合いが、点Aの接触抵抗値(押圧力)との相関度合いより高い押圧パラメータであると言える。
点Aと点Bとで接触抵抗値が同程度の場合には、前述した第1の実施形態のように、前記(3)式をもとに算出したXZ21PNが実際の接触抵抗値Rtにほぼ比例する。そのため、この場合には、このXZ21PNを押圧パラメータXZ21として用いることで、2点間距離を正確に求めることができる。
ところが、点Aと点Bとで接触抵抗値が異なる場合には、XZ21PNをそのまま用いるより、XZ21PNとXZ21NPとの平均を用いた方が、精度が良い。
Therefore, XZ21PN is a value greatly influenced by the contact resistance value at point B. In other words, it can be said that XZ21PN is a pressing parameter whose degree of correlation with the contact resistance value (pressing force) at point B is higher than the degree of correlation with the contact resistance value (pressing force) at point A.
When the contact resistance values at the points A and B are approximately the same, the XZ21PN calculated based on the equation (3) is almost equal to the actual contact resistance value Rt as in the first embodiment described above. Proportional. Therefore, in this case, the distance between two points can be accurately obtained by using this XZ21PN as the pressing parameter XZ21.
However, when the contact resistance values are different between the point A and the point B, it is more accurate to use the average of XZ21PN and XZ21NP than to use XZ21PN as it is.

XZ21NPは、図22(a)に示す状態での電圧XN(電圧Z1NP)と、図22(b)に示す状態での電圧YP(電圧Z2NP)に基づいて算出される値であり、この値は点Aの接触抵抗値の影響を大きく受けた値となる。したがって、点Bの接触抵抗値の影響が大きいXZ21PNと点Aの接触抵抗値の影響が大きいXZ21NPとの平均を取ることで、点Aと点Bとの平均的な値を得ることができる。すなわち、点Aでの接触抵抗値と点Bでの接触抵抗値との影響を同程度とした押圧パラメータXZ21を得ることができる。その結果、2点間距離をより正確に求めることができる。   XZ21NP is a value calculated based on voltage XN (voltage Z1NP) in the state shown in FIG. 22 (a) and voltage YP (voltage Z2NP) in the state shown in FIG. 22 (b). This value is greatly influenced by the contact resistance value at point A. Therefore, the average value of point A and point B can be obtained by taking the average of XZ21PN, which is greatly influenced by the contact resistance value of point B, and XZ21NP, which is highly influenced by the contact resistance value of point A. That is, it is possible to obtain the pressing parameter XZ21 in which the influence of the contact resistance value at the point A and the contact resistance value at the point B is approximately the same. As a result, the distance between the two points can be obtained more accurately.

一方、図23に示す2点A,Bをタッチしている場合には、xa<xb且つya<yb(ステップS51でNo)であるため、前記(9)式をもとに算出したXZ21PPを、最終的な押圧パラメータXZ21として算出する。
図23に示す2点A,Bをタッチしている場合、タッチパネルTP1上の抵抗Ry4と抵抗Ry5との関係は、Ry4>Ry5となる。また、タッチパネルTP2上の抵抗Rx4と抵抗Rx5との関係は、Rx4<Rx5となる。そのため、前記(3)式のXZ21PNの算出に用いる電圧Z1は点B、電圧Z2は点Aの接触抵抗値の影響を受け易くなる。
On the other hand, when two points A and B shown in FIG. 23 are touched, since xa <xb and ya <yb (No in step S51), XZ21PP calculated based on the equation (9) is The final pressing parameter XZ21 is calculated.
When the two points A and B shown in FIG. 23 are touched, the relationship between the resistance Ry4 and the resistance Ry5 on the touch panel TP1 is Ry4> Ry5. Further, the relationship between the resistor Rx4 and the resistor Rx5 on the touch panel TP2 is Rx4 <Rx5. Therefore, the voltage Z1 used for the calculation of XZ21PN in the equation (3) is easily affected by the point B and the voltage Z2 is easily affected by the contact resistance value at the point A.

このとき、タッチ入力点の移動方向が変わらない場合には、前述した第1の実施形態のように、前記(3)式をもとに算出したXZ21PNが実際の接触抵抗値Rtと相関のある値となる。そのため、この場合には、このXZ21PNを押圧パラメータXZ21として、ジェスチャ判断に用いることができる。
ところが、XZ21PNでは、電圧Z1と電圧Z2とで影響を受け易い点が異なるため、ジェスチャ判断や2点間距離の算出精度を向上させるためには、XZ21PNの代わりにXZ21PPを使用することが望ましい。
At this time, if the movement direction of the touch input point does not change, XZ21PN calculated based on the equation (3) is correlated with the actual contact resistance value Rt, as in the first embodiment described above. Value. Therefore, in this case, this XZ21PN can be used as a pressing parameter XZ21 for gesture determination.
However, in XZ21PN, the points that are easily affected by voltage Z1 and voltage Z2 are different. Therefore, it is desirable to use XZ21PP instead of XZ21PN in order to improve the gesture determination and the calculation accuracy of the distance between two points.

XZ21PPは、図24(a)に示す状態での電圧XN(電圧Z1PP)と、図24(b)に示す状態での電圧YN(電圧Z2PP)に基づいて算出される値であり、この値は点Aの影響を受け易くなるが、電圧Z1PPと電圧Z2PPとで影響を受け易い点が等しい。そのため、XZ21PNをそのまま用いる場合と比較して、XZ21PPを押圧パラメータXZ21として用いた方が2点間距離の算出精度を上げることができる。   XZ21PP is a value calculated based on the voltage XN (voltage Z1PP) in the state shown in FIG. 24 (a) and the voltage YN (voltage Z2PP) in the state shown in FIG. 24 (b). It becomes easy to be influenced by the point A, but the points that are easily influenced by the voltage Z1PP and the voltage Z2PP are equal. Therefore, compared with the case where XZ21PN is used as it is, the calculation accuracy of the distance between two points can be improved by using XZ21PP as the pressing parameter XZ21.

(効果)
このように、上記第2の実施形態では、2点タッチ時における各点の接触抵抗の影響を考慮し、各点の押圧力との相関度合いが同等程度となる押圧パラメータを用いて2点間距離の補正を行うので、より精度良く2点間距離を算出することができる。
(応用例)
なお、上記第2の実施形態においては、xa<xb且つya<ybであるとき、XZ21PPを押圧パラメータXZ21として用いる場合について説明したが、電極を入れ換えたXZ21NNを算出し、XZ21NNとXZ21PPとの平均を最終的な押圧パラメータXZ21とすることもできる。このように、点Bの影響を受け易いXZ21NNと点Aの影響を受け易いXZ21PPの平均を取ることで、より2点間距離の算出精度を向上させることができる。
(effect)
As described above, in the second embodiment, the influence of the contact resistance of each point at the time of two-point touch is taken into consideration, and the point between the two points is used by using the pressing parameter that has the same degree of correlation with the pressing force at each point. Since the distance is corrected, the distance between the two points can be calculated with higher accuracy.
(Application examples)
In the second embodiment, when xa <xb and ya <yb, the case where XZ21PP is used as the pressing parameter XZ21 has been described. However, XZ21NN obtained by replacing electrodes is calculated, and the average of XZ21NN and XZ21PP is calculated. Can be used as the final pressing parameter XZ21. Thus, by calculating the average of the XZ21NN that is easily affected by the point B and the XZ21PP that is easily affected by the point A, the calculation accuracy of the distance between the two points can be further improved.

(第3の実施形態)
次に、本発明の第3の実施形態について説明する。
この第3の実施形態は、前述した第1及び第2の実施形態において、電圧R_XP0,R_YP0,R_XP,R_YPを用いて2点間距離を算出しているのに対し、電圧Xp21,Yp21,RXp21,RYp21を用いて2点間距離を算出するようにしたものである。
(Third embodiment)
Next, a third embodiment of the present invention will be described.
In the third embodiment, the distance between two points is calculated using the voltages R_XP0, R_YP0, R_XP, R_YP in the first and second embodiments described above, whereas the voltages Xp21, Yp21, RXp21 are calculated. , RYp21 is used to calculate the distance between two points.

(構成)
図25は、本発明の第3の実施形態におけるタッチパネル装置の構成を示す回路図である。
このタッチパネル装置は、スイッチSW7及びSW8を備えることを除いては、図1に示すタッチパネル装置と同様の構成を有する。そのため、ここでは構成の異なる部分を中心に説明する。
スイッチSW7の一端はタッチパネルTP1の端子Y1に接続され、その他端はタッチパネルTP1の端子Y2に接続されている。また、スイッチSW8の一端はタッチパネルTP2の端子X1に接続され、その他端はタッチパネルTP2の端子X2に接続されている。
(Constitution)
FIG. 25 is a circuit diagram showing a configuration of a touch panel device according to the third embodiment of the present invention.
This touch panel device has the same configuration as the touch panel device shown in FIG. 1 except that it includes switches SW7 and SW8. Therefore, here, the description will focus on the different parts.
One end of the switch SW7 is connected to the terminal Y1 of the touch panel TP1, and the other end is connected to the terminal Y2 of the touch panel TP1. One end of the switch SW8 is connected to the terminal X1 of the touch panel TP2, and the other end is connected to the terminal X2 of the touch panel TP2.

これらスイッチSW7及びSW8は、制御部10によってそれぞれ開閉状態が制御されるようになっている。
制御部10は、スイッチSW1〜SW8を開閉制御し、所定の接続状態で各端子X1,X2,Y1,Y2に発生した電圧XP,XN,YP,YNを取得する。ここで、制御部10は、図示しないADコンバータを備え、測定電圧をデジタルデータに変換する。
The switches SW7 and SW8 are controlled to be opened and closed by the control unit 10, respectively.
The controller 10 controls opening and closing of the switches SW1 to SW8, and acquires voltages XP, XN, YP, and YN generated at the terminals X1, X2, Y1, and Y2 in a predetermined connection state. Here, the control unit 10 includes an AD converter (not shown) and converts the measurement voltage into digital data.

そして、制御部10は、これらの取得した電圧値をもとに、タッチパネルTP上で2点がタッチされたか否かを判定すると共に、1点がタッチされた場合にはそのタッチ位置(X座標,Y座標)、2点がタッチされた場合には2点の中心座標(X座標,Y座標)、2点間の距離(X方向距離,Y方向距離)及び2点の方向を検出し、出力する。
この第3の実施形態では、制御部10で図2に示す初期化処理は行わず、タッチパネルTPが1点タッチされている状態で、図26に示す初期化処理を行う。
Then, the control unit 10 determines whether or not two points are touched on the touch panel TP based on the acquired voltage values, and when one point is touched, the touch position (X coordinate) is determined. , Y coordinates) When two points are touched, the center coordinates of the two points (X coordinate, Y coordinate), the distance between the two points (X direction distance, Y direction distance) and the direction of the two points are detected, Output.
In the third embodiment, the control unit 10 does not perform the initialization process illustrated in FIG. 2, and performs the initialization process illustrated in FIG. 26 in a state where the touch panel TP is touched by one point.

先ずステップS61で、図27に示す状態での端子Y1の電圧YP(電圧Xp21)を取得する。すなわち、スイッチSW4,SW6及びSW7を閉状態とし、それ以外のスイッチを開状態に制御することで、端子X1,X2間に電源VDDの電圧を印加すると共に、端子Y1,Y2を接続した短絡状態とする。そして、この状態での端子Y1の電圧レベルを測定する。なお、図27は、2点タッチした際の端子X1,X2間の回路構成を示している。   First, in step S61, the voltage YP (voltage Xp21) of the terminal Y1 in the state shown in FIG. 27 is acquired. That is, the switches SW4, SW6 and SW7 are closed, and the other switches are controlled to be open so that the voltage of the power supply VDD is applied between the terminals X1 and X2 and the terminals Y1 and Y2 are connected. And Then, the voltage level of the terminal Y1 in this state is measured. FIG. 27 shows a circuit configuration between the terminals X1 and X2 when two points are touched.

次に、ステップS62で、図28に示す状態での端子X1の電圧XP(電圧Yp21)を取得する。すなわち、スイッチSW1,SW3及びSW8を閉状態とし、それ以外のスイッチを開状態に制御することで、端子Y1,Y2間に電源VDDの電圧を印加すると共に、端子X1,X2を接続した短絡状態とする。そして、この状態での端子X1の電圧レベルを測定する。なお、図28は、1点タッチした際の端子Y1,Y2間の回路構成を示している。   Next, in step S62, the voltage XP (voltage Yp21) of the terminal X1 in the state shown in FIG. 28 is acquired. That is, the switches SW1, SW3 and SW8 are closed, and the other switches are controlled to be open, so that the voltage of the power supply VDD is applied between the terminals Y1 and Y2, and the terminals X1 and X2 are connected. And Then, the voltage level of the terminal X1 in this state is measured. FIG. 28 shows a circuit configuration between the terminals Y1 and Y2 when one point is touched.

ステップS63では、図29に示す状態での端子Y1の電圧YP(電圧RXp21)を取得する。すなわち、図27の状態に対し、スイッチSW4を開状態、スイッチSW5を閉状態として、抵抗R2を介して端子X1,X2間に電源VDDの電圧を印加すると共に、端子Y1,Y2を接続した短絡状態とする。そして、この状態での端子Y1の電圧レベルを測定する。なお、図29は、2点タッチした際の端子X1,X2間の回路構成を示している。   In step S63, the voltage YP (voltage RXp21) of the terminal Y1 in the state shown in FIG. 29 is acquired. That is, with respect to the state of FIG. 27, the switch SW4 is opened and the switch SW5 is closed, the voltage of the power supply VDD is applied between the terminals X1 and X2 via the resistor R2, and the terminals Y1 and Y2 are connected. State. Then, the voltage level of the terminal Y1 in this state is measured. FIG. 29 shows a circuit configuration between the terminals X1 and X2 when two points are touched.

次に、ステップS64で、図30に示す状態での端子X1の電圧XP(電圧RYp21)を取得する。すなわち、図28の状態に対し、スイッチSW1を開状態、スイッチSW2を閉状態として、抵抗R1を介して端子Y1,Y2間に電源VDDの電圧を印加すると共に、端子X1,X2を接続した短絡状態とする。そして、この状態での端子X1の電圧レベルを測定する。なお、図30は、1点タッチした際の端子Y1,Y2間の回路構成を示している。   Next, in step S64, the voltage XP (voltage RYp21) of the terminal X1 in the state shown in FIG. 30 is acquired. That is, with respect to the state of FIG. 28, the switch SW1 is opened, the switch SW2 is closed, the voltage of the power supply VDD is applied between the terminals Y1 and Y2 via the resistor R1, and the terminals X1 and X2 are connected. State. Then, the voltage level of the terminal X1 in this state is measured. FIG. 30 shows a circuit configuration between the terminals Y1 and Y2 when one point is touched.

ステップS65では、前記ステップS61〜S64でそれぞれ取得した電圧Xp21,Yp21,RXp21,RYp21に基づいて、次式をもとにSRXYを算出する。
SRXY=4096・(RXp21+RYp21)/(Xp21+Yp21) ………(10)
なお、上記(10)式は、12bit(212=4096)の場合の算出式である。
In step S65, SRXY is calculated based on the following equation based on the voltages Xp21, Yp21, RXp21, RYp21 acquired in steps S61 to S64, respectively.
SRXY = 4096 · (RXp21 + RYp21) / (Xp21 + Yp21) (10)
The above equation (10) is a calculation equation in the case of 12 bits (2 12 = 4096).

ステップS66では、前記ステップS61で取得した電圧Xp21と、前記ステップS63で取得した電圧RXp21とに基づいて、次式をもとにSRX0を算出する。
SRX0=4096・RXp21/Xp21 ………(11)
次に、前記ステップS62で取得した電圧Yp21と、前記ステップS64で取得した電圧RYp21とに基づいて、次式をもとにSRY0を算出する。
SRY0=4096・RYp21/Yp21 ………(12)
In step S66, SRX0 is calculated based on the following equation based on the voltage Xp21 acquired in step S61 and the voltage RXp21 acquired in step S63.
SRX0 = 4096 · RXp21 / Xp21 (11)
Next, SRY0 is calculated based on the following equation based on the voltage Yp21 acquired in step S62 and the voltage RYp21 acquired in step S64.
SRY0 = 4096 · RYp21 / Yp21 (12)

そして、ステップS67では、前記ステップS66で算出した値SRX0及びSRY0をメモリ(不図示)に記憶して、初期化処理を終了する。
また、制御部10は、タッチパネルTPがタッチされているとき、図5に示すタッチ処理の代わりに図31に示すタッチ処理を行う。
先ずステップS71で、各種データを取得する。具体的には、電圧Xp21,Yp21,RXp21,RYp21を取得する。
In step S67, the values SRX0 and SRY0 calculated in step S66 are stored in a memory (not shown), and the initialization process ends.
Further, when the touch panel TP is touched, the control unit 10 performs the touch process illustrated in FIG. 31 instead of the touch process illustrated in FIG.
First, in step S71, various data are acquired. Specifically, the voltages Xp21, Yp21, RXp21, and RYp21 are acquired.

電圧Xp21は、図27に示す状態で測定した電圧YPであり、電圧Yp21は、図28に示す状態で測定した電圧XPである。また、電圧RXp21は、図29に示す状態で測定した電圧YPであり、電圧RYp21は、図30に示す状態で測定した電圧XPである。
次にステップS72に移行して、前記ステップS71で取得した各電圧と、メモリに記憶したSRXYとに基づいて、次式をもとにDXYを算出する。
DXY=SRXY・(Xp21+Yp21)/4096−(RXp21+RYp21) ………(13)
The voltage Xp21 is the voltage YP measured in the state shown in FIG. 27, and the voltage Yp21 is the voltage XP measured in the state shown in FIG. Voltage RXp21 is voltage YP measured in the state shown in FIG. 29, and voltage RYp21 is voltage XP measured in the state shown in FIG.
Next, the process proceeds to step S72, where DXY is calculated based on the following equation based on each voltage acquired in step S71 and SRXY stored in the memory.
DXY = SRXY. (Xp21 + Yp21) / 4096- (RXp21 + RYp21) (13)

ステップS73では、前記ステップS72で算出したDXYが、予め設定した判定閾値Dual_DXYより大きいか否かを判定する。SRXYは、1点タッチ時には一定値となり、2点タッチ時には1点タッチ時より小さくなることから、上記DXYは、1点タッチ時に0、2点タッチ時に0より大きい値となる。そこで、判定閾値Dual_DXYは、0又は所定のマージンを設けた0より大きい値に設定する。
そして、DXY≦Dual_DXYであるときには1点タッチであると判定し、ステップS74に移行して、前記ステップS71で取得した電圧Xp21,Yp21をタッチ位置のXY座標として出力してからタッチ処理を終了する。
In step S73, it is determined whether or not DXY calculated in step S72 is larger than a preset determination threshold Dual_DXY. SRXY is a constant value at the time of one-point touch and is smaller than that at the time of one-point touch at the time of two-point touch. Therefore, DXY is 0 at the time of one-point touch and a value greater than 0 at the time of two-point touch. Therefore, the determination threshold Dual_DXY is set to 0 or a value larger than 0 with a predetermined margin.
Then, when DXY ≦ Dual_DXY, it is determined that the touch is one point, the process proceeds to step S74, the voltages Xp21 and Yp21 acquired in step S71 are output as the XY coordinates of the touch position, and the touch process is terminated. .

一方、DXY>Dual_DXYであるときには2点タッチであると判定し、ステップS75に移行する。このステップS75では、電圧Yp1を取得する。電圧Yp1は、図32に示す状態で測定した電圧XPである。すなわち、図4の状態に対し、スイッチSW2を開状態、スイッチSW1及びSW3を閉状態とし、それ以外のスイッチを開状態に制御することで、端子Y1,Y2間に電源VDDの電圧を印加した状態で、他方のパネルの端子X1の電圧レベルを測定する。
次にステップS76に移行して、前記ステップS71で取得した電圧Yp21が前記ステップS75で取得した電圧Yp1より大きいか否かを判定する。そして、Yp21>Yp1であるときにはステップS77に移行し、Yp21≦Yp1であるときには後述するステップS79に移行する。
ステップS77では、2点の方向を示す情報dYを“+1”に設定し、ステップS78に移行する。
On the other hand, when DXY> Dual_DXY, it is determined that the touch is two-point, and the process proceeds to step S75. In step S75, the voltage Yp1 is acquired. The voltage Yp1 is the voltage XP measured in the state shown in FIG. That is, the voltage of the power supply VDD is applied between the terminals Y1 and Y2 by controlling the switch SW2 in the open state, the switches SW1 and SW3 in the closed state, and the other switches in the open state with respect to the state of FIG. In the state, the voltage level of the terminal X1 of the other panel is measured.
Next, the process proceeds to step S76, where it is determined whether or not the voltage Yp21 acquired in step S71 is greater than the voltage Yp1 acquired in step S75. When Yp21> Yp1, the process proceeds to step S77, and when Yp21 ≦ Yp1, the process proceeds to step S79 described later.
In step S77, the information dY indicating the direction of the two points is set to “+1”, and the process proceeds to step S78.

ステップS78では電圧Z1,Z2を取得し、後述するステップS81に移行する。電圧Z1,Z2は、図33(a)に示す状態で測定した電圧XPと、図33(b)に示す状態で測定した電圧YNである。すなわち、スイッチSW1及びSW6を閉状態とし、それ以外のスイッチを開状態に制御することで、端子Y1に電源VDDの電圧を与えると共に、端子X2を接地接続する。そして、この状態で、端子X1及びY2の電圧レベルを測定する。ここで、図33は、点A及び点Bを2点タッチした際の各端子間の回路構成を示しており、タッチパネルTP1側のタッチ入力点をA1,B1、タッチパネルTP2側のタッチ入力点をA2,B2としている。   In step S78, voltages Z1 and Z2 are acquired, and the process proceeds to step S81 described below. The voltages Z1 and Z2 are the voltage XP measured in the state shown in FIG. 33A and the voltage YN measured in the state shown in FIG. That is, the switches SW1 and SW6 are closed and the other switches are controlled to be open, so that the voltage of the power supply VDD is applied to the terminal Y1 and the terminal X2 is grounded. In this state, the voltage levels of the terminals X1 and Y2 are measured. Here, FIG. 33 shows a circuit configuration between the terminals when two points A and B are touched. A1 and B1 are touch input points on the touch panel TP1, and touch input points on the touch panel TP2 side. A2 and B2.

また、ステップS79では、2点の方向を示す情報dYを“−1”に設定し、ステップS80に移行する。
ステップS80では電圧Z1PP,Z2PPを取得し、ステップS81に移行する。電圧Z1PP,Z2PPは、図34(a)に示す状態での電圧XNと、図34(b)に示す状態での電圧YNである。すなわち、端子Y1に直接電源VDDの電圧を与えると共に、端子X1を接地接続した状態で、端子X2及びY2の電圧レベルを測定する。そして、このようにして測定した電圧Z1PP,Z2PPを、電圧Z1,Z2として設定する。ここで、図34は、点A及び点Bを2点タッチした際の各端子間の回路構成を示しており、タッチパネルTP1側のタッチ入力点をA1,B1、タッチパネルTP2側のタッチ入力点をA2,B2としている。
In step S79, the information dY indicating the direction of the two points is set to “−1”, and the process proceeds to step S80.
In step S80, voltages Z1PP and Z2PP are acquired, and the process proceeds to step S81. The voltages Z1PP and Z2PP are the voltage XN in the state shown in FIG. 34 (a) and the voltage YN in the state shown in FIG. 34 (b). That is, the voltage level of the terminals X2 and Y2 is measured while the voltage of the power supply VDD is directly applied to the terminal Y1 and the terminal X1 is grounded. The voltages Z1PP and Z2PP thus measured are set as voltages Z1 and Z2. Here, FIG. 34 shows a circuit configuration between the terminals when two points A and B are touched. Touch input points on the touch panel TP1 side are A1, B1, and touch input points on the touch panel TP2 side. A2 and B2.

2点の座標を(xa,ya)、(xb,yb)(但し、xa<xb)としたとき、2点の中心座標と2点間距離の情報では、y座標値が入れ替わった(xa,yb)、(xb,ya)との区別ができない。図32の回路では、XPの電圧(電圧Yp1)はybの影響を受けやすいため、Yp21>Yp1のときはya>yb、Yp21<Yp1のときはya<ybであると判断する。
すなわち、xa<xb且つya>ybのときはdY=+1、xa<xb且つya<ybのときはdY=−1となる。
ステップS81では、押圧パラメータXZ21を算出する。この押圧パラメータXZ21は、タッチ入力点の押圧力と相関関係のあるパラメータであり、当該押圧力が大きいほど小さくなる値である。ここでは、次式をもとに押圧パラメータXZ21を算出する。
XZ21=Xp21/4096(Z2/Z1−1) ………(14)
When the coordinates of the two points are (xa, ya) and (xb, yb) (where xa <xb), the y-coordinate values are interchanged in the information of the center coordinates of the two points and the distance between the two points (xa, yb) and (xb, ya) cannot be distinguished. In the circuit of FIG. 32, the XP voltage (voltage Yp1) is easily affected by yb. Therefore, it is determined that ya> yb when Yp21> Yp1, and ya <yb when Yp21 <Yp1.
That is, dY = + 1 when xa <xb and ya> yb, and dY = −1 when xa <xb and ya <yb.
In step S81, the pressing parameter XZ21 is calculated. The pressing parameter XZ21 is a parameter having a correlation with the pressing force at the touch input point, and is a value that decreases as the pressing force increases. Here, the pressing parameter XZ21 is calculated based on the following equation.
XZ21 = Xp21 / 4096 (Z2 / Z1-1) (14)

次に、ステップS82に移行して、前記ステップS81で算出した押圧パラメータXZ21が、予め設定した判定閾値D_XZ21より小さいか否かを判定する。そして、XZ21≧D_XZ21である場合には、タッチ入力点に一定圧力がかかっていないものと判断して、そのままタッチ処理を終了する。一方、XZ21<D_XZ21である場合には、タッチ入力点に一定圧力がかかっているものと判断してステップS83に移行する。
ステップS83では、次式をもとにX方向の2点間距離XDualを算出する。
XDual=A・(SRX0−4096・RXp21/Xp21−B)・(XZ21+C)+D ………(15)
ここで、A,B,C,Dはそれぞれ予め設定した定数である。
Next, the process proceeds to step S82, and it is determined whether or not the pressing parameter XZ21 calculated in step S81 is smaller than a predetermined determination threshold value D_XZ21. If XZ21 ≧ D_XZ21, it is determined that a constant pressure is not applied to the touch input point, and the touch process is terminated as it is. On the other hand, if XZ21 <D_XZ21, it is determined that a constant pressure is applied to the touch input point, and the process proceeds to step S83.
In step S83, a distance XDual between two points in the X direction is calculated based on the following equation.
XDual = A. (SRX0-4096.RXp21 / Xp21-B). (XZ21 + C) + D (15)
Here, A, B, C, and D are preset constants.

このように、1点タッチ時の電圧Xp21と電圧RXp21との比であるSRX0と、2点タッチ時の電圧Xp21と電圧RXp21との比との差分に基づいて算出される2点間距離基準値A・(SRX0−4096・RXp21/Xp21−B)を、押圧パラメータXZ21ともとに設定される補正係数(XZ21+C)で補正することで、X方向の2点間距離XDualを算出する。
次に、ステップS84では、次式をもとにY方向の2点間距離YDualを算出する。
YDual=A・(SRY0−4096・RYp21/Yp21−B)・(XZ21+C)+D ………(16)
As described above, the two-point distance reference value calculated based on the difference between the ratio SRX0 between the voltage Xp21 and the voltage RXp21 at the time of one-point touch and the ratio between the voltage Xp21 and the voltage RXp21 at the time of the two-point touch. A · (SRX0-4096 · RXp21 / Xp21-B) is corrected by the correction coefficient (XZ21 + C) set together with the pressing parameter XZ21, thereby calculating the distance XDual between two points in the X direction.
Next, in step S84, the distance YDual between two points in the Y direction is calculated based on the following equation.
YDual = A. (SRY0-4096.RYp21 / Yp21-B). (XZ21 + C) + D (16)

このように、1点タッチ時の電圧Yp21と電圧RYp21との比であるSRY0と、2点タッチ時の電圧Yp21と電圧RYp21との比との差分に基づいて算出される2点間距離基準値A・(SRY0−4096・RYp21/Yp21−B)を、押圧パラメータXZ21ともとに設定される補正係数(XZ21+C)で補正することで、Y方向の2点間距離YDualを算出する。
そして、ステップS85では、2点の中心座標(Xp21,Yp21)と、2点間距離XDual,YDualと、2点の方向を示す情報dYとを出力し、タッチ処理を終了する。
以上のように、2点間の距離に応じてRXp21/Xp21やRYp21/Yp21が変化することを利用して、2点間距離XDual及びYDualを算出する。
As described above, the distance reference value between two points calculated based on the difference between SRY0 which is the ratio of the voltage Yp21 and the voltage RYp21 at the time of one point touch and the ratio of the voltage Yp21 and the voltage RYp21 at the time of the two point touch. By correcting A · (SRY0-4096 · RYp21 / Yp21-B) with the correction coefficient (XZ21 + C) set together with the pressing parameter XZ21, the distance YDual between two points in the Y direction is calculated.
In step S85, the center coordinates (Xp21, Yp21) of the two points, the distances XDual, YDual between the two points, and information dY indicating the direction of the two points are output, and the touch process is terminated.
As described above, the distance between two points XDual and YDual is calculated by using the change of RXp21 / Xp21 and RYp21 / Yp21 according to the distance between the two points.

なお、上述した処理においては、各種データを取得する際に、平均化処理等を実施するようにしてもよい。平均化処理としては、例えば、6データを取得し、その6データのうち最大値及び最小値を削除した後、残りの4データの平均を取る処理を行う。これにより、測定データの信頼性を向上させることができる。
また、図31において、ステップS71(特に図27及び図28)が第1の電圧検出手段に対応し、ステップS71(特に図29及び図30)が第2の電圧検出手段に対応している。さらに、ステップS72及びS73が2点タッチ判定手段に対応し、ステップS83及びS84が2点間距離検出手段に対応している。また、ステップS76〜81が押圧力検出手段に対応している。
In the above-described processing, averaging processing or the like may be performed when various data are acquired. As the averaging process, for example, 6 data are acquired, and after the maximum value and the minimum value are deleted from the 6 data, a process of averaging the remaining 4 data is performed. Thereby, the reliability of measurement data can be improved.
In FIG. 31, step S71 (especially FIGS. 27 and 28) corresponds to the first voltage detection means, and step S71 (especially FIGS. 29 and 30) corresponds to the second voltage detection means. Further, steps S72 and S73 correspond to the two-point touch determination unit, and steps S83 and S84 correspond to the two-point distance detection unit. Steps S76 to S81 correspond to the pressing force detection means.

(動作)
次に、本発明の第3の実施形態の動作について説明する。
今、操作者がタッチパネルTP上の2点をタッチしているものとする。このとき、2点間距離が比較的短いものとすると、2点タッチ時のRXp21/Xp21やRYp21/Yp21は、1点タッチ時のRXp21/Xp21(=SRX0)やRYp21/Yp21(=SRY0)に比較的近い値となる。
そのため、制御部10は、上記(15)及び(16)式をもとに、2点間距離XDual及びYDualを比較的小さい値に算出する(ステップS83,S84)。
(Operation)
Next, the operation of the third embodiment of the present invention will be described.
Assume that the operator is touching two points on the touch panel TP. At this time, assuming that the distance between the two points is relatively short, RXp21 / Xp21 and RYp21 / Yp21 at the time of two-point touch become RXp21 / Xp21 (= SRX0) and RYp21 / Yp21 (= SRY0) at the time of one-point touch. A relatively close value.
Therefore, the control unit 10 calculates the two-point distances XDual and YDual to relatively small values based on the above formulas (15) and (16) (steps S83 and S84).

2点タッチ時のRXp21/Xp21やRYp21/Yp21は、2点間距離が長いほど、SRX0やSRY0と比較して小さい値となる。そのため、2点間距離が比較的長い場合には、制御部10は、上記(15)及び(16)式をもとに、2点間距離XDual及びYDualを比較的大きい値に算出する(ステップS83,S84)。
以上のように、2点間の距離に応じて電圧比RXp21/Xp21やRYp21/Yp21が変化することを利用するので、適正に2点間距離を算出することができる。
RXp21 / Xp21 and RYp21 / Yp21 at the time of two-point touch are smaller values as compared to SRX0 and SRY0 as the distance between the two points is longer. Therefore, when the distance between the two points is relatively long, the control unit 10 calculates the distances between the two points XDual and YDual to relatively large values based on the above equations (15) and (16) (step S83, S84).
As described above, since the voltage ratios RXp21 / Xp21 and RYp21 / Yp21 change according to the distance between the two points, the distance between the two points can be calculated appropriately.

また、押圧パラメータXZ21を用い、タッチ入力の押圧力に応じて2点間距離を補正する。このとき、押圧パラメータXZ21の算出に際し、2点の方向に応じて電圧Z1,Z2の測定方法を変更する。
2点の方向dY=+1のとき、すなわちxa<xb且つya>ybのときに図33の接続状態で測定した電圧XP,YNは、共に点Aよりも点B側の接触抵抗値の影響を受け易い。一方、2点の方向dY=−1のとき、すなわちxa<xb且つya<ybのときは、図33(a)の接続状態で測定した電圧XPは点B、図33(b)の接続状態で測定した電圧YNは点Aの接触抵抗値の影響を受け易い。このように、影響を受け易い点が異なると2点間距離の算出精度を向上させることができない。
Further, the distance between the two points is corrected according to the pressing force of the touch input using the pressing parameter XZ21. At this time, when calculating the pressing parameter XZ21, the measurement method of the voltages Z1 and Z2 is changed according to the directions of the two points.
When the direction dY of the two points is d + 1, that is, when xa <xb and ya> yb, the voltages XP and YN measured in the connection state of FIG. Easy to receive. On the other hand, when the direction dY = −1 of two points, that is, when xa <xb and ya <yb, the voltage XP measured in the connection state of FIG. The voltage YN measured in (5) is easily influenced by the contact resistance value at the point A. Thus, if the points that are easily affected are different, the calculation accuracy of the distance between the two points cannot be improved.

そこで、dY=−1のときは、図34の接続状態で測定した電圧XN,YNを電圧Z1,Z2として用いる。2点の方向dY=−1のとき、すなわちxa<xb且つya<ybのときに図34の接続状態で測定した電圧XN,YNは、共に点Aの接触抵抗値の影響を受け易い値である。
このように、2点の方向に応じて電圧Z1,Z2の測定方法を変更することで、2点タッチ時の各点の接触抵抗の影響を考慮した押圧パラメータを算出することができる。その結果、2点間距離の算出精度を向上させることができる。
Therefore, when dY = −1, the voltages XN and YN measured in the connection state of FIG. 34 are used as the voltages Z1 and Z2. The voltages XN and YN measured in the connection state of FIG. 34 when the direction of the two points dY = −1, that is, when xa <xb and ya <yb are both values that are easily affected by the contact resistance value at point A. is there.
As described above, by changing the measurement method of the voltages Z1 and Z2 according to the direction of the two points, it is possible to calculate the pressing parameter considering the influence of the contact resistance at each point when the two points are touched. As a result, the calculation accuracy of the distance between the two points can be improved.

なお、ここでは、dY=+1のとき、図33の接続状態で測定した電圧XP,YN(電圧Z1,Z2)に基づいて押圧パラメータXZ21を算出する場合について説明したが、当該押圧パラメータXZ21と、図33の状態に対し、端子Y2に直接電源VDDの電圧を与えると共に端子X1を接地接続した状態で測定した電圧XN,YP(電圧Z1NP,Z2NP)に基づいて算出した押圧パラメータXZ21NPとの平均を、最終的な押圧パラメータXZ21としてもよい。   Here, the case where the pressing parameter XZ21 is calculated based on the voltages XP and YN (voltages Z1 and Z2) measured in the connection state of FIG. 33 when dY = + 1 has been described. 33, the average of the pressing parameter XZ21NP calculated based on the voltages XN and YP (voltages Z1NP and Z2NP) measured in a state where the voltage of the power supply VDD is directly applied to the terminal Y2 and the terminal X1 is grounded. The final pressing parameter XZ21 may be used.

また、同様に、dY=−1のときは、図34の接続状態で測定した電圧XN,YN(電圧Z1PP,Z2PP)に基づいて算出した押圧パラメータXZ21と、図34の状態に対し、端子Y2に直接電源VDDの電圧を与えると共に端子X2を接地接続した状態で測定した電圧XP,YP(電圧Z1NN,Z2NN)に基づいて算出した押圧パラメータXZ21NNとの平均を、最終的な押圧パラメータXZ21としてもよい。
このように、点Aの影響を受け易い押圧パラメータと点Bの影響を受け易い押圧パラメータの平均を取ることで、より2点間距離の算出精度を向上させることができる。
Similarly, when dY = −1, the pressing parameter XZ21 calculated based on the voltages XN and YN (voltages Z1PP and Z2PP) measured in the connection state of FIG. 34 and the state of FIG. The average of the pressing parameter XZ21NN calculated based on the voltages XP and YP (voltages Z1NN and Z2NN) measured in a state where the voltage of the power supply VDD is directly applied to the terminal X2 and grounded is also used as the final pressing parameter XZ21. Good.
Thus, by calculating the average of the pressure parameter that is easily affected by the point A and the pressure parameter that is easily affected by the point B, the calculation accuracy of the distance between the two points can be further improved.

(効果)
このように、上記第3の実施形態では、2点間の距離に応じて電圧比RXp21/Xp21やRYp21/Yp21が変化することを利用して、2点間距離を検出するので、適正に2点間距離を検出することができる。また、座標検出や2点タッチ判定に用いる測定電圧を用いて2点間距離を検出するので、新たに2点間距離検出用の電圧測定を行う必要がない。したがって、その分電圧測定の回数を削減することができる。
(応用例)
なお、上記第3の実施形態においては、上述した第1の実施形態と同様に、2点間距離XDual,YDualを用いて、図13に示す2点タッチのジェスチャ(拡大、縮小、回転)を判定することもできる。
(effect)
As described above, in the third embodiment, the distance between the two points is detected by using the change in the voltage ratios RXp21 / Xp21 and RYp21 / Yp21 according to the distance between the two points. The distance between points can be detected. In addition, since the distance between the two points is detected using the measurement voltage used for coordinate detection and two-point touch determination, it is not necessary to newly perform voltage measurement for detecting the distance between the two points. Therefore, the number of voltage measurements can be reduced accordingly.
(Application examples)
In the third embodiment, the two-point touch gesture (enlargement, reduction, rotation) shown in FIG. 13 is performed using the two-point distances XDual and YDual, as in the first embodiment. It can also be determined.

(変形例)
なお、上記第1及び第2の実施形態においては、2点タッチ判定部として、電圧R_XPと基準電圧R_XP0との差分が判定閾値D_XYより大きいか否かに応じて2点タッチであるか否かを判定する方法を採用する場合について説明したが、2点タッチにより電極端子間の抵抗値が小さくなることを利用した別の方法を採用することもできる。
また、上記各実施形態においては、電圧Z1,Z2を測定し演算により押圧力と相関関係のある押圧パラメータXZ21を求める場合について説明したが、圧電素子等により構成されるセンサを設け、そのセンサでタッチ入力の押圧力を検出するようにしてもよい。
(Modification)
In the first and second embodiments, as the two-point touch determination unit, whether or not the two-point touch is made according to whether or not the difference between the voltage R_XP and the reference voltage R_XP0 is larger than the determination threshold D_XY. Although the case where the method of judging this is adopted has been described, another method using the fact that the resistance value between the electrode terminals becomes small by two-point touch can also be adopted.
In each of the above-described embodiments, the case where the pressure parameters XZ21 having a correlation with the pressing force is obtained by measuring the voltages Z1 and Z2 has been described. The pressing force of touch input may be detected.

10…制御部、11…LCDモジュール、TP1,TP2…タッチパネル、X1,X2…端子(X方向)、Y1,Y2…端子(Y方向)、SW1〜SW8…スイッチ   DESCRIPTION OF SYMBOLS 10 ... Control part, 11 ... LCD module, TP1, TP2 ... Touch panel, X1, X2 ... Terminal (X direction), Y1, Y2 ... Terminal (Y direction), SW1-SW8 ... Switch

Claims (4)

一対の電極端子が対向する端辺部にそれぞれ設けられた2枚の抵抗膜を、上下で前記電極端子が直交するように互いに接触可能に近接対向させて構成したタッチパネルを備えるタッチパネル装置であって、
一方の抵抗膜の一対の電極端子間に電源電圧を印加し、且つ他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第1の電圧検出手段と、
前記一方の抵抗膜の一対の電極端子間に抵抗を介して電源電圧を印加し、且つ前記他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第2の電圧検出手段と、
前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比に基づいて、前記タッチパネル上で2点がタッチされたか否かを判定する2点タッチ判定手段と、
前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記他方の抵抗膜の一方の電極端子の電圧を検出する第3の電圧検出手段と、
前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記一方の抵抗膜の他方の電極端子の電圧を検出する第4の電圧検出手段と、
前記2点タッチ判定手段で2点がタッチされたと判定したとき、前記第1の電圧検出手段で検出した電圧と前記第3の電圧検出手段で検出した電圧と前記第4の電圧検出手段とで検出した電圧に基づいて、2点タッチ入力に共通の押圧力を検出する押圧力検出手段と、
前記2点タッチ判定手段で2点がタッチされたと判定したとき、前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比と、前記押圧力検出手段で検出した押圧力とに基づいて、タッチされた2点間の距離を検出する2点間距離検出手段と、を備えることを特徴とするタッチパネル装置。
A touch panel device comprising a touch panel configured such that two resistive films provided respectively on end sides where a pair of electrode terminals are opposed face each other so as to be able to contact each other so that the electrode terminals are perpendicular to each other. ,
One of the pair of electrode terminals of the other resistance film in a state where a power supply voltage is applied between the pair of electrode terminals of one resistance film and the pair of electrode terminals of the other resistance film is short-circuited. First voltage detecting means for detecting the voltage of the electrode terminal;
A pair of electrode terminals of the other resistance film in a state where a power supply voltage is applied between the pair of electrode terminals of the one resistance film via a resistor and the pair of electrode terminals of the other resistance film is short-circuited. A second voltage detecting means for detecting the voltage of one of the electrode terminals;
Two-point touch determination means for determining whether or not two points are touched on the touch panel based on a ratio between the voltage detected by the first voltage detection means and the voltage detected by the second voltage detection means When,
A power supply voltage is applied to one electrode terminal of the one resistance film, the other electrode terminal of the one resistance film is opened, and one electrode terminal of the other resistance film is opened, and the other resistance A third voltage detecting means for detecting a voltage of one electrode terminal of the other resistive film in a state where the other electrode terminal of the film is grounded;
A power supply voltage is applied to one electrode terminal of the one resistance film, the other electrode terminal of the one resistance film is opened, and one electrode terminal of the other resistance film is opened, and the other resistance A fourth voltage detecting means for detecting a voltage of the other electrode terminal of the one resistance film in a state where the other electrode terminal of the film is grounded;
When the two-point touch determination means determines that two points have been touched, the voltage detected by the first voltage detection means, the voltage detected by the third voltage detection means, and the fourth voltage detection means A pressing force detecting means for detecting a pressing force common to the two-point touch input based on the detected voltage ;
When the two-point touch determination means determines that two points are touched, the ratio between the voltage detected by the first voltage detection means and the voltage detected by the second voltage detection means, and the pressing force detection means And a point-to-point distance detecting means for detecting a distance between the two touched points based on the pressing force detected in step (b).
前記2点間距離検出手段は、
前記タッチパネルが1点タッチされているときに前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比と、前記タッチパネルが2点タッチされているときに前記第1の電圧検出手段で検出した電圧と前記第2の電圧検出手段で検出した電圧との比との差分に基づいて、前記2点間の距離の基準値を算出する基準値算出手段と、
前記押圧力検出手段で検出した押圧力が小さいほど、前記基準値算出手段で算出した前記2点間の距離の基準値を増加補正する補正手段と、を備えることを特徴とする請求項に記載のタッチパネル装置。
The point-to-point distance detecting means is
When the touch panel is touched at one point, the ratio between the voltage detected by the first voltage detection means and the voltage detected by the second voltage detection means, and when the touch panel is touched at two points A reference value calculating means for calculating a reference value of a distance between the two points based on a difference between a ratio of a voltage detected by the first voltage detecting means and a voltage detected by the second voltage detecting means; ,
As the pressing force detected by said pressing force detecting means is small, in claim 1, characterized in that it comprises a correcting means for increasing corrects the reference value of the distance between the two points calculated by the reference value calculating means The touch panel device described.
前記押圧力検出手段は、前記2点タッチ判定手段で2点がタッチされたと判定したとき、タッチ入力の押圧力と相関関係にあり且つ各点の押圧力との相関度合いが同等又は略同等となる押圧パラメータを検出することを特徴とする請求項1または2に記載のタッチパネル装置。 When the two-point touch determination unit determines that two points are touched, the pressing force detection unit has a correlation with the pressing force of the touch input, and the degree of correlation with the pressing force at each point is equal or substantially equal. the touch panel device according to claim 1 or 2, characterized in that to detect the pressing parameter of. 一対の電極端子が対向する端辺部にそれぞれ設けられた2枚の抵抗膜を、上下で前記電極端子が直交するように互いに接触可能に近接対向させて構成したタッチパネルのタッチ入力点間距離検出方法であって、
一方の抵抗膜の一対の電極端子間に電源電圧を印加し、且つ他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第1の電圧検出ステップと、
前記一方の抵抗膜の一対の電極端子間に抵抗を介して電源電圧を印加し、且つ前記他方の抵抗膜の一対の電極端子間を短絡した状態で、前記他方の抵抗膜の一対の電極端子のうち何れか一方の電極端子の電圧を検出する第2の電圧検出ステップと、
前記第1の電圧検出ステップにおいて検出された電圧と前記第2の電圧検出ステップにおいて検出された電圧との比に基づいて、前記タッチパネル上で2点がタッチされたか否かを判定する2点タッチ判定ステップと、
前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記他方の抵抗膜の一方の電極端子の電圧を検出する第3の電圧検出ステップと、
前記一方の抵抗膜の一方の電極端子に電源電圧を印加し、前記一方の抵抗膜の他方の電極端子を開放し、且つ前記他方の抵抗膜の一方の電極端子を開放し、前記他方の抵抗膜の他方の電極端子を接地した状態で、前記一方の抵抗膜の他方の電極端子の電圧を検出する第4の電圧検出ステップと、
前記2点タッチ判定ステップにおいて2点がタッチされたと判定されたとき、前記第1の電圧検出手段で検出した電圧と前記第3の電圧検出手段で検出した電圧と前記第4の電圧検出手段とで検出した電圧に基づいて、2点タッチ入力に共通の押圧力を検出する押圧力検出ステップと、
前記2点タッチ判定ステップにおいて2点がタッチされたと判定されたとき、前記第1の電圧検出ステップにおいて検出された電圧と前記第2の電圧検出ステップにおいて検出された電圧との比と、前記押圧力検出ステップにおいて検出された押圧力とに基づいて、タッチされた2点間の距離を検出する2点間距離検出ステップと、を備えることを特徴とするタッチパネルのタッチ入力点間距離検出方法。
Detecting the distance between touch input points of a touch panel configured by two resistive films provided on the end sides where a pair of electrode terminals are opposed to each other so as to be close to each other so that the electrode terminals are perpendicular to each other so as to be in contact with each other A method,
One of the pair of electrode terminals of the other resistance film in a state where a power supply voltage is applied between the pair of electrode terminals of one resistance film and the pair of electrode terminals of the other resistance film is short-circuited. A first voltage detection step of detecting a voltage of the electrode terminal;
A pair of electrode terminals of the other resistance film in a state where a power supply voltage is applied between the pair of electrode terminals of the one resistance film via a resistor and the pair of electrode terminals of the other resistance film is short-circuited. A second voltage detection step for detecting the voltage of one of the electrode terminals;
Two-point touch for determining whether or not two points are touched on the touch panel based on a ratio of the voltage detected in the first voltage detection step and the voltage detected in the second voltage detection step A determination step;
A power supply voltage is applied to one electrode terminal of the one resistance film, the other electrode terminal of the one resistance film is opened, and one electrode terminal of the other resistance film is opened, and the other resistance A third voltage detecting step of detecting a voltage of one electrode terminal of the other resistive film in a state where the other electrode terminal of the film is grounded;
A power supply voltage is applied to one electrode terminal of the one resistance film, the other electrode terminal of the one resistance film is opened, and one electrode terminal of the other resistance film is opened, and the other resistance A fourth voltage detecting step of detecting a voltage of the other electrode terminal of the one resistive film in a state where the other electrode terminal of the film is grounded;
When it is determined in the two-point touch determination step that two points are touched, the voltage detected by the first voltage detection means, the voltage detected by the third voltage detection means, and the fourth voltage detection means A pressing force detecting step for detecting a pressing force common to the two-point touch input based on the voltage detected in
When it is determined in the two-point touch determination step that two points are touched, the ratio of the voltage detected in the first voltage detection step and the voltage detected in the second voltage detection step is A touch-point distance detection method for a touch panel, comprising: a point-to-point distance detection step for detecting a distance between two touched points based on the pressing force detected in the pressure detection step.
JP2010263709A 2009-11-26 2010-11-26 Touch panel device and touch input point distance detection method of touch panel Expired - Fee Related JP5486472B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010263709A JP5486472B2 (en) 2009-11-26 2010-11-26 Touch panel device and touch input point distance detection method of touch panel

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2009269081 2009-11-26
JP2009269081 2009-11-26
JP2010263709A JP5486472B2 (en) 2009-11-26 2010-11-26 Touch panel device and touch input point distance detection method of touch panel

Publications (2)

Publication Number Publication Date
JP2011134316A JP2011134316A (en) 2011-07-07
JP5486472B2 true JP5486472B2 (en) 2014-05-07

Family

ID=44346916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010263709A Expired - Fee Related JP5486472B2 (en) 2009-11-26 2010-11-26 Touch panel device and touch input point distance detection method of touch panel

Country Status (1)

Country Link
JP (1) JP5486472B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101364888B1 (en) 2009-11-26 2014-02-19 아사히 가세이 일렉트로닉스 가부시끼가이샤 Touch panel device and touch input point spacing distance detection method of touch panel
JP5642500B2 (en) * 2010-07-22 2014-12-17 富士通コンポーネント株式会社 Touch panel position detection method, touch panel, touch panel initialization method
JP5830396B2 (en) * 2012-01-31 2015-12-09 富士通コンポーネント株式会社 Position detection method for touch panel and touch panel
JP5460758B2 (en) * 2012-01-31 2014-04-02 富士ソフト株式会社 Touch position correction processing method and program for touch panel
JP2014149796A (en) * 2013-02-04 2014-08-21 Sharp Corp Position detection apparatus, image processing apparatus, and position detection method
JP6158615B2 (en) * 2013-07-05 2017-07-05 富士通コンポーネント株式会社 Touch panel
JP5971430B2 (en) * 2013-11-05 2016-08-17 株式会社村田製作所 Touch input device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08161099A (en) * 1994-10-05 1996-06-21 Ricoh Co Ltd Operation panel
TWI234115B (en) * 2002-04-03 2005-06-11 Htc Corp Method and device of setting threshold pressure for touch panel
JP2009048233A (en) * 2007-08-13 2009-03-05 Mitsubishi Electric Corp Touch panel input device
JP5403905B2 (en) * 2007-12-14 2014-01-29 富士通コンポーネント株式会社 Resistive touch panel
JP2009176114A (en) * 2008-01-25 2009-08-06 Mitsubishi Electric Corp Touch panel device and user interface device

Also Published As

Publication number Publication date
JP2011134316A (en) 2011-07-07

Similar Documents

Publication Publication Date Title
WO2011065011A1 (en) Touch panel device and touch input point spacing distance detection method of touch panel
JP5486472B2 (en) Touch panel device and touch input point distance detection method of touch panel
JP5336341B2 (en) Touch panel device
JP2009048233A (en) Touch panel input device
JP2009176114A (en) Touch panel device and user interface device
KR101743334B1 (en) Position detection method in touch panel and touch panel
US8416215B2 (en) Implementation of multi-touch gestures using a resistive touch display
CN104281343B (en) Touch panel
JP5403905B2 (en) Resistive touch panel
JP2008165575A (en) Touch panel device
TWI578218B (en) Touch panel device and touch panel device position detection method
JP5132593B2 (en) Touch panel device
KR101112630B1 (en) Digital Apparatus for Touch Screen and Method for Compensating its distorted coordinate Therefore
Calpe-Maravilla et al. Dual touch and gesture recognition in 4-wire resistive touchscreens
JP2994155B2 (en) Resistive tablet
EP3531255B1 (en) Touch panel device
TWI424333B (en) Input apparatus and input method
JP2022092351A (en) Touch panel device, controller and program
Calpe et al. AD7879 Controller Enables Gesture Recognition on Resistive Touch Screens
JP2021179799A (en) Touch panel device
JP2009032128A (en) Touch panel device
JP2012168977A (en) Resistance type touch panel
JP2003316516A (en) Display device having resistance film contact type touch panel

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130711

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140129

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140221

R150 Certificate of patent or registration of utility model

Ref document number: 5486472

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees