JPH05333983A - Keyboard device - Google Patents

Keyboard device

Info

Publication number
JPH05333983A
JPH05333983A JP4138764A JP13876492A JPH05333983A JP H05333983 A JPH05333983 A JP H05333983A JP 4138764 A JP4138764 A JP 4138764A JP 13876492 A JP13876492 A JP 13876492A JP H05333983 A JPH05333983 A JP H05333983A
Authority
JP
Japan
Prior art keywords
pulses
key
scan signal
abnormality
return signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4138764A
Other languages
Japanese (ja)
Inventor
Hideo Tanaka
秀雄 田中
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric Co 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP4138764A priority Critical patent/JPH05333983A/en
Publication of JPH05333983A publication Critical patent/JPH05333983A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Push-Button Switches (AREA)

Abstract

PURPOSE:To enable maintenance before the unit fails completely by recognizing the abnormality when the number of generating chatterings reaches a certain value during one key depression time. CONSTITUTION:A scan signal output means applies scan signal to one contact of a key switch 3a corresponding to all keys 3 in 20ms cycle. When the specific key 3 is depressed in this state, a return signal is outputted from the other contact of the key switch 3a corresponding to the key 3. The number of pulses of a scan signal during one key depression time is compared with the number of pulses of a return signal by a comparing means. When the return signal is one pulse, the state is recognized as 'abnormal' (chattering generation) state, '1' is added to a counter. When the count value exceeds the limit value, the abnormality is recognized. Since the recognition of abnormality is displayed by means of a display lamp or the like, the maintenance is enabled before the unit fails completely.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、キーボード装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a keyboard device.

【0002】[0002]

【従来の技術】キーボードからデータを入力する場合
に、個人差もあるが、個々のキーを押圧する通常での時
間は一定の範囲内であると言える。一方、長期間使用す
ると各キーに対応するキースイッチの接点にチャタリン
グ現象が生じることがある。
2. Description of the Related Art When inputting data from a keyboard, there are individual differences, but it can be said that the normal time for pressing each key is within a certain range. On the other hand, when used for a long period of time, a chattering phenomenon may occur at the contact of the key switch corresponding to each key.

【0003】[0003]

【発明が解決しようとする課題】チャタリングが頻繁に
発生すると、やがては故障に至りキーからの入力が不可
能になる。しかし、オペレータは故障に至る変化を正確
に把握することができない。このため、突然特定のキー
からの入力が不可能になり、顧客多い店舗でキャッシュ
レジスタのキーボードが故障した場合には店内が大変混
乱する。特に、深夜営業の店舗では、キーボードの交換
もできず、営業上重大な支障を招く問題がある。
If chattering occurs frequently, it eventually leads to a failure and it becomes impossible to input from the keys. However, the operator cannot accurately grasp the change leading to the failure. For this reason, suddenly input from a specific key becomes impossible, and if the cash register keyboard breaks down in a store with many customers, the inside of the store becomes very confused. In particular, in a store that is open late at night, the keyboard cannot be replaced, which poses a serious problem in business.

【0004】[0004]

【課題を解決するための手段】本発明は、多数のキース
イッチのそれぞれに対応する多数のキーを備えたキーボ
ードと、通常の一回のキー押圧時間より短い一定の周期
をもってスキャン信号を出力するスキャン信号出力手段
と、このスキャン信号出力手段から複数のパルスが連続
して出力される期間中に個々の前記キースイッチから出
力されるリターン信号のパルス数を読み取る読取手段
と、一回のキー押圧時間中における前記スキャン信号の
パルス数と前記リターン信号のパルス数とを比較する比
較手段と、この比較手段の比較結果として前記スキャン
信号のパルス数より前記リターン信号のパルス数が少な
い状態の発生回数を係数する係数手段と、この係数手段
のカウント値が一定値に達した時に異常を認識する異常
認識手段とにより構成した。
SUMMARY OF THE INVENTION According to the present invention, a keyboard having a large number of keys corresponding to a large number of key switches, and a scan signal is output at a constant cycle shorter than a normal single key pressing time. Scan signal output means, reading means for reading the number of pulses of the return signal output from each of the key switches during a period in which a plurality of pulses are continuously output from the scan signal output means, and one key press Comparison means for comparing the number of pulses of the scan signal and the number of pulses of the return signal during time, and the number of occurrences of a state in which the number of pulses of the return signal is smaller than the number of pulses of the scan signal as the comparison result of the comparison means. And coefficient recognition means for recognizing an abnormality when the count value of the coefficient means reaches a constant value. It was.

【0005】[0005]

