Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6540148B2 - Keyboard input imitation method and keyboard - Google Patents
[go: Go Back, main page]

JP6540148B2 - Keyboard input imitation method and keyboard - Google Patents

Keyboard input imitation method and keyboard Download PDF

Info

Publication number
JP6540148B2
JP6540148B2 JP2015063330A JP2015063330A JP6540148B2 JP 6540148 B2 JP6540148 B2 JP 6540148B2 JP 2015063330 A JP2015063330 A JP 2015063330A JP 2015063330 A JP2015063330 A JP 2015063330A JP 6540148 B2 JP6540148 B2 JP 6540148B2
Authority
JP
Japan
Prior art keywords
key
scan
value
keyboard
matrix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015063330A
Other languages
Japanese (ja)
Other versions
JP2016184240A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2015063330A priority Critical patent/JP6540148B2/en
Publication of JP2016184240A publication Critical patent/JP2016184240A/en
Application granted granted Critical
Publication of JP6540148B2 publication Critical patent/JP6540148B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

本発明は、キーボード入力擬制方法およびキーボードに関する。   The present invention relates to a keyboard input imitation method and a keyboard.

コンピュータの入力装置としてキーボードが広く使用されている。特に、企業等においては、キーボードが主たる入力装置として使用されている。銀行等のコンピュータシステムでは、一般的なパーソナルコンピュータ(以下、パソコンと略称する)を端末として使用するのが一般的であり、パソコンの入力装置としてキーボードが使用される。   A keyboard is widely used as an input device of a computer. In particular, in companies and the like, a keyboard is used as a main input device. In a computer system such as a bank, it is common to use a general personal computer (hereinafter abbreviated as a personal computer) as a terminal, and a keyboard is used as an input device of the personal computer.

銀行等のコンピュータシステムでは、その動作保証のため、端末であるパソコンのキーボードの操作を繰り返し、一連のキー入力を繰り返し実行する状況があり、このような状況で、キーボードのドライバを含めた検証が必要な場合が起こり得る。この状況で、コンピュータシステムを形成している製品の機能への影響が生じないようにするため、製品へ自動化ソフトをインストールできない場合、また組み込みシステムのようにソフトを追加できない場合も起こり得る。このような場合において、動作補償のための入力を行うには、実際にキーボードからの入力を手作業で繰り返す必要があり、多大な作業が必要となる。   In a computer system such as a bank, in order to guarantee its operation, there is a situation where the keyboard operation of the personal computer which is the terminal is repeated and a series of key input is repeatedly executed. If necessary, it can happen. In this situation, there may be cases where automation software can not be installed on the product, or software can not be added like an embedded system, in order to prevent the functional functions of the product forming the computer system from being affected. In such a case, in order to perform input for motion compensation, it is actually necessary to manually repeat input from the keyboard, which requires a great deal of work.

そこで入力を疑似し、自動化することが考えられる。入力を擬似する場合、パソコン内で入力に相当するデータ信号を発生することが考えられるが、動作保証する上では、できるだけ実際の入力に近い状態を擬似することが望まれる。   Therefore, it is conceivable to simulate and automate input. When simulating an input, it is conceivable to generate a data signal corresponding to the input in a personal computer, but in order to guarantee the operation, it is desirable to simulate a state as close as possible to the actual input.

特開2004−70889号公報JP 2004-70889 A 特開平7−261901号公報Japanese Patent Laid-Open No. 7-261901 特開平6−149441号公報Unexamined-Japanese-Patent No. 6-149441

実施形態によれば、キーボードからの入力を疑似して所望の入力を自動的に行うキーボード入力擬似方法およびキーボードが実現される。   According to the embodiment, a keyboard input simulation method and a keyboard are realized, which automatically performs desired input by simulating input from the keyboard.

本発明の第1の態様のキーボード入力擬制方法によれば、入力キーを擬似して入力を行う疑似入力モードの場合、キーボードのキースイッチ部を、所定キーが押し下げられた状態に設定する。次に、キーボードコントローラが出力するキーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較する。キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致した時に、キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換する。キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致しない時に、キーマトリックススキャンのスキャン値を、所定キーのスキャン値以外になるように変換する。キースイッチ部は、所定キーのスキャン値を受けた時に、キーボードコントローラに一致信号を出力し、所定キーのスキャン値以外のスキャン値を受けた時に、キーボードコントローラに不一致信号を出力する。 According to the keyboard input imitation method of the first aspect of the present invention, in the case of the pseudo input mode in which the input key is simulated to be input, the key switch portion of the keyboard is set in a state where the predetermined key is depressed. Next, the scan value of the key matrix scan output by the keyboard controller is compared with the scan value of the simulated key. When the scanning values of the key matrix scanning and the scan values of the pseudo-key match, converts the scanning values of the key matrix scan to the scan values of a predetermined key. When the scanning values of the key matrix scanning and the scan values of the pseudo-key does not match, it converts the scanning values of the key matrix scan, so that in addition to the scan values of a predetermined key. Key switch portion, when subjected to scanning value of a predetermined key, and outputs a coincidence signal to the keyboard controller, when receiving the scan values other than the scan values of Jo Tokoro key, and outputs a mismatch signal to the key board controller .

本発明の第2の態様のキーボードは、キーボードコントローラと、変換回路と、キースイッチ部と、を有する。キーボードコントローラは、キーマトリックススキャンのスキャン値を出力する。変換回路は、入力キーを擬似して入力を行う疑似入力モードの場合、キースイッチ部で、所定キーが押し下げられた状態に設定し、キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較する。変換回路は、キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致した時に、キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換する。変換回路は、キーマトリックススキャンのスキャン値と擬似するキーのスキャン値とが一致しない時に、キーマトリックススキャンのスキャン値を、所定キーのスキャン値以外になるように変換する。キースイッチ部は、所定キーのスキャン値を受けた時に、キーボードコントローラに一致信号を出力し、所定キーのスキャン値以外のスキャン値を受けた時に、キーボードコントローラに不一致信号を出力する。 A keyboard according to a second aspect of the present invention includes a keyboard controller, a conversion circuit, and a key switch unit. The keyboard controller outputs scan values of the key matrix scan. In the case of the pseudo input mode in which the conversion circuit simulates the input key and performs the input, the key switch unit sets the predetermined key pressed down, and the scan value of the key matrix scan and the scan value of the simulated key ,. Conversion circuit, when the scanning values of the key matrix scanning and the scan values of the pseudo-key match, converts the scanning values of the key matrix scan to the scan values of a predetermined key. Conversion circuit, when the scanning values of the key matrix scanning and the scan values of the pseudo-key does not match, the scan values of the key matrix scan, that converts to become non-scanning value of a predetermined key. Key switch unit, when subjected to scanning value of a predetermined key, and outputs a coincidence signal to the keyboard controller, when receiving the scan values other than the scan values of the predetermined key, and outputs a mismatch signal to the keyboard controller.

実施形態によれば、キーボードからの入力を疑似した所望の入力の自動化が実現される。   According to an embodiment, automation of a desired input simulating an input from a keyboard is realized.

図1は、パーソナルコンピュータ(パソコン)と、パソコンに入力装置として接続されたキーボードと、を有するコンピュータ装置の概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of a computer apparatus having a personal computer (PC) and a keyboard connected to the PC as an input device. 図2は、キーマトリックスを説明する図である。FIG. 2 is a diagram for explaining a key matrix. 図3は、キーボードの構成を示す図である。FIG. 3 is a diagram showing the configuration of the keyboard. 図4は、キーボードの別の構成を示す図である。FIG. 4 is a view showing another configuration of the keyboard. 図5は、キーボードのキー接点の方式例を示す図であり、(A)が機械式の接点方式を、(B)が静電容量方式を示す。FIG. 5 is a view showing a system example of key contacts of a keyboard, in which (A) shows a mechanical contact system and (B) shows a capacitance system. 図6は、図3のキーボードを使用してキー入力を擬似する場合の構成を示す図である。FIG. 6 is a diagram showing a configuration in the case of simulating key input using the keyboard of FIG. 図7は、図4のキーボードを使用してキー入力を擬似する場合の構成を示す図である。FIG. 7 is a diagram showing a configuration in the case of simulating key input using the keyboard of FIG. 図8は、第1実施形態のキーボードおよびキー入力を擬似する場合の構成を示す図である。FIG. 8 is a diagram showing a configuration in the case of simulating the keyboard and key input of the first embodiment. 図9は、キーコードストリームで、擬似するキー入力が変化した時の、キーマトリックススキャン信号のスキャン値(キースキャン値)、変換キースキャン値および一致信号の変化例を示す図、およびその変化を示すタイムチャートである。FIG. 9 is a diagram showing a change example of a scan value (key scan value) of a key matrix scan signal, a converted key scan value, and a match signal when a simulated key input changes in a key code stream, and the change It is a time chart which shows. 図10は、擬似するキー入力が、人間によるキー入力と同様に数100ms続くキーコードストリームで、擬似するキー入力が変化した時の、キースキャン値、変換キースキャン値および一致信号の変化例を示す図である。FIG. 10 shows an example of changes in key scan value, converted key scan value, and match signal when the simulated key input changes with a key code stream that lasts several hundreds of ms, similar to human key input. FIG. 図11は、制御装置に搭載するキーコードストリームのプログラムを作成する手順を示すフローチャートである。FIG. 11 is a flow chart showing a procedure for creating a key code stream program installed in the control device. 図12は、第2実施形態のキーボードおよびキー入力を擬似する場合の構成を示す図である。FIG. 12 is a diagram showing a configuration in the case of simulating the keyboard and key input of the second embodiment. 図13は、第2実施形態で、キーコードストリームで、擬似するキー入力が変化した時の、キーマトリックススキャン信号のスキャン値(キースキャン値)、変換キースキャン値および一致信号の変化例を示す図である。FIG. 13 shows a change example of the scan value (key scan value) of the key matrix scan signal, the conversion key scan value, and the coincidence signal when the simulated key input changes in the key code stream in the second embodiment. FIG. 図14は、第3実施形態のキーボードの構成を示す図である。FIG. 14 is a diagram showing the configuration of the keyboard of the third embodiment. 図15は、キーコードストリームを生成して記憶する記憶モードにおける動作を示すフローチャートである。FIG. 15 is a flowchart showing an operation in a storage mode for generating and storing a key code stream. 図16は、記憶したキーコードストリームにしたがって擬似するキー入力を実行するモードにおけるCPUの動作を示すフローチャートである。FIG. 16 is a flowchart showing an operation of the CPU in a mode for executing simulated key input in accordance with the stored key code stream.

実施形態の受信回路について説明する前に、キーボードについて説明する。
図1は、パーソナルコンピュータ(パソコン)と、パソコンに入力装置として接続されたキーボードと、を有するコンピュータ装置の概略構成を示す図である。
Before describing the receiving circuit of the embodiment, the keyboard will be described.
FIG. 1 is a diagram showing a schematic configuration of a computer apparatus having a personal computer (PC) and a keyboard connected to the PC as an input device.

図1のコンピュータ装置を端末として利用する場合には、パソコンをLAN等の通信回線を介してホストコンピュータに接続する。   When the computer apparatus of FIG. 1 is used as a terminal, a personal computer is connected to a host computer via a communication line such as a LAN.

コンピュータ装置は、パソコン10と、キーボード20と、を有する。パソコン10は、CPU11と、キーボードインターフェース(IF)部12と、を有する。実際には、パソコン10は、RAM、ROM、ディスク装置等をさらに有するが、ここでは図示を省略している。   The computer device has a personal computer 10 and a keyboard 20. The personal computer 10 has a CPU 11 and a keyboard interface (IF) unit 12. Actually, the personal computer 10 further includes a RAM, a ROM, a disk device, etc., but illustration thereof is omitted here.

キーボード20は、キーボードコントローラ21と、キースイッチ部22と、を有する。キーボードコントローラ21は、汎用のプロセッサ、ROMおよびRAM等で形成されるか、それらを含むマイクロコンピュータ等で形成される。キースイッチ部22は、複数の行ラインと複数の列ラインとで形成された二次元マトリックスと、複数の行ラインと複数の列ラインの交差部に対応して設けられた複数のキーを、を有する。ここでは、二次元マトリックスと複数のキーとで形成される部分をキーマトリックスと称する。キースイッチ部22は、キーボードコントローラ21からの要求に応じて、押し下げられているキーに関する情報を、キーボードコントローラ21に出力する。キーボードコントローラ21は、押し下げられているキーの情報をキーコードに変換し、パソコン10のキーボードIF部12を介してCPU11に送る。これにより、CPU11は、入力されたキーコードのデータを取得する。   The keyboard 20 has a keyboard controller 21 and a key switch unit 22. The keyboard controller 21 is formed by a general-purpose processor, a ROM, a RAM, or the like, or a microcomputer including the same. The key switch unit 22 includes a two-dimensional matrix formed of a plurality of row lines and a plurality of column lines, and a plurality of keys provided corresponding to intersections of the plurality of row lines and the plurality of column lines. Have. Here, a portion formed by the two-dimensional matrix and the plurality of keys is referred to as a key matrix. In response to a request from the keyboard controller 21, the key switch unit 22 outputs information on the pressed key to the keyboard controller 21. The keyboard controller 21 converts information of the pressed key into a key code, and sends the key code to the CPU 11 via the keyboard IF unit 12 of the personal computer 10. Thereby, the CPU 11 acquires data of the input key code.

キーボードIF部12とキーボードコントローラ21の間のインターフェースは、RS232−C、USB、UDP等に準拠した方式やPS/2方式などが知られており、実施形態に記載するキーボードは、いずれの方式でもよい。   The interface between the keyboard IF unit 12 and the keyboard controller 21 is known as a method based on RS232-C, USB, UDP, etc., PS / 2 method, etc. The keyboard described in the embodiment may be any method. Good.

