JPH10260771A - Data transfer device for touch panel - Google Patents

Data transfer device for touch panel

Info

Publication number
JPH10260771A
JPH10260771A JP6573197A JP6573197A JPH10260771A JP H10260771 A JPH10260771 A JP H10260771A JP 6573197 A JP6573197 A JP 6573197A JP 6573197 A JP6573197 A JP 6573197A JP H10260771 A JPH10260771 A JP H10260771A
Authority
JP
Japan
Prior art keywords
coordinate value
coordinate
difference data
data
touch panel
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.)
Pending
Application number
JP6573197A
Other languages
Japanese (ja)
Inventor
Kazuyasu Kitazawa
和保 北沢
Shinji Kiyoue
進治 京江
Tsuneo Sato
恒夫 佐藤
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.)
PFU Ltd
Original Assignee
PFU Ltd
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 PFU Ltd filed Critical PFU Ltd
Priority to JP6573197A priority Critical patent/JPH10260771A/en
Publication of JPH10260771A publication Critical patent/JPH10260771A/en
Pending legal-status Critical Current

Links

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To dissolve the situation of generating the omission of coordinate data at the time of the coordinate detection of a touch panel and character recognition and to normally perform an operation by preparing the difference of the coordinate data of an X coordinate value and a Y coordinate value detected from the touch panel and saving it in a buffer memory. SOLUTION: An A/D converter 2 A/D converts a value corresponding to the X coordinate of a pressing point and the value corresponding to a Y coordinate detected from the touch panel 1 and a touch panel controller 3 obtains X difference data and Y difference data based on the converted X coordinate value and Y coordinate value and temporarily stores the obtained X difference data and Y difference data in the buffer memory 4. Then, the original X coordinate value and Y coordinate value are respectively reproduced based on the X difference data and the Y difference data taken out from the buffer memory 4. Along with that, the X coordinate value and the Y coordinate value converted by the A/D converter 2 or the reproduced X coordinate value and Y coordinate value are transferred to the CPU 5 of a transfer request origin.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、タッチパネルの押
下点のX座標およびY座標を検出して転送するタッチパ
ネルのデータ転送装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a touch panel data transfer device for detecting and transferring an X coordinate and a Y coordinate of a pressed point on a touch panel.

【0002】[0002]

【従来の技術】従来、抵抗膜方式のタッチパネルは、図
7に示すように、X軸方向に多数の抵抗ラインを配置し
たXシートと、Y軸方向に多数の抵抗ラインを配置した
Yシートとを直交して重ね、X軸の両端に電圧を印加お
よびY軸を開放して押下された点に対応するX軸の抵抗
値に対応する電圧を開放したY軸から検出し、次に、Y
軸の両端に電圧を印加およびX軸を開放して押下された
点に対応するY軸の抵抗値に対応する電圧を開放したX
軸から検出する。前者のX軸の押下点に対応する電圧お
よび後者のY軸の押下に対応する電圧をA−D変換器2
2によって2バイトを使用した値(2バイト中の10な
いし12ビットを使用した値)にそれぞれ変換し、タッ
チパネルコントローラ23がこの合計4バイトのデータ
をCPU25に転送したり、CPU25がビジーあるい
は停止のときはバッファメモリ24に一時的に退避し、
CPU25が動作状態になった時点でバッファメモリ2
4から取り出した4バイトのX座標とY座標の値を転送
していた。
2. Description of the Related Art Conventionally, as shown in FIG. 7, a resistive touch panel has an X sheet having a number of resistance lines arranged in an X-axis direction and a Y sheet having a number of resistance lines arranged in a Y-axis direction. Are applied orthogonally to each other, a voltage is applied to both ends of the X-axis, a voltage corresponding to the resistance value of the X-axis corresponding to the point where the Y-axis is opened and pressed is detected from the opened Y-axis,
A voltage is applied to both ends of the axis, and the X-axis is released and the voltage corresponding to the resistance value of the Y-axis corresponding to the pressed point is released.
Detect from axis. The voltage corresponding to the former X-axis pressing point and the latter corresponding to the Y-axis pressing point are converted by the AD converter 2.
2 to a value using 2 bytes (a value using 10 to 12 bits in 2 bytes), and the touch panel controller 23 transfers the total 4 bytes of data to the CPU 25, or the CPU 25 Sometimes, it is temporarily saved in the buffer memory 24,
When the CPU 25 enters the operating state, the buffer memory 2
The 4-byte X coordinate and Y coordinate values extracted from 4 were transferred.

【0003】[0003]

【発明が解決しようとする課題】従って、図7の構成で
CPU25がビジーあるいは停止のときは、タッチパネ
ル21の押下点の1点につきX軸とY軸で各2バイト、
合計4バイトのデータをバッファメモリ24に退避する
必要があり、多くの座標データを退避するにはバッファ
メモリ24の容量が大きくなってしまう。
Therefore, when the CPU 25 is busy or stopped in the configuration of FIG. 7, two bytes each of the X-axis and the Y-axis are used for each of the pressed points on the touch panel 21.
It is necessary to save a total of 4 bytes of data in the buffer memory 24. To save a large amount of coordinate data, the capacity of the buffer memory 24 becomes large.

