JP5271240B2 - Touch panel device - Google Patents

Touch panel device Download PDF

Info

Publication number
JP5271240B2
JP5271240B2 JP2009267966A JP2009267966A JP5271240B2 JP 5271240 B2 JP5271240 B2 JP 5271240B2 JP 2009267966 A JP2009267966 A JP 2009267966A JP 2009267966 A JP2009267966 A JP 2009267966A JP 5271240 B2 JP5271240 B2 JP 5271240B2
Authority
JP
Japan
Prior art keywords
key
upper limit
detection
area
limit value
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.)
Active
Application number
JP2009267966A
Other languages
Japanese (ja)
Other versions
JP2011113221A (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.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics 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 Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP2009267966A priority Critical patent/JP5271240B2/en
Publication of JP2011113221A publication Critical patent/JP2011113221A/en
Application granted granted Critical
Publication of JP5271240B2 publication Critical patent/JP5271240B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a touch panel device for detecting a plurality of simultaneous touch inputs while allowing a change in an upper limit value for the number of detectable touch inputs during touch input operation. <P>SOLUTION: From a host CPU 5 disposed outside a touch panel device 1, the upper limit value for the number of touch inputs to be simultaneously detected is stored in a memory 42 (upper-limit key count storage area 424) of a touch panel controller 4. The upper limit value is duplicated into an upper-limit key setting area 425 in an early stage of each detection period of the touch inputs. A key decision processor 43 detects the position data of the touch input based on a detected data obtained from a touch panel 2 by a drive and detection unit 3. In a TNEW key memory area 421 of the memory 42, the number of touch inputs whose position data are detected is stored. The key decision processor 43 determines that the number of touch inputs exceeds the upper limit value, when the number of touch inputs is greater than the upper limit value stored in the upper-limit key setting area 425. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、同時にされた複数のタッチ入力を検出するタッチパネル装置に関するものである。   The present invention relates to a touch panel device that detects a plurality of simultaneous touch inputs.

ユーザによりなされたタッチ入力を検出するタッチパネル装置は、特定の動作を規定するなどの目的で、同時にされた複数のタッチ入力を検出する機能を有するものがある(例えば特許文献1に開示されているマトリクス型のタッチパネル)。   A touch panel device that detects a touch input made by a user has a function of detecting a plurality of touch inputs that are simultaneously performed for the purpose of defining a specific operation (for example, disclosed in Patent Document 1). Matrix type touch panel).

特開平9−274538号公報(1997年10月21日公開)JP 9-274538 A (published on October 21, 1997)

ところで、上記のようなタッチパネル装置では、ハードウェアやソフトウェアの制限から、検出可能なタッチ入力数の上限値が予め定められた固定値として規定されていた。このため、タッチパネル装置を組み込んだ装置では、所定数のタッチ入力で動作を規定するようなアプリケーションプログラムを導入する場合、所定数を越えるタッチ入力を制限するために、タッチ入力数の上限値を任意に設定することができなかった。例えば、タッチパネルを用いる場合、特定のタッチ入力用の画像を表示させている状態、すなわち、タッチ入力操作時において、予め設定された数以上のタッチ入力を受け付けないように制限することができない。   By the way, in the touch panel device as described above, the upper limit value of the number of touch inputs that can be detected is defined as a predetermined fixed value due to limitations of hardware and software. For this reason, in an apparatus incorporating a touch panel device, when an application program that defines the operation with a predetermined number of touch inputs is introduced, an upper limit value for the number of touch inputs is arbitrarily set in order to limit touch inputs exceeding the predetermined number. Could not be set. For example, in the case of using a touch panel, it is not possible to limit the state where a specific touch input image is displayed, that is, in a touch input operation, not to accept more than a preset number of touch inputs.

本発明は、上記の問題点に鑑みてなされたものであり、同時にされた複数のタッチ入力を検出するタッチパネル装置において検出可能なタッチ入力数の上限値をタッチ入力操作時においても変更できるようにすることを目的としている。   The present invention has been made in view of the above-described problems, so that the upper limit value of the number of touch inputs that can be detected in a touch panel device that detects a plurality of touch inputs simultaneously can be changed even during a touch input operation. The purpose is to do.

本発明に係るタッチパネル装置は、上記の課題を解決するために、同時にタッチ入力可能なタッチ入力数の上限値を記憶する上限値記憶手段と、前記タッチ入力の検出数を記憶する検出数記憶手段と、前記検出数記憶手段に記憶された前記検出数が前記上限値記憶手段に記憶された前記上限値を超えたときに上限値を超えたことを判定する判定手段とを備えていることを特徴としている。   In order to solve the above problems, the touch panel device according to the present invention stores an upper limit value storage unit that stores an upper limit value of the number of touch inputs that can be input simultaneously, and a detection number storage unit that stores the detected number of touch inputs. And determining means for determining that the upper limit value has been exceeded when the detected number stored in the detected number storage means exceeds the upper limit value stored in the upper limit value storing means. It is a feature.

上記の構成では、予め、上限値記憶手段に上限値を記憶しておく一方、同時に複数のタッチ入力がされると、そのタッチ入力の検出数が検出数記憶手段に記憶される。この状態で、判定手段により、検出数記憶手段に記憶された検出数が上限値記憶手段に記憶された上限値を超えると、上限値を超えたことが判定される。   In the above configuration, the upper limit value is stored in advance in the upper limit value storage unit, and when a plurality of touch inputs are simultaneously performed, the detected number of touch inputs is stored in the detection number storage unit. In this state, when the number of detections stored in the detection number storage unit exceeds the upper limit value stored in the upper limit value storage unit, the determination unit determines that the upper limit value has been exceeded.

前記タッチパネル装置において、前記上限値記憶手段が、前記上限値が外部から書き込まれる書込領域と、当該書込領域に書き込まれた前記上限値が前記判定手段による判定に使用するための設定値としてタッチ入力の検出処理と同期してコピーされる設定領域と、前記判定に使用された前記上限値が前記設定領域から読出値としてコピーされて読み出される読出領域とを含んでいることが好ましい。   In the touch panel device, the upper limit value storage means sets a write area in which the upper limit value is written from the outside and a setting value for the upper limit value written in the write area to be used for determination by the determination means. It is preferable to include a setting area that is copied in synchronization with the touch input detection process, and a reading area in which the upper limit value used for the determination is copied and read as a reading value from the setting area.

なぜなら、外部から上限値が入力されるタイミングがタッチ入力の検出処理と同期していないと、検出処理の間に上限値が複数回入力された場合、どの上限値が判定に用いられたかがわからないため、判定結果を受けた外部の処理装置が正しい処理をすることができなくなるおそれがあるからである。   This is because if the upper limit value input timing from the outside is not synchronized with the touch input detection process, when the upper limit value is input multiple times during the detection process, it is not known which upper limit value was used for the determination. This is because the external processing device that has received the determination result may not be able to perform correct processing.

そこで、外部から書込領域に書き込まれた上限値がタッチ入力の検出処理と同期して設定値領域にコピーされて設定され、当該上限値が判定手段による判定に使用される。また、判定に使用された上限値が設定領域から読出値として読出領域にコピーされる。これにより、外部から書込領域への上限値の書き込みが検出処理と非同期で行われても、判定に実際に使用された上限値を外部から読み取ることができる。したがって、判定結果を受けた外部の処理装置などが正しい処理をすることができる。しかも、次のタイミングで、書込領域から設定領域に新たな上限値がコピーされても、読出領域に上限値を保存しておくことにより、読出領域に保存された上限値を確実に読み出すことができる。   Therefore, the upper limit value written in the writing area from the outside is copied and set in the setting value area in synchronization with the touch input detection process, and the upper limit value is used for the determination by the determining means. Further, the upper limit value used for the determination is copied from the setting area to the reading area as a reading value. Thereby, even if the upper limit value is written from the outside to the writing area asynchronously with the detection process, the upper limit value actually used for the determination can be read from the outside. Therefore, an external processing device or the like that has received the determination result can perform correct processing. Moreover, even if a new upper limit value is copied from the writing area to the setting area at the next timing, the upper limit value stored in the reading area can be reliably read out by storing the upper limit value in the reading area. Can do.

本発明に係るタッチパネル装置は、以上のように、上限値記憶手段と、検出数記憶手段と、判定手段とを備えているので、検出可能なタッチ入力数の上限値をタッチ入力操作時においても変更することができる。したがって、タッチ入力を外部から入力された上限値に基づいて制限することができるという効果を奏する。   As described above, the touch panel device according to the present invention includes the upper limit value storage unit, the detection number storage unit, and the determination unit, so that the upper limit value of the number of touch inputs that can be detected is also determined during the touch input operation. Can be changed. Therefore, the touch input can be limited based on the upper limit value input from the outside.

本発明の実施形態に係るタッチパネル装置の要部の構成を示す図である。It is a figure which shows the structure of the principal part of the touchscreen apparatus which concerns on embodiment of this invention. 上記タッチパネル装置におけるタッチパネルコントローラの構成を示すブロック図である。It is a block diagram which shows the structure of the touchscreen controller in the said touchscreen apparatus. 上記タッチパネルコントローラのメモリ部に設けられるTNEWキー記憶領域の構成を示す図である。It is a figure which shows the structure of the TNEW key storage area provided in the memory part of the said touch panel controller. 上記メモリ部に設けられるCURキー記憶領域の構成を示す図である。It is a figure which shows the structure of the CUR key storage area provided in the said memory part. キー確定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a key confirmation process. キー確定処理の他の手順を示すフローチャートである。It is a flowchart which shows the other procedure of a key determination process.

本発明の実施形態を図1〜図6に基づいて説明すると、以下の通りである。   An embodiment of the present invention will be described below with reference to FIGS.