【作用】一回のキー押圧時間中におけるキースイッチの
リターン信号のパルス数が規定回数より少ない状態はチ
ャタリングが発生していることになるが、このチャタリ
ングの発生回数が一定値に達した時に異常として認識す
ることができ、これにより、完全に故障になる前にメン
テナンスを行う余裕をもつことができる。
[Function] Chattering occurs when the number of pulses of the return signal of the key switch is less than the specified number of times during one key pressing time. Therefore, it is possible to have a margin for performing maintenance before a complete failure occurs.

【0006】[0006]

【実施例】本発明の一実施例を図面に基づいて説明す
る。図2に示すように、電子式キャッシュレジスタ1の
本体2の上部には、多数のキー3を有するキーボード4
と、レシートプリンタ5と、ディスプレイ6とが配設さ
れている。また、本体2には、電源キー7と、プログラ
ムデータをアクセスするハードディスク8とが設けられ
ている。なお、前記本体2はドロワ(図示せず)の上に
載置されるものである。また、図4示すように、前記キ
ー4のそれぞれに対応するキースイッチ3aが同一平面
上に配列されている。
An embodiment of the present invention will be described with reference to the drawings. As shown in FIG. 2, a keyboard 4 having a large number of keys 3 is provided on an upper portion of a main body 2 of the electronic cash register 1.
A receipt printer 5 and a display 6 are provided. Further, the main body 2 is provided with a power key 7 and a hard disk 8 for accessing program data. The main body 2 is placed on a drawer (not shown). Further, as shown in FIG. 4, the key switches 3a corresponding to the respective keys 4 are arranged on the same plane.

【0007】次いで、図3に電子回路を示す。CPU9
と、プログラムが書き込まれたROM10と、可変デー
タが書き込まれるRAM11とがバスライン上で接続さ
れている。また、CPU9には、前記キーボード4を制
御するキーボード制御回路12と、前記レシートプリン
タ5を制御するプリンタ制御回路13と、前記ディスプ
レイ6を制御するディスプレイ制御回路14と、前記ハ
ードディスク8を制御する制御回路15とが接続されて
いる。
Next, FIG. 3 shows an electronic circuit. CPU9
The ROM 10 in which the program is written and the RAM 11 in which the variable data is written are connected on the bus line. Further, the CPU 9 has a keyboard control circuit 12 for controlling the keyboard 4, a printer control circuit 13 for controlling the receipt printer 5, a display control circuit 14 for controlling the display 6, and a control for controlling the hard disk 8. The circuit 15 is connected.

【0008】さらに、それぞれ図示しないが、通常の一
回のキー押圧時間より短い一定の周期をもって全キー3
のキースイッチ3aの一方の接点にスキャン信号を出力
するスキャン信号出力手段と、このスキャン信号出力手
段から複数のパルスが連続して出力される期間中に個々
の前記キースイッチ3aの他方の接点から出力されるリ
ターン信号のパルス数を読み取る読取手段と、一回のキ
ー押圧時間中における前記スキャン信号のパルス数と前
記リターン信号のパルス数とを比較する比較手段と、こ
の比較手段の比較結果として前記スキャン信号のパルス
数より前記リターン信号のパルス数が少ない状態の発生
回数を係数する係数手段と、この係数手段のカウント値
が一定値に達した時に異常を認識する異常認識手段とが
設けられている。
Further, although not shown in the drawings, all keys 3 have a constant cycle shorter than a normal key pressing time.
Scan signal output means for outputting a scan signal to one contact of the key switch 3a, and from the other contact of each of the key switches 3a during a period in which a plurality of pulses are continuously output from the scan signal output means. Reading means for reading the number of pulses of the output return signal, comparing means for comparing the number of pulses of the scan signal and the number of pulses of the return signal during one key pressing time, and the comparison result of the comparing means Coefficient means for coefficienting the number of occurrences of the state where the number of pulses of the return signal is smaller than the number of pulses of the scan signal, and abnormality recognition means for recognizing abnormality when the count value of the coefficient means reaches a constant value are provided. ing.

【0009】このような構成において、図1に示すフロ
ーチャートを参照して、キー3の操作より異常認識に至
る処理について説明する。まず、図4に示すように、ス
キャン信号出力手段により全キー3に対応するキースイ
ッチ3aの一方の接点にスキャン信号を20msの周期で
印加する。この状態で特定のキー3を押圧すると、その
キー3に対応するキースイッチ3aの他方の接点からリ
ターン信号が出力される。
In such a configuration, the process from operation of the key 3 to recognition of an abnormality will be described with reference to the flowchart shown in FIG. First, as shown in FIG. 4, the scan signal output means applies a scan signal to one contact of the key switch 3a corresponding to all the keys 3 at a cycle of 20 ms. When a specific key 3 is pressed in this state, a return signal is output from the other contact of the key switch 3a corresponding to that key 3.