図2は、キーマトリックスを説明する図である。
キーマトリックスは、複数の行ライン(ここでは5行)S0−S4と複数の列ライン(ここでは5列)K0−K4とで形成された二次元マトリックスを有し、複数の交差部にキーが配置される。したがって、ここでは、25個のキーが存在する。行ラインの位置をX座標(0から4の整数)で列ラインの位置をY座標(0から4の整数)で表す。XYのアドレスにより、キーを特定できる。
FIG. 2 is a diagram for explaining a key matrix.
The key matrix has a two-dimensional matrix formed by a plurality of row lines (here, 5 rows) S0-S4 and a plurality of column lines (here, 5 columns) K0-K4, and keys are provided at a plurality of intersections. Be placed. Thus, here there are 25 keys. The position of the row line is represented by the X coordinate (an integer of 0 to 4), and the position of the column line is represented by the Y coordinate (an integer of 0 to 4). The key can be identified by the XY address.

図2において、交点Cのキーが押されて、行ラインS2と列ラインK2が接続した状態で、行ラインS0−S4に順に電圧パルスを印加すると、交点Cの行ラインS2に電圧パルスが印加される時、交点Cの列ラインK2に電圧パルスが出現する。一般に、行ラインS0−S4に順に電圧パルスを印加することをスキャンと称する。他の行ラインS0、S1、S3およびS4に電圧パルスを印加されても、列ラインK0−K4に電圧パルスが出現することはなく、行ラインS2電圧パルスを印加されても、列ラインK0、K1、K3およびK4に電圧パルスが出現することはない。したがって、列ラインK0−K4の何れかに電圧パルスが出現した時に、行ラインS0−S4のどれに電圧パルスが印加されたかが判明すれば、25個のキーのいずれが押し下げられたか判明する。なお、いずれのキーも押し下げられていない場合には、列ラインK0−K4に電圧パルスが出現することはない。   In FIG. 2, when the key of the intersection point C is pressed and the row line S2 and the column line K2 are connected, voltage pulses are applied to the row lines S0 to S4 in order, and a voltage pulse is applied to the row line S2 of the intersection point C Voltage pulses appear on the column line K2 at the intersection point C. In general, sequentially applying voltage pulses to the row lines S0 to S4 is referred to as a scan. Even if a voltage pulse is applied to the other row lines S0, S1, S3 and S4, no voltage pulse appears on the column lines K0 to K4, and even if a voltage pulse is applied to the row line S2, the column line K0, No voltage pulse appears at K1, K3 and K4. Therefore, when it is determined which of the row lines S0-S4 is applied when a voltage pulse appears in any of the column lines K0-K4, it is known which of the 25 keys is depressed. It should be noted that no voltage pulse will appear on the column lines K0-K4 if none of the keys are depressed.

実用されるキーボードでは、複数キーの同時押しを検出することも行われる。複数キーが同時に押された場合には、1回のスキャンで、複数キーが押し下げられていることを検出することになる。また、スキャンは常時行われる場合もあるが、消費電力低減のため、いずれのキーが押し下げられたことを検出する回路を設け、その検出信号に応じてスキャンを開始することが行われる。また、キーボードの1回のスキャンに要する時間は、人間が実際に行う入力動作より高速であり、1秒当たり多数回のスキャンが行われる。そのため、キーボード操作で誤ってキーに触れた場合にもキー入力が行われたと判定する誤判定を防止するため、連続した複数回のスキャンで同じキーが押し下げられていることを検出した時にキー入力と判定する処理などが行われる。これらの技術は一般に行われており、実施形態においてもこれらの技術を採用することが可能であるが、説明は省略するものとする。   In a practical keyboard, detection of simultaneous pressing of a plurality of keys is also performed. If multiple keys are pressed at the same time, one scan will detect that the multiple keys are pressed. Although scanning may always be performed, in order to reduce power consumption, a circuit for detecting which key is pressed is provided, and scanning is started in response to a detection signal. In addition, the time required for one scan of the keyboard is faster than the input operation actually performed by human beings, and many scans are performed per second. Therefore, when it is detected that the same key is pressed in a plurality of consecutive scans, in order to prevent an erroneous determination that the key input is performed even when the key is accidentally touched by the keyboard operation, the key input Processing etc. which are determined are performed. These techniques are generally performed, and it is possible to adopt these techniques also in the embodiment, but the description will be omitted.

次に、キースイッチ部の構成およびキーボードコントローラからのキーマトリックススキャン信号について説明する。
図3は、キーボードの構成を示す図である。
Next, the configuration of the key switch unit and the key matrix scan signal from the keyboard controller will be described.
FIG. 3 is a diagram showing the configuration of the keyboard.

図1で説明したように、キーボード20は、キーボードコントローラ21と、キースイッチ部22と、を有する。図3に示すように、キーボードコントローラ21は、キーコードエンコーダ23と、Xキースキャン信号生成部24と、を有する。前述のように、キーボードコントローラ21は、ROM/RAM等を有するが、ここでは図を省略している。   As described in FIG. 1, the keyboard 20 includes the keyboard controller 21 and the key switch unit 22. As shown in FIG. 3, the keyboard controller 21 has a key code encoder 23 and an X key scan signal generation unit 24. As mentioned above, although the keyboard controller 21 has ROM / RAM etc., illustration is abbreviate | omitted here.

キースイッチ部22は、Xデコーダ+Xドライバ25と、キーマトリックス26と、押下位置検出回路27と、エンコーダ28と、を有する。前述のように、キーマトリックス26は、複数の行ライン(X座標)と複数の列ライン(Y座標)からなる二次元マトリックスと、複数の行ラインと複数の列ラインの交差部に対応して配置された複数のキーと、を有する。   The key switch unit 22 includes an X decoder + X driver 25, a key matrix 26, a pressed position detection circuit 27, and an encoder 28. As described above, the key matrix 26 corresponds to a two-dimensional matrix consisting of a plurality of row lines (X coordinates) and a plurality of column lines (Y coordinates), and an intersection of a plurality of row lines and a plurality of column lines. And a plurality of arranged keys.

Xキースキャン信号生成部24は、スキャン用の電圧信号を印加するキーマトリックス26の行番(X座標)を示すキーマトリックススキャン信号のスキャン値を順次生成し、キーコードエンコーダ23およびキースイッチ部22に出力する。Xデコーダ+Xドライバ25は、キーマトリックススキャン信号のスキャン値をデコードして、スキャン値で指示された行番の行ラインにスキャン用の電圧信号を印加する。したがって、複数の行ラインに、スキャン用の電圧信号が順次印加されることになる。押下位置検出回路27は、キーマトリックス26の複数の列ラインの電圧変化を閾値と比較することにより検出する。言い換えれば、押下位置検出回路27は、押し下げられたキーの行ラインにスキャン用の電圧信号が印加され、キーマトリックス26の複数の列ラインのうち押し下げられたキーの列ラインに出現する電圧変化を検出する。エンコーダ28は、押下位置検出回路27の出力する信号をエンコードし、複数の列ラインのうち押し下げられたキーの列ライン、すなわちY座標を示すデータ信号生成し、キーボードコントローラ21のキーコードエンコーダ23に出力する。キーコードエンコーダ23は、Y座標を示すデータ信号を受信した時のX座標を示すキーマトリックススキャン信号のスキャン値およびY座標を示すデータから、キーマトリックス26で押し下げられたキーのキーコードを生成し、パソコンに出力する。   The X key scan signal generation unit 24 sequentially generates scan values of the key matrix scan signal indicating the row number (X coordinate) of the key matrix 26 to which the voltage signal for scan is applied, and the key code encoder 23 and the key switch unit 22 Output to The X decoder + X driver 25 decodes the scan value of the key matrix scan signal and applies a voltage signal for scan to the row line of the row number designated by the scan value. Therefore, scanning voltage signals are sequentially applied to the plurality of row lines. The pressed position detection circuit 27 detects a voltage change of a plurality of column lines of the key matrix 26 by comparing it with a threshold. In other words, the pressed position detection circuit 27 applies a voltage signal for scanning to the row line of the depressed key, and causes a voltage change appearing in the depressed key row of the plurality of column lines of the key matrix 26. To detect. The encoder 28 encodes the signal output from the pressed position detection circuit 27 and generates a data signal indicating the depressed column line of the plural column lines, that is, the Y coordinate, to the key code encoder 23 of the keyboard controller 21. Output. The key code encoder 23 generates a key code of the key depressed in the key matrix 26 from the scan value of the key matrix scan signal indicating the X coordinate when the data signal indicating the Y coordinate is received and the data indicating the Y coordinate. , Output to a PC.

図4は、キーボードの別の構成を示す図である。
図4のキーボードは、キーボードコントローラが、X座標を示すキーマトリックススキャン信号のスキャン値と共に、Y座標を示すキーマトリックススキャン信号のスキャン値をキースイッチ部に出力することが、図3のキーボードと異なる。キースイッチ部は、キーマトリックススキャン信号のX座標およびY座標のスキャン値が、押し下げたキーのX座標およびY座標と一致する時に、一致信号を出力し、それ以外の時には不一致信号を出力する。
FIG. 4 is a view showing another configuration of the keyboard.
The keyboard of FIG. 4 is different from the keyboard of FIG. 3 in that the keyboard controller outputs the scan value of the key matrix scan signal indicating Y coordinate to the key switch portion together with the scan value of the key matrix scan signal indicating X coordinate. . The key switch outputs a coincidence signal when the scan values of the X and Y coordinates of the key matrix scan signal coincide with the X and Y coordinates of the depressed key, and outputs a noncoincidence signal otherwise.

具体的には、キーボードコントローラ31は、キーコードエンコーダ33と、Xキースキャン信号生成部34と、Yキースキャン信号生成部35と、を有する。キースイッチ部32は、Xデコーダ+Xドライバ36と、キーマトリックス37と、押下位置検出回路38と、エンコーダ39と、一致検出回路40と、を有する。Xキースキャン信号生成部34、Xデコーダ+Xドライバ36、キーマトリックス37、押下位置検出回路38およびエンコード39は、図3の対応する部分と同じである。Yキースキャン信号生成部35は、Xキースキャン信号生成部34におけるX座標を示すキーマトリックススキャン信号のスキャン値の生成に同期して、Y座標を示すキーマトリックススキャン信号のスキャン値を生成する。具体的には、Yキースキャン信号生成部35は、Xキースキャン信号生成部34がX座標を示すキーマトリックススキャン信号のスキャン値を1回生成する間に、列ラインの列数に対応する回数だけY座標のスキャン値を生成する。   Specifically, the keyboard controller 31 includes a key code encoder 33, an X key scan signal generation unit 34, and a Y key scan signal generation unit 35. The key switch unit 32 includes an X decoder + X driver 36, a key matrix 37, a pressed position detection circuit 38, an encoder 39, and a coincidence detection circuit 40. The X key scan signal generation unit 34, the X decoder + X driver 36, the key matrix 37, the pressed position detection circuit 38 and the encode 39 are the same as the corresponding parts in FIG. The Y key scan signal generation unit 35 generates a scan value of the key matrix scan signal indicating the Y coordinate in synchronization with the generation of the scan value of the key matrix scan signal indicating the X coordinate in the X key scan signal generation unit 34. Specifically, the Y key scan signal generation unit 35 generates the scan value of the key matrix scan signal indicating the X coordinate once by the X key scan signal generation unit 34, the number of times corresponding to the number of columns of the column line Only generate scan values for the Y coordinate.

一致検出回路40は、エンコーダ39の出力が、Y座標を示すキーマトリックススキャン信号のスキャン値と一致するか検出し、一致する時には一致信号を出力し、一致しない時には不一致信号を出力する。したがって、1つのキーが押し下げられた場合に、一致信号が出力されるのは、1回のスキャンで、Y座標を示すキーマトリックススキャン信号のスキャン値が出力される1期間のみである。   The coincidence detection circuit 40 detects whether the output of the encoder 39 coincides with the scan value of the key matrix scan signal indicating the Y coordinate, and outputs a coincidence signal when they coincide, and outputs a noncoincidence signal when they do not coincide. Therefore, when one key is depressed, the coincidence signal is output only in one period in which the scan value of the key matrix scan signal indicating the Y coordinate is output in one scan.

キーコードエンコーダ33は、一致信号を受信した時のX座標を示すキーマトリックススキャン信号のスキャン値およびY座標を示すキーマトリックススキャン信号のスキャン値から、キーマトリックス26で押し下げられたキーのキーコードを生成する。   The key code encoder 33 uses the key code of the key depressed by the key matrix 26 from the scan value of the key matrix scan signal indicating the X coordinate when receiving the coincidence signal and the scan value of the key matrix scan signal indicating the Y coordinate. Generate

図4のキーボードは、後述する静電容量方式のキーボードに多く使われ、銀行端末等に広く使われている。   The keyboard shown in FIG. 4 is often used for a capacitive keyboard to be described later, and is widely used for bank terminals and the like.

図5は、キーボードのキー接点の方式例を示す図であり、(A)が機械式の接点方式を、(B)が静電容量方式を示す。   FIG. 5 is a view showing a system example of key contacts of a keyboard, in which (A) shows a mechanical contact system and (B) shows a capacitance system.

図5の(A)の機械式の接点方式では、行ラインS0,S1と列ラインK0,K1の交差部に、行ラインと列ラインを接続するスイッチSW00−SW11を設け、対応するキーの操作によりスイッチがオン・オフする。具体的には、キーを押し下げることにより、スイッチが接続状態になり、行ラインの電圧信号が列ラインに出現する。   In the mechanical contact system of FIG. 5A, switches SW00-SW11 for connecting row lines and column lines are provided at the intersections of row lines S0, S1 and column lines K0, K1 to operate corresponding keys. Switch turns on / off. Specifically, depressing the key brings the switch into a connected state, and the voltage signal of the row line appears on the column line.