【0004】タッチパネルコントローラ23内に設ける
バッファメモリ24の容量には限りがあり、それ程多く
の4バイトの座標データを退避できないという問題があ
る。このために、タッチパネル21からの退避する座標
データが多くなると、バッファメモリ24に退避でき
ず、座標データが途中で歯抜けになってしまい、正常な
タッチパネル21の座標検出や文字認識ができなくなっ
てしまう問題が発生する。
[0004] The capacity of the buffer memory 24 provided in the touch panel controller 23 is limited, and there is a problem that so much 4-byte coordinate data cannot be saved. For this reason, if the coordinate data to be retracted from the touch panel 21 becomes large, the coordinate data cannot be retracted to the buffer memory 24, and the coordinate data will be lost in the middle. Problem occurs.

【0005】本発明は、これらの問題を解決するため、
タッチパネルから検出したX座標およびY座標の座標デ
ータについてその差分データを作成してバッファメモリ
に退避し、同じバッファメモリに多量の座標データの退
避を実現してタッチパネルの座標検出や文字認識時に座
標データの歯抜けが生じる事態を解消して正常に動作さ
せることを目的としている。
[0005] The present invention solves these problems,
Creates difference data for the X coordinate and Y coordinate data detected from the touch panel and saves the data to the buffer memory. A large amount of coordinate data is saved to the same buffer memory to realize coordinate data for touch panel coordinate detection and character recognition. The purpose of the present invention is to solve the problem of the occurrence of toothlessness and to operate normally.

【0006】[0006]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、タッチパ
ネル1は、押下点のX座標およびY座標に対応する値
(ここでは電圧値)を出力するものである。
Means for solving the problem will be described with reference to FIG. In FIG. 1, the touch panel 1 outputs values (here, voltage values) corresponding to the X coordinate and the Y coordinate of the pressed point.

【0007】A−D変換器2は、タッチパネル1から出
力された押下点のX座標およびY座標に対応するアナロ
グの値をデジタルの値に変換するものである。タッチパ
ネルコントローラ3は、タッチパネル1の押下点のX座
標値およびY座標値を、CPU5に通知するための各種
制御を行うものであって、ここでは、バッファメモリ4
を持つものである。
The A / D converter 2 converts analog values corresponding to the X and Y coordinates of the pressed point output from the touch panel 1 into digital values. The touch panel controller 3 performs various controls for notifying the CPU 5 of the X coordinate value and the Y coordinate value of the pressed point of the touch panel 1.
With

【0008】バッファメモリ4は、タッチパネル1を押
下したX座標およびY座標の差分データを一時的に記憶
するものである。CPU25は、タッチパネル1の押下
点のX座標値およびY座標値の転送を要求するものであ
る。
The buffer memory 4 temporarily stores difference data of the X coordinate and the Y coordinate when the touch panel 1 is pressed. The CPU 25 requests transfer of the X coordinate value and the Y coordinate value of the pressed point on the touch panel 1.

【0009】次に、動作を説明する。A−D変換器2が
タッチパネル1から検出した押下点のX座標に対応する
値およびY座標に対応する値をA−D変換し、タッチパ
ネルコントローラ3がA−D変換器2によって変換され
たX座標値およびY座標値をもとにX差分データおよび
Y差分データを求め、この求めたX差分データおよびY
差分データを一時的にバッファメモリ4に格納し、バッ
ファメモリ4から取り出したX差分データおよびY差分
データをもとに元のX座標値およびY座標値をそれぞれ
再生すると共に、A−D変換器2によって変換されたX
座標値およびY座標値、あるいは再生したX座標値およ
びY座標値を転送依頼元のCPU1に転送するようにし
ている。
Next, the operation will be described. The A / D converter 2 A / D converts the value corresponding to the X coordinate and the value corresponding to the Y coordinate of the pressed point detected from the touch panel 1, and the touch panel controller 3 converts the X value converted by the A / D converter 2. X difference data and Y difference data are obtained based on the coordinate value and the Y coordinate value.
The difference data is temporarily stored in the buffer memory 4, the original X coordinate value and the Y coordinate value are respectively reproduced based on the X difference data and the Y difference data extracted from the buffer memory 4, and the A / D converter is used. X converted by 2
The coordinate value and the Y coordinate value or the reproduced X coordinate value and the Y coordinate value are transferred to the transfer requesting CPU 1.

【0010】この際、X差分データおよびY差分データ
として、前回のX座標値と今回のX座標値との差分およ
び前回のY座標値と今回のY座標値との差分として求め
るようにしている。
At this time, the difference between the previous X coordinate value and the current X coordinate value and the difference between the previous Y coordinate value and the current Y coordinate value are determined as the X difference data and the Y difference data. .

【0011】また、X差分データおよびY差分データと
して、前回のX座標値と今回のX座標値との差分が所定
値以内のときあるいは前回のY座標値と今回のY座標値
との差分が所定値以内のときにX差分データおよびY差
分データを出力するようにしている。
Further, as the X difference data and the Y difference data, when the difference between the previous X coordinate value and the current X coordinate value is within a predetermined value, or the difference between the previous Y coordinate value and the current Y coordinate value, The X difference data and the Y difference data are output when the difference is within a predetermined value.