【0010】ここで、図5に示すように、キー3を一回
押圧する通常での押圧時間をtとすると、本実施例で
は、スキャン信号の周期はキー押圧時間tの略2分の1
以下である20msに設定されている。したがって、正常
ならば連続する2パルスのリターン信号が読取手段によ
って読み取られる。次に、一回のキー押圧時間中におけ
るスキャン信号のパルス数とリターン信号のパルス数と
が比較手段により比較される。本実施例では、1パルス
のリターン信号をメモリ(図示せず)に記憶しておき、
リターン信号が2パルス続けて読み取られた時を正常な
状態として認識し、該当するキー3からのデータとして
メインCPUに入力される。リターン信号が1パルスの
場合には非正常(チャタリングの発生)状態として認識
され、その都度、係数手段としてのカウンタに1が加算
される。そして、そのカウント値が限度値(例えば10
0)を越えた時に、異常認識手段により異常が認識され
る。この異常の認識は、例えば、表示ランプ(図示せ
ず)等により表示し、或いは、電子式キャッシュレジス
タ1を管理する上位機器としてのホストコンピュータに
伝達する等の方法によってなされる。したがって、カウ
ンタのカウント値と比較される限度値にマージンを見込
んでおくことにより、キースイッチ3aが完全に故障に
なる前にメンテナンスを行う余裕をもつことができる。
Here, as shown in FIG. 5, assuming that the normal pressing time for pressing the key 3 once is t, in the present embodiment, the cycle of the scan signal is approximately one half of the key pressing time t.
It is set to 20 ms which is the following. Therefore, if normal, two consecutive return signals are read by the reading means. Next, the number of pulses of the scan signal and the number of pulses of the return signal during one key pressing time are compared by the comparison means. In the present embodiment, a one-pulse return signal is stored in a memory (not shown),
When the return signal is read for two consecutive pulses, it is recognized as a normal state, and is input to the main CPU as data from the corresponding key 3. If the return signal is one pulse, it is recognized as an abnormal state (occurrence of chattering), and 1 is added to the counter as the coefficient means each time. Then, the count value is a limit value (for example, 10
When the value exceeds 0), the abnormality recognition means recognizes the abnormality. The abnormality is recognized by, for example, displaying it with a display lamp (not shown) or the like, or transmitting it to a host computer as a host device that manages the electronic cash register 1. Therefore, by allowing a margin for the limit value to be compared with the count value of the counter, it is possible to have a margin for performing maintenance before the key switch 3a completely fails.

【0011】[0011]

【発明の効果】本発明は、多数のキースイッチのそれぞ
れに対応する多数のキーを備えたキーボードと、通常の
一回のキー押圧時間より短い一定の周期をもってスキャ
ン信号を出力するスキャン信号出力手段と、このスキャ
ン信号出力手段から複数のパルスが連続して出力される
期間中に個々の前記キースイッチから出力されるリター
ン信号のパルス数を読み取る読取手段と、一回のキー押
圧時間中における前記スキャン信号のパルス数と前記リ
ターン信号のパルス数とを比較する比較手段と、この比
較手段の比較結果として前記スキャン信号のパルス数よ
り前記リターン信号のパルス数が少ない状態の発生回数
を係数する係数手段と、この係数手段のカウント値が一
定値に達した時に異常を認識する異常認識手段とにより
構成したので、一回のキー押圧時間中におけるキースイ
ッチのリターン信号のパルス数が規定回数より少ない状
態はチャタリングが発生していることになるが、このチ
ャタリングの発生回数が一定値に達した時に異常として
認識することができ、これにより、完全に故障になる前
にメンテナンスを行う余裕をもつことができる効果を有
する。
According to the present invention, a keyboard having a large number of keys corresponding to a large number of key switches, and a scan signal output means for outputting a scan signal at a constant period shorter than a normal key pressing time. Reading means for reading the number of pulses of the return signal output from each of the key switches during a period in which a plurality of pulses are continuously output from the scan signal output means, and the reading means during one key pressing time. Comparing means for comparing the number of pulses of the scan signal and the number of pulses of the return signal, and a coefficient for counting the number of occurrences of the state where the number of pulses of the return signal is smaller than the number of pulses of the scan signal as a comparison result of the comparing means. Since the means and the abnormality recognizing means for recognizing an abnormality when the count value of the coefficient means reach a constant value, Chattering occurs when the number of pulses of the return signal of the key switch is less than the specified number of times during the key pressing time, but when this number of chattering reaches a certain value, it may be recognized as an abnormality. As a result, there is an effect that it is possible to have a margin for performing maintenance before a complete failure occurs.

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