図5の(B)の静電容量方式では、行ラインS0,S1と列ラインK0,K1の交差部に、行ラインと列ラインに接続される容量C00−C11を設け、対応するキーの操作により容量の容量値が変化する。これに応じて、行ラインに電圧信号を印加した時の列ラインの電圧信号が変化する。容量値の変化は、キーボードの構成に応じて変化するため、押下位置検出回路38における閾値の設定等は、キーボードメーカーが独自に行っており、公開されることはない。   In the electrostatic capacity system of FIG. 5B, capacitors C00 to C11 connected to the row lines and the column lines are provided at the intersections of the row lines S0 and S1 and the column lines K0 and K1, and the corresponding keys are operated Changes the capacitance value of the capacitance. In response to this, the voltage signal of the column line changes when the voltage signal is applied to the row line. Since the change of the capacitance value changes according to the configuration of the keyboard, the setting of the threshold or the like in the pressed position detection circuit 38 is uniquely performed by the keyboard maker and is not disclosed.

次に、キー入力を擬似して所望の入力を自動的に行う手法について説明する。
図6は、図3のキーボードを使用してキー入力を擬似する場合の構成を示す図である。
Next, a method of simulating key input and automatically performing desired input will be described.
FIG. 6 is a diagram showing a configuration in the case of simulating key input using the keyboard of FIG.

図6に示すように、キーボード20の外部に、パソコン等の制御装置101と、キーコードアドレス変換回路102と、擬似信号発生回路103と、を設ける。擬似信号発生回路103は、一致検出回路104と、ゲート105と、を有する。キーボード20の筐体に外部端子41を設ける。キーボードコントローラ21からキースイッチ部22へのX座標を示すキーマトリックススキャン信号の信号線、およびキースイッチ部22からキーボードコントローラ21へのY座標を示す信号の信号線から外部に信号線を引き出す。信号線の外部への引き出しは、外部端子41を介して行う。引き出したX座標を示すキーマトリックススキャン信号の信号線は、一致検出回路104に接続し、Y座標を示す信号の信号線は、ゲート105に接続する。   As shown in FIG. 6, a control device 101 such as a personal computer, a key code address conversion circuit 102 and a pseudo signal generation circuit 103 are provided outside the keyboard 20. The pseudo signal generation circuit 103 has a coincidence detection circuit 104 and a gate 105. An external terminal 41 is provided in the housing of the keyboard 20. A signal line is drawn out from the signal line of the key matrix scan signal indicating the X coordinate from the keyboard controller 21 to the key switch unit 22 and the signal line of the signal indicating the Y coordinate from the key switch unit 22 to the keyboard controller 21. The signal line is pulled out to the outside through the external terminal 41. The signal line of the key matrix scan signal indicating the extracted X coordinate is connected to the coincidence detection circuit 104, and the signal line of the signal indicating the Y coordinate is connected to the gate 105.

制御装置101は、あらかじめ作成されて搭載されたプログラムにより、擬似して入力したいキー入力の列(キーコードストリーム)を、キーコードアドレス変換回路102に出力する。この時、人間によるキー操作に近い形でキー入力を擬似するように、出力するキーコードが数100ms続き、キーコードが変化する時には、いずれのキーも押されない状態に対応するオープン状態を設けることが望ましい。   The control device 101 outputs a sequence (key code stream) of key input to be simulated and desired to be input to the key code address conversion circuit 102 by a program created and loaded in advance. At this time, in order to simulate key input in the form close to human key operation, the output key code continues for several hundred ms, and when the key code changes, provide an open state corresponding to a state where no key is pressed. Is desirable.

キーコードアドレス変換回路102は、キーコードストリームの各キーコードを、キーボード20のキーマトリックスに対応するアドレス、すなわち行番(X)と列番(Y)に変換し、擬似X座標X’および擬似Y座標Y’を出力する。オープン状態については、X座標を示すキーマトリックススキャン信号がとることないスキャン値を割り当てる。   The key code address conversion circuit 102 converts each key code of the key code stream into an address corresponding to the key matrix of the keyboard 20, that is, row number (X) and column number (Y), and pseudo X coordinate X 'and pseudo. Y coordinate Y 'is output. For the open state, assign a scan value that the key matrix scan signal indicating the X coordinate does not take.

一致検出回路104は、随時変化するX座標を示すキーマトリックススキャン信号のスキャン値と、擬似X座標X’とが一致するか検出し、一致した時に、ゲート105にX座標一致信号を出力する。ゲート105への信号は、一致しない時には不一致を示す非アクティブ状態になる。キーマトリックススキャン信号のスキャン値はオープン状態を示すスキャン値に一致することは無いので、オープン状態の時には、ゲート105への信号は、非アクティブになる。   The coincidence detection circuit 104 detects whether the scan value of the key matrix scan signal indicating the X coordinate that changes as needed and the pseudo X coordinate X ′ coincide, and outputs an X coordinate coincidence signal to the gate 105 when they coincide. The signal to gate 105 is inactive when it does not match, indicating a mismatch. Since the scan value of the key matrix scan signal never matches the scan value indicating the open state, the signal to the gate 105 becomes inactive when the open state.

ゲート105は、X座標一致信号を受信すると、キーコードアドレス変換回路102から供給されている擬似Y座標Y’を示す信号を、キースイッチ部22からキーボードコントローラ21への信号線に出力する。   When receiving the X coordinate coincidence signal, the gate 105 outputs a signal indicating the pseudo Y coordinate Y ′ supplied from the key code address conversion circuit 102 from the key switch unit 22 to a signal line to the keyboard controller 21.

上記の入力擬似動作を行う場合、キースイッチ部22のキーは操作されず、いずれのキーも押し下げていない状態に維持する。したがって、この状態で、キースイッチ部22からY座標を示すデータ信号が出力されることはない。   When the above input simulation operation is performed, the keys of the key switch unit 22 are not operated, and none of the keys is kept pressed. Therefore, in this state, the key switch unit 22 does not output a data signal indicating the Y coordinate.

制御装置101からキーコードストリームの出力が開始され、それに応じて擬似X座標X’が一致検出回路104に入力する。キーボードコントローラ21は、キーマトリックススキャン信号のスキャン値を順次変化させるスキャン動作を繰り返し行う。ここで、スキャン値が擬似X座標X’と一致すると、ゲート105は、擬似Y座標Y’を示す信号を、キースイッチ部22からキーボードコントローラ21への信号線に出力する。上記のように、キースイッチ部22からY座標を示すデータ信号が出力されることはないので、この擬似Y座標Y’を示す信号は、そのままキーボードコントローラ21に入力する。   Output of the key code stream is started from the control device 101, and in response, the pseudo X coordinate X 'is input to the coincidence detection circuit 104. The keyboard controller 21 repeatedly performs a scan operation of sequentially changing the scan value of the key matrix scan signal. Here, when the scan value matches the pseudo X coordinate X ', the gate 105 outputs a signal indicating the pseudo Y coordinate Y' from the key switch unit 22 to the signal line to the keyboard controller 21. As described above, since the data signal indicating the Y coordinate is not output from the key switch unit 22, the signal indicating the pseudo Y coordinate Y ′ is input to the keyboard controller 21 as it is.

前述のように、キーボードコントローラ21は、Y座標を示すデータ信号を受信した時のX座標を示すキーマトリックススキャン信号のスキャン値およびY座標を示すデータ信号から、押し下げられているキーに対応するキーコードを生成する。   As described above, when the keyboard controller 21 receives the data signal indicating the Y coordinate, the key corresponding to the pressed key is selected from the scan value of the key matrix scan signal indicating the X coordinate and the data signal indicating the Y coordinate. Generate code

以上のようにして、キーコードストリームが擬似したいキー入力にしたがって変化すれば、キーボードコントローラ21は、擬似したいキー入力に応じた入力が行われたと判定してキーコードを生成する。この際、キーボード20のキー操作は行わず、自動的にキーコードストリームに対応するキー入力が行われる。   As described above, when the key code stream changes according to the key input to be simulated, the keyboard controller 21 determines that the input according to the key input to be simulated is performed and generates a key code. At this time, the key operation of the keyboard 20 is not performed, and the key input corresponding to the key code stream is automatically performed.

キー入力を擬似して所望の入力を自動的に行う手法は、図4のキーボードを使用して行うこともできる。
図7は、図4のキーボードを使用してキー入力を擬似する場合の構成を示す図である。
The method of simulating key input and automatically performing desired input can also be performed using the keyboard of FIG.
FIG. 7 is a diagram showing a configuration in the case of simulating key input using the keyboard of FIG.

図7に示すように、キーボードコントローラ21からキースイッチ部22へのX座標およびY座標を示すキーマトリックススキャン信号の信号線、および一致信号の信号線から外部に信号線を引き出し、擬似信号発生回路106の一致検出回路107に接続する。一致検出回路107は、X座標およびY座標を示すキーマトリックススキャン信号のスキャン値と、擬似X座標X’および擬似Y座標Y’とが一致するか検出し、一致した時にキーボードコントローラ21への一致信号線に一致信号を出力する。   As shown in FIG. 7, a signal line is drawn out from the signal line of the key matrix scan signal indicating the X coordinate and the Y coordinate from the keyboard controller 21 to the key switch portion 22 and the signal line of the coincidence signal, It is connected to the coincidence detection circuit 107 of FIG. The coincidence detection circuit 107 detects whether the scan value of the key matrix scan signal indicating the X coordinate and the Y coordinate agrees with the pseudo X coordinate X ′ and the pseudo Y coordinate Y ′, and when they coincide, matches the keyboard controller 21. Output a match signal to the signal line.

図6および図7に示した構成により、キー入力を擬似して所望の入力を自動的に行うことができる。しかし、図6および図7に示した構成では、擬似するキー入力の生成および検出に、キースイッチ部22(デコーダ+ドライバ、キーマトリックス、押下位置検出回路、エンコーダ)は一切関係しない。そのため、キーボードを介した入力を十分に擬似しているとは言えないという問題がある。以下に説明する実施形態では、キーボードのキースイッチ部における信号処理も関係する形でキー入力を擬似することにより、より動作状態に近い形でキー入力を擬似することを可能にする。   With the configuration shown in FIGS. 6 and 7, it is possible to simulate key input and automatically perform desired input. However, in the configurations shown in FIG. 6 and FIG. 7, the key switch unit 22 (decoder + driver, key matrix, pressed position detection circuit, encoder) is not involved at all in generation and detection of simulated key input. Therefore, there is a problem that it can not be said that the input through the keyboard is sufficiently simulated. In the embodiment described below, it is possible to simulate key input in a form closer to the operation state by simulating key input in a form related to signal processing in the key switch part of the keyboard.

図8は、第1実施形態のキーボードおよびキー入力を擬似する場合の構成を示す図である。
第1実施形態のキーボード20は、キーボードコントローラ31と、キースイッチ部32と、外部端子50と、一致検出変換回路51と、Xセレクタ52と、Yセレクタ53と、を有する。言い換えれば、第1実施形態のキーボード20は、図4のキーボードに、外部端子50と、一致検出変換回路51と、Xセレクタ52と、Yセレクタ53と、を追加した構成を有する。一致検出変換回路51、Xセレクタ52およびYセレクタ53は、合わせて変換回路を形成する。
FIG. 8 is a diagram showing a configuration in the case of simulating the keyboard and key input of the first embodiment.
The keyboard 20 according to the first embodiment includes a keyboard controller 31, a key switch unit 32, an external terminal 50, a match detection conversion circuit 51, an X selector 52, and a Y selector 53. In other words, the keyboard 20 of the first embodiment has a configuration in which the external terminal 50, the match detection conversion circuit 51, the X selector 52, and the Y selector 53 are added to the keyboard of FIG. The coincidence detection conversion circuit 51, the X selector 52, and the Y selector 53 together form a conversion circuit.

一致検出変換回路51は、キー入力を擬似する擬似入力モード信号がアクティブの時に動作し、通常時は動作を停止する。一致検出変換回路51は、キーボードコントローラ31の出力するX座標およびY座標を示すキーマトリックススキャン信号のスキャン値と、外部から入力される擬似X座標X’および擬似Y座標Y’と、を受ける。一致検出変換回路51は、キーマトリックススキャン信号のX座標およびY座標のスキャン値と、外部からの擬似X座標X’および擬似Y座標Y’とが一致するか検出する。一致検出変換回路51は、一致した時に、X座標およびY座標のスキャン値を所定キーコードのスキャン値(アドレス)に変換する。所定キーは、例えばキーコード“0”であり、“0”のキーのアドレスに変換する。以下、所定キーがキーコード“0”であるとして説明する。なお、擬似するキー入力が所定キーのキーコードの場合は、実質的には変換は行われないことになる。   The coincidence detection conversion circuit 51 operates when a pseudo input mode signal simulating a key input is active, and stops its operation at normal times. The coincidence detection conversion circuit 51 receives the scan value of the key matrix scan signal indicating the X coordinate and the Y coordinate output from the keyboard controller 31, and the pseudo X coordinate X 'and the pseudo Y coordinate Y' input from the outside. The coincidence detection conversion circuit 51 detects whether the scan values of the X coordinate and the Y coordinate of the key matrix scan signal coincide with the pseudo X coordinate X 'and the pseudo Y coordinate Y' from the outside. When the coincidence is detected, the coincidence detection conversion circuit 51 converts the scan values of the X and Y coordinates into scan values (addresses) of a predetermined key code. The predetermined key is, for example, the key code "0", and is converted to the address of the key "0". In the following, it is assumed that the predetermined key is the key code "0". When the simulated key input is a key code of a predetermined key, conversion is not substantially performed.