〔1.タッチパネル装置の構成〕
図1に示すように、本実施の形態に係るタッチパネル装置1は、タッチパネル2と、駆動・検出部3と、タッチパネルコントローラ部4とを備えている。
[1. Configuration of touch panel device]
As shown in FIG. 1, the touch panel device 1 according to the present embodiment includes a touch panel 2, a drive / detection unit 3, and a touch panel controller unit 4.

なお、以降の説明では、タッチパネル2におけるタッチ入力箇所をキーと称する。   In the following description, the touch input location on the touch panel 2 is referred to as a key.

〔1−1.タッチパネルの構成〕
タッチパネル2は、同時にされた複数のタッチ入力に対する複数のキーを検出できるタッチパネルであれば、どのようなタッチパネルを採用してもよい。例えば、タッチパネル2としてはマトリクス型タッチパネルが利用できる。
[1-1. Configuration of touch panel
The touch panel 2 may adopt any touch panel as long as it can detect a plurality of keys for a plurality of touch inputs made at the same time. For example, a matrix type touch panel can be used as the touch panel 2.

〔1−2.駆動・検出部の構成〕
駆動・検出部3は、タッチパネルコントローラ4から与えられる駆動データに基づいてタッチパネル2の電極に駆動電圧を印加する。また、駆動・検出部3は、駆動されたタッチパネル2の電極から出力される検出電圧に基づく検出データをタッチパネルコントローラ4に出力する。
[1-2. Configuration of drive / detection unit
The driving / detecting unit 3 applies a driving voltage to the electrodes of the touch panel 2 based on the driving data given from the touch panel controller 4. Further, the drive / detection unit 3 outputs detection data based on a detection voltage output from the electrode of the driven touch panel 2 to the touch panel controller 4.

〔1−3.タッチパネルコントローラの構成〕
タッチパネルコントローラ4は、下記の(1)〜(4)の機能を有している。
(1)タッチパネル装置1の外部に設けられるホストCPU5からの指示を受けて、タッチパネル2へ与える駆動データを出力してタッチパネル2の電極を駆動し、それに応じてタッチパネル2から出力される検出データを取り込み、その検出データに基づいてキーを検出する。
(2)検出したキー(以降、「検出キー」と称する)を前回の検出の後に確定したキー(以降、「確定キー」と称する)とそれぞれの位置データで比較し、その比較結果に応じて、検出キーが確定キーに対して位置の変化したキー(移動したキー)であるか否かを判定して、キーを確定する。上記のキーの検出からキーの確定までの一連の動作(スキャン)は所定のスキャン周期内で繰り返し行われる。
(3)ホストCPU5にキーが確定したことを通知し、ホストCPU5からの確定キーのデータの読み出しを受け付ける。
(4)同時に検出できる(タッチ入力可能な)最大のキーの数(上限値)を設定し、検出キーの数が当該上限値を越えたときに、上限値を超えたことを判定してスキャンを終了し、上限値を超えたことをホストCPU5に通知する。
[1-3. Configuration of touch panel controller
The touch panel controller 4 has the following functions (1) to (4).
(1) In response to an instruction from the host CPU 5 provided outside the touch panel device 1, the drive data applied to the touch panel 2 is output to drive the electrodes of the touch panel 2, and the detection data output from the touch panel 2 is output accordingly. The key is detected based on the detected data.
(2) The detected key (hereinafter referred to as “detection key”) is compared with the key determined after the previous detection (hereinafter referred to as “confirmation key”) with the respective position data, and according to the comparison result Then, it is determined whether or not the detection key is a key whose position has changed with respect to the confirmation key (moved key), and the key is confirmed. A series of operations (scanning) from the detection of the key to the determination of the key is repeatedly performed within a predetermined scanning period.
(3) Notifying the host CPU 5 that the key has been confirmed, and accepting reading of the data of the confirmed key from the host CPU 5.
(4) Set the maximum number of keys (upper limit value) that can be detected at the same time (touch input possible), and when the number of detected keys exceeds the upper limit value, determine that the upper limit value has been exceeded and scan To notify the host CPU 5 that the upper limit has been exceeded.

タッチパネルコントローラ4は、上記の機能を実現するために、コントローラCPU41と、メモリ部42と、キー確定処理部43とを有している。コントローラCPU41、メモリ部42およびキー確定処理部43は、バス44に接続されており、バス44を介して、それぞれデータや指示の送受を行う。   The touch panel controller 4 includes a controller CPU 41, a memory unit 42, and a key confirmation processing unit 43 in order to realize the above functions. The controller CPU 41, the memory unit 42, and the key confirmation processing unit 43 are connected to the bus 44 and transmit / receive data and instructions via the bus 44.

コントローラCPU41は、上記の(1)〜(4)の機能を実現するための制御処理を行う。キー確定処理部43は、ハードウェアロジック(デジタル回路)によって構成されるが、ソフトウェア(コントローラCPU41が実行する制御プログラム)で実現される機能として構成されてもよい。キー確定処理部43については、図2を参照して、後に詳しく説明する。   The controller CPU 41 performs control processing for realizing the functions (1) to (4). The key confirmation processing unit 43 is configured by hardware logic (digital circuit), but may be configured as a function realized by software (control program executed by the controller CPU 41). The key confirmation processing unit 43 will be described in detail later with reference to FIG.

〔1−3−1.メモリ部の構成〕
RAMからなるメモリ部42は、TNEWキー記憶領域421(検出数記憶手段)と、CURキー記憶領域422と、作業領域423と、上限キー数書込領域424と、上限キー数設定領域425と、上限キー数読出領域426と、検出結果データ記憶領域427と、読出結果データ記憶領域428とを有している。
[1-3-1. Configuration of memory unit)
The memory unit 42 including a RAM includes a TNEW key storage area 421 (detection number storage means), a CUR key storage area 422, a work area 423, an upper limit key number write area 424, an upper limit key number setting area 425, An upper limit key number reading area 426, a detection result data storage area 427, and a reading result data storage area 428 are provided.

〔1−3−1(a).TNEWキー記憶領域の構成〕
TNEWキー記憶領域421は、後述するリンク判定部432によるリンクの判定を行うために、新たな検出キーについての各種のデータを記憶する。このTNEWキー記憶領域421は、図3に示すように、検出キーについての検出キー位置DETECTEDPOSを記憶する領域と、OFFフラグ、ONフラグ、MOVEフラグおよびLINKフラグを設ける各領域(1ビット)と、LINK−KEYデータを記憶する領域(4ビット)と、検出キー数TNEWKEY−NO(検出数)を記憶する領域(4ビット)とを有している。上記の各領域は、キー毎に設けられており、それぞれにキー番号が付与されている。
[1-3-1 (a). Configuration of TNEW key storage area]
The TNEW key storage area 421 stores various data regarding a new detection key in order to determine a link by a link determination unit 432 described later. As shown in FIG. 3, the TNEW key storage area 421 includes an area for storing a detection key position DETECTED DPOS for the detection key, and an area (1 bit) provided with an OFF flag, an ON flag, a MOVE flag, and a LINK flag. It has an area (4 bits) for storing LINK-KEY data and an area (4 bits) for storing the number of detected keys TNEWKEY-NO (number of detected). Each of the above areas is provided for each key, and a key number is assigned to each area.

検出キー位置DETECTEDPOSは、検出キーの水平方向および垂直方向の位置データである。この検出キー位置DETECTEDPOSは、キーが検出された順に1番目の記憶領域から書き込まれていく。   The detection key position DETECTEDDPOS is position data in the horizontal direction and the vertical direction of the detection key. The detected key position DETECTEDDPOS is written from the first storage area in the order in which the keys are detected.

OFFフラグは“1”であるときにキーが無効であることを示す。ONフラグは“1”であるときに検出キーが有効であることを示す。MOVEフラグは、“1”であるときに、今回の検出キーが前回の確定キーから移動したMOVEキーであることを示す。LINKフラグは、“1”であるときに、検出キーが確定キーとリンクしている(重なっている)LINKキーであることを示す。LINK−KEYデータは、リンクしているキーのキー番号のデータである。   When the OFF flag is “1”, it indicates that the key is invalid. When the ON flag is “1”, it indicates that the detection key is valid. When the MOVE flag is “1”, it indicates that the current detection key is the MOVE key moved from the previous confirmation key. When the LINK flag is “1”, it indicates that the detection key is a LINK key linked (overlapping) with the confirmation key. LINK-KEY data is key number data of linked keys.

検出キー数TNEWKEY−NOは検出キーの数である。後述するように、判定部434(図2参照)によって、検出キー数TNEWKEY−NOがホストCPU5から書き込まれる前述の上限値を超えているか否か判定される。   The number of detection keys TNEWKEY-NO is the number of detection keys. As will be described later, the determination unit 434 (see FIG. 2) determines whether or not the detected key number TNEWKEY-NO exceeds the above-described upper limit value written from the host CPU 5.

〔1−3−1(b).CURキー記憶領域の構成〕
CURキー記憶領域422は、確定キーについての各種のデータを記憶する。このCURキー記憶領域422は、図4に示すように、確定されたキーについての確定キー位置CURPOSを記憶する領域と、OFFフラグ、ONフラグ、MOVEフラグおよびLINKフラグを設ける各領域と、LINK−KEYデータを記憶する領域と、キー数CURKEY−NOを記憶する領域(4ビット)とを有している。上記の各領域は、キー毎に設けられており、それぞれにキー番号が付与されている。
[1-3-1 (b). Configuration of CUR key storage area]
The CUR key storage area 422 stores various data regarding the confirmation key. As shown in FIG. 4, the CUR key storage area 422 includes an area for storing a confirmed key position CURPOS for the confirmed key, an area for providing an OFF flag, an ON flag, a MOVE flag, and a LINK flag, and a LINK− It has an area for storing KEY data and an area (4 bits) for storing the number of keys CURKEY-NO. Each of the above areas is provided for each key, and a key number is assigned to each area.

確定キー位置CURPOSは、確定キーの水平方向および垂直方向の位置データである。キー数CURKEY−NOは、確定キーの数であり、検出キー数TNEWKEY−NOと同数に規定されている。   The confirmation key position CURPOS is position data of the confirmation key in the horizontal direction and the vertical direction. The key number CURKEY-NO is the number of confirmation keys, and is defined as the same number as the detected key number TNEWKEY-NO.

〔1−3−1(c).作業領域の構成〕
作業領域423は、キー確定処理に必要な各種の値を記憶するために設けられている。例えば、このような値としては、CHANGEDフラグが挙げられる。
[1-3-1 (c). (Workspace configuration)
The work area 423 is provided for storing various values necessary for the key confirmation process. For example, such a value includes a CHANGED flag.

後述するように、リンク判定部432により、今回のスキャンで検出された各検出キーと、前回のスキャンで確定された全ての確定キーとの一致の有無が比較される。CHANGEDフラグは、各検出キーが、どの確定キーとも一致していないと判定されたときに“1”にセットされる。   As will be described later, the link determination unit 432 compares the presence / absence of a match between each detection key detected in the current scan and all the confirmation keys confirmed in the previous scan. The CHANGED flag is set to “1” when it is determined that each detection key does not match any confirmation key.

また、作業領域423は、後述するキー検出部431がキー検出を行う検出周期を設定する検出周期データを記憶している。この周期データも、ホストCPU5によって書き込まれるが、固定値であってもよい。   The work area 423 stores detection cycle data for setting a detection cycle in which a key detection unit 431 described later performs key detection. This periodic data is also written by the host CPU 5, but may be a fixed value.

〔1−3−1(d).上限キー数書込領域の構成〕
上限キー数書込領域424(上限値記憶手段,書込領域)は、ホストCPU5から、書込上限キー数INTFKEY−NUMLIMITが書き込まれる4ビットの領域である。書込上限キー数INTFKEY−NUMLIMITは、ホストCPU5によって規定された同時に検出可能な最大のキーの数(上限値)である。
[1-3-1 (d). (Configuration of upper limit key number writing area)
The upper limit key number writing area 424 (upper limit storage means, writing area) is a 4-bit area in which the write upper limit key number INTFKEY-NUMLIMIT is written from the host CPU 5. The write upper limit key number INTFKEY-NUMLIMIT is the maximum number of keys (upper limit value) that can be detected at the same time defined by the host CPU 5.

〔1−3−1(e).上限キー数設定領域の構成〕
上限キー数設定領域425(上限値記憶手段,設定領域)は、上限キー数書込領域424に記憶されている書込上限キー数INTFKEY−NUMLIMITの値が書き込まれる(コピーされる)4ビットの領域である。上限キー数設定領域425では、書き込まれた値が設定上限キー数EXECKEY−NUMLIMIT(設定値)として設定される。
[1-3-1 (e). (Configuration of upper limit key count setting area)
The upper limit key number setting area 425 (upper limit storage means, setting area) is a 4-bit value in which the value of the write upper limit key number INTFKEY-NUMLIMIT stored in the upper limit key number writing area 424 is written (copied). It is an area. In the upper limit key number setting area 425, the written value is set as the set upper limit key number execkey-numlimit (set value).

〔1−3−1(f).上限キー数読出領域の構成〕
上限キー数読出領域426(上限値記憶手段,読出領域)は、上限キー数設定領域425に記憶されている設定上限キー数EXECKEY−NUMLIMITの値が書き込まれる(コピーされる)4ビットの領域である。この上限キー数読出領域426では、書き込まれた値が読出上限キー数CURKEY−NUMLIMIT(読出値)として設定される。また、上限キー数読出領域426は、ホストCPU5から読み出しのみ可能とされる領域である。
[1-3-1 (f). (Configuration of upper limit key number reading area)
The upper limit key number reading area 426 (upper limit storage means, reading area) is a 4-bit area in which the value of the set upper limit key number EXECKEY-NUMLIMIT stored in the upper limit key number setting area 425 is written (copied). is there. In this upper limit key number reading area 426, the written value is set as a read upper limit key number CURKEY-NUMLIMIT (read value). The upper limit key number reading area 426 is an area in which only reading from the host CPU 5 is possible.

〔1−3−1(g).検出結果データ記憶領域の構成〕
検出結果データ記憶領域427は、後述する判定部434による判定の結果を表すデータとしての検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSが記憶される1ビットの領域である。検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSは、スキャン周期の開始時に初期化されて“0”となり、前述の検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITより大きいと“1”に書き替えられる。
[1-3-1 (g). Configuration of detection result data storage area]
The detection result data storage area 427 is a 1-bit area in which a detection key number upper limit determination result EXECKEY-NUMLIMIT-STATUS as data representing a determination result by the determination unit 434 described later is stored. The detection key number upper limit determination result EXECKEY-NUMLIMIT-STATUS is initialized to “0” at the start of the scan cycle, and becomes “1” when the detection key number TNEWKEY-NO is larger than the set upper limit key number EXECKEY-NUMLIMIT. Rewritten.

〔1−3−1(h).読出結果データ記憶領域の構成〕
読出結果データ記憶領域428は、検出結果データ記憶領域427に記憶されている検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値が書き込まれる(コピーされる)1ビットの領域である。この読出結果データ記憶領域428では、書き込まれた値が読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSとして設定される。読出結果データ記憶領域428は、ホストCPU5から読み出しのみ可能とされる領域である。
[1-3-1 (h). Configuration of read result data storage area]
The read result data storage area 428 is a 1-bit area in which the value of the detection key number upper limit determination result EXECKEY-NUMLIMIT-STATUS stored in the detection result data storage area 427 is written (copied). In this read result data storage area 428, the written value is set as a read key number upper limit determination result CURKEY-NUMLIMIT-STATUS. The read result data storage area 428 is an area that can only be read from the host CPU 5.

〔1−3−1(i).ホストCPUアクセス可能・不可領域〕
前述の上限キー数書込領域424、上限キー数読出領域426および読出結果データ記憶領域428は、ホストCPU5がアクセスできるホストCPUアクセス可能領域を構成している。また、前述の上限キー数設定領域425および検出結果データ記憶領域427は、ホストCPU5がアクセスできないホストCPUアクセス不可領域を構成している。
[1-3-1 (i). (Host CPU accessible / impossible area)
The upper limit key number writing area 424, the upper limit key number reading area 426, and the read result data storage area 428 constitute a host CPU accessible area accessible by the host CPU 5. The upper limit key number setting area 425 and the detection result data storage area 427 described above constitute a host CPU inaccessible area that the host CPU 5 cannot access.

〔1−3−2.キー確定処理部の構成〕
図2に示すように、キー確定処理部43は、キー検出部431と、リンク判定部432と、キー確定部433と、判定部434(判定手段)と、メモリ管理部435とを有している。
[1-3-2. Configuration of key confirmation processing unit)
As shown in FIG. 2, the key confirmation processing unit 43 includes a key detection unit 431, a link determination unit 432, a key determination unit 433, a determination unit 434 (determination means), and a memory management unit 435. Yes.

〔1−3−2.(a)キー検出部の構成〕
キー検出部431は、タッチパネル2の電極を駆動した結果として得られた検出データに基づいてキーを検出する。このため、キー検出部431は、電極を駆動するための駆動データを駆動・検出部3に出力する。また、キー検出部431は、駆動・検出部3から出力される検出データより、水平方向および垂直方向の位置データを特定する。このように特定された位置データは、タッチの中心位置(点)ではなく、矩形(面)として得られる。
[1-3-2. (A) Configuration of Key Detection Unit]
The key detection unit 431 detects a key based on detection data obtained as a result of driving the electrodes of the touch panel 2. Therefore, the key detection unit 431 outputs drive data for driving the electrodes to the drive / detection unit 3. The key detection unit 431 specifies position data in the horizontal direction and the vertical direction from the detection data output from the drive / detection unit 3. The position data specified in this way is obtained as a rectangle (surface) instead of the center position (point) of the touch.

また、キー検出部431は、キー検出に先立って、CURキー記憶領域422における確定キーの全てについてONフラグの値(“1”)をTNEWキー記憶領域421のOFFフラグの領域にコピーする。キー検出部431は、キー検出の結果、確定キーと同じ検出キー(変化なし)を検出したり、検出キーの移動を検出したりしたときに、上記のOFFフラグの値を0にする。したがって、このような検出結果の検出キーは、OFFフラグが“1”であるときにOFFキーとして残る。   In addition, prior to key detection, the key detection unit 431 copies the ON flag value (“1”) for all the confirmed keys in the CUR key storage area 422 to the OFF flag area of the TNEW key storage area 421. As a result of key detection, the key detection unit 431 sets the value of the OFF flag to 0 when detecting the same detection key (no change) as the confirmation key or detecting the movement of the detection key. Therefore, the detection key of such a detection result remains as an OFF key when the OFF flag is “1”.

また、キー検出部431は、前述のスキャン周期において検出処理を行い、各検出処理で検出された全ての検出キーについて、後述するリンク判定部432によるリンクの判定が行われると、それらの検出キーについてキー確定処理を行うように、キー確定部433に指示する。
〔1−3−2.(b)リンク判定部の構成〕
リンク判定部432は、キー検出部431によって検出されたキーが、前回のキー確定処理で確定した全てのキーに対して重なっているか否か(リンクの有無)を判定する。
In addition, the key detection unit 431 performs detection processing in the above-described scan cycle, and when all of the detection keys detected in each detection processing are determined by the link determination unit 432 (to be described later), those detection keys are detected. The key confirmation unit 433 is instructed to perform the key confirmation process for.
[1-3-2. (B) Configuration of link determination unit]
The link determination unit 432 determines whether or not the key detected by the key detection unit 431 overlaps all keys determined in the previous key determination process (whether there is a link).

検出キーのデータは、メモリ部42のTNEWキー記憶領域421に検出順に並ぶように記憶される。また、前回の確定処理ですでに確定した確定キーは、メモリ部42のCURキー記憶領域422に検出時の検出順に並ぶように記憶される。前回の確定処理で確定された複数の一群の確定キーと、今回の検出された複数の一群の検出キーとの間で、両群のキーの並びの関係が一致している場合はキーの変化がないので不都合はない。   The detection key data is stored in the TNEW key storage area 421 of the memory unit 42 so as to be arranged in the order of detection. Further, the confirmation keys that have already been confirmed in the previous confirmation process are stored in the CUR key storage area 422 of the memory unit 42 so as to be arranged in the order of detection at the time of detection. If the grouping of keys in both groups is the same between the group of confirmation keys that were confirmed in the previous confirmation process and the group of detection keys that were detected this time, the key change There is no inconvenience.

これに対し、ジェスチャー操作やドラッグ操作により、指などの指示手段がタッチパネル2上を移動している場合や、入力数が増加した場合は、両群のキーの並びの関係が一致しなくなる。このため、今回の検出キーと前回の確定キーとの関係を特定しないと、検出キーの変化が、新たなタッチ入力によるものであるのか、ジェスチャー操作やドラッグ操作によりキーが移動したものであるのかがわからない。   On the other hand, when an instruction means such as a finger is moved on the touch panel 2 by a gesture operation or a drag operation, or when the number of inputs is increased, the arrangement of keys in both groups does not match. For this reason, if the relationship between the current detection key and the previous confirmation key is not specified, whether the change in the detection key is due to a new touch input or whether the key has been moved by a gesture operation or a drag operation I don't know.

したがって、先の確定キーと後の確定キーとの両群の関連情報がないと、ホストCPU5は、単に両群の確定キーを受け取っても、どのキーがどう変化したかが容易にはわからない。このため、リンクの有無を判定することが必要となる。   Accordingly, if there is no information related to both groups of the previous confirmation key and the subsequent confirmation key, the host CPU 5 does not easily know which key has changed and how even if the confirmation key of both groups is received. For this reason, it is necessary to determine the presence or absence of a link.

リンク判定部432は、リンクの有無を判定するために、下記の(1),(2)の機能を有している。
(1)一致判定
リンクの有無を判定する前に、今回の確定処理で検出された1つの検出キーKTNEWと、前回の確定処理で確定した全ての確定キーKCURとを位置データで比較して、両者の一致を判定する。一致を判定すると、前述のTNEWキー記憶領域421のONフラグを“1”にセットする。一方、両者の不一致を判定すると、作業領域423のCHANGEDフラグを1にセットする。
(2)リンク有無判定
検出キーKTNEWの位置データと、CURキー記憶領域422のキー番号1からキー番号TKまでの各位置データとを順次比較し、比較の結果、両キーKTNEW,KCURについて、重なり部分の有無を判定する。両キーKTNEW,KCURに重なり部分のある場合に重なり度合いを算出し、リンク有無判定対象となる検出キーKTNEWを、最も大きい重なり度合いが得られた確定キーKCURに対して移動したキーであるMOVEキーと決定し、TNEWキー記憶領域421のMOVEフラグを“1”にセットする。また、比較の結果、重なりの度合いが0である場合、検出キーKTNEWをリンクのないNEWキーと決定し、TNEWキー記憶領域421のONフラグを“1”にセットする。
The link determination unit 432 has the following functions (1) and (2) in order to determine the presence or absence of a link.
(1) Matching determination Before determining the presence / absence of a link, one detection key KTNEW detected in the current determination process is compared with all the determination keys KCUR determined in the previous determination process using position data. A match between the two is determined. When the match is determined, the ON flag of the TNEW key storage area 421 is set to “1”. On the other hand, if a mismatch between the two is determined, the CHANGED flag in the work area 423 is set to 1.
(2) Link presence / absence determination The position data of the detection key KTNEW and the position data from the key number 1 to the key number TK in the CUR key storage area 422 are sequentially compared. As a result of the comparison, both keys KTNEW and KCUR are overlapped. Determine the presence or absence of a part. MOVE key which is a key obtained by calculating the overlapping degree when both keys KTNEW and KCUR have an overlapping portion and moving the detection key KTNEW to be a link presence / absence determination target with respect to the confirmation key KCUR having the largest overlapping degree. And the MOVE flag in the TNEW key storage area 421 is set to “1”. If the degree of overlap is 0 as a result of the comparison, the detection key KTNEW is determined as a NEW key without a link, and the ON flag of the TNEW key storage area 421 is set to “1”.

〔1−3−2.(c)キー確定部の構成〕
検出キーKTNEWが確定キーKCURに対して変化していない場合でも、キー検出部431によってキーが検出される毎にホストCPU5に検出結果を通知するのは効率的でなく、システム性能を低下させる。
[1-3-2. (C) Configuration of key determination unit]
Even when the detection key KTNEW does not change with respect to the confirmation key KCUR, it is not efficient to notify the host CPU 5 of the detection result every time the key is detected by the key detection unit 431, and the system performance is deteriorated.

そこで、キー確定部433は、前回の確定処理で確定した一群の確定キーKCURに対して、今回検出された一群の検出キーKTNEWが位置および数について変化しない場合は、その検出結果をホストCPU5に通知しない。また、キー確定部433は、一群の検出キーKTNEWが、一群の確定キーKCURに関連して変化した検出キーKTNEW(CHANGEDフラグ=1)および全く新たに検出された検出キーKTNEWを含む場合のみ、TNEWキー記憶領域421に記憶されている各データをCURキー記憶領域422にコピーして確定する。キー確定部433は、CURキー記憶領域422のデータが上記のように確定すると、確定したことをホストCPU5に割り込み通知する。   Therefore, when the group of detection keys KTNEW detected this time does not change with respect to the group of confirmation keys KCUR determined in the previous determination process, the key determination unit 433 sends the detection result to the host CPU 5. Do not notify. Further, the key determination unit 433 only detects that the group of detection keys KTNEW includes the detection key KTNEW (CHANGED = 1) changed in relation to the group of determination keys KCUR and the completely new detection key KTNEW. Each data stored in the TNEW key storage area 421 is copied to the CUR key storage area 422 and determined. When the data in the CUR key storage area 422 is determined as described above, the key determination unit 433 notifies the host CPU 5 that the data has been determined.

このように、検出キーKTNEWの少なくとも1つが、一群の確定キーKCURに対して変化しているときのみ、検出キーKTNEWが確定される。これにより、ホストCPU5への割り込み回数およびホストCPU5によるメモリ部42へのアクセス回数を低減し、システム性能の低下を回避することができる。   In this way, the detection key KTNEW is confirmed only when at least one of the detection keys KTNEW has changed with respect to the group of confirmation keys KCUR. As a result, the number of interrupts to the host CPU 5 and the number of accesses to the memory unit 42 by the host CPU 5 can be reduced, and a decrease in system performance can be avoided.

また、キー確定部433は、後述する判定部434による判定の結果として得られる結果データを検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値が“1”に書き替えられることにより、通知処理を行う。キー確定部433は、通知処理として、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を読出結果データ記憶領域428にコピーし、検出キーの数(タッチ入力数)が上限値を超えたことをホストCPU5に割り込み通知する。また、キー確定部433は、通知処理の前に、上限キー数設定領域425に記憶されている設定上限キー数EXECKEY−NUMLIMITの値を、上限キー数読出領域426に読出上限キー数CURKEY−NUMLIMITとしてコピーする。   In addition, the key determination unit 433 rewrites the result data obtained as a result of determination by the determination unit 434, which will be described later, with the value of the detection key number upper limit determination result execkey-numlimit-status in the detection result data storage area 427 being “1”. Notification processing is performed. As the notification process, the key determination unit 433 copies the value of the detected key number upper limit determination result execkey-numlimit-status to the read result data storage area 428, and the number of detected keys (number of touch inputs) exceeds the upper limit value. Is notified to the host CPU 5 by an interrupt. In addition, before the notification process, the key determination unit 433 sets the value of the set upper limit key number EXEKEY-NUMLIMIT stored in the upper limit key number setting area 425 and the upper limit key number read area 426 to read the upper limit key number CURKEY-NUMLIMIT. Copy as.

〔1−3−2.(d)判定部の構成〕
判定部434は、キー確定部433により、CHANGEDフラグが1であると判定された場合、またはCHANGEDフラグが1でなく、且つTNEWキー記憶領域421の検出キー数TNEWKEY−NOと、CURキー記憶領域422のキー数CURKEY−NOとが等しくないと判定された場合、次の判定処理を行う。
[1-3-2. (D) Configuration of determination unit]
When the key determining unit 433 determines that the CHANGED flag is 1, or the CHANGED flag is not 1, the determination unit 434 detects the number of detected keys TNEWKEY-NO in the TNEW key storage area 421 and the CUR key storage area. If it is determined that the key number CURKEY-NO of 422 is not equal, the following determination process is performed.

判定処理では、まず、TNEWキー記憶領域421から読み出した検出キー数TNEWKEY−NOと、上限キー数設定領域425から読み出した設定上限キー数EXECKEY−NUMLIMITとを比較する。比較の結果、検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITを越えているときに検出キーの数が上限値を超えたことを判定する。   In the determination process, first, the detected key number TNEWKEY-NO read from the TNEW key storage area 421 is compared with the set upper limit key number execkey-numlimit read from the upper limit key number setting area 425. As a result of the comparison, when the number of detected keys TNEWKEY-NO exceeds the set upper limit key number execkey-numlimit, it is determined that the number of detected keys has exceeded the upper limit value.

判定部434は、キー確定部433によるキー確定処理において、上記の判定処理を行う。これにより、1スキャン周期で検出された確定前の全ての検出キーについて判定処理が行われる。   The determination unit 434 performs the above determination process in the key determination process by the key determination unit 433. As a result, the determination process is performed for all detection keys before being determined detected in one scan cycle.

これに代えて、判定部434は、キー検出部431によって1つのキーが検出される毎に、リンク判定部432による一致判定処理が行われる前に上記の判定処理を行ってもよい。これにより、1スキャン周期における全てのキーの検出が終了する前でも、検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITより大きくなれば、検出キーの数が上限値を超えたと判定される。   Instead, the determination unit 434 may perform the above-described determination process before the match determination process by the link determination unit 432 is performed each time one key is detected by the key detection unit 431. As a result, even if detection of all keys in one scan cycle is completed, if the number of detected keys TNEWKEY-NO is larger than the set upper limit key number execkey-numlimit, it is determined that the number of detected keys exceeds the upper limit value. .

〔1−3−2.(e)メモリ管理部の構成〕
メモリ管理部435は、キー検出部431、リンク判定部432、キー確定部433、判定部434およびホストCPU5の指示を受けて、メモリ部42における各領域421〜428に対するデータの書き込みおよびデータの読み出しを行う。
[1-3-2. (E) Configuration of memory management unit]
The memory management unit 435 receives data from the key detection unit 431, the link determination unit 432, the key determination unit 433, the determination unit 434, and the host CPU 5, and writes data to and reads data from the areas 421 to 428 in the memory unit 42. I do.

特に、メモリ管理部435は、判定部434が検出キーの数が上限値を超えたことを判定したときに、検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を初期値である“0”から“1”に書き替える。   In particular, when the determination unit 434 determines that the number of detection keys has exceeded the upper limit value, the memory management unit 435 sets the value of the detection key number upper limit determination result execkey-numlimit-status in the detection result data storage area 427. The initial value “0” is rewritten to “1”.

〔2.ホストCPU5の構成〕
ホストCPU5は、タッチパネル装置1が組み込まれる装置に設けられるCPUであり、タッチパネル装置1を含む各部の制御を司る。このホストCPU5は、タッチパネルコントローラ4のコントローラCPU41と通信して、コントローラCPU41にタッチパネル装置1を制御するための指示やデータを送信する一方、タッチパネルコントローラ4で得られた各種のデータを取得する。
[2. Configuration of host CPU 5]
The host CPU 5 is a CPU provided in a device in which the touch panel device 1 is incorporated, and governs control of each unit including the touch panel device 1. The host CPU 5 communicates with the controller CPU 41 of the touch panel controller 4 to transmit instructions and data for controlling the touch panel device 1 to the controller CPU 41, while acquiring various data obtained by the touch panel controller 4.

特に、ホストCPU5は、アプリケーションプログラムで設定されるキーの上限値に基づいて書込上限キー数INTFKEY−NUMLIMITを決定し、上限キー数書込領域424へ書き込む。また、ホストCPU5は、キー確定部433からの割り込み通知を受けると、CURキー記憶領域422の各データと、上限キー数読出領域426の読出上限キー数CURKEY−NUMLIMITの値と、読出結果データ記憶領域428の読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSの値とを読み出す。CURキー記憶領域422の各データは、前述の確定キー位置CURPOS、OFFフラグ、ONフラグ、MOVEフラグ、LINKフラグ、LINK−KEYデータおよびキー数CURKEY−NOである。さらに、ホストCPU5は、取得したこれらのデータをアプリケーションプログラムに渡す。   In particular, the host CPU 5 determines the write upper limit key number INTFKEY-NUMLIMIT based on the upper limit value of the key set by the application program, and writes the upper limit key number write area 424. When the host CPU 5 receives an interrupt notification from the key determination unit 433, each data in the CUR key storage area 422, the value of the upper limit key number CURKEY-NUMLIMIT in the upper limit key number reading area 426, and the read result data storage The read key number upper limit determination result CURKEY-NUMLIMIT-STATUS in the area 428 is read. Each data in the CUR key storage area 422 is the above-described fixed key position CURPOS, OFF flag, ON flag, MOVE flag, LINK flag, LINK-KEY data, and key number CURKEY-NO. Further, the host CPU 5 passes these acquired data to the application program.

〔3.タッチパネル装置におけるキー確定動作〕
ここで、上記のように構成されるタッチパネル装置1におけるキーの確定動作について図5および図6のフローチャートを参照して説明する。
[3. (Key confirmation operation in touch panel device)
Here, the key determination operation in the touch panel device 1 configured as described above will be described with reference to the flowcharts of FIGS. 5 and 6.

〔3−1.第1のキー確定動作〕
先に、キー確定処理において判定処理を行う場合について説明する。
[3-1. First key confirmation operation]
First, the case where the determination process is performed in the key confirmation process will be described.

〔3−1−1.初期化処理〕
図5に示すように、まず、キー検出部431は、前回のキー検出処理が開始してから所定のスキャン周期が経過すると(ステップS1)、次のスキャン周期の開始時時に初期化処理を行う(ステップS2)。
[3-1-1. Initialization process)
As shown in FIG. 5, first, the key detection unit 431 performs an initialization process at the start of the next scan period when a predetermined scan period has elapsed since the start of the previous key detection process (step S1). (Step S2).

初期化処理では、次の各処理が行われる。
(a)TNEWキー記憶領域421をクリアする。
(b)CURキー記憶領域422の全てのONフラグの値(“1”)をTNEWキー記憶領域421のOFFフラグの同じキー番号の領域にコピーする。
(c)ホストCPU5により上限キー数書込領域424に書き込まれた書込上限キー数INTFKEY−NUMLIMITを、上限キー数設定領域425に設定上限キー数EXECKEY−NUMLIMITとしてコピーする。
(d)検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSを0にセットする。
(e)TNEWキー記憶領域421の検出キー数TNEWKEY−NOを0にセットする。
(f)作業領域423のCHANGEDフラグを0にセットする。
In the initialization process, the following processes are performed.
(A) Clear the TNEW key storage area 421.
(B) All ON flag values (“1”) in the CUR key storage area 422 are copied to the area having the same key number as the OFF flag in the TNEW key storage area 421.
(C) The write upper limit key number INTFKEY-NUMLIMIT written in the upper limit key number write area 424 by the host CPU 5 is copied to the upper limit key number setting area 425 as the set upper limit key number EXECKEY-NUMLIMIT.
(D) The detection key number upper limit determination result EXECKEY-NUMLIMIT-STATUS in the detection result data storage area 427 is set to 0.
(E) The number of detected keys TNEWKEY-NO in the TNEW key storage area 421 is set to zero.
(F) The CHANGED flag in the work area 423 is set to 0.

〔3−1−2.キー検出処理〕
初期化処理の後は、キー検出部431がキー検出処理を行う(ステップS3)。キー検出処理では、駆動・検出部3に予め所望に設定されている駆動データを与え、その結果、駆動・検出部3から出力される検出データに基づいてキーを特定する。
[3-1-2. Key detection process)
After the initialization process, the key detection unit 431 performs the key detection process (step S3). In the key detection process, drive data set in advance as desired is supplied to the drive / detection unit 3, and as a result, the key is specified based on the detection data output from the drive / detection unit 3.

〔3−1−3.リンク判定処理〕
上記のキー検出処理において1つの検出キーKTNEWが検出されると、リンク判定処理に移行する。
[3-1-3. (Link judgment process)
When one detection key KTNEW is detected in the key detection process, the process proceeds to the link determination process.

まず、検出キーKTNEWおよび確定キーKCURの位置の一致判定を行う(ステップS4)。ステップS4で両キーの位置が一致していると判定すると、TNEWキー記憶領域421のONフラグを1にセットし、キー検出部431にリンク判定が終了したことを通知する。また、ステップS4で両キーの位置が一致していないと判定すると、作業領域423のCHANGEDフラグを1にセットして(ステップS5)、リンク有無判定処理に移行する(ステップS6)。   First, the coincidence determination of the positions of the detection key KTNEW and the confirmation key KCUR is performed (step S4). If it is determined in step S4 that the positions of both keys match, the ON flag of the TNEW key storage area 421 is set to 1, and the key detection unit 431 is notified that the link determination has been completed. If it is determined in step S4 that the positions of the keys do not match, the CHANGED flag in the work area 423 is set to 1 (step S5), and the process proceeds to a link presence / absence determination process (step S6).

リンク有無判定処理では、検出キーKTNEWおよび確定キーKCURを比較し、両キーに重なり部分(リンク)があると判定すると、リンク判定対象となる検出キーKTNEWを、最も大きい重なり度合いが得られた確定キーKCURに対して移動したキーであるMOVEキーと決定する。また、比較の結果、両キーの重なりの度合いが0である場合、検出キーKTNEWをリンクのないNEWキーと決定する。   In the link presence / absence determination process, the detection key KTNEW and the determination key KCUR are compared, and if it is determined that there is an overlapping portion (link) between the two keys, the detection key KTNEW to be a link determination target is determined to have the highest degree of overlap. It is determined that the key is the MOVE key that has been moved with respect to the key KCUR. As a result of the comparison, if the degree of overlap between the two keys is 0, the detection key KTNEW is determined as a NEW key without a link.

以上のリンク判定処理は、ステップS3のキー検出処理で1つの検出キーKTNEWが検出される毎に繰り返し行われる。   The link determination process described above is repeated every time one detection key KTNEW is detected in the key detection process in step S3.

〔3−1−4.キー確定処理および判定処理〕
上記のリンク判定処理が、今回の検出処理で検出された全ての検出キーKTNEWについて終了すると、キー確定処理および判定処理に移行する。
[3-1-4. (Key confirmation process and judgment process)
When the above link determination process ends for all detection keys KTNEW detected in the current detection process, the process proceeds to a key determination process and a determination process.

キー確定部433は次に説明するキー確定処理を行い、判定処理は次に説明する判定処理を行う。   The key determination unit 433 performs a key determination process described below, and the determination process performs a determination process described below.

まず、作業領域423のCHANGEDフラグが1であるか否かを判定する(ステップS7)。ステップS7でCHANGEDフラグが1である(不一致)と判定すると、処理を後述するステップS9(判定処理)に移行する。一方、ステップS7でCHANGEDフラグが1でないと判定すると、TNEWキー記憶領域421の検出キー数TNEWKEY−NOと、CURキー記憶領域422のキー数CURKEY−NOとが等しいか否かを判定する(ステップS8)。   First, it is determined whether or not the CHANGED flag in the work area 423 is 1 (step S7). If it is determined in step S7 that the CHANGED flag is 1 (mismatch), the process proceeds to step S9 (determination process) described later. On the other hand, if it is determined in step S7 that the CHANGED flag is not 1, it is determined whether or not the detected key number TNEWKEY-NO in the TNEW key storage area 421 is equal to the key number CURKEY-NO in the CUR key storage area 422 (step S7). S8).

ステップS8でTNEWKEY−NO=CURKEY−NOであると判定すると、検出キーKTNEWが確定キーKCURに対してキー数および位置について変化がないので、ステップS1に処理を戻す。このとき、TNEWキー記憶領域421のOFFフラグの状態がそのまま残る。   If it is determined in step S8 that TNEWKEY-NO = CURKEY-NO, the detection key KTNEW has no change in the number of keys and the position with respect to the confirmation key KCUR, and the process returns to step S1. At this time, the state of the OFF flag in the TNEW key storage area 421 remains as it is.

ステップS8でTNEWKEY−NO≠CURKEY−NOであると判定すると、TNEWキー記憶領域421の検出キー数TNEWKEY−NOが上限キー数設定領域425の設定上限キー数EXECKEY−NUMLIMIT以下であるか否かを判定する(ステップS9)。ステップS9で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下であると判定すると、同時に複数検出されたキーの数は設定された上限値を越えていないことになる。この場合は、ステップS8の判定の結果、キー検出後にキー数が変化していることから、TNEWキー記憶領域421の全ての検出キーKTNEWのデータを新たな確定キーKCURのデータとしてCURキー記憶領域422に書き込む(ステップS11)。   If it is determined in step S8 that TNEWKEY-NO ≠ CURKEY-NO, it is determined whether or not the number of detected keys TNEWKEY-NO in the TNEW key storage area 421 is equal to or less than the set upper limit key number EXECKEY-NUMLIMIT in the upper limit key number setting area 425. Determine (step S9). If it is determined in step S9 that the detected key number TNEWKEY-NO is less than or equal to the set upper limit key number execkey-numlimit, the number of keys detected simultaneously does not exceed the set upper limit value. In this case, since the number of keys has changed after the key detection as a result of the determination in step S8, the data of all the detection keys KTNEW in the TNEW key storage area 421 are used as the data of the new confirmation key KCUR as the CUR key storage area Write to 422 (step S11).

一方、ステップS9で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下でないと判定すると、同時に複数検出されたキーの数は設定された上限値を越えていることになる。この場合は、検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を初期値である“0”から“1”に書き替えて(ステップS10)、処理をステップS12に移行する。このとき、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値が、読出結果データ記憶領域428にコピーされる。また、上限キー数設定領域425の設定上限キー数EXECKEY−NUMLIMITの値が、上限キー数読出領域426に読出上限キー数CURKEY−NUMLIMITとしてコピーされる。   On the other hand, if it is determined in step S9 that the detected key number TNEWKEY-NO is not less than or equal to the set upper limit key number EXECKEY-NUMLIMIT, the number of keys detected simultaneously exceeds the set upper limit value. In this case, the value of the detection key number upper limit determination result execkey-numlimit-status in the detection result data storage area 427 is rewritten from the initial value “0” to “1” (step S10), and the process proceeds to step S12. Transition. At this time, the value of the detected key number upper limit determination result EXECKEY-NUMLIMIT-STATUS is copied to the read result data storage area 428. Further, the value of the set upper limit key number EXEKEY-NUMLIMIT in the upper limit key number setting area 425 is copied to the upper limit key number reading area 426 as the read upper limit key number CURKEY-NUMLIMIT.

そして、割り込み信号をホストCPU5に送信することにより、検出キーKTNEWが確定キーKCURから変化したこと、または検出キーの数が上限値を越えていることをホストCPU5に通知して(ステップS12)、スキャンを終え、ステップS1に処理を戻す。   Then, an interrupt signal is transmitted to the host CPU 5 to notify the host CPU 5 that the detection key KTNEW has changed from the confirmation key KCUR, or that the number of detection keys exceeds the upper limit value (step S12). The scan is finished, and the process returns to step S1.

これにより、ホストCPU5は、CURキー記憶領域422から新たなキーのデータを読み出したり、上限キー数読出領域426から読出上限キー数CURKEY−NUMLIMITを読み出したり、読出結果データ記憶領域428から読出キー数上限判定結果CURKEY−NUMLIMIT-STATUSを読み出したりする。   As a result, the host CPU 5 reads data of a new key from the CUR key storage area 422, reads the upper limit key number reading area 426, the read upper limit key number CURKEY-NUMLIMIT, and reads the number of read keys from the read result data storage area 428. The upper limit determination result CURKEY-NUMLIMIT-STATUS is read.

〔3−2.第2のキー確定動作〕
続いて、リンク判定前に判定処理を行う場合について説明する。
[3-2. Second key confirmation operation]
Next, a case where determination processing is performed before link determination will be described.

〔3−2−1.初期化処理〕
図6に示すように、キー検出部431は、前述のステップS1と同様、前回のキー検出処理が開始してから所定の検出周期が経過すると(ステップS21)、ステップS2と同様、初期化処理を行う(ステップS22)。
[3-2-1. Initialization process)
As shown in FIG. 6, the key detection unit 431 performs initialization processing in the same manner as in Step S1 when a predetermined detection cycle has elapsed since the previous key detection processing started (Step S21), as in Step S1 described above. Is performed (step S22).

〔3−2−2.キー検出処理〕
初期化処理の後は、キー検出部431が前述のステップS3と同様、キー検出処理を行う(ステップS23)。
[3-2-2. Key detection process)
After the initialization process, the key detection unit 431 performs the key detection process (step S23) as in step S3 described above.

〔3−2−3.判定処理およびリンク判定処理〕
上記のキー検出処理において1つの検出キーKTNEWが検出されると、ステップS24(判定処理)に移行する。
[3-2-3. (Judgment processing and link judgment processing)
If one detection key KTNEW is detected in the key detection process, the process proceeds to step S24 (determination process).

ステップS24では、前述のステップS9と同様、検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下であるか否かを判定する。ステップS23で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下であると判定すると、同時に複数検出されたキーの数は設定された上限値を越えていないことになる。この場合は、リンク判定処理に移行する。   In step S24, as in step S9 described above, it is determined whether or not the detected key number TNEWKEY-NO is equal to or smaller than the set upper limit key number execkey-numlimit. If it is determined in step S23 that the detected key number TNEWKEY-NO is equal to or less than the set upper limit key number execkey-numlimit, the number of keys detected at the same time does not exceed the set upper limit value. In this case, the process proceeds to link determination processing.

リンク判定処理では、前述のステップS4と同様、検出キーKTNEWおよび確定キーKCURの位置の一致判定を行い(ステップS25)、両キーの位置が一致していると判定すると、キー検出部431にリンク判定が終了したことを通知する。また、ステップS25で両キーの位置が一致していないと判定すると、前述のステップS5と同様、CHANGEDフラグを1にセットして(ステップS26)、前述のステップS6と同様のリンク有無判定処理に移行する(ステップS27)。   In the link determination process, as in step S4 described above, the position matching of the detection key KTNEW and the confirmation key KCUR is determined (step S25), and if it is determined that the positions of both keys match, the link to the key detection unit 431 is performed. Notify that the judgment is complete. If it is determined in step S25 that the positions of the two keys do not match, the CHANGED flag is set to 1 (step S26) as in step S5, and the same link presence / absence determination processing as in step S6 is performed. Transition is made (step S27).

一方、ステップS24で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下でないと判定すると、同時に複数検出されたキーの数は設定された上限値を越えていることになる。この場合は、前述のステップS10と同様、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を“0”から“1”に書き替えて(ステップS28)、処理をステップS32に移行する。このときも、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値は、読出結果データ記憶領域428にコピーされる。   On the other hand, if it is determined in step S24 that the detected key number TNEWKEY-NO is not less than or equal to the set upper limit key number EXECKEY-NUMLIMIT, the number of keys detected simultaneously exceeds the set upper limit value. In this case, similarly to step S10 described above, the value of the detected key number upper limit determination result EXECKEY-NUMLIMIT-STATUS is rewritten from “0” to “1” (step S28), and the process proceeds to step S32. Also at this time, the value of the detected key number upper limit determination result execkey-numlimit-status is copied to the read result data storage area 428.

〔3−2−4.キー確定処理〕
上記のリンク判定処理が、今回の検出処理で検出された全ての検出キーKTNEWについて終了すると、キー確定処理に移行する。
[3-2-4. (Key confirmation process)
When the above link determination process is completed for all detection keys KTNEW detected in the current detection process, the process proceeds to a key determination process.

キー確定部433は、次に説明するキー確定処理を行う。   The key confirmation unit 433 performs a key confirmation process described below.

まず、前述のステップS7と同様、CHANGEDフラグが1であるか否かを判定する(ステップS29)。ステップS29でCHANGEDフラグが1である(不一致)と判定すると、処理を後述するステップS31に移行する。一方、ステップS29でCHANGEDフラグが1でないと判定すると、前述のステップS8と同様、検出キー数TNEWKEY−NOとキー数CURKEY−NOとが等しいか否かを判定する(ステップS30)。   First, as in step S7 described above, it is determined whether or not the CHANGED flag is 1 (step S29). If it is determined in step S29 that the CHANGED flag is 1 (mismatch), the process proceeds to step S31 described later. On the other hand, if it is determined in step S29 that the CHANGED flag is not 1, it is determined whether or not the detected key number TNEWKEY-NO and the key number CURKEY-NO are equal to each other as in step S8 (step S30).

ステップS30でTNEWKEY−NO=CURKEY−NOであると判定すると、検出キーKTNEWが確定キーKCURに対してキー数および位置について変化がないので、ステップS21に処理を戻す。このとき、TNEWキー記憶領域421のOFFフラグの状態がそのまま残る。   If it is determined in step S30 that TNEWKEY-NO = CURKEY-NO, the detection key KTNEW has no change in the number of keys and the position with respect to the confirmation key KCUR, and the process returns to step S21. At this time, the state of the OFF flag in the TNEW key storage area 421 remains as it is.

ステップS30でTNEWKEY−NO≠CURKEY−NOであると判定すると、前述のステップS11と同様、TNEWキー記憶領域421の全ての検出キーKTNEWのデータを新たな確定キーKCURのデータとしてCURキー記憶領域422に書き込む(ステップS31)。   If it is determined in step S30 that TNEWKEY-NO ≠ CURKEY-NO, as in step S11 described above, the data of all the detection keys KTNEW in the TNEW key storage area 421 are used as new confirmation key KCUR data as the CUR key storage area 422. (Step S31).

そして、前述のステップS12と同様、割り込み信号をホストCPU5に送信することにより、検出キーKTNEWが確定キーKCURから変化したこと、またはキー数上限結果データが発生していることをホストCPU5に通知して(ステップS32)、ステップS21に処理を戻す。これにより、ホストCPU5は、CURキー記憶領域422から新たなキーのデータを読み出したり、上限キー数読出領域426から読出上限キー数CURKEY−NUMLIMITを読み出したり、読出結果データ記憶領域428から読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSを読み出したりする。   Then, as in step S12 described above, by sending an interrupt signal to the host CPU 5, the host CPU 5 is notified that the detection key KTNEW has changed from the confirmation key KCUR or that the key number upper limit result data has been generated. (Step S32), the process returns to Step S21. As a result, the host CPU 5 reads data of a new key from the CUR key storage area 422, reads the upper limit key number reading area 426, the read upper limit key number CURKEY-NUMLIMIT, and reads the number of read keys from the read result data storage area 428. The upper limit determination result CURKEY-NUMLIMIT-STATUS is read.

〔4.実施形態の総括〕
以上のように、本実施形態に係るタッチパネル装置1は、タッチパネルコントローラ4において、ホストCPU5によって上限キー数書込領域424に一旦書込上限キー数INTFKEY−NUMLIMITとして書き込まれ、上限キー数設定領域425に設定された設定上限キー数EXECKEY−NUMLIMITに基づいて判定処理を行う。この判定処理では、TNEWキー記憶領域421の検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITを越えているときに検出キーの数が上限値を超えたと判定してスキャンを終える。
[4. Summary of Embodiments]
As described above, in the touch panel device 1 according to the present embodiment, in the touch panel controller 4, the host CPU 5 once writes the upper limit key number write area 424 as the upper limit key number write area INTFKEY-NUMLIMIT, and the upper limit key number setting area 425. Judgment processing is performed based on the set upper limit key number execkey-numlimit. In this determination process, when the number of detected keys TNEWKEY-NO in the TNEW key storage area 421 exceeds the set upper limit key number execkey-numlimit, it is determined that the number of detected keys has exceeded the upper limit value, and the scan ends.

また、スキャンの処理の状態に依存せずに、ホストCPU5が上限キー数書込領域424に書込上限キー数INTFKEY−NUMLIMITを書き込むことによって、所望のタイミングで検出できるキーの上限値を動的に入力することができる。これにより、検出できるキーの上限値を所望に制限することができる。   In addition, the host CPU 5 dynamically writes the upper limit key number INTFKEY-NUMLIMIT to the upper limit key number writing area 424 without depending on the scan processing state, thereby dynamically determining the upper limit value of the key that can be detected at a desired timing. Can be entered. Thereby, the upper limit of the key that can be detected can be limited as desired.

特に、FA機器では、誤動作できない場合があるので、キー数の上限値を設定することは有効である。例えば、1つのタッチ入力しか検出できない場合、2つ以上のタッチ入力があると、どちらが正しいか分からないので、2つ以上のタッチ入力に対して検出されたキーを無効とする。   In particular, FA devices may not be able to malfunction, so it is effective to set an upper limit value for the number of keys. For example, when only one touch input can be detected, if there are two or more touch inputs, it is not known which one is correct, and thus the detected keys for two or more touch inputs are invalidated.

上記のように構成されるタッチパネル装置1は、次のように応用することができる。例えば、入力操作用の画像を表示している状態で、画像が切り替わった直後の所定期間は上限値を0に設定しておき、画像が切り替わってから所定時間経過したときに、切り替わった画像に対する所定値に上限値を設定し直す。上記の所定期間では、設定される上限値が0であるので、タッチ入力により検出キーが上限値を超えたことが判定されるが、アプリケーションプログラムではその判定結果を無視するようにしておく。これにより、画像が切り替わってすぐの段階で、ユーザが切り替わった画像を正しく認識しないうちにタッチ入力することによる誤動作を防止することができる。そして、画像が切り替わってから所定時間経ってユーザが画像を認識できるようになると、新たに設定された上限値に基づいて、上限値を超えたか否かの判定が行われるので、通常のタッチ入力が受け付けられる。   The touch panel device 1 configured as described above can be applied as follows. For example, in a state where an image for input operation is being displayed, an upper limit value is set to 0 for a predetermined period immediately after the image is switched, and when a predetermined time has elapsed since the image was switched, Reset the upper limit value to the predetermined value. In the predetermined period, since the upper limit value set is 0, it is determined by touch input that the detection key has exceeded the upper limit value, but the determination result is ignored in the application program. Accordingly, it is possible to prevent malfunction caused by touch input before the user correctly recognizes the switched image immediately after the image is switched. Then, when the user can recognize the image after a predetermined time since the image switching, it is determined whether or not the upper limit value has been exceeded based on the newly set upper limit value. Is accepted.

上記のように、ホストCPU5が書込上限キー数INTFKEY−NUMLIMITを書き込むタイミングはスキャン処理と同期していない。このため、書込上限キー数INTFKEY−NUMLIMITを判定の上限値として用いると、1スキャンにおいて書込上限キー数INTFKEY−NUMLIMITが複数回書き替えられた場合、ホストCPU5は、どの上限値が判定に用いられたかがわからない。この結果、判定結果を受けたホストCPU5が正しい処理をすることができずに、誤動作するおそれがある。本実施形態によらずに、このような誤動作を回避するには、通常、リセット直後に上限値を設定するか、スキャンを一旦中断して上限値を設定しなおす必要がある。このため、スキャン処理を行いながら所望のタイミングで上限値を変更することができない。   As described above, the timing at which the host CPU 5 writes the write upper limit key number INTFKEY-NUMLIMIT is not synchronized with the scan process. For this reason, when the write upper limit key number INTFKEY-NUMLIMIT is used as an upper limit value for determination, when the write upper limit key number INTFKEY-NUMLIMIT is rewritten a plurality of times in one scan, the host CPU 5 determines which upper limit value I don't know if it was used. As a result, the host CPU 5 that has received the determination result may not perform correct processing and may malfunction. Regardless of the present embodiment, in order to avoid such a malfunction, it is usually necessary to set an upper limit immediately after resetting or to temporarily stop scanning and reset the upper limit. For this reason, the upper limit value cannot be changed at a desired timing while performing the scanning process.

そこで、タッチパネル装置1では、各スキャンの開始時に、上限キー数書込領域424に書き込まれた書込上限キー数INTFKEY−NUMLIMITを、上限キー数設定領域425に設定上限キー数EXECKEY−NUMLIMITとしてコピーし、これを判定の上限値として用いている。そして、判定に用いられた設定上限キー数EXECKEY−NUMLIMITを、ホストCPU5がアクセス可能な読出結果データ記憶領域428に読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSとしてコピーする。   Therefore, in the touch panel device 1, at the start of each scan, the write upper limit key number INTFKEY-NUMLIMIT written in the upper limit key number write area 424 is copied to the upper limit key number setting area 425 as the set upper limit key number EXECKEY-NUMLIMIT. This is used as the upper limit of determination. Then, the set upper limit key number EXECKEY-NUMLIMIT used for the determination is copied as a read key number upper limit determination result CURKEY-NUMLIMIT-STATUS in the read result data storage area 428 accessible by the host CPU 5.

これにより、ホストCPU5からの書込上限キー数INTFKEY−NUMLIMITの書き込みがスキャン処理と非同期で行われても、判定に実際に使用された上限値がホストCPU5に読み取られる。したがって、判定結果を受けたホストCPU5が誤動作せずに正しい処理をすることができる。それゆえ、同時に入力可能なキー数をスキャン処理の途中で動的に変更することができる。しかも、読出結果データ記憶領域428に読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSを保存しておくことにより、次のスキャンの開始時に、上限キー数設定領域425に新たな設定上限キー数EXECKEY−NUMLIMITがコピーされても、ホストCPU5が読出結果データ記憶領域428に保存された読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSを確実に読み出すことができる。   As a result, even if the write upper limit key number INTFKEY-NUMLIMIT from the host CPU 5 is written asynchronously with the scan process, the upper limit value actually used for the determination is read by the host CPU 5. Therefore, the host CPU 5 that has received the determination result can perform correct processing without malfunctioning. Therefore, the number of keys that can be input simultaneously can be dynamically changed during the scanning process. In addition, by storing the read key number upper limit determination result CURKEY-NUMLIMIT-STATUS in the read result data storage area 428, a new set upper limit key number EXECKEY− is stored in the upper limit key number setting area 425 at the start of the next scan. Even when NUMLIMIT is copied, the host CPU 5 can reliably read the read key number upper limit determination result CURKEY-NUMLIMIT-STATUS stored in the read result data storage area 428.

なお、本実施形態では、タッチパネル装置1において同時に検出できるキーの上限値に対する判定について説明した。本発明は、同時にされた複数のタッチ入力に対する複数のキーを検出することができれば、キーボード、メンブレンスイッチ、タッチパッドなどの他の入力装置にも適用できる。   In the present embodiment, the determination with respect to the upper limit value of the key that can be simultaneously detected in the touch panel device 1 has been described. The present invention can also be applied to other input devices such as a keyboard, a membrane switch, and a touch pad, as long as a plurality of keys for a plurality of touch inputs simultaneously can be detected.

本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.

本発明のタッチパネル装置は、同時に複数検出できるタッチ入力の上限値を外部からメモリに書き込み、実際のタッチ入力数がこの上限値より大きいか否かを判定するので、タッチ入力の上限値を必要に応じて変更する用途に好適に用いることができる。   The touch panel device of the present invention writes the upper limit value of touch inputs that can be detected simultaneously to the memory from outside and determines whether the actual number of touch inputs is larger than the upper limit value. It can use suitably for the use changed according to it.

1 タッチパネル装置
2 タッチパネル
3 駆動・検出部
4 タッチパネルコントローラ
5 ホストCPU
42 メモリ部
43 キー確定処理部
421 TNEWキー記憶領域(検出数記憶手段)
424 上限キー数書込領域(上限値記憶手段,書込領域)
425 上限キー数設定領域(上限値記憶手段,設定領域)
426 上限キー数読出領域(上限値記憶手段,読出領域)
427 検出結果データ記憶領域
428 読出結果データ記憶領域
434 判定部(判定手段)
TNEWKEY−NO キー数
INTFKEY−NUMLIMIT 書込上限キー数(上限値)
EXECKEY−NUMLIMIT 設定上限キー数(上限値,設定値)
CURKEY−NUMLIMIT 読出上限キー数(上限値,読出値)
1 Touch Panel Device 2 Touch Panel 3 Drive / Detection Unit 4 Touch Panel Controller 5 Host CPU
42 memory section 43 key determination processing section 421 TNEW key storage area (detection number storage means)
424 Upper limit key number writing area (upper limit storage means, writing area)
425 Upper limit key number setting area (upper limit storage means, setting area)
426 Upper limit key number reading area (upper limit storage means, reading area)
427 Detection result data storage area 428 Read result data storage area 434 Determination unit (determination means)
TNEWKEY-NO Number of keys INTFKEY-NUMLIMIT Write upper limit key number (upper limit value)
EXECKEY-NUMLIMIT Setting upper limit key number (upper limit value, setting value)
CURKEY-NUMLIMIT Read upper limit key number (upper limit value, read value)

Claims (1)

同時にされた複数のタッチ入力を検出するタッチパネル装置において、
同時にタッチ入力可能なタッチ入力数の上限値を記憶する上限値記憶手段と、
前記タッチ入力の検出数を記憶する検出数記憶手段と、
前記検出数記憶手段に記憶された前記検出数が前記上限値記憶手段に記憶された前記上限値を超えたときに上限値を超えたことを判定し、前記検出数が前記上限値を超えたと判定したことを外部に通知する判定手段とを備え
前記上限値記憶手段は、
前記上限値を書き込むために外部からアクセスできる書込領域と、
当該書込領域に書き込まれた前記上限値が前記判定手段による判定に使用するための設定値としてタッチ入力の検出の開始時にコピーされる、外部からアクセスできない設定領域と、
前記判定に使用された前記上限値が前記設定領域から読出値としてコピーされる、外部からアクセスできる読出領域とを含んでいることを特徴とするタッチパネル装置。
In a touch panel device that detects a plurality of touch inputs made simultaneously,
Upper limit storage means for storing the upper limit of the number of touch inputs that can be simultaneously touched;
Detection number storage means for storing the detection number of the touch input;
When the detected number stored in the detected number storage means exceeds the upper limit value when the detected number exceeds the upper limit value stored in the upper limit value storage means, the detected number exceeds the upper limit value. A determination means for notifying the outside of the determination ,
The upper limit storage means is
A write area accessible from outside to write the upper limit;
The upper limit value written in the writing area is copied at the start of detection of touch input as a setting value for use in the determination by the determination means, and a setting area that cannot be accessed from the outside;
A touch panel device comprising: a read area accessible from outside, wherein the upper limit value used for the determination is copied as a read value from the setting area .
JP2009267966A 2009-11-25 2009-11-25 Touch panel device Active JP5271240B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009267966A JP5271240B2 (en) 2009-11-25 2009-11-25 Touch panel device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009267966A JP5271240B2 (en) 2009-11-25 2009-11-25 Touch panel device

Publications (2)

Publication Number Publication Date
JP2011113221A JP2011113221A (en) 2011-06-09
JP5271240B2 true JP5271240B2 (en) 2013-08-21

Family

ID=44235520

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009267966A Active JP5271240B2 (en) 2009-11-25 2009-11-25 Touch panel device

Country Status (1)

Country Link
JP (1) JP5271240B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5738707B2 (en) * 2011-07-28 2015-06-24 株式会社ジャパンディスプレイ Touch panel
KR102320767B1 (en) * 2015-02-23 2021-11-02 삼성디스플레이 주식회사 Touch sensing apparatus and method for driving the same
US11175782B2 (en) 2018-05-11 2021-11-16 Mitsubishi Electric Corporation Input control device and input control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3379873B2 (en) * 1996-04-05 2003-02-24 株式会社デジタル Matrix type touch panel input device
JP2000099269A (en) * 1998-09-22 2000-04-07 Nec Corp Input device for touch panel corresponding to mouse
JP4430842B2 (en) * 2001-10-01 2010-03-10 株式会社リコー Input processing method, display device with coordinate input function, and program
KR100771626B1 (en) * 2006-04-25 2007-10-31 엘지전자 주식회사 Terminal device and method for inputting instructions thereto
KR101383709B1 (en) * 2007-03-07 2014-04-09 삼성디스플레이 주식회사 Display device and driving method thereof
JP2009134408A (en) * 2007-11-29 2009-06-18 Smk Corp Optical touch-panel input device

Also Published As

Publication number Publication date
JP2011113221A (en) 2011-06-09

Similar Documents

Publication Publication Date Title
WO2010149224A1 (en) Method, apparatus and computer program code handling a user input
KR102326766B1 (en) Display device and method of indicating selected at least one of keys
JP2013250596A (en) Touch sensor system
JP5102362B2 (en) Plant monitoring and control system
JP5271240B2 (en) Touch panel device
JP2000066817A (en) Keyboard device
US20190339858A1 (en) Method and apparatus for adjusting virtual key of mobile terminal
US10019919B2 (en) Processing apparatus, command generation method and storage medium
JP2015179311A (en) Input device, input control method, and computer program
US10895935B2 (en) Touch panel device, touch panel device control method, program, and storage medium storing the program
US20110199309A1 (en) Input Device
CN103460167A (en) Information processing apparatus and information processing method, recording medium, and program
JP2009271851A (en) Information processor, pointer display method thereof, and program executable by computer
JP5271217B2 (en) Touch detection device for touch panel and touch detection method thereof
WO2015170371A1 (en) Information processing device
JP4181482B2 (en) Electronic control unit
JP5174771B2 (en) Method for confirming completion of input of handwritten data in electronic blackboard system
JP2536517B2 (en) Cursor movement key control system
EP3506056A1 (en) System and method for providing haptic feedback when operating a touch screen
JP2004362518A (en) Touch panel input device with cleaning mode
WO1990007739A1 (en) Control method for robot
JP2008107925A (en) Object detection processing circuit, image processing system and electronic information device
CN107924251B (en) Method and device for reducing power consumption of touch screen device
JP3365284B2 (en) Touch panel pressed position detection method and device
JP2020067735A (en) Touch panel device, control method of touch panel device, program, and storage medium storing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120821

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121017

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: 20130423

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130510

R150 Certificate of patent or registration of utility model

Ref document number: 5271240

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250