【0012】また、X座標値およびY座標値に2バイト
を使用し、X差分データおよびY差分データに1バイト
を使用し、バッファメモリ4を従来の2倍に有効活用す
るようにしている。
Further, two bytes are used for the X coordinate value and the Y coordinate value, and one byte is used for the X difference data and the Y difference data, so that the buffer memory 4 is effectively used twice as much as the conventional one.

【0013】また、転送依頼元のCPU1がX座標値お
よびY座標値を受信不可状態の場合にのみ、A−D変換
器2で変換したX座標値およびY座標値をもとにX差分
データおよびY差分データを生成してバッファメモリ4
に一時的に格納し、転送依頼元のCPU1が受信可能状
態になったときにバッファメモリ4からX差分データお
よびY差分データをもとに元のX座標値およびY座標値
を再生して転送するようにしている。
Only when the transfer requesting CPU 1 cannot receive the X coordinate value and the Y coordinate value, the X difference data based on the X coordinate value and the Y coordinate value converted by the A / D converter 2 are obtained. And Y difference data to generate the buffer memory 4
When the transfer requesting CPU 1 is ready to receive, the original X coordinate value and Y coordinate value are reproduced from the buffer memory 4 based on the X difference data and Y difference data and transferred. I am trying to do it.

【0014】また、A−D変換器2によって変換された
X座標値およびY座標値をもとにX差分データおよびY
差分データを生成してバッファメモリ4に格納し、バッ
ファメモリ4からX差分データおよびY差分データをも
とに元のX座標値およびY座標値を再生して転送するよ
うにしている。
Further, based on the X coordinate value and the Y coordinate value converted by the AD converter 2, X difference data and Y
The difference data is generated and stored in the buffer memory 4, and the original X coordinate value and Y coordinate value are reproduced from the buffer memory 4 and transferred based on the X difference data and the Y difference data.

【0015】また、タッチパネル1をX座標方向に複数
の抵抗ラインを設けたシートとY座標方向に複数の抵抗
ラインを設けたシートとを重ねて押下された交点の電圧
を検出し、この検出した電圧をA−D変換器2でX座標
値およびY座標値にして出力するようにしている。
Further, the touch panel 1 detects a voltage at an intersection where a sheet provided with a plurality of resistance lines in the X coordinate direction and a sheet provided with a plurality of resistance lines in the Y coordinate direction are overlapped and pressed. The voltage is converted into an X coordinate value and a Y coordinate value by the AD converter 2 and output.

【0016】従って、タッチパネル1から検出したX座
標およびY座標の座標データについてその差分データを
作成してバッファメモリ4に退避し、バッファメモリ4
から取り出した差分データをもとに元のX座標値および
Y座標を再生して転送依頼元に転送することにより、同
じバッファメモリ4に多量の座標データの退避を実現し
てタッチパネル1の座標検出や文字認識時に座標データ
の歯抜けが生じる事態を解消して正常に動作させること
が可能となる。
Therefore, the difference data of the coordinate data of the X coordinate and the Y coordinate detected from the touch panel 1 is created and saved in the buffer memory 4, and is stored in the buffer memory 4.
The original X-coordinate value and Y-coordinate are reproduced based on the difference data extracted from the transfer data and transferred to the transfer requester, so that a large amount of coordinate data is saved in the same buffer memory 4 and the coordinate detection of the touch panel 1 is performed. It is possible to eliminate a situation in which coordinate data is missing at the time of character recognition or character recognition, and to operate normally.

【0017】[0017]

【発明の実施の形態】次に、図2から図6を用いて本発
明の実施の形態および動作を順次詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments and operations of the present invention will be sequentially described in detail with reference to FIGS.

【0018】図2は、本発明の動作説明フローチャート
を示す。これは、図1の構成の全体の動作を詳細に説明
するものである。図2において、S1は、X軸A−D変
換を行う。これは、図1のタッチパネル1から検出した
X座標のアナログの電圧値を、A−D変換器2によって
デジタルのX座標値に変換する。
FIG. 2 is a flowchart illustrating the operation of the present invention. This explains the overall operation of the configuration of FIG. 1 in detail. In FIG. 2, S1 performs X-axis AD conversion. Specifically, the analog voltage value of the X coordinate detected from the touch panel 1 of FIG. 1 is converted into a digital X coordinate value by the AD converter 2.

【0019】S2は、前回と今回の差が所定値以上か判
別する。これは、A−D変換器2によってA−D変換し
た後のX座標値が、前回のX座標値と比較してその差が
所定値以内(例えば2進で2ビット以内、即ち10進で
“4”以内)であるか判別する。YESの場合には、S
4に進む。NOの場合には、S3でノイズとして削除
し、S1に戻り繰り返す。
In step S2, it is determined whether the difference between the previous time and the current time is equal to or more than a predetermined value. This is because the difference between the X coordinate value after the A / D conversion by the A / D converter 2 and the previous X coordinate value is within a predetermined value (for example, within 2 bits in binary, that is, in decimal). (“4” or less). If YES, S
Proceed to 4. In the case of NO, the noise is deleted in S3 and the process returns to S1 and is repeated.

【0020】S4は、Y軸A−D変換を行う。これは、
図1のタッチパネル1から検出したY座標のアナログの
電圧値を、A−D変換器2によってデジタルのY座標値
に変換する。
In step S4, Y-axis AD conversion is performed. this is,
The analog voltage value of the Y coordinate detected from the touch panel 1 in FIG. 1 is converted into a digital Y coordinate value by the AD converter 2.