一致検出変換回路51は、一致しない時には、X座標およびY座標のスキャン値を維持するが、所定キーのX座標およびY座標のスキャン値の場合は、所定キー以外のキーの座標のスキャン値に変換する。なお、一致しない時には、X座標およびY座標のスキャン値を維持せず、所定キー以外の任意のキーの座標のスキャン値に変換してもよい。ここでは、一致しない時には、維持する場合を含めて所定キー以外に変換すると称し、一致検出変換回路51の出力するX座標およびY座標のスキャン値を変換X座標および変換Y座標と称する。   The match detection conversion circuit 51 maintains the scan values of the X coordinate and the Y coordinate when they do not match, but in the case of the scan values of the X coordinate and the Y coordinate of the predetermined key, the scan values of the coordinates of keys other than the predetermined key Convert. When they do not match, the scan values of the X and Y coordinates may not be maintained, and may be converted into scan values of coordinates of any key other than the predetermined key. Here, when they do not match, it is referred to as converting to other than the predetermined key including the case of maintaining, and the scan values of the X coordinate and the Y coordinate output from the matching detection conversion circuit 51 are referred to as conversion X coordinate and conversion Y coordinate.

Xセレクタ52およびYセレクタ53は、通常時には、キーボードコントローラ31の出力するX座標およびY座標を示すキーマトリックススキャン信号のスキャン値を選択してキースイッチ部32に出力する。これにより、第1実施形態のキーボードは、通常時には、図4のキーボードと同じ動作を行う。   The X selector 52 and the Y selector 53 normally select the scan value of the key matrix scan signal indicating the X coordinate and the Y coordinate output from the keyboard controller 31 and output the selected scan value to the key switch unit 32. Thus, the keyboard of the first embodiment normally performs the same operation as the keyboard of FIG.

Xセレクタ52およびYセレクタ53は、キー入力を擬似する時には、一致検出変換回路51の出力する変換X座標および変換Y座標のスキャン値を選択してキースイッチ部32に出力する。Xセレクタ52およびYセレクタ53は、外部端子50を介して入力される擬似入力モード信号がアクティブの時には、キー入力を擬似するように動作し、擬似入力モード信号が非アクティブの時には、通常時の動作を行う。   When simulating key input, the X selector 52 and the Y selector 53 select scan values of the transformed X coordinate and the transformed Y coordinate output from the coincidence detection transformation circuit 51 and output the selected scan value to the key switch unit 32. X selector 52 and Y selector 53 operate to simulate key input when the pseudo input mode signal input through external terminal 50 is active, and when the pseudo input mode signal is inactive, the normal operation is performed. Do the action.

一致検出変換回路51、Xセレクタ52およびYセレクタ53は、一体の回路として形成してもよい。   The coincidence detection conversion circuit 51, the X selector 52, and the Y selector 53 may be formed as an integrated circuit.

第1実施形態のキーボード20を使用してキー入力を擬似する場合、図8に示すように、キーボード20の外部に、パソコン等の制御装置101と、キーコードアドレス変換回路102と、を設ける。   When simulating key input using the keyboard 20 of the first embodiment, as shown in FIG. 8, a control device 101 such as a personal computer and a key code address conversion circuit 102 are provided outside the keyboard 20.

制御装置101は、あらかじめ作成されて搭載されたプログラムにより、擬似して入力したいキー入力の列(キーコードストリーム)を、キーコードアドレス変換回路102に出力する。前述のように、出力するキーコードは数100ms続き、キーコードが変化する時には、いずれのキーも押されない状態に対応するオープン状態を設ける。   The control device 101 outputs a sequence (key code stream) of key input to be simulated and desired to be input to the key code address conversion circuit 102 by a program created and loaded in advance. As described above, the key code to be output lasts for several hundreds of ms, and when the key code changes, an open state corresponding to a state in which no key is pressed is provided.

キーコードアドレス変換回路102は、キーコードストリームの各キーコードを、キーボード20のキーマトリックスに対応するアドレス、すなわち行番(X)と列番(Y)に変換し、擬似X座標X’および擬似Y座標Y’を出力する。オープン状態については、X座標を示すキーマトリックススキャン信号がとることないスキャン値を割り当てる。さらに、キーコードアドレス変換回路102は、アクティブである擬似入力モード信号を出力する。   The key code address conversion circuit 102 converts each key code of the key code stream into an address corresponding to the key matrix of the keyboard 20, that is, row number (X) and column number (Y), and pseudo X coordinate X 'and pseudo. Y coordinate Y 'is output. For the open state, assign a scan value that the key matrix scan signal indicating the X coordinate does not take. Furthermore, the key code address conversion circuit 102 outputs a pseudo input mode signal that is active.

キーコードアドレス変換回路102の出力する擬似X座標X’および擬似Y座標Y’は、外部端子50を介して、一致検出回路51に送られる。また、キーコードアドレス変換回路102の出力する擬似入力モード信号は、外部端子50を介して、一致検出回路51、Xセレクタ52およびYセレクタ53に送られる。   The pseudo X coordinate X ′ and the pseudo Y coordinate Y ′ output from the key code address conversion circuit 102 are sent to the coincidence detection circuit 51 via the external terminal 50. The pseudo input mode signal output from the key code address conversion circuit 102 is sent to the match detection circuit 51, the X selector 52, and the Y selector 53 via the external terminal 50.

通常動作時には、制御装置101およびキーコードアドレス変換回路102は取り外されるため、一致検出変換回路51、Xセレクタ52およびYセレクタ53に入力する擬似入力モード信号は非アクティブとなる。これにより、一致検出変換回路51は動作を停止し、Xセレクタ52およびYセレクタ53は、キーボードコントローラ31の出力するX座標およびY座標を示すキーマトリックススキャン信号のスキャン値を選択する。これにより、第1実施形態のキーボードは、通常時には、図4のキーボードと同じ動作を行う。   In the normal operation, since the control device 101 and the key code address conversion circuit 102 are removed, the pseudo input mode signal inputted to the coincidence detection conversion circuit 51, the X selector 52 and the Y selector 53 becomes inactive. Thereby, the coincidence detection conversion circuit 51 stops its operation, and the X selector 52 and the Y selector 53 select the scan value of the key matrix scan signal indicating the X coordinate and the Y coordinate output from the keyboard controller 31. Thus, the keyboard of the first embodiment normally performs the same operation as the keyboard of FIG.

入力キーを擬似して入力を行う場合には、制御装置101およびキーコードアドレス変換回路102を外部端子50に接続する。これにより、一致検出変換回路51、Xセレクタ52およびYセレクタ53に入力する擬似入力モード信号はアクティブとなり、一致検出変換回路51は動作状態になり、Xセレクタ52およびYセレクタ53は、擬似X座標X’および擬似Y座標Y’を選択する。   When the input key is simulated and input is performed, the control device 101 and the key code address conversion circuit 102 are connected to the external terminal 50. As a result, the pseudo input mode signal input to match detection conversion circuit 51, X selector 52 and Y selector 53 becomes active, match detection conversion circuit 51 becomes active, and X selector 52 and Y selector 53 have pseudo X coordinates. Select X 'and pseudo Y coordinate Y'.

次に、キーボード20のキースイッチ部32における所定キー(ここではキーコード“0”)を押し下げた状態にする。そして、制御装置101からキーコードストリームの出力を開始し、キーコードアドレス変換回路102は、キーコードストリームに対応する擬似X座標X’および擬似Y座標Y’を出力する。   Next, a predetermined key (key code "0" in this case) in the key switch portion 32 of the keyboard 20 is pressed down. Then, the output of the key code stream is started from the control device 101, and the key code address conversion circuit 102 outputs the pseudo X coordinate X 'and the pseudo Y coordinate Y' corresponding to the key code stream.

キーボードコントローラ31は、キーマトリックススキャン信号のX座標およびY座標のスキャン値を順次変化させるスキャン動作を繰り返し行う。ここで、一致検出変換回路51は、スキャン値が擬似X座標X’および擬似Y座標Y’と一致すると、X座標およびY座標のスキャン値を所定キー(ここではキーコード“0”)の座標のスキャン値に変換する。なお、スキャン値が擬似X座標X’および擬似Y座標Y’と一致しない時には、一致検出変換回路51は、所定キー以外の座標の変換X座標および変換Y座標を出力する。   The keyboard controller 31 repeatedly performs a scan operation of sequentially changing scan values of the X coordinate and the Y coordinate of the key matrix scan signal. Here, when the scan value matches the pseudo X coordinate X 'and the pseudo Y coordinate Y', the coincidence detection conversion circuit 51 coordinates the scan value of the X coordinate and Y coordinate with the predetermined key (here, the key code "0"). Convert to a scan value of When the scan value does not match the pseudo X coordinate X 'and the pseudo Y coordinate Y', the coincidence detection conversion circuit 51 outputs the converted X coordinate and the converted Y coordinate of coordinates other than the predetermined key.

キースイッチ部32は、所定キーの座標のスキャン値に変換された変換X座標および変換Y座標を受けると、変換X座標をデコードして所定キーの行ラインに電圧信号を印加する。所定キーが押し下げられているため、所定キーの列ラインに電圧信号が出現し、押下検出回路が所定キーの列ラインでの電圧信号を検出し、エンコーダが所定キーの列ラインのY座標を出力する。このY座標は変換Y座標と一致するので、キースイッチ部32は、一致信号をキーボードコントローラ31に出力する。   When the key switch unit 32 receives the converted X coordinate and the converted Y coordinate converted into the scan value of the coordinate of the predetermined key, the key switch unit 32 decodes the converted X coordinate and applies a voltage signal to the row line of the predetermined key. Since the predetermined key is depressed, a voltage signal appears on the column line of the predetermined key, the depression detection circuit detects the voltage signal at the column line of the predetermined key, and the encoder outputs the Y coordinate of the column line of the predetermined key Do. Since this Y coordinate coincides with the transformed Y coordinate, the key switch unit 32 outputs a coincidence signal to the keyboard controller 31.

一致信号を受信した時にキーボードコントローラ31が出力しているX座標およびY座標は、擬似X座標X’および擬似Y座標Y’と一致した値である。したがって、キーボードコントローラ31は、擬似X座標X’および擬似Y座標Y’のキーが押し下げられているとして、対応するキーコードを生成する。   The X and Y coordinates outputted by the keyboard controller 31 when the coincidence signal is received are values coincident with the pseudo X coordinate X 'and the pseudo Y coordinate Y'. Therefore, the keyboard controller 31 generates a corresponding key code, assuming that the keys of the pseudo X coordinate X 'and the pseudo Y coordinate Y' are pressed.

キーコードストリームの変化にしたがって入力したいキー入力(擬似するキー入力)が変化すると、それに応じて擬似X座標X’および擬似Y座標Y’が変化し、所望のキーコードストリームが入力されることになる。   When a desired key input (pseudo key input) to be input is changed according to the change of the key code stream, the pseudo X coordinate X 'and the pseudo Y coordinate Y' change accordingly, and the desired key code stream is input. Become.

図9は、キーコードストリームで、擬似するキー入力が変化した時の、キーマトリックススキャン信号のスキャン値(キースキャン値)、変換キースキャン値および一致信号の変化例を示す図、およびその変化を示すタイムチャートである。   FIG. 9 is a diagram showing a change example of a scan value (key scan value) of a key matrix scan signal, a converted key scan value, and a match signal when a simulated key input changes in a key code stream, and the change It is a time chart which shows.

図9は、行ラインが5本で、列ラインが2本で、X座標は0から4まで、Y座標は0から1まで変化するものとし、X座標およびY座標は、(0,0)、(0,1)、(1,0)、…、(4,1)、(0,0)…の変化を繰り返すものとする。したがって、キーマトリックスは、10アドレスを有し、1スキャン中に(X,Y)は、10回変化する。ここでは、10アドレスが「0」から「9」に対応する、言い換えれば10キーであるとする。擬似するキー入力は、「2」、「5」、「8」と変化し、「2」が1スキャンの3/10の期間、「5」が1スキャンの3/10の期間、「8」が1スキャンの4/10の期間維持される。   In FIG. 9, it is assumed that there are five row lines, two column lines, the X coordinate is from 0 to 4, the Y coordinate is from 0 to 1, and the X and Y coordinates are (0, 0) , (0, 1), (1, 0),..., (4, 1), (0, 0). Therefore, the key matrix has 10 addresses, and (X, Y) changes 10 times during one scan. Here, 10 addresses correspond to “0” to “9”, in other words, 10 keys. The simulated key input changes to “2”, “5”, “8”, “2” is 3/10 period of 1 scan, “5” is 3/10 period of 1 scan, “8” Is maintained for a period of 4/10 of one scan.

図9の(A)に示すように、1スキャンの1番目の変化でキースキャン値(X,Y)が(0,0)になると、これは所定キー「0」の座標と一致するので、キースキャン値(X,Y)を(0,0)からそれ以外のキーの座標に変換する。ここでは、(0,0)から(3,0)に変換するものとする。なお、所定キーの座標以外の座標であればどの座標でもよく、例えば、Y座標を0から1に変換しても、X座標とY座標の両方を変換してもよい。   As shown in FIG. 9A, when the key scan value (X, Y) becomes (0, 0) at the first change of one scan, this coincides with the coordinates of the predetermined key “0”. Convert key scan value (X, Y) from (0, 0) to coordinates of other keys. Here, it is assumed that (0, 0) is converted to (3, 0). Note that any coordinate may be used as long as it is a coordinate other than the coordinate of the predetermined key. For example, the Y coordinate may be converted from 0 to 1, or both the X coordinate and the Y coordinate may be converted.

2番目の変化で、キースキャン値(X,Y)が(0,1)になった場合、そのままキースキャン値(X,Y)を(0,1)に維持する。なお、この場合も、所定キーの座標以外の座標であればどの座標に変換してもよい。   If the key scan value (X, Y) becomes (0, 1) in the second change, the key scan value (X, Y) is maintained at (0, 1) as it is. Also in this case, any coordinate other than the coordinates of the predetermined key may be converted to any coordinate.

3番目の変化で、キースキャン値(X,Y)が(1,0)になった場合、これは擬似する「2」のキースキャン値(座標)と一致するので、キースキャン値(X,Y)が所定キーの座標(0,0)になるように変換する。これに応じて、キースイッチ部32は一致信号を出力する。ここでは、一致信号は発生する場合を丸印で、不一致信号の場合を×印で表す。   In the third change, when the key scan value (X, Y) becomes (1, 0), this matches the simulated key scan value (coordinates) of “2”, so the key scan value (X, Y) Convert Y so that it becomes coordinates (0, 0) of a predetermined key. In response to this, the key switch unit 32 outputs a coincidence signal. Here, a match signal is indicated by a circle when it occurs, and a cross when it is a mismatch signal.