【図1】チャタリング検出処理を実行するフローチャー
トである。
FIG. 1 is a flowchart for executing a chattering detection process.

【図2】電子式キャッシュレジスタの斜視図である。FIG. 2 is a perspective view of an electronic cash register.

【図3】電子回路を示すブロック図である。FIG. 3 is a block diagram showing an electronic circuit.

【図4】キースイッチの配列を示す説明図である。FIG. 4 is an explanatory diagram showing an arrangement of key switches.

【図5】タイミングチャートである。FIG. 5 is a timing chart.

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

3 キー 3a キースイッチ 4 キーボード 3 keys 3a key switch 4 keyboard

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 多数のキースイッチのそれぞれに対応す
る多数のキーを備えたキーボードと、通常の一回のキー
押圧時間より短い一定の周期をもってスキャン信号を出
力するスキャン信号出力手段と、このスキャン信号出力
手段から複数のパルスが連続して出力される期間中に個
々の前記キースイッチから出力されるリターン信号のパ
ルス数を読み取る読取手段と、一回のキー押圧時間中に
おける前記スキャン信号のパルス数と前記リターン信号
のパルス数とを比較する比較手段と、この比較手段の比
較結果として前記スキャン信号のパルス数より前記リタ
ーン信号のパルス数が少ない状態の発生回数を係数する
係数手段と、この係数手段のカウント値が一定値に達し
た時に異常を認識する異常認識手段とよりなることを特
徴とするキーボード装置。
1. A keyboard having a large number of keys corresponding to a large number of key switches, a scan signal output means for outputting a scan signal at a constant period shorter than a normal key press time, and a scan for this scan. Reading means for reading the number of pulses of the return signal output from each of the key switches during the period in which the plurality of pulses are continuously output from the signal output means, and the pulse of the scan signal during one key pressing time The number of pulses of the return signal, a comparison means for comparing the number of pulses of the return signal, and a coefficient means for counting the number of occurrences of a state in which the number of pulses of the return signal is smaller than the number of pulses of the scan signal as a comparison result of the comparison means; A keyboard comprising an abnormality recognizing means for recognizing an abnormality when the count value of the coefficient means reaches a constant value. apparatus.
JP4138764A 1992-05-29 1992-05-29 Keyboard device Pending JPH05333983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4138764A JPH05333983A (en) 1992-05-29 1992-05-29 Keyboard device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4138764A JPH05333983A (en) 1992-05-29 1992-05-29 Keyboard device

Publications (1)

Publication Number Publication Date
JPH05333983A true JPH05333983A (en) 1993-12-17

Family

ID=15229647

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4138764A Pending JPH05333983A (en) 1992-05-29 1992-05-29 Keyboard device

Country Status (1)

Country Link
JP (1) JPH05333983A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015117543A (en) * 2013-12-19 2015-06-25 アスモ株式会社 Opening/closing member control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015117543A (en) * 2013-12-19 2015-06-25 アスモ株式会社 Opening/closing member control device

Similar Documents

Publication Publication Date Title
US4323888A (en) Keyboard system with variable automatic repeat capability
US4703414A (en) Programmable controller
US5430443A (en) Scanned switch matrix
US4888600A (en) Keyboard arrangement with ghost key condition detection
JP4027285B2 (en) Keypad device
US5914677A (en) Apparatus and method for scanning a switch array
JPH05333983A (en) Keyboard device
US4193038A (en) Key input apparatus
US5702625A (en) Encoder key input device for a microwave oven and interrupt processing method using the same
JPS60198623A (en) Data input device
JP3321955B2 (en) Keyboard device
GB1433259A (en) Circuit arrangement for transmitting signals between electrinic
JPH024030A (en) Keyboard device
JP2839304B2 (en) Keyboard device
US3101894A (en) Data recording system with zero suppression
JP2595045B2 (en) Touch panel input device
SU997025A1 (en) Information input device
KR940012097A (en) Programmable keyboard devices
SU1691829A1 (en) Data input device
JPS61237124A (en) Input deciding system for touch system input device
JP3248391B2 (en) Key input device
KR900002790B1 (en) Key's place changeable control method for keyboard
JP2510016B2 (en) Key input device
JPS6049921B2 (en) input device
KR200307816Y1 (en) Electronic keyboard apparatus for serial port of computer