【0021】S5は、前回と今回の差が所定値以内か判
別する。これは、A−D変換器2によってA−D変換し
た後のY座標値が、前回のY座標値と比較してその差が
所定値以内(例えば2進で2ビット以内、即ち10進で
“4”以内)であるか判別する。YESの場合には、S
6に進む。NOの場合には、S3でノイズとして削除
し、S1に戻り繰り返す。
In step S5, it is determined whether the difference between the previous time and the current time is within a predetermined value. This is because the difference between the Y coordinate value after A / D conversion by the A / D converter 2 and the previous Y coordinate value is within a predetermined value (for example, within 2 bits in binary, that is, in decimal). (“4” or less). If YES, S
Proceed to 6. In the case of NO, the noise is deleted in S3 and the process returns to S1 and is repeated.

【0022】S6は、X軸の変化量の計算を行う。これ
は、前回のX座標値から今回のX座標値を引算して変化
量(X差分データ)を求める。S7は、変化量(X差分
データ)をバッファメモリ4にセットする。ここでは、
後述するように、変化量(X差分データ)は1バイト構
成であるので、バッファメモリ4の1バイトの領域に変
化量(X差分データ)を格納し、従来に比して半分のメ
モリ容量で済む。
In step S6, the amount of change in the X axis is calculated. In this case, the change amount (X difference data) is obtained by subtracting the current X coordinate value from the previous X coordinate value. In step S7, the amount of change (X difference data) is set in the buffer memory 4. here,
As will be described later, since the change amount (X difference data) has a 1-byte configuration, the change amount (X difference data) is stored in a 1-byte area of the buffer memory 4, and the memory capacity is half that of the conventional case. I'm done.

【0023】S8は、Y軸の変化量の計算を行う。これ
は、前回のY座標値から今回のY座標値を引算して変化
量(Y差分データ)を求める。S9は、変化量(Y差分
データ)をバッファメモリ4にセットする。ここでは、
後述するように、変化量(Y差分データ)は1バイト構
成であるので、バッファメモリ4の1バイトの領域に変
化量(Y差分データ)を格納し、従来に比して半分のメ
モリ容量で済む。
In step S8, the amount of change in the Y axis is calculated. In this method, the change amount (Y difference data) is obtained by subtracting the current Y coordinate value from the previous Y coordinate value. In step S9, the amount of change (Y difference data) is set in the buffer memory 4. here,
As will be described later, since the change amount (Y difference data) has a 1-byte configuration, the change amount (Y difference data) is stored in a 1-byte area of the buffer memory 4, and the memory capacity is half that of the conventional case. I'm done.

【0024】S10は、CPUにデータを転送するため
の変換を行う。これは、S7、S9でバッファメモリ4
にセットした変化量(X差分データ)および変化量(Y
差分データ)として1バイトのデータをそれぞれ取り出
し、元のX座標値およびY座標値の2バイトのデータに
それぞれ変換する。
In step S10, conversion for transferring data to the CPU is performed. This is because the buffer memory 4 in S7 and S9
(X difference data) and change amount (Y
1-byte data is taken out as difference data) and converted into 2-byte data of the original X coordinate value and Y coordinate value.

【0025】S11は、CPUにデータ転送する。これ
は、S10で元の2バイトのX座標値およびY座標値に
戻したデータを、CPU1に転送する。以上によって、
タッチパネル1上で押下された押下点のX座標およびY
座標をA−D変換器2によってデジタルの2バイトを使
用したX座標値およびY座標値に変換し、このX座標値
およびY座標値について前回の座標値との1バイトを使
用した変化量(差分データ)を求めてバッファメモリ4
に格納し、バッファメモリ4から取り出した1バイトの
変化量(差分データ)を元の2バイトを使用したX座標
値およびY座標値に戻し、これをCPU1に転送するこ
とにより、バッファメモリ4の使用効率を従来の2倍に
して多量の変化量(X差分データ、Y差分データ)を保
存でき、タッチパネル1の座標検出や文字認識時に座標
データの歯抜けが生じる事態を解消して正常に動作させ
ることが可能となる。
In step S11, data is transferred to the CPU. This transfers the data returned to the original 2-byte X coordinate value and Y coordinate value in S10 to the CPU 1. By the above,
X coordinate and Y of the pressed point pressed on touch panel 1
The coordinates are converted by the AD converter 2 into an X coordinate value and a Y coordinate value using two digital bytes, and the X coordinate value and the Y coordinate value are changed by one byte from the previous coordinate value ( Difference data) to obtain the buffer memory 4
And the 1-byte change amount (difference data) extracted from the buffer memory 4 is returned to the X-coordinate value and the Y-coordinate value using the original 2 bytes, and is transferred to the CPU 1. A large amount of change (X difference data, Y difference data) can be saved by doubling the usage efficiency of the conventional one, and the situation where the coordinate data is missing during coordinate detection and character recognition on the touch panel 1 is eliminated and operates normally. It is possible to do.