4番目の変化で、擬似するキー入力が「5」に変化し、キースキャン値(X,Y)が(1,1)になった場合、そのままキースキャン値(X,Y)を(1,1)に維持する。さらに次の5番目の変化で、キースキャン値(X,Y)が(2,0)になった場合、そのままキースキャン値(X,Y)を(2,0)に維持する。   In the fourth change, when the simulated key input changes to "5" and the key scan value (X, Y) becomes (1, 1), the key scan value (X, Y) is simply (1, 1). Maintain in 1). When the key scan value (X, Y) becomes (2, 0) in the next fifth change, the key scan value (X, Y) is maintained at (2, 0) as it is.

6番目の変化で、キースキャン値(X,Y)が(2,1)になった場合、これは擬似する「5」のキースキャン値(座標)と一致するので、キースキャン値(X,Y)が所定キーの座標(0,0)になるように変換する。これに応じて、キースイッチ部32は一致信号を出力する。   When the key scan value (X, Y) becomes (2, 1) in the sixth change, this matches the simulated key scan value (coordinates) of “5”, so the key scan value (X, Y) Convert Y so that it becomes coordinates (0, 0) of a predetermined key. In response to this, the key switch unit 32 outputs a coincidence signal.

7番目の変化で、擬似するキー入力が「8」に変化する。7番目と8番目の変化で、キースキャン値(X,Y)が(3,0)(3,1)になった場合、そのままキースキャン値(X,Y)を維持する。   At the seventh change, the simulated key input changes to "8". When the key scan value (X, Y) becomes (3, 0) (3, 1) in the seventh and eighth changes, the key scan value (X, Y) is maintained as it is.

9番目の変化で、キースキャン値(X,Y)が(4,0)になった場合、これは擬似する「8」のキースキャン値(座標)と一致するので、キースキャン値(X,Y)が所定キーの座標(0,0)になるように変換する。これに応じて、キースイッチ部32は一致信号を出力する。   If the key scan value (X, Y) becomes (4, 0) in the ninth change, this matches the simulated key scan value (coordinates) of "8", so the key scan value (X, Y) Convert Y so that it becomes coordinates (0, 0) of a predetermined key. In response to this, the key switch unit 32 outputs a coincidence signal.

10番目の変化で、キースキャン値(X,Y)が(4,1)になった場合、そのままキースキャン値(X,Y)を維持する。   If the key scan value (X, Y) becomes (4, 1) in the tenth change, the key scan value (X, Y) is maintained as it is.

図9の(B)のタイムチャートは、上記の変化例の場合の各信号の変化を示す。   The time chart of (B) of FIG. 9 shows the change of each signal in the case of the above-mentioned example of change.

図9では、擬似するキー入力が、1スキャン内に3回変化する短時間で変化する例を示した。しかし、人間によるキーボードからの入力を擬似するので、人間によるキーボードからの入力と同程度で、擬似するキー入力が変化するようにキーコードストリームを作成することが望ましい。   FIG. 9 shows an example in which the simulated key input changes in a short time of changing three times in one scan. However, since it simulates human keyboard input, it is desirable to create a key code stream so that the simulated key input changes as much as human keyboard input.

図10は、擬似するキー入力が、人間によるキー入力と同様に数100ms続くキーコードストリームで、擬似するキー入力が変化した時の、キースキャン値、変換キースキャン値および一致信号の変化例を示す図である。擬似するキー入力が長時間続く以外は、図9と同じである。   FIG. 10 shows an example of changes in key scan value, converted key scan value, and match signal when the simulated key input changes with a key code stream that lasts several hundreds of ms, similar to human key input. FIG. It is the same as FIG. 9 except that the simulated key input continues for a long time.

図10では、キー入力「2」が数100msの間入力されるので、キー入力「2」について一致信号が多数回発生する。   In FIG. 10, since the key input "2" is input for several hundred ms, a coincidence signal is generated many times for the key input "2".

図11は、制御装置101に搭載するキーコードストリームのプログラムを作成する手順を示すフローチャートである。
ステップS11で、擬似する入力キーを選択する。
ステップS12で、選択した擬似入力キーの入力時間、すなわちキーを押し下げている時間を選択する。
FIG. 11 is a flowchart showing a procedure of creating a key code stream program installed in the control device 101.
In step S11, an input key to be simulated is selected.
In step S12, the input time of the selected pseudo input key, that is, the time during which the key is depressed is selected.

ステップS13で、擬似入力キーの後にオープン状態を設けるか決定し、設ける場合にはステップS14に、設けない場合にはステップS15に進む。
ステップS14で、オープン状態の時間を選択する。
In step S13, it is determined whether an open state is to be provided after the pseudo input key. If the open state is to be provided, the process proceeds to step S14.
In step S14, an open time is selected.

ステップS15で、さらに別の入力キーの擬似を続けるかを決定し、続ける場合にはステップS11に戻り、終了する時には、ステップS16に進む。S11からS15を繰り返すことにより、一連の擬似するキーコードストリームが作成される。   In step S15, it is determined whether to continue simulating another input key, and in the case of continuing, the process returns to step S11, and in the case of ending the process, the process proceeds to step S16. A series of simulated key code streams are created by repeating S11 to S15.

ステップS16で、上記のキーコードストリームを繰り返す回数を入力する。
ステップS17で、さらに別の入力キーの擬似を続けるかを決定し、続ける場合にはステップS11に戻り、続けない場合には終了する。
制御装置101は、動作の単位時間にしたがってプログラムを実行し、擬似する入力キーの列(キーコードストリーム)を、キーコードアドレス変換回路102に出力する。
In step S16, the number of repetitions of the above key code stream is input.
In step S17, it is determined whether to continue simulating another input key, and if so, the process returns to step S11, and if not, the process ends.
The control device 101 executes a program in accordance with a unit time of operation, and outputs a simulated input key string (key code stream) to the key code address conversion circuit 102.

第1実施形態によれば、あらかじめ擬似する入力キーの列を記憶したプログラムを作成しておき、制御装置101およびキーコードアドレス変換回路102をキーボード20に接続した状態で、キーボード20で所定キーを押し下げた状態にする。その上で、制御装置101を実行すれば、所望のキー入力を自動的に行うことが可能である。しかもこの自動キー入力は、キースイッチ部22における信号処理を通して行われるので、より実際の入力動作に近い形でキー入力を擬似するという効果を奏する。   According to the first embodiment, a program storing a string of simulated input keys is created in advance, and with the control device 101 and the key code address conversion circuit 102 connected to the keyboard 20, the predetermined keys are Hold down. Then, if the control device 101 is executed, it is possible to automatically perform desired key input. Moreover, since this automatic key input is performed through signal processing in the key switch unit 22, there is an effect that the key input is simulated in a form closer to the actual input operation.

第1実施形態は、図4の構成を有するキーボードをベースにしているが、図3の構成を有するキーボードをベースにすることも可能である。次に説明する第2実施形態は、図3の構成を有するキーボードをベースにするものである。   The first embodiment is based on a keyboard having the configuration of FIG. 4, but it is also possible to base on a keyboard having the configuration of FIG. A second embodiment to be described next is based on a keyboard having the configuration of FIG.

図12は、第2実施形態のキーボードおよびキー入力を擬似する場合の構成を示す図である。
図12において、制御装置101およびキーコードアドレス変換回路102は、第1実施形態と同じものが使用される。
FIG. 12 is a diagram showing a configuration in the case of simulating the keyboard and key input of the second embodiment.
In FIG. 12, the same control device 101 and key code address conversion circuit 102 as in the first embodiment are used.

第2実施形態のキーボード20は、キーボードコントローラ21と、キースイッチ部22と、外部端子60と、X一致検出変換回路61と、Xセレクタ62と、Y変換セレクタ63と、を有する。言い換えれば、第2実施形態のキーボード20は、図3のキーボードに、外部端子60と、X一致検出変換回路61と、Xセレクタ62と、Y変換セレクタ63と、を追加した構成を有する。   The keyboard 20 according to the second embodiment includes a keyboard controller 21, a key switch unit 22, an external terminal 60, an X match detection conversion circuit 61, an X selector 62, and a Y conversion selector 63. In other words, the keyboard 20 of the second embodiment has a configuration in which the external terminal 60, the X match detection conversion circuit 61, the X selector 62, and the Y conversion selector 63 are added to the keyboard of FIG.

X一致検出変換回路61は、キー入力を擬似する擬似入力モード信号がアクティブの時に動作し、通常時は動作を停止する。X一致検出変換回路61は、キーボードコントローラ21の出力するX座標を示すキーマトリックススキャン信号のスキャン値と、外部から入力される擬似X座標X’と、を受ける。X一致検出変換回路61は、キーマトリックススキャン信号のX座標のスキャン値と、外部からの擬似X座標X’とが一致するか検出する。X一致検出変換回路61は、一致した時に、X座標のスキャン値を所定キーのキーコードのスキャン値(行ラインの行番)に変換する。所定キーは、例えばキーコード“0”であり、“0”のキーの行ラインの行番に変換する。以下、所定キーがキーコード“0”であるとして説明する。X一致検出変換回路61は、一致しない時には、X座標のスキャン値を維持するが、所定キーのX座標のスキャン値の場合は、所定キー以外のキーの行のスキャン値に変換する。なお、一致しない時には、X座標のスキャン値を維持せず、所定キー以外の任意のキーの行のスキャン値に変換してもよい。   The X match detection conversion circuit 61 operates when a pseudo input mode signal simulating a key input is active, and stops the operation at normal times. The X match detection conversion circuit 61 receives the scan value of the key matrix scan signal indicating the X coordinate output from the keyboard controller 21 and the pseudo X coordinate X 'input from the outside. The X match detection conversion circuit 61 detects whether the scan value of the X coordinate of the key matrix scan signal matches the pseudo X coordinate X 'from the outside. When a match is found, the X match detection conversion circuit 61 converts the scan value of the X coordinate into a scan value of the key code of the predetermined key (row number of the row line). The predetermined key is, for example, the key code "0", and is converted into the line number of the line of the key "0". In the following, it is assumed that the predetermined key is the key code "0". The X match detection conversion circuit 61 maintains the scan value of the X coordinate when it does not match, but in the case of the scan value of the X coordinate of the predetermined key, converts it into the scan value of the line of the key other than the predetermined key. When they do not match, the scan value of the X coordinate may not be maintained, and may be converted into a scan value of a row of any key other than the predetermined key.

Xセレクタ62は、通常時には、キーボードコントローラ21の出力するX座標を示すキーマトリックススキャン信号のスキャン値を選択してキースイッチ部22に出力する。   The X selector 62 normally selects the scan value of the key matrix scan signal indicating the X coordinate output from the keyboard controller 21 and outputs the scan value to the key switch unit 22.

Xセレクタ62は、キー入力を擬似する時には、X一致検出変換回路61の出力する変換X座標のスキャン値を選択してキースイッチ部22に出力する。Xセレクタ62は、外部端子60を介して入力される擬似入力モード信号がアクティブの時には、キー入力を擬似するように動作し、擬似入力モード信号が非アクティブの時には、通常時の動作を行う。   When simulating a key input, the X selector 62 selects the scan value of the converted X coordinate output from the X match detection conversion circuit 61 and outputs it to the key switch unit 22. The X selector 62 operates to simulate key input when the pseudo input mode signal input through the external terminal 60 is active, and performs normal operation when the pseudo input mode signal is inactive.

Y変換セレクタ63は、通常時には、キースイッチ部22の出力するY座標を示すデータ信号を選択してキーボードコントローラ21に出力する。これにより、Xセレクタ62の動作と合わせて、第2実施形態のキーボードは、通常時には、図3のキーボードと同じ動作を行う。   The Y conversion selector 63 normally selects a data signal indicating the Y coordinate output from the key switch unit 22 and outputs the selected data signal to the keyboard controller 21. Thus, in addition to the operation of the X selector 62, the keyboard of the second embodiment normally performs the same operation as the keyboard of FIG.

Y変換セレクタ63は、キー入力を擬似する時には、キースイッチ部22から所定キーのY座標のデータを受けた時に、そのY座標を、キーコードアドレス変換回路102から供給される擬似Y座標Y’に変換して出力する。   When the Y conversion selector 63 receives data of the Y coordinate of the predetermined key from the key switch unit 22 when simulating a key input, the Y coordinate is a pseudo Y coordinate Y ′ supplied from the key code address conversion circuit 102. Convert to and output.

Y変換セレクタ63から変換した擬似Y座標Y’を受信した時にキーボードコントローラ21が出力しているX座標は、擬似X座標X’と一致した値である。したがって、キーボードコントローラ21は、擬似X座標X’および擬似Y座標Y’のキーが押し下げられているとして、対応するキーコードを生成する。   When the pseudo Y coordinate Y 'converted from the Y conversion selector 63 is received, the X coordinate output from the keyboard controller 21 is a value coincident with the pseudo X coordinate X'. Therefore, the keyboard controller 21 generates a corresponding key code, assuming that the keys of the pseudo X coordinate X 'and the pseudo Y coordinate Y' are pressed.

図13は、第2実施形態で、キーコードストリームで、擬似するキー入力が変化した時の、キーマトリックススキャン信号のスキャン値(キースキャン値)、変換キースキャン値および一致信号の変化例を示す図である。   FIG. 13 shows a change example of the scan value (key scan value) of the key matrix scan signal, the conversion key scan value, and the coincidence signal when the simulated key input changes in the key code stream in the second embodiment. FIG.

