JPH06101266B2 - ON / OFF key switch malfunction prevention device - Google Patents
ON / OFF key switch malfunction prevention deviceInfo
- Publication number
- JPH06101266B2 JPH06101266B2 JP61098324A JP9832486A JPH06101266B2 JP H06101266 B2 JPH06101266 B2 JP H06101266B2 JP 61098324 A JP61098324 A JP 61098324A JP 9832486 A JP9832486 A JP 9832486A JP H06101266 B2 JPH06101266 B2 JP H06101266B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- key switch
- key input
- input
- manual
- 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 - Lifetime
Links
- 230000007257 malfunction Effects 0.000 title claims description 11
- 230000002265 prevention Effects 0.000 title claims description 5
- 244000145845 chattering Species 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
Landscapes
- Keying Circuit Devices (AREA)
- Electronic Switches (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、マイコンを使用して複数のキースイッチか
らの入力を処理するようにしたものに於て、オン/オフ
キースイッチを誤って連続押しした場合の誤動作を防止
する装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention is a device for processing inputs from a plurality of key switches by using a microcomputer. The present invention relates to a device that prevents malfunction when pressed.
オン/オフキースイッチからキー入力があったときマニ
ュアルチャタタイマーを動作させその動作中に同一のキ
ー入力があったときは後のキー入力を無効にすることに
より、オン/オフキースイッチを連続押しした場合の誤
動作を防止したものである。When there is a key input from the on / off key switch, the manual chatter timer is activated, and when the same key input is made during that operation, the subsequent key input is disabled and the on / off key switch is continuously pressed. This is to prevent malfunction in the case of doing.
従来、マイコンを使用してキースイッチのキー取り込み
を行なうようにしたものに於ては、第3図のフローチャ
ートに示されるように、キー入力があるとその後一定時
間(約30ms)内に再び入力があっても1個の入力を数え
るようにしてスイッチのメカニカルなチャタリングによ
る誤動作を防止している。Conventionally, in the case of using a microcomputer to fetch the key of the key switch, as shown in the flowchart of FIG. 3, when there is a key input, it is input again within a fixed time (about 30 ms). Even if there is one, it counts one input to prevent malfunction due to mechanical chattering of the switch.
しかし、キースイッチのチャタリングには、操作時一般
的に発生するメカニカルなチャタリングのほかに、キー
スイッチの押し方が悪いことが原因で発生するマニュア
ルなチャタリングが存在する。例えば、乱雑にキースイ
ッチを操作したり、振動する走行車両内でキースイッチ
を操作したりした場合、操作者は1回押したつもりが実
際には2回連続して押していることがあり、このような
連続押しによるキー入力は、メカニカルな(30ms内に発
生する)チャタリングに比較してはるかに長時間経過し
た後に発生するのが普通である。However, in the chattering of the key switch, in addition to the mechanical chattering that generally occurs at the time of operation, there is manual chattering that occurs due to a bad pressing of the key switch. For example, when the key switch is operated in a disorderly manner or when the key switch is operated in a vibrating traveling vehicle, the operator may have intended to press once but actually pressed twice in succession. Such continuous key presses usually occur after a much longer time than mechanical chattering (occurring within 30 ms).
オン/オフキースイッチの場合にはシフトキーと異なり
同一のキースイッチを連続して2回押す必然性は全くな
いにも拘らず、上述の従来装置に於ては、オン/オフキ
ースイッチの連続押しによる入力の場合でもキー取り込
みが2回行なわれるから操作者の意図した操作が行なわ
れないという欠点があった。In the case of the on / off key switch, unlike the shift key, there is no need to press the same key switch twice in succession, but in the above-mentioned conventional device, the on / off key switch is pressed continuously. Even in the case of inputting, there is a drawback that the operation intended by the operator is not performed because the key acquisition is performed twice.
この発明の目的は、上記従来装置の欠点を改良すること
であり、オン/オフキースイッチを誤って連続押しした
場合に誤動作を防止するオン/オフキースイッチの誤動
作防止装置を提供することである。An object of the present invention is to improve the drawbacks of the above conventional device, and to provide a malfunction prevention device for an on / off key switch, which prevents malfunction when the on / off key switch is accidentally continuously pressed. .
上記の目的を達成するため、この発明のオン/オフキー
スイッチの誤動作防止装置は、少くとも1個のオン/オ
フキースイッチを含む複数のキースイッチと、キー入力
があったときそれがオン/オフキースイッチによるもの
か否かを判断する手段と、前記キー入力がオン/オフキ
ースイッチによるものであると判断されたときセットさ
れ所時間動作するマニュアルチャタタイマーと、マニュ
アルチャタタイマーの動作中に前記キー入力と同一のキ
ー入力があったとき後のキー入力を無効にする手段とを
備えている。In order to achieve the above object, the malfunction prevention device for an on / off key switch according to the present invention includes a plurality of key switches including at least one on / off key switch, and when the key input is made, it is turned on / off. A means for determining whether or not it is by an off key switch, a manual chatter timer that is set and operates for a certain time when the key input is determined to be by an on / off key switch, and during the operation of the manual chatter timer. And a means for invalidating the subsequent key input when the same key input is made.
このようにしたことにより、オン/オフキースイッチに
よりキー入力があった後、マニュアルチャタタイマーの
動作時間内に再び同一のキー入力があっても後のキー入
力は無効にされるから、連続押しによる誤動作が防止さ
れる。By doing this, even if the same key input is made again within the operation time of the manual chatter timer after the key input is made by the ON / OFF key switch, the subsequent key input will be invalid. Malfunction due to is prevented.
この発明の実施例について図面を参照しながら説明す
る。第1図はマイコンに接続されたキーマトリックス回
路図、また、第2図はそのキー入力時の処理フローチャ
ートである。Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a key matrix circuit diagram connected to a microcomputer, and FIG. 2 is a processing flowchart at the time of key input.
第1図に於て、マイコン1の出力ポートO1〜O3と入力ポ
ートI1〜I3との各交点にそれぞれキースイッチS1〜S9が
接続され、出力ポートO1〜O3を順次Hレベルにしたとき
の入力ポートI1〜I3のレベルによりキースイッチS1〜S9
のいずれかが押されたことを検出するようになってい
る。At a first figure of the respective intersections of the output ports O 1 ~ O 3 and the input port I 1 ~I 3 key switch S 1 to S 9 microcomputer 1 is connected, the output port O 1 ~ O 3 The key switches S 1 to S 9 depend on the levels of the input ports I 1 to I 3 when they are sequentially set to the H level.
It is designed to detect that any one of the buttons has been pressed.
各キースイッチS1〜S9は、例えばテープ、チューナ、プ
レーヤ等の選択操作にそれぞれ対応し、そのいずれかが
押されたときマイコン1に於て第2図に示されるような
キー処理が行なわれ、制御出力ポートO4〜O10から操作
信号が出力される。Each of the key switches S 1 to S 9 corresponds to a selection operation of, for example, a tape, a tuner, a player or the like, and when any one of them is pressed, the key processing as shown in FIG. 2 is performed in the microcomputer 1. Then, the operation signal is output from the control output ports O 4 to O 10 .
マイコン1は、RAMとして前回キーバッファおよび動作
時間が約300msのマニュアルチャタタイマーを備えてい
て、キー入力があると、メカニカルなチャタリングを排
除し二重押しが無いことを確認した後、そのキー入力が
オン/オフキースイッチによるものであるか否かを判断
し、否と判断したときは、そのキー入力に対応する制御
信号を作成し制御出力ポートO4〜O10に出力する。Microcomputer 1 has a previous key buffer as RAM and a manual chatter timer with an operating time of about 300 ms. If there is a key input, after confirming that mechanical chattering is eliminated and there is no double press, that key input Is determined by the ON / OFF key switch, and when determined as NO, a control signal corresponding to the key input is created and output to the control output ports O 4 to O 10 .
また、オン/オフキースイッチによるものであると判断
したときは、このキー入力を前回キーバッファに入力す
るとともにマニュアルチャタタイマーをセットした後、
そのキー入力に対応する制御信号を作成し制御出力ポー
トO4〜O10に出力する。Also, when it is determined that it is due to the on / off key switch, after inputting this key input to the key buffer last time and setting the manual chatter timer,
A control signal corresponding to the key input is created and output to control output ports O 4 to O 10 .
マニュアルチャタタイマーの動作中にキー入力があった
ときは、前回キーバッファの記憶内容を参照して今回の
キー入力が前回のものと同一であれば今回のキー入力を
無効にする。マニュアルチャタタイマー動作時間は、マ
ニュアルなチャタリングが発生する時間よりも十分に長
い300msに設定されているから、これによりメカニカル
なチャタリングよりも後で発生するマニュアルなチャタ
リングも排除される。また、前回のキー入力と異なるも
のであれば、そのキー入力に対応する制御信号を作成し
制御出力ポートO4〜O10に出力する。When there is a key input during the operation of the manual chatter timer, the stored contents of the key buffer are referred to last time, and if the current key input is the same as the previous one, the current key input is invalidated. Since the manual chatter timer operation time is set to 300 ms, which is sufficiently longer than the time when manual chattering occurs, this also eliminates manual chattering that occurs after mechanical chattering. If it is different from the previous key input, a control signal corresponding to the key input is created and output to the control output ports O 4 to O 10 .
なお、上記実施例に於ては、マニュアルチャタタイマー
の動作時間が約300msに設定されているが、100〜400ms
の範囲であれば十分実用になるものである。In the above embodiment, the operation time of the manual chatter timer is set to about 300 ms, but 100 to 400 ms
Within the range, it is sufficiently practical.
以上説明したように、この発明のオン/オフキースイッ
チの誤動作防止装置は、誤って連続押しした場合の誤動
作を確実に防止することができ、音響機器等に使用すれ
ばその操作性を著しく向上させることができるものであ
る。As described above, the malfunction prevention device for an on / off key switch according to the present invention can surely prevent malfunctions caused by continuous accidental pressing, and if used in an audio device or the like, its operability is significantly improved. It can be done.
第1図…この発明の実施例のキーマトリックス回路図 第2図…そのキー入力時の処理フローチャート 第3図…従来装置のキー入力時の処理フローチャート 1……マイコン I1〜I3……入力ポート O1〜O3……出力ポート O4〜O10……制御出力ポート S1〜S9……キースイッチFIG. 1 ... Key matrix circuit diagram of an embodiment of the present invention FIG. 2 ... Processing flow chart for key input thereof FIG. 3 ... Processing flow chart for key input of conventional device 1 ... Microcomputer I 1 to I 3 ... Input Ports O 1 to O 3 …… Output ports O 4 to O 10 …… Control output ports S 1 to S 9 …… Key switch
Claims (1)
ッチを含む複数のキースイッチと、 (ロ)キー入力があったときそれがオン/オフキースイ
ッチによるものか否かを判断する手段と、 (ハ)マニュアルなチャタリングが発生する時間より長
い動作時間を有し前記キー入力がオン/オフキースイッ
チによるものであると判断されたときセットされるマニ
ュアルチャタタイマーと、 (ニ)マニュアルチャタ前記タイマーの動作中に前記キ
ー入力と同一のキー入力があったとき後のキー入力を無
効にする手段とを備えたことを特徴とするオン/オフキ
ースイッチの誤動作防止装置。(A) A plurality of key switches including at least one on / off key switch; and (b) when a key input is made, it is determined whether or not the key switch is an on / off key switch. And (c) a manual chatter timer that has an operating time longer than the time that manual chattering occurs and is set when it is determined that the key input is an on / off key switch, and (d) a manual chatter timer. An on / off key switch malfunction prevention device, comprising means for invalidating a subsequent key input when the same key input is made during the operation of the timer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61098324A JPH06101266B2 (en) | 1986-04-30 | 1986-04-30 | ON / OFF key switch malfunction prevention device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61098324A JPH06101266B2 (en) | 1986-04-30 | 1986-04-30 | ON / OFF key switch malfunction prevention device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62256320A JPS62256320A (en) | 1987-11-09 |
| JPH06101266B2 true JPH06101266B2 (en) | 1994-12-12 |
Family
ID=14216722
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61098324A Expired - Lifetime JPH06101266B2 (en) | 1986-04-30 | 1986-04-30 | ON / OFF key switch malfunction prevention device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06101266B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11418660B2 (en) | 2019-07-05 | 2022-08-16 | Canon Kabushiki Kaisha | Communication device, method, and storage medium for destination selection based on touch |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS556616A (en) * | 1978-06-30 | 1980-01-18 | Hitachi Denshi Ltd | Switch information reader circuit |
| JPS5542024A (en) * | 1978-09-21 | 1980-03-25 | Citizen Watch Co Ltd | Input circuit of electronic clock |
| JPS5642920A (en) * | 1979-09-17 | 1981-04-21 | Tokyo Shibaura Electric Co | Circuit for preventing contact failure |
-
1986
- 1986-04-30 JP JP61098324A patent/JPH06101266B2/en not_active Expired - Lifetime
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11418660B2 (en) | 2019-07-05 | 2022-08-16 | Canon Kabushiki Kaisha | Communication device, method, and storage medium for destination selection based on touch |
| US11736633B2 (en) | 2019-07-05 | 2023-08-22 | Canon Kabushiki Kaisha | Communication device, method, and storage medium for destination selection based on touch |
| US12075009B2 (en) | 2019-07-05 | 2024-08-27 | Canon Kabushiki Kaisha | Communication device, method for selecting destination, and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62256320A (en) | 1987-11-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH06101266B2 (en) | ON / OFF key switch malfunction prevention device | |
| JPS55146535A (en) | Information input system | |
| JPS5696319A (en) | Key input device | |
| JPH0353312Y2 (en) | ||
| JP2981748B2 (en) | Imaging device | |
| JPH02179496A (en) | Time switch | |
| US4853695A (en) | Data input device having switch matrix scanning means | |
| JP2556746Y2 (en) | Sound device with automatic switching of operation keys | |
| KR0132212Y1 (en) | Elevator switch control circuit | |
| JPS6223058A (en) | Display device of image forming device | |
| JPS62254226A (en) | Mouse controller | |
| JPH0520768B2 (en) | ||
| JP2669208B2 (en) | Data selection circuit | |
| JPH0744738B2 (en) | Remote control device | |
| JP2973503B2 (en) | Timer using microcomputer | |
| JPS5933063Y2 (en) | small electronic computer | |
| JPS59208559A (en) | Copy machine operating device | |
| JPS6168625A (en) | Keyboard device | |
| JPS59208539A (en) | Device for operating copying machine | |
| JPH02251721A (en) | Recording apparatus | |
| JPH0451824B2 (en) | ||
| JPS5660952A (en) | Console panel | |
| JPH0426326A (en) | Power throw-in circuit | |
| JPH0216603A (en) | Sequence program editing system | |
| JPH02110710A (en) | Data input guide system |