【0026】図3は、本発明のタッチパネルの座標デー
タのフォーマット例を示す。図3の(a)は、座標デー
タ(X軸/Y軸)を示す。この座標データ(X軸/Y
軸)は、A−D変換器2によったタッチパネル1から出
力されたX座標およびY座標に対応する電圧値をデジタ
ル変換した値であって、2バイトを使用して図示のよう
に12bit(ビット)で表現している。LSB側の4
ビットは未使用である。
FIG. 3 shows a format example of coordinate data of the touch panel of the present invention. FIG. 3A shows coordinate data (X axis / Y axis). This coordinate data (X axis / Y
(Axis) is a value obtained by digitally converting the voltage values corresponding to the X coordinate and the Y coordinate output from the touch panel 1 by the A / D converter 2 and is 12 bits (2 bits) as shown in FIG. Bit). 4 on the LSB side
Bits are unused.

【0027】図3の(b)は、変化値(X軸/Y軸)を
示す。この変化値(X軸/Y軸)は、図3の(a)の前
回の座標データ(X軸/Y軸)と、今回の座標データ
(X軸/Y軸)との変化量(X軸/Y軸)であって、1
バイトを使用して図示のように8bitで表現してい
る。ここでは、1バイトの全部のビットを使用してい
る。これにより、2バイトの座標データ(X軸/Y軸)
を、1バイトの変化量(X軸/Y軸)にデータ量を半分
に削減できたこととなる。このため、変化量(X軸/Y
軸)をバッファメモリ4に格納しているため、バッファ
メモリ4の容量を同一とすれば、2倍の数の座標データ
(X軸/Y軸)を退避でき、タッチパネル1の座標検出
や文字認識時に座標データの歯抜けが生じる事態を解消
して正常に動作させることが可能となる。
FIG. 3B shows a change value (X axis / Y axis). The change value (X-axis / Y-axis) is the change amount (X-axis / Y-axis) between the previous coordinate data (X-axis / Y-axis) in FIG. / Y axis) and 1
It is expressed by 8 bits as shown using bytes. Here, all bits of one byte are used. With this, 2-byte coordinate data (X axis / Y axis)
Means that the data amount can be reduced by half to the change amount of one byte (X axis / Y axis). Therefore, the change amount (X axis / Y
Axis) is stored in the buffer memory 4, and if the capacity of the buffer memory 4 is the same, twice as many coordinate data (X-axis / Y-axis) can be saved, and the coordinate detection and character recognition of the touch panel 1 can be performed. Occasionally, the situation where the coordinate data is missing can be resolved and normal operation can be performed.

【0028】図3の(c)は、座標データに戻す様子を
示す。これは、図3の(b)の1バイトの変化量(X軸
/Y軸)を、2バイトを使用した元の座標データ(X軸
/Y軸)に戻す。この戻した2バイトを使用した座標デ
ータ(X軸/Y軸)を、CPU5に転送する。
FIG. 3C shows a state in which the coordinate data is restored. This returns the amount of change of one byte (X axis / Y axis) in FIG. 3B to the original coordinate data (X axis / Y axis) using two bytes. The coordinate data (X axis / Y axis) using the returned 2 bytes is transferred to the CPU 5.

【0029】図4は、本発明のシステムのモード例を示
す。これは、バッテリで動作するノートPCの図1のC
PU5のモード例であって、動作モード、疑似動作
モード、サスペンドモードの3つのモードがある。
FIG. 4 shows a mode example of the system of the present invention. This is the C of FIG. 1 of the battery operated notebook PC.
This is an example of the mode of the PU 5 and includes three modes: an operation mode, a pseudo operation mode, and a suspend mode.

【0030】動作モードは、CPUが動作し、表示が
ONとなっているモードである。 疑似動作モードは、CPUが停止し、表示がONとな
っているモードであって、外部からは動作しているよう
に見え、CPUを停止させて省電力化を図ったモードで
ある。この疑似動作モードでタッチパネル1を押下す
ると、動作モードに遷移する。このとき動作モードに
遷移するときに、CPU5を起動させるための処理時間
が必要となり、この処理時間の間(図5のS22、S2
3)、タッチパネル1からの座標値(X軸/Y軸)を変
化量(X軸/Y軸)としてバッファメモリ4に退避し、
CPU5が動作モードに遷移した時点でバッファメモ
リ4から変化量(X軸/Y軸)を取り出して元の座標値
(X軸/Y軸)に戻してCPU5に転送する。
The operation mode is a mode in which the CPU operates and the display is ON. The pseudo operation mode is a mode in which the CPU is stopped and the display is ON, and it appears that the CPU is operating from the outside, and the CPU is stopped to save power. When the touch panel 1 is pressed in the pseudo operation mode, the mode is changed to the operation mode. At this time, when transitioning to the operation mode, a processing time for activating the CPU 5 is required, and during this processing time (S22 and S2 in FIG. 5).
3) The coordinate values (X-axis / Y-axis) from the touch panel 1 are saved in the buffer memory 4 as change amounts (X-axis / Y-axis),
When the CPU 5 transitions to the operation mode, the change amount (X-axis / Y-axis) is extracted from the buffer memory 4 and returned to the original coordinate value (X-axis / Y-axis) and transferred to the CPU 5.

【0031】サスペンドモードは、CPUが停止し、
表示がOFFのモードであって、待機状態のモードであ
る。 図5は、本発明のタイムチャート例を示す。これは、図
4のCPU5の動作モード、疑似動作モード、サ
スペンドモードに遷移したときのタイムチャートを示
す。
In the suspend mode, the CPU stops,
This is a mode in which the display is OFF and a mode in a standby state. FIG. 5 shows an example of a time chart according to the present invention. This is a time chart when the operation mode, the pseudo operation mode, and the suspend mode of the CPU 5 in FIG. 4 are changed.

【0032】図5において、システムのモードは、図4
の動作モード、疑似動作モード、サスペンドモー
ドのいずれかのモードを表す。CPUは、図1のCPU
5の動作状態を表す。ONは動作中、OFFは停止中を
表す。
In FIG. 5, the mode of the system is shown in FIG.
, The pseudo operation mode, and the suspend mode. The CPU is the CPU of FIG.
5 represents the operation state. ON indicates an operation, and OFF indicates a stop.

【0033】表示は、表示装置がONあるいはOFFを
表す。タッチパネルのスキャンは、タッチパネル1が押
下点をスキャンして座標データ(X軸/Y軸)を検出す
る状態を表す。ONが検出、OFFが停止を表す。
The display indicates whether the display device is ON or OFF. The scanning of the touch panel represents a state in which the touch panel 1 scans a pressed point and detects coordinate data (X axis / Y axis). ON indicates detection, and OFF indicates stop.

【0034】システムのモードの左から右に向けて ・左から第1番目の動作モードの場合には、CPUが
ON、表示がON、タッチパネルのスキャンがONとな
り、タッチパネル1の押下点を検出してその座標データ
(X軸/Y軸)がCPU5に転送されている。
From left to right of the system mode: In the case of the first operation mode from the left, the CPU is turned on, the display is turned on, the touch panel scan is turned on, and the pressed point of the touch panel 1 is detected. The coordinate data (X axis / Y axis) is transferred to the CPU 5.

【0035】・左から第2番目の疑似動作モードの場
合には、S21でCPU5を停止させるための処理を行
い、CPU5が停止(OFF)状態となる(表示はON
のままである)。
In the case of the second pseudo operation mode from the left, a process for stopping the CPU 5 is performed in S21, and the CPU 5 is stopped (OFF) (display is ON).
Remains).

【0036】・左から第3番目の動作モードの場合に
は、S22でタッチパネル1が押下されたので、割り込
みでS23のCPUを起動させるための処理を行った
後、CPU5を動作状態(ON)にする。この際、タッ
チパネル1を押下してからCPU5が動作状態となるま
での、S23の処理時間中は、タッチパネル1の押下点
の座標データを変化量(X軸/Y軸)にしてバッファメ
モリ4に退避しておき、CPU5が動作状態になった時
点でバッファメモリ4から取り出した変化量(X軸/Y
軸)を座標データ(X軸/Y軸)に再生してCPU5に
転送する。
In the case of the third operation mode from the left, since the touch panel 1 is depressed in S22, the processing for starting the CPU in S23 by interruption is performed, and then the CPU 5 is operated (ON). To At this time, during the processing time of S23 from the time when the touch panel 1 is pressed to the time when the CPU 5 is operated, the coordinate data of the pressed point on the touch panel 1 is changed to the amount of change (X axis / Y axis) and stored in the buffer memory 4. The amount of change (X-axis / Y) taken out of the buffer memory 4 when the CPU 5 enters the operating state
Axis) is reproduced as coordinate data (X axis / Y axis) and transferred to the CPU 5.

【0037】・左から第4番目のサスペンドモード
は、CPU5、表示、タッチパネルのスキャンの全てを
停止する。 図6は、本発明のタッチパネルのA−D変換説明図を示
す。
In the fourth suspend mode from the left, the CPU 5, display, and scanning of the touch panel are all stopped. FIG. 6 is an explanatory diagram of the AD conversion of the touch panel of the present invention.

【0038】図6の(a)は、X軸のA−D変換を示
す。このX軸のA−D変換する場合、タッチパネル1
は、X方向の複数の抵抗ラインの両端に電圧を印加した
Xシートと、直交したY方向の複数の抵抗ラインの両端
を開放したYシートとを重ねてその交点を押下して接触
させることにより、X軸方向の押下点に対応する電圧が
Yシートの両端を開放した点で検出でき、このX軸の電
圧をA−D変換してX座標データを得る。
FIG. 6A shows the AD conversion of the X axis. When performing the X-axis AD conversion, the touch panel 1
Is obtained by superimposing an X sheet in which a voltage is applied to both ends of a plurality of resistance lines in the X direction and a Y sheet having both ends opened in a plurality of orthogonal resistance lines in the Y direction, and pressing the intersection thereof to make contact. A voltage corresponding to the pressed point in the X-axis direction can be detected at a point where both ends of the Y sheet are opened, and the X-axis voltage is AD-converted to obtain X coordinate data.

【0039】図6の(b)は、Y軸のA−D変換を示
す。このY軸のA−D変換する場合、、同様に、タッチ
パネル1は、Y方向の複数の抵抗ラインの両端に電圧を
印加したYシートと、直交したX方向の複数の抵抗ライ
ンの両端を開放したXシートとを重ねてその交点を押下
して接触させることにより、Y軸方向の押下点に対応す
る電圧がXシートの両端を開放した点で検出でき、この
Y軸の電圧をA−D変換してY座標データを得る。
FIG. 6B shows the AD conversion of the Y axis. In the case of performing the Y-axis A / D conversion, similarly, the touch panel 1 opens both ends of the plurality of resistance lines in the X direction orthogonal to the Y sheet in which voltage is applied to both ends of the plurality of resistance lines in the Y direction. By pressing the intersection of the X sheet and the intersection thereof, the voltage corresponding to the pressed point in the Y-axis direction can be detected at the point where both ends of the X sheet are opened. Convert to obtain Y coordinate data.

【0040】[0040]

【発明の効果】以上説明したように、本発明によれば、
タッチパネル1から検出したX座標およびY座標の座標
データについてその差分データを作成してバッファメモ
リ4に退避し、バッファメモリ4から取り出した差分デ
ータをもとに元のX座標値およびY座標を再生して転送
依頼元に転送するなどの構成を採用しているため、同じ
バッファメモリ4に多量の座標データの退避を実現して
タッチパネル1の座標検出や文字認識時に座標データの
歯抜けが生じる事態を解消して正常に動作させることが
できる。
As described above, according to the present invention,
Difference data is created for the coordinate data of the X coordinate and the Y coordinate detected from the touch panel 1, saved in the buffer memory 4, and the original X coordinate value and the Y coordinate are reproduced based on the difference data extracted from the buffer memory 4. And a large amount of coordinate data is saved in the same buffer memory 4, and the coordinate data is missed during coordinate detection and character recognition on the touch panel 1. And can be operated normally.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のシステムブロック図である。FIG. 1 is a system block diagram of the present invention.

【図2】本発明の動作説明フローチャートである。FIG. 2 is a flowchart illustrating the operation of the present invention.

【図3】本発明のタッチパネルの座標データのフォーマ
ット例である。
FIG. 3 is a format example of coordinate data of a touch panel according to the present invention.

【図4】本発明のシステムのモード例である。FIG. 4 is a mode example of the system of the present invention.

【図5】本発明のタイムチャート例である。FIG. 5 is an example of a time chart of the present invention.

【図6】本発明のタッチパネルのA−D変換説明図であ
る。
FIG. 6 is an explanatory diagram of AD conversion of the touch panel of the present invention.

【図7】従来技術の説明図である。FIG. 7 is an explanatory diagram of a conventional technique.

【符号の説明】[Explanation of symbols]