図13は、行ラインが5本で、列ラインが2本で、X座標は0から4まで、Y座標は0から1までとし、X座標は0から4の変化を繰り返すものとする。押し下げられたキーがある場合には、キースイッチ部22が、そのX座標のスキャン値の時にY座標を出力する。ここでは、テンキー「0」、「1」、「2」、…「9」が、座標(0,0)、(1,0)、(2,0)、…(4,1)に対応する。   In FIG. 13, it is assumed that five row lines, two column lines, an X coordinate from 0 to 4, a Y coordinate from 0 to 1, and an X coordinate from 0 to 4 change repeatedly. If there is a depressed key, the key switch unit 22 outputs the Y coordinate at the time of the scan value of the X coordinate. Here, the ten keys "0", "1", "2", ... "9" correspond to the coordinates (0, 0), (1, 0), (2, 0), ... (4, 1). .

1スキャンの1番目の変化でキースキャン値(X)が(0)になると、これは所定キー「0」のX座標と一致するので、キースキャン値(X)を(0)以外のキーのX座標に変換する。なお、所定キーのX座標以外の座標であればどのX座標でもよい。この時、キースイッチ部22はY座標を出力しない。   When the key scan value (X) becomes (0) at the first change of one scan, this matches with the X coordinate of the predetermined key "0", so the key scan value (X) is the key other than (0) Convert to X coordinate. Any X coordinate may be used as long as it is a coordinate other than the X coordinate of the predetermined key. At this time, the key switch unit 22 does not output the Y coordinate.

2番目の変化で、キースキャン値(X)が(1)になった場合、そのままキースキャン値(X)を(1)に維持する。なお、この場合も、所定キーの座標以外の座標であればどの座標に変換してもよく、キースイッチ部22はY座標を出力しない。   When the key scan value (X) becomes (1) in the second change, the key scan value (X) is maintained as it is (1). Also in this case, the coordinates may be converted to any coordinates other than the coordinates of the predetermined key, and the key switch unit 22 does not output the Y coordinate.

3番目の変化で、キースキャン値(X)が(2)になった場合、これは擬似する「2」のキースキャン値(X座標)と一致するので、キースキャン値(X)が所定キーのX座標(0)になるように変換する。これに応じて、キースイッチ部22は所定キーのY座標(0)を出力し、Y変換セレクタ63は、Y座標(0)を擬似Y座標Y’(0)に変換してキーボードコントローラ21に出力する。キーボードコントローラ21は、その時に擬似X座標X’に一致するX座標を出力しており、擬似X座標X’および擬似Y座標Y’(2,0)のキーが押し下げられていると判定する。   In the third change, when the key scan value (X) becomes (2), this matches the simulated key scan value (X coordinate) of "2", so the key scan value (X) is a predetermined key Convert to X coordinate (0) of. In response to this, the key switch unit 22 outputs the Y coordinate (0) of the predetermined key, and the Y conversion selector 63 converts the Y coordinate (0) into a pseudo Y coordinate Y ′ (0) and outputs it to the keyboard controller 21. Output. The keyboard controller 21 then outputs an X coordinate that matches the pseudo X coordinate X ', and determines that the keys of the pseudo X coordinate X' and the pseudo Y coordinate Y '(2, 0) are pressed.

4番目の変化時に、擬似するキー入力が「5」に変化し、キースキャン値(X)が(3)になった場合、そのままキースキャン値(3)を維持する。さらに次の5番目の変化で、キースキャン値(X)が(4)になった場合、そのままキースキャン値(4)を維持する。   When the simulated key input changes to "5" and the key scan value (X) becomes (3) during the fourth change, the key scan value (3) is maintained as it is. Furthermore, in the next fifth change, when the key scan value (X) becomes (4), the key scan value (4) is maintained as it is.

6番目の変化で、キースキャン値(X)が(0)に戻った場合、これは擬似する「5」のキースキャン値(X座標)と一致するので、キースキャン値(X)が所定キーの座標(0)になるように変換する。これに応じて、キースイッチ部22は所定キーのY座標(0)を出力し、Y変換セレクタ63は、Y座標(0)を擬似Y座標Y’(0)に変換してキーボードコントローラ21に出力する。キーボードコントローラ21は、その時に擬似X座標X’に一致するX座標を出力しており、擬似X座標X’および擬似Y座標Y’(0,1)のキーが押し下げられていると判定する。   In the sixth change, when the key scan value (X) returns to (0), this matches the simulated key scan value (X coordinate) of “5”, so the key scan value (X) is a predetermined key Convert to coordinate (0) of. In response to this, the key switch unit 22 outputs the Y coordinate (0) of the predetermined key, and the Y conversion selector 63 converts the Y coordinate (0) into a pseudo Y coordinate Y ′ (0) and outputs it to the keyboard controller 21. Output. The keyboard controller 21 then outputs an X coordinate that matches the pseudo X coordinate X ', and determines that the keys of the pseudo X coordinate X' and the pseudo Y coordinate Y '(0, 1) are pressed.

7番目の変化時に、擬似するキー入力が「8」に変化する。7番目と8番目の変化で、キースキャン値(X)が(1)、(2)になった場合、そのままキースキャン値を維持する。   At the seventh change, the simulated key input changes to "8". When the key scan value (X) becomes (1) or (2) in the seventh and eighth changes, the key scan value is maintained as it is.

9番目の変化で、キースキャン値(X)が(3)になった場合、これは擬似する「8」のキースキャン値(座標)と一致するので、キースキャン値(X)が所定キーの座標(0)になるように変換する。これに応じて、キースイッチ部22は所定キーのY座標(0)を出力し、Y変換セレクタ63は、Y座標(0)を擬似Y座標Y’(1)に変換してキーボードコントローラ21に出力する。キーボードコントローラ21は、その時に擬似X座標X’に一致するX座標を出力しており、擬似X座標X’および擬似Y座標Y’(3,1)のキーが押し下げられていると判定する。   In the ninth change, when the key scan value (X) becomes (3), this matches the simulated key scan value (coordinates) of "8", so the key scan value (X) is a predetermined key Transform to coordinate (0). In response to this, the key switch unit 22 outputs the Y coordinate (0) of the predetermined key, and the Y conversion selector 63 converts the Y coordinate (0) into a pseudo Y coordinate Y ′ (1) and outputs it to the keyboard controller 21. Output. The keyboard controller 21 then outputs an X coordinate that matches the pseudo X coordinate X ', and determines that the keys of the pseudo X coordinate X' and the pseudo Y coordinate Y '(3, 1) are pressed.

制御装置101およびキーコードアドレス変換回路102を使用した動作・処理は第1実施形態と同じである。
以上の通り、第2実施形態では、外部から入力される擬似X座標X’および擬似Y座標Y’のキーが押し下げられているとした擬似キー入力が、キースイッチ部22における信号処理を通して行える。これにより、より実際の入力動作に近い形でキー入力を擬似するという効果を奏する。
The operation and processing using the control device 101 and the key code address conversion circuit 102 are the same as in the first embodiment.
As described above, in the second embodiment, the pseudo key input in which the keys of the pseudo X coordinate X ′ and the pseudo Y coordinate Y input from the outside are pressed can be performed through signal processing in the key switch unit 22. This produces an effect of simulating key input in a form closer to the actual input operation.

第1および第2実施形態では、制御装置およびキーコードアドレス変換回路を、外部端子を介してキーボードに接続した状態で、キー入力を擬似する。しかし、キーボードに外部端子を設けず、制御装置およびキーコードアドレス変換回路を準備せずにキー入力を擬似できることが望ましい。次に説明する第3実施形態では、キーボードに制御装置およびキーコードアドレス変換回路を接続せずにキー入力を擬似する。   In the first and second embodiments, key input is simulated in a state in which the control device and the key code address conversion circuit are connected to the keyboard via the external terminal. However, it is desirable that key input can be simulated without providing an external terminal on the keyboard and preparing the control device and the key code address conversion circuit. In a third embodiment to be described next, key input is simulated without connecting the control device and the key code address conversion circuit to the keyboard.

図14は、第3実施形態のキーボードの構成を示す図である。
第3実施形態のキーボードは、キーボードコントローラ31と、キースイッチ部32と、一致検出変換回路51と、セレクタ54と、を有する。キースイッチ部32および一致検出変換回路51は、図8の第1実施形態のキーボードの対応部分と同じであり、セレクタ54は、Xセレクタ52とYセレクタ53を合わせたものである。
FIG. 14 is a diagram showing the configuration of the keyboard of the third embodiment.
The keyboard of the third embodiment has a keyboard controller 31, a key switch unit 32, a match detection conversion circuit 51, and a selector 54. The key switch unit 32 and the match detection conversion circuit 51 are the same as the corresponding parts of the keyboard of the first embodiment of FIG. 8, and the selector 54 is a combination of the X selector 52 and the Y selector 53.

前述のように、キーボードコントローラは、汎用のプロセッサ、ROMおよびRAM等で形成されるか、それらを含むマイクロコンピュータ等で形成されており、RAMや書き換え可能な不揮発性メモリ等を有している。そこで、第3実施形態では、キーコードストリームを、キーボードコントローラの有するメモリに記憶する。また、キーコードストリームの生成を、キーボードのキースイッチ部を利用して行う。   As described above, the keyboard controller is formed of a general-purpose processor, ROM, RAM, etc., or is formed of a microcomputer etc. including them, and has RAM, rewritable nonvolatile memory, etc. Therefore, in the third embodiment, the key code stream is stored in the memory of the keyboard controller. In addition, the key code stream is generated using the key switch unit of the keyboard.

図14に示すように、一般的なキーボードコントローラは、キーボードコントローラ用CPU71と、RAM/フラッシュメモリ等のメモリ72と、I/Oポート73と、スキャンアドレスポート74と、バス75と、を有する。CPU71は、バス75を介して、メモリ72、I/Oポート73およびスキャンアドレスポート74にアクセスする。CPU71の動作プログラムは、フラッシュメモリに記憶されるが、フラッシュメモリが搭載されていない場合には、図示していないROMに記憶される。   As shown in FIG. 14, a general keyboard controller has a keyboard controller CPU 71, a memory 72 such as a RAM / flash memory, an I / O port 73, a scan address port 74, and a bus 75. The CPU 71 accesses the memory 72, the I / O port 73 and the scan address port 74 via the bus 75. The operation program of the CPU 71 is stored in the flash memory, but is stored in the ROM (not shown) when the flash memory is not mounted.

スキャンアドレスポート74は、I/Oポートの一部であるが、ここでは特別なポートとして別に示している。CPU71は、内部で生成したキーマトリックススキャン信号のスキャン値(X,Y座標)を、スキャンアドレスポート74に出力する。また、キースイッチ部32から出力された一致信号は、CPU71の割り込み信号端子IRQに入力する。CPU71は、メモリ72に記憶されたキーコードストリームから擬似するキー入力の情報を読み出し、擬似X座標X’および擬似Y座標Y’を生成して、I/O73に出力する。I/O73の出力には、さらに擬似入力モードを示すビットが含まれる。マイクロコンピュータ等に関する構成は、広く知られているので、これ以上の説明は省略する。   The scan address port 74 is part of the I / O port, but is separately shown here as a special port. The CPU 71 outputs the scan value (X, Y coordinates) of the key matrix scan signal generated internally to the scan address port 74. Further, the coincidence signal output from the key switch unit 32 is input to the interrupt signal terminal IRQ of the CPU 71. The CPU 71 reads pseudo key input information from the key code stream stored in the memory 72, generates a pseudo X coordinate X 'and a pseudo Y coordinate Y', and outputs the pseudo X coordinate X 'and the pseudo Y coordinate Y' to the I / O 73. The output of I / O 73 further includes a bit indicating a pseudo input mode. The configuration relating to the microcomputer and the like is widely known, and thus further description is omitted.

第3実施形態では、キースイッチ部からのキー入力にしたがってキーコードストリームを生成し、メモリ72に記憶する記憶モードと、記憶したキーコードストリームを出力する実行モードを行うためのプログラムを、動作プログラムに搭載する。   In the third embodiment, a program for performing a storage mode for generating a key code stream according to a key input from the key switch unit and storing the key code stream in the memory 72 and an execution mode for outputting the stored key code stream To be mounted.

図15は、キーコードストリームを生成して記憶する記憶モードにおける動作を示すフローチャートである。
ステップS21では、キーコードストリーム記憶モードが指示されたか判定し、指示されるまで待機する。記憶モードは、ファンクションキー、キーの組み合わせで指示される。記憶モードを指示するファンクションキー、キーの組み合わせは、通常動作で使用するファンクションキー、キーの組み合わせ以外であるように決められる。キーコードストリーム記憶モードが指示されると、ステップS22に進む。
FIG. 15 is a flowchart showing an operation in a storage mode for generating and storing a key code stream.
In step S21, it is determined whether or not a key code stream storage mode has been instructed, and the process waits for an instruction. The storage mode is indicated by a combination of function keys and keys. The combination of function keys and keys indicating the storage mode is determined to be other than the combination of function keys and keys used in the normal operation. When the key code stream storage mode is instructed, the process proceeds to step S22.

ステップS22で、キースイッチ部32におけるキー入力により、図11に示した操作にしたがって、キーコードストリームを生成し、メモリ72に記憶する。なお、プログラムに、実際のキー入力動作を計時する機能を設け、実際の入力動作を模したキーコードストリームを作成するようにしてもよい。擬似するすべてのキー入力が終了すると、終了を指示するキー入力を行い、終了する。   In step S22, a key code stream is generated according to the operation shown in FIG. The program may be provided with a function of measuring an actual key input operation to create a key code stream imitating the actual input operation. When all simulated key input is completed, the key input instructing the end is performed and the process is ended.

図16は、記憶したキーコードストリームにしたがって擬似するキー入力を実行するモードにおけるCPUの動作を示すフローチャートである。   FIG. 16 is a flowchart showing an operation of the CPU in a mode for executing simulated key input in accordance with the stored key code stream.

ステップS31で、キーコードストリーム実行モードが指示されたか判定し、指示されるまで待機する。実行モードも、通常動作で使用するファンクションキー、キーの組み合わせ以外のファンクションキー、キーの組み合わせで指示される。キーコードストリーム実行モードが指示されると、ステップS32に進む。   In step S31, it is determined whether or not a key code stream execution mode has been instructed, and the process waits for an instruction. The execution mode is also indicated by a combination of a function key used in normal operation and a function key other than a combination of keys and a key. When the key code stream execution mode is instructed, the process proceeds to step S32.

ステップS32で、キーコードストリーム出力状態を設定する。具体的には、I/O73から出力する擬似入力モードを示すビットをアクティブにする。これにより、一致検出変換回路51およびセレクタ54が、擬似入力を行う状態に設定される。   In step S32, a key code stream output state is set. Specifically, the bit indicating the pseudo input mode output from the I / O 73 is activated. As a result, the match detection conversion circuit 51 and the selector 54 are set to be in a state of performing pseudo input.

ステップS33で、実行するキーコードストリームを記憶したメモリの読み出し開始位置(アドレス)を設定する。
ステップS34で、キーコードストリームを読み出し、キー入力の擬似X座標および擬似Y座標を生成する。
In step S33, the reading start position (address) of the memory storing the key code stream to be executed is set.
In step S34, the key code stream is read, and pseudo X coordinates and pseudo Y coordinates of key input are generated.

ステップS35で、擬似X座標および擬似Y座標をI/O73に出力する。これにより、第1実施形態で説明した擬似キー入力が行われる。
ステップS36で、擬似しているキー入力を行う時間が経過するまで待つ。これにより、実際のキー入力動作に近い形でキー入力が行われる。時間経過後ステップS37に進む。
In step S35, the pseudo X coordinate and the pseudo Y coordinate are output to the I / O 73. Thereby, the pseudo key input described in the first embodiment is performed.
In step S36, the process waits until the time for performing simulated key input elapses. As a result, key input is performed in a manner close to the actual key input operation. After the time has elapsed, the process proceeds to step S37.

ステップS37で、読み出し位置(アドレス)を次のキーコードのアドレスに変更する。
ステップS38で、入力するキーコードが無いか判定し、有ればステップS34に戻る。ステップS34からS38を繰り返すことにより、記憶されたキーコードストリームに対応するキー入力が行われる。これ以上入力するキーコードが無い場合は、終了する。
At step S37, the read position (address) is changed to the address of the next key code.
In step S38, it is determined whether there is no key code to be input. If there is, the process returns to step S34. By repeating steps S34 to S38, key input corresponding to the stored key code stream is performed. If there are no more key codes to be input, the process ends.

以上の実施形態に関し、更に以下の付記を開示する。
[付記1]
キースイッチ部にキーマトリックススキャンのスキャン値を入力し、
前記キースイッチ部からの前記キーマトリックススキャンのスキャン値に対する応答を受け、
前記キーマトリックススキャンのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部におけるキーの押し下げ状態を検出するキーボードにおいて、
前記キースイッチ部で、所定キーが押し下げられた状態に設定し、
前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーのスキャン値に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換し、
前記キーマトリックススキャンのスキャン値、前記擬似するキーのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部における押し下げキーを判定することを特徴とするキーボード入力擬制方法。
[付記2]
前記キーマトリックススキャンのスキャン値は、前記キースイッチ部の全てのキーをスキャンし、
前記キースイッチ部は、前記所定キーのスキャン値に変換したスキャン値を受けた時に一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に不一致信号を出力する付記1に記載のキーボード入力擬制方法。
[付記3]
前記キースイッチ部のキーマトリックスは、複数の行と複数の列でキーの位置が規定され、
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記キーマトリックススキャンのスキャン値と、擬似するキーの行番と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーの行番に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーの行番以外になるように維持または変換し、
前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーの列番に変換する付記1に記載のキーボード入力擬制方法。
[付記4]
前記擬似するキーのスキャン値は、当該キーボードの外部から供給される付記1から3のいずれか1つに記載のキーボード入力擬制方法。
[付記5]
前記擬似するキーのスキャン値は、当該キーボード内の記憶部から供給される付記1から3のいずれか1つに記載のキーボード入力擬制方法。
[付記6]
複数のキーを配列したキーマトリックスを有するキースイッチ部と、
前記キースイッチ部にキーマトリックススキャンのスキャン値を出力するキーボードコントローラと、
入力擬制時に、前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換する変換回路と、を有し、
前記キースイッチ部は、前記キーマトリックススキャンのスキャン値に対する応答を出力し、
前記キーボードコントローラは、前記キースイッチ部からの前記キーマトリックススキャンのスキャン値に対する前記応答を受け、前記キーマトリックススキャンのスキャン値、前記擬似するキーのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部におけるキーの押し下げ状態を判定することを特徴とするキーボード。
[付記7]
前記変換回路は、非入力擬制時に、前記キーマトリックススキャンのスキャン値を変換せずに出力する付記6に記載のキーボード。
[付記8]
前記キーマトリックススキャンのスキャン値は、前記キースイッチ部の全てのキーをスキャンし、
前記キースイッチ部は、前記所定キーのスキャン値を受けた時に一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に不一致信号を出力する付記6に記載のキーボード。
[付記9]
前記キースイッチ部のキーマトリックスは、複数の行と複数の列でキーの位置が規定され、
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記変換回路は、前記キーマトリックススキャンのスキャン値と、擬似するキーの行番と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーの行番に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーの行番とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーの行番以外になるように変換し、前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーの列番に変換する付記6に記載のキーボード。
[付記10]
外部から供給される前記所定キーのスキャン値を受ける外部端子を有する付記6から9のいずれか1つに記載のキーボード。
[付記11]
前記擬似するキーに関する情報を記憶する記憶部を有する付記6から9のいずれか1つに記載のキーボード。
[付記12]
前記記憶部に記憶する前記擬似するキーに関する情報は、前記キーボードコントローラにより、前記キースイッチ部からのキー入力に基づいて記憶される付記11に記載のキーボード。
[付記13]
キーボードのキースイッチ部を、所定キーが押し下げられた状態に設定し、
キーボードコントローラが出力するキーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーのスキャン値に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換し、
前記キースイッチ部は、前記所定キーのスキャン値を受けた時に、前記キーボードコントローラに一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に、前記キーボードコントローラに不一致信号を出力する、ことを特徴とするキーボード入力擬制方法。
[付記14]
前記擬似するキーのスキャン値は、当該キーボードの外部から供給される付記13に記載のキーボード入力擬制方法。
[付記15]
前記擬似するキーのスキャン値は、当該キーボード内の記憶部から供給される付記13に記載のキーボード入力擬制方法。
[付記16]
キーマトリックススキャンのスキャン値を出力するキーボードコントローラと、
入力擬制時に、前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換する変換回路と、
複数のキーを配列したキーマトリックスを有し、前記変換回路から前記キーマトリックススキャンのスキャン値を受けるキースイッチ部と、を有し、
前記キースイッチ部は、前記所定キーのスキャン値を受けた時に一致信号を出力し、前記所定キーのスキャン値以外のスキャン値を受けた時に不一致信号を出力し、
前記キーボードコントローラは、前記キースイッチ部から前記一致信号を受けた時に、前記キーマトリックススキャンのスキャン値に対応するキーが押し下げられていると判定することを特徴とするキーボード。
[付記17]
前記変換回路は、非入力擬制時に、前記キーマトリックススキャンのスキャン値を変換せずに出力する付記16に記載のキーボード。
Further, the following appendices will be disclosed regarding the above embodiment.
[Supplementary Note 1]
Input scan value of key matrix scan to key switch section,
Receiving a response to the scan value of the key matrix scan from the key switch unit;
In a keyboard, which detects a depression state of a key in the key switch unit from a scan value of the key matrix scan and a response from the key switch unit.
The key switch unit is set to a state where a predetermined key is depressed,
Comparing the scan value of the key matrix scan with the scan value of the simulated key,
Converting the scan value of the key matrix scan into the scan value of the predetermined key when the scan value of the key matrix scan and the scan value of the simulated key match;
Converting the scan value of the key matrix scan to be other than the scan value of the predetermined key when the scan value of the key matrix scan does not match the scan value of the simulated key;
A keyboard input imitation control method characterized in that a depressed key in the key switch unit is determined from a scan value of the key matrix scan, a scan value of the simulated key and a response from the key switch unit.
[Supplementary Note 2]
The scan value of the key matrix scan scans all keys of the key switch unit,
The key switch unit outputs a coincidence signal when receiving the scan value converted into the scan value of the predetermined key,
The keyboard input imitation control method according to claim 1, wherein the key switch unit outputs a mismatch signal when receiving a scan value other than the scan value of the predetermined key.
[Supplementary Note 3]
In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
Compare the scan value of the key matrix scan with the line number of the simulated key,
When the scan value of the key matrix scan matches the row number of the simulated key, the scan value of the key matrix scan is converted to the row number of the predetermined key,
The scan value of the key matrix scan is maintained or converted to be other than the row number of the predetermined key when the scan value of the key matrix scan does not match the row number of the simulated key.
10. The keyboard input simulation method according to appendix 1, wherein when the key switch unit outputs the column number of the predetermined key, the key switch unit converts the column number of the key to be simulated.
[Supplementary Note 4]
The keyboard input imitation method according to any one of appendices 1 to 3, wherein the scan value of the simulated key is supplied from the outside of the keyboard.
[Supplementary Note 5]
The keyboard input imitation method according to any one of appendices 1 to 3, wherein the scan value of the simulated key is supplied from a storage unit in the keyboard.
[Supplementary Note 6]
A key switch unit having a key matrix in which a plurality of keys are arranged;
A keyboard controller that outputs scan values of a key matrix scan to the key switch unit;
At the time of the input simulation, the scan value of the key matrix scan and the scan value of the simulated key are compared, and when the scan value of the key matrix scan and the scan value of the simulated key coincide, the key matrix scan The scan value of the key matrix scan is converted to the scan value of the predetermined key, and when the scan value of the key matrix scan and the scan value of the pseudo key do not match, the scan value of the key matrix scan is other than the scan value of the predetermined key And converting circuits to convert
The key switch unit outputs a response to a scan value of the key matrix scan,
The keyboard controller receives the response to the scan value of the key matrix scan from the key switch unit, and the scan value of the key matrix scan, the scan value of the simulated key and the response from the key switch unit. A keyboard characterized in that a pressed state of a key in a key switch portion is determined.
[Supplementary Note 7]
7. The keyboard according to appendix 6, wherein the conversion circuit outputs the scan value of the key matrix scan without conversion at the time of non-input simulation.
[Supplementary Note 8]
The scan value of the key matrix scan scans all keys of the key switch unit,
The key switch unit outputs a coincidence signal when receiving the scan value of the predetermined key,
7. The keyboard according to appendix 6, wherein the key switch unit outputs a mismatch signal when receiving a scan value other than the scan value of the predetermined key.
[Supplementary Note 9]
In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
The conversion circuit compares the scan value of the key matrix scan with the row number of the simulated key, and when the scan value of the key matrix scan matches the row number of the simulated key, the key matrix The scan value of the key matrix scan is converted into the row of the predetermined key when the scan value of the scan is converted to the row number of the predetermined key and the scan value of the key matrix scan does not match the row number of the simulated key. The keyboard according to appendix 6, wherein conversion is performed so as to be other than the number, and when the key switch unit outputs the column number of the predetermined key, conversion is performed to the column number of the simulated key.
[Supplementary Note 10]
The keyboard according to any one of appendices 6 to 9, further comprising an external terminal for receiving a scan value of the predetermined key supplied from the outside.
[Supplementary Note 11]
The keyboard according to any one of appendices 6 to 9, further comprising: a storage unit storing information on the simulated key.
[Supplementary Note 12]
11. The keyboard according to appendix 11, wherein the information on the simulated key stored in the storage unit is stored by the keyboard controller based on a key input from the key switch unit.
[Supplementary Note 13]
Set the key switch section of the keyboard in the state where the predetermined key is depressed,
Compare the scan value of the key matrix scan output by the keyboard controller with the scan value of the simulated key,
Converting the scan value of the key matrix scan into the scan value of the predetermined key when the scan value of the key matrix scan and the scan value of the simulated key match;
Converting the scan value of the key matrix scan to be other than the scan value of the predetermined key when the scan value of the key matrix scan does not match the scan value of the simulated key;
The key switch unit outputs a coincidence signal to the keyboard controller when the scan value of the predetermined key is received.
The key switch unit outputs a mismatch signal to the keyboard controller when receiving a scan value other than the scan value of the predetermined key.
[Supplementary Note 14]
The keyboard input imitation method according to Additional remark 13 in which the scan value of the simulated key is supplied from the outside of the keyboard.
[Supplementary Note 15]
The keyboard input imitation method according to appendix 13, wherein the scan value of the simulated key is supplied from a storage unit in the keyboard.
[Supplementary Note 16]
Keyboard controller that outputs scan values of key matrix scan,
At the time of the input simulation, the scan value of the key matrix scan and the scan value of the simulated key are compared, and when the scan value of the key matrix scan and the scan value of the simulated key coincide, the key matrix scan The scan value of the key matrix scan is converted to the scan value of the predetermined key, and when the scan value of the key matrix scan and the scan value of the pseudo key do not match, the scan value of the key matrix scan is other than the scan value of the predetermined key A conversion circuit that converts to
And a key switch unit having a key matrix in which a plurality of keys are arranged and receiving scan values of the key matrix scan from the conversion circuit,
The key switch unit outputs a coincidence signal when it receives a scan value of the predetermined key, and outputs a noncoincidence signal when it receives a scan value other than the scan value of the predetermined key,
The keyboard controller, when receiving the coincidence signal from the key switch unit, determines that a key corresponding to a scan value of the key matrix scan is pressed.
[Supplementary Note 17]
17. The keyboard according to appendix 16, wherein the conversion circuit outputs the scan value of the key matrix scan without conversion at the time of non-input simulation.