1:タッチパネル 2:A−D変換器 3:タッチパネルコントローラ 4:バッファメモリ 5:CPU 1: Touch panel 2: A / D converter 3: Touch panel controller 4: Buffer memory 5: CPU

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】タッチパネルの押下点のX座標およびY座
標を検出して転送するデータ転送装置において、 上記タッチパネルから検出した押下点のX座標に対応す
る値およびY座標に対応する値をA−D変換するA−D
変換器と、 A−D変換器によって変換されたX座標値およびY座標
値をもとにX差分データおよびY差分データを求める手
段と、 この求めたX差分データおよびY差分データを一時的に
格納するバッファメモリと、 このバッファメモリから取り出したX差分データおよび
Y差分データをもとに元のX座標値およびY座標値をそ
れぞれ再生する手段と、 上記A−D変換器によって変換されたX座標値およびY
座標値、あるいは上記再生したX座標値およびY座標値
を転送依頼元に転送する手段とを備えたことを特徴とす
るタッチパネルのデータ転送装置。
1. A data transfer device for detecting and transferring an X coordinate and a Y coordinate of a pressed point of a touch panel, wherein a value corresponding to the X coordinate and the Y coordinate of the pressed point detected from the touch panel is A-valued. AD to D conversion
A converter; means for obtaining X difference data and Y difference data based on the X coordinate value and Y coordinate value converted by the A / D converter; and temporarily determining the obtained X difference data and Y difference data. A buffer memory for storing the data, means for reproducing the original X coordinate value and the original Y coordinate value based on the X difference data and the Y difference data taken out of the buffer memory, respectively, and X converted by the AD converter. Coordinate value and Y
Means for transferring the coordinate values or the reproduced X coordinate values and Y coordinate values to a transfer request source.
【請求項2】上記X差分データおよび上記Y差分データ
として、前回のX座標値と今回のX座標値との差分およ
び前回のY座標値と今回のY座標値との差分としたこと
を特徴とする請求項1記載のタッチパネルのデータ転送
装置。
2. The X difference data and the Y difference data are a difference between a previous X coordinate value and a current X coordinate value and a difference between a previous Y coordinate value and a current Y coordinate value. The data transfer device for a touch panel according to claim 1.
【請求項3】上記X差分データおよび上記Y差分データ
として、前回のX座標値と今回のX座標値との差分が所
定値以内のときあるいは前回のY座標値と今回のY座標
値との差分が所定値以内のときに当該X差分データおよ
びY差分データを出力することを特徴とする請求項1あ
るいは請求項2記載のタッチパネルのデータ転送装置。
3. The method according to claim 1, wherein the difference between the previous X coordinate value and the current X coordinate value is within a predetermined value or the difference between the previous Y coordinate value and the current Y coordinate value is determined as the X difference data and the Y difference data. 3. The touch panel data transfer device according to claim 1, wherein the X difference data and the Y difference data are output when the difference is within a predetermined value.
【請求項4】上記X座標値およびY座標値に2バイトを
使用し、上記X差分データおよび上記Y差分データに1
バイトを使用したことを特徴する請求項1ないし請求項
3記載のいずれかのタッチパネルのデータ転送装置。
4. Two bytes are used for the X coordinate value and the Y coordinate value, and one byte is used for the X difference data and the Y difference data.
4. The data transfer device for a touch panel according to claim 1, wherein a byte is used.
【請求項5】上記転送依頼元がX座標値およびY座標値
を受信不可状態の場合にのみ、上記A−D変換器で変換
したX座標値およびY座標値をもとにX差分データおよ
びY差分データを生成して上記バッファメモリに一時的
に格納し、上記転送依頼元が受信可能状態になったとき
に当該バッファメモリからX差分データおよびY差分デ
ータをもとに元のX座標値およびY座標値を再生して転
送する手段を備えたことを特徴とする請求項1ないし請
求項4記載のいずれかのタッチパネルのデータ転送装
置。
5. Only when the transfer request source cannot receive the X coordinate value and the Y coordinate value, the X difference data and the X difference data based on the X coordinate value and the Y coordinate value converted by the A / D converter. Y difference data is generated and temporarily stored in the buffer memory, and when the transfer request source is ready to receive, the original X coordinate value based on the X difference data and the Y difference data from the buffer memory. 5. The data transfer device for a touch panel according to claim 1, further comprising means for reproducing and transferring the Y coordinate value.
【請求項6】上記A−D変換器によって変換されたX座
標値およびY座標値をもとにX差分データおよびY差分
データを生成して上記バッファメモリに格納し、当該バ
ッファメモリからX差分データおよびY差分データをも
とに元のX座標値およびY座標値を再生して転送するよ
うにしたことを特徴とする請求項1ないし請求項5記載
のいずれかのタッチパネルのデータ転送装置。
6. An X-difference data and a Y-difference data are generated based on the X-coordinate value and the Y-coordinate value converted by the A / D converter and stored in the buffer memory. 6. The touch panel data transfer device according to claim 1, wherein the original X coordinate value and Y coordinate value are reproduced and transferred based on the data and the Y difference data.
【請求項7】上記タッチパネルをX座標方向に複数の抵
抗ラインを設けたXシートとY座標方向に複数の抵抗ラ
インを設けたYシートとを重ねて押下された点の電圧を
検出し、この検出した電圧を上記A−D変換器でX座標
値およびY座標値にして出力することを特徴とする請求
項1ないし請求項6記載のいずれかのタッチパネルのデ
ータ転送装置。
7. A voltage at a point where the touch panel is depressed by superposing an X sheet provided with a plurality of resistance lines in the X coordinate direction and a Y sheet provided with a plurality of resistance lines in the Y coordinate direction is detected. 7. The data transfer device for a touch panel according to claim 1, wherein the detected voltage is converted into an X coordinate value and a Y coordinate value by the AD converter and output.
JP6573197A 1997-03-19 1997-03-19 Data transfer device for touch panel Pending JPH10260771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6573197A JPH10260771A (en) 1997-03-19 1997-03-19 Data transfer device for touch panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6573197A JPH10260771A (en) 1997-03-19 1997-03-19 Data transfer device for touch panel

Publications (1)

Publication Number Publication Date
JPH10260771A true JPH10260771A (en) 1998-09-29

Family

ID=13295468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6573197A Pending JPH10260771A (en) 1997-03-19 1997-03-19 Data transfer device for touch panel

Country Status (1)

Country Link
JP (1) JPH10260771A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5331935B1 (en) * 2012-12-22 2013-10-30 淳也 榎本 Wireless screen display control method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5331935B1 (en) * 2012-12-22 2013-10-30 淳也 榎本 Wireless screen display control method and system
WO2014097650A1 (en) * 2012-12-22 2014-06-26 Enomoto Junya Method and system for wirelessly controlling image display

Similar Documents

Publication Publication Date Title
JPH10260771A (en) Data transfer device for touch panel
US9001071B2 (en) Energy-efficient touch panel device and related method
JP2682480B2 (en) Event notification method in pen input operating system and pen input operation device to which the method is applied
JP3098836B2 (en) Coordinate detection device
JPH05216809A (en) Dma transfer system
JPH05120205A (en) Processor system with address conversion device for dma transfer and dma transfer method
JPH11232032A (en) Input controller/input control method for touch panel
JP3288114B2 (en) Microcomputer
JPH11134098A (en) Keyboard system
JP2622168B2 (en) Character processing apparatus and method
JPH05204549A (en) Microcomputer
JP2821218B2 (en) Keyboard and information processing device
JPS63147247A (en) Converting device for data format
JPH0550854U (en) Telephone device with memory card
JP3110072B2 (en) Pre-normalization circuit
JPH05134807A (en) A/d converter
JPH07121272A (en) Programming loader and its information input method
JPH0683759A (en) Information processor
JPH09120331A (en) Apparatus and method for recognition of position coordinates
JPS58203542A (en) Method for inputting external character
JPH0261743A (en) Hardware control system
JPH08137576A (en) Electronic musical instrument system
JPH0764834A (en) Floppy disk device
JPS6315325A (en) Keyboard connection control system
JPH04235692A (en) Microcomputer