以上、実施形態を説明したが、ここに記載したすべての例や条件は、発明および技術に適用する発明の概念の理解を助ける目的で記載されたものである。特に記載された例や条件は発明の範囲を制限することを意図するものではなく、明細書のそのような例の構成は発明の利点および欠点を示すものではない。発明の実施形態を詳細に記載したが、各種の変更、置き換え、変形が発明の精神および範囲を逸脱することなく行えることが理解されるべきである。   The embodiments have been described above, but all the examples and conditions described herein are for the purpose of assisting the understanding of the concept of the invention applied to the invention and the technology. The examples and conditions specifically described are not intended to limit the scope of the invention, and the construction of such examples in the specification does not show the advantages and disadvantages of the invention. While the embodiments of the invention have been described in detail, it should be understood that various changes, substitutions, and alterations can be made without departing from the spirit and scope of the invention.

10 パーソナルコンピュータ(パソコン)
20 キーボード
21,31 キーボードコントローラ
22,32 キースイッチ部
51 一致検出変換回路
52 Xセレクタ
53 Yセレクタ
61 X一致検出変換回路
62 Xセレクタ
63 Y変換セレクタ
101 制御装置
102 キーコードアドレス変換回路
10 personal computer (PC)
Reference Signs List 20 keyboard 21, 31 keyboard controller 22, 32 key switch unit 51 match detection conversion circuit 52 X selector 53 Y selector 61 X match detection conversion circuit 62 X selector 63 Y conversion selector 101 control device 102 key code address conversion circuit

Claims (11)

キースイッチ部にキーボードコントローラが出力するキーマトリックススキャンのスキャン値を入力し、
前記キースイッチ部からの前記キーマトリックススキャンのスキャン値に対する応答を受け、
前記キーマトリックススキャンのスキャン値および前記キースイッチ部からの応答から、前記キースイッチ部におけるキーの押し下げ状態を検出するキーボードにおいて、
入力キーを擬似して入力を行う疑似入力モードの場合、
前記キースイッチ部で、所定キーが押し下げられた状態に設定し、
前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を前記所定キーのスキャン値に変換し、
前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換し、
前記キースイッチ部は、前記所定キーのスキャン値を受けたときに、前記キーボードコントローラに一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に、前記キーボードコントローラに不一致信号を出力することを特徴とするキーボード入力擬制方法。
Input the scan value of the key matrix scan output by the keyboard controller to the key switch section,
Receiving a response to the scan value of the key matrix scan from the key switch unit;
In a keyboard, which detects a depression state of a key in the key switch unit from a scan value of the key matrix scan and a response from the key switch unit.
In the case of the pseudo input mode in which the input key is simulated and input is performed,
The key switch unit is set to a state where a predetermined key is depressed,
Comparing the scan value of the key matrix scan with the scan value of the simulated key,
When the scan values of the key to be the pseudo scan values of the key matrix scan match, it converts the scanned value before Symbol key matrix scan the scan values of the predetermined key,
When the scan values of the key to be the pseudo scan values of the key matrix scan do not match, the scan value before Symbol key matrix scan, converted to be a non-scanning value of the predetermined key,
The key switch unit outputs a coincidence signal to the keyboard controller when the scan value of the predetermined key is received.
The key switch unit outputs a mismatch signal to the keyboard controller when receiving a scan value other than the scan value of the predetermined key .
前記キーボードコントローラは、前記キースイッチ部から前記一致信号を受けた時に、前記キーマトリックススキャンのスキャン値に対応するキーが押し下げられていると判定する請求項1に記載のキーボード入力擬制方法。 The method according to claim 1, wherein the keyboard controller determines that a key corresponding to a scan value of the key matrix scan is pressed when the match signal is received from the key switch unit . 前記キーマトリックススキャンのスキャン値は、前記キースイッチ部の全てのキーをスキャンする請求項1または2に記載のキーボード入力擬制方法。 The scan values of the key matrix scanning, keyboard input constructive method according to all the keys of the key switch section to claim 1 or 2 Ru scan Nsu. 前記キースイッチ部のキーマトリックスは、複数の行と複数の列でキーの位置が規定され、
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記キーマトリックススキャンのスキャン値による行番と、前記擬似するキーのスキャン値による行番と、を比較し、
前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致した時に、前記キーマトリックススキャンのスキャン値による行番を前記所定キーのスキャン値による行番に変換し、
前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致しない時に、前記キーマトリックススキャンのスキャン値による行番を、前記所定キーのスキャン値による行番以外になるように維持または変換し、
前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーのスキャン値による列番に変換する請求項1または2に記載のキーボード入力擬制方法。
In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
Comparing the line number of the scan value of the key matrix scan with the line number of the scan value of the simulated key;
When the line number by the scan value of the key matrix scan matches the line number by the scan value of the pseudo key, the line number by the scan value of the key matrix scan is converted to the line number by the scan value of the predetermined key ,
When the line number by the scan value of the key matrix scan and the line number by the scan value of the pseudo key do not match, the line number by the scan value of the key matrix scan is not the line number by the scan value of the predetermined key Maintain or convert to be
The keyboard input imitation control method according to claim 1 or 2, wherein when the key switch unit outputs the column number of the predetermined key, the key switch unit converts it into a column number according to a scan value of the simulated key.
前記擬似するキーのスキャン値は、当該キーボードの外部から供給される請求項1から4のいずれか1項に記載のキーボード入力擬制方法。   The keyboard input mimicking method according to any one of claims 1 to 4, wherein the simulated key scan value is supplied from the outside of the keyboard. 前記擬似するキーのスキャン値は、当該キーボード内の記憶部から供給される請求項1から4のいずれか1項に記載のキーボード入力擬制方法。   The keyboard input imitation method according to any one of claims 1 to 4, wherein the scan value of the simulated key is supplied from a storage unit in the keyboard. 複数のキーを配列したキーマトリックスを有するキースイッチ部と、
前記キースイッチ部にキーマトリックススキャンのスキャン値を出力するキーボードコントローラと、
入力キーを擬似して入力を行う疑似入力モードの場合、前記キースイッチ部で、所定キーが押し下げられた状態に設定し、前記キーマトリックススキャンのスキャン値と、擬似するキーのスキャン値と、を比較し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致した時に、前記キーマトリックススキャンのスキャン値を所定キーのスキャン値に変換し、前記キーマトリックススキャンのスキャン値と前記擬似するキーのスキャン値とが一致しない時に、前記キーマトリックススキャンのスキャン値を、前記所定キーのスキャン値以外になるように変換する変換回路と、を有し、
前記キースイッチ部は、前記所定キーのスキャン値を受けたときに、前記キーボードコントローラに一致信号を出力し、
前記キースイッチ部は、前記所定キーのスキャン値以外のスキャン値を受けた時に、前記キーボードコントローラに不一致信号を出力することを特徴とするキーボード。
A key switch unit having a key matrix in which a plurality of keys are arranged;
A keyboard controller that outputs scan values of a key matrix scan to the key switch unit;
In the case of the pseudo input mode in which the input key is simulated and input is performed, the key switch unit is set to a state where the predetermined key is depressed, and the scan value of the key matrix scan and the scan value of the simulated key are comparison, when the scanning values of the key to be the pseudo scan values of the key matrix scan match, converts the scanned value before Symbol key matrix scan scanning value of a predetermined key, the scan values of the key matrix scan wherein when the scanning values of the pseudo-key does not coincide, the scanning values before Symbol key matrix scan, have a, a conversion circuit for converting to be other than the scan values of the predetermined key and,
The key switch unit outputs a coincidence signal to the keyboard controller when the scan value of the predetermined key is received.
The keyboard switch, wherein the key switch unit outputs a mismatch signal to the keyboard controller when it receives a scan value other than the scan value of the predetermined key .
前記キーボードコントローラは、前記キースイッチ部から前記一致信号を受けた時に、前記キーマトリックススキャンのスキャン値に対応するキーが押し下げられていると判定する請求項7に記載のキーボード。 8. The keyboard according to claim 7, wherein the keyboard controller determines that a key corresponding to a scan value of the key matrix scan is depressed when the coincidence signal is received from the key switch unit . 前記変換回路は、非入力擬制時に、前記キーマトリックススキャンのスキャン値を変換せずに出力する請求項7または8に記載のキーボード。   The keyboard according to claim 7 or 8, wherein the conversion circuit outputs the scan value of the key matrix scan without conversion at the time of non-input simulation. 前記キーマトリックススキャンのスキャン値は、前記キースイッチ部の全てのキーをスキャンする請求項7または8に記載のキーボード。 The scan values of the key matrix scanning keyboard according to all the keys of the key switch section to claim 7 or 8 Ru scan Nsu. 前記キースイッチ部のキーマトリックスは、複数の行と複数の列でキーの位置が規定され、
前記キーマトリックススキャンのスキャン値は、前記キーマトリックスの前記複数の行をスキャンし、
前記変換回路は、前記キーマトリックススキャンのスキャン値による行番と、前記擬似するキーのスキャン値による行番と、を比較し、前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致した時に、前記キーマトリックススキャンのスキャン値による行番を前記所定キーのスキャン値による行番に変換し、前記キーマトリックススキャンのスキャン値による行番と前記擬似するキーのスキャン値による行番とが一致しない時に、前記キーマトリックススキャンのスキャン値による行番を、前記所定キーのスキャン値による行番以外になるように維持または変換し、前記キースイッチ部が前記所定キーの列番を出力した時に、前記擬似するキーのスキャン値による列番に変換する請求項7または8に記載のキーボード。
In the key matrix of the key switch unit, positions of keys are defined by a plurality of rows and a plurality of columns.
The scan values of the key matrix scan scan the plurality of rows of the key matrix,
The conversion circuit compares a row number by the scan value of the key matrix scan with a row number by the scan value of the simulated key, and scans the row number by the scan value of the key matrix scan and the simulated key When the line number by the value matches, the line number by the scan value of the key matrix scan is converted to the line number by the scan value of the predetermined key, and the line number by the scan value of the key matrix scan and the simulated key When the line number according to the scan value does not match, the line number according to the scan value of the key matrix scan is maintained or converted to be other than the line number according to the scan value of the predetermined key, and the key switch unit Converting the column number according to the scan value of the simulated key when the column number of the column is output Or keyboard according to 8.
JP2015063330A 2015-03-25 2015-03-25 Keyboard input imitation method and keyboard Expired - Fee Related JP6540148B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015063330A JP6540148B2 (en) 2015-03-25 2015-03-25 Keyboard input imitation method and keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015063330A JP6540148B2 (en) 2015-03-25 2015-03-25 Keyboard input imitation method and keyboard

Publications (2)

Publication Number Publication Date
JP2016184240A JP2016184240A (en) 2016-10-20
JP6540148B2 true JP6540148B2 (en) 2019-07-10

Family

ID=57241955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015063330A Expired - Fee Related JP6540148B2 (en) 2015-03-25 2015-03-25 Keyboard input imitation method and keyboard

Country Status (1)

Country Link
JP (1) JP6540148B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7298274B2 (en) * 2019-04-25 2023-06-27 富士電機株式会社 emulation switch controller
JP7619074B2 (en) * 2020-08-04 2025-01-22 富士電機株式会社 Touchless unit and vending machine system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6059606B2 (en) * 1980-06-06 1985-12-26 株式会社日立製作所 keyboard input circuit
JPS57176459A (en) * 1981-04-24 1982-10-29 Mitsubishi Electric Corp Simulator for key switch
JPS59123039A (en) * 1982-12-28 1984-07-16 Canon Inc key signal generator
US4581603A (en) * 1983-03-11 1986-04-08 The Maxi-Switch Company Switch matrix key closure validation device and method
JPH04205034A (en) * 1990-11-29 1992-07-27 Oki Electric Ind Co Ltd Test support apparatus
JPH0519929A (en) * 1991-12-06 1993-01-29 Hitachi Home Tec Ltd Keyboard switch for electronic oven
JPH05216706A (en) * 1992-01-31 1993-08-27 Nippon Denki Computer Syst Kk On-line simulation system
JPH07253839A (en) * 1994-03-15 1995-10-03 Oki Electric Ind Co Ltd Key board and test method for key board controller using it

Also Published As

Publication number Publication date
JP2016184240A (en) 2016-10-20

Similar Documents

Publication Publication Date Title
JP6540148B2 (en) Keyboard input imitation method and keyboard
CN112306937A (en) Setting selection circuit, method, apparatus and medium for mainboard device in server
CN101488106A (en) System with at least two BIOS memory devices
JP2020064624A (en) Sub-word-unit division method and device, and computer-readable storage medium
WO2009096322A1 (en) Program test device and program
CN103902213B (en) A kind of generation method and equipment of Word message
CN107450953B (en) Method and device for updating BIOS
US7113882B2 (en) Automatic testing system
CN105446752B (en) Method, device and mobile terminal for triggering control in application program
JP5304239B2 (en) Processor test apparatus, processor test method, processor test program
JP2006344076A (en) Program generating device, program generating method and program
CN102645978A (en) Simulator capable of simulating keyboard output signal
TW201816552A (en) Keyboard device
CN101853082A (en) Method for inputting Chinese Pinyin key signature
JP2018163432A (en) Automatic correction device
CN101741395B (en) Encoding method and encoding circuit of a matrix keyboard
CN100407116C (en) Mouse quick input system and mouse for realizing quick input
WO2006090505A1 (en) Vehicle quality analysis system and method for managing a plurality of data
US12307022B2 (en) Method and system for automating keyboards for device testing
CN105320581A (en) Integrated circuit, verification method and method for generating eigenvalue adjustment code
JP2006268254A (en) Identification number setting method and coordinate input method
JP2008165324A (en) Program creation support device
TWI490732B (en) Simulating device simulating a keyboard
JP7433384B2 (en) Large touch display integrated circuit and how it works
CN114003431B (en) A non-4k aligned Trim data verification method, system and device for Nvme solid state drives

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180814

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190402

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190423

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190527

R150 Certificate of patent or registration of utility model

Ref document number: 6540148

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees