JPS61210417A - Key input device - Google Patents

Key input device

Info

Publication number
JPS61210417A
JPS61210417A JP60051622A JP5162285A JPS61210417A JP S61210417 A JPS61210417 A JP S61210417A JP 60051622 A JP60051622 A JP 60051622A JP 5162285 A JP5162285 A JP 5162285A JP S61210417 A JPS61210417 A JP S61210417A
Authority
JP
Japan
Prior art keywords
initial setting
read
mechanical switch
input
detected
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
JP60051622A
Other languages
Japanese (ja)
Inventor
Toshiki Murakami
寿城 村上
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP60051622A priority Critical patent/JPS61210417A/en
Publication of JPS61210417A publication Critical patent/JPS61210417A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To make unnecessary the back flow preventing diode and to execute the correct initial setting by deciding that the read data are made invalid when the input of the mechanical switch is detected and the read data are made valid when the input is not detected. CONSTITUTION:First, the condition of I N0-I N3 is read, the contents are checked and it is decided whether or not mechanical switches 8-11 are on. When an on condition of either of the switches 8-11 is detected, the read initial setting data are made invalid. When any on condition is not detected, the read initial setting data are made valid and the initial setting by the reading contents is executed. The time necessary to such a decision is very short, and short compared with the response speed of a human being and the return time of the mechanical switch, and therefore, without providing the back flow preventing diode, the interference of the diode switch and the mechanical switch can be prevented.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はメカニカルスイッチの読み取り回路に初期設定
用ダイオードスイッチが接続された構造のキー入力装置
に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a key input device having a structure in which a diode switch for initial setting is connected to a reading circuit of a mechanical switch.

従来の技術 従来、この種のキー入力装置は、シンセサイザチューナ
等マイクロコンピュータを応用した機器に使用されてい
る。
2. Description of the Related Art Conventionally, this type of key input device has been used in devices to which a microcomputer is applied, such as a synthesizer tuner.

第3図は従来のキー人り装置を示す。1はマイクロコン
ピュータで、例えば松下電子工業株式会社製のM N 
1400等が使用される。2,3はダイオードスイッチ
、4〜7は逆流防止ダイオード、8〜11はメカニカル
スイッチである。
FIG. 3 shows a conventional key holding device. 1 is a microcomputer, for example, M N manufactured by Matsushita Electronics Co., Ltd.
1400 etc. are used. 2 and 3 are diode switches, 4 to 7 are backflow prevention diodes, and 8 to 11 are mechanical switches.

第4図は第3図のキー入力装置のフローチャートを示す
。マイクロコンピュータ1は先ずoutl“H”レベル
(a−i)、out2を“L”L/ベベルa−2)にし
てlN0−lN3より入力を行う(a−3)と、out
i及びINO,lN2に接続されたダイオードスイッチ
2.3がONL、、INO及びlN2にダイオードスイ
ッチが挿入されている事が判別できる(a−4)。又、
同様にoutl及びINl、lN3にダイオードスイッ
チを挿入することも可能であるから、outl及びIN
O〜IN3間に挿入するダイオードスイッチの組み合せ
により所定の動作を行うことができ、通常初期設定とし
て用いられる。又、第1図の如(outlが“H”レベ
ルの時、メカニカルスイッチ8及び9が押されている時
、逆流防止ダイオード4.5が無ければダイオードスイ
ッチ2よりメカニカルスイッチ8.9を介して、INl
に電流が流れ、outl及びINl問にダイオードスイ
ッチが挿入されている時と等価となり誤動作をするため
、これを防止するために逆流防止ダイオード4〜7が挿
入される。又、キー入力はoutlを”L”(a−5)
にし、out2をH″にしT (a−6) L、て、■
NO〜IN3より入力されるメカニカルスイッチの状態
を読み取り(a−7)、これによって読み取られた状態
に応じて所定の動作が行われる(a−8)。
FIG. 4 shows a flowchart of the key input device of FIG. The microcomputer 1 first sets outl to "H" level (a-i), sets out2 to "L" (L/bevel a-2), and inputs from lN0 to lN3 (a-3).
It can be determined that the diode switch 2.3 connected to i, INO, and IN2 is ONL, and that the diode switch is inserted in INO and IN2 (a-4). or,
Similarly, it is possible to insert diode switches in outl, INl, and IN3, so outl and IN
A predetermined operation can be performed by a combination of diode switches inserted between O and IN3, and is usually used as an initial setting. In addition, as shown in Fig. 1 (when outl is at the "H" level and mechanical switches 8 and 9 are pressed, if there is no backflow prevention diode 4.5, then the diode switch 2 will pass through the mechanical switch 8.9). ,INl
A current flows through the circuit, which is equivalent to when a diode switch is inserted between outl and INl, resulting in malfunction. To prevent this, backflow prevention diodes 4 to 7 are inserted. Also, key input is outl “L” (a-5)
and set out2 to H″T (a-6) L, te,■
The state of the mechanical switch input from NO to IN3 is read (a-7), and a predetermined operation is performed according to the read state (a-8).

発明が解決しようとする問題点 このように従来の構成では、初期設定用のダイオードス
イッチ2.3とメカニカルスイッチ8゜9の干渉を防ぐ
ため、逆流防止ダイオード2.3を必要としていた。
Problems to be Solved by the Invention As described above, in the conventional configuration, the backflow prevention diode 2.3 was required to prevent interference between the initial setting diode switch 2.3 and the mechanical switch 8.9.

本発明は逆流防止ダイオードを不要にできるキー入力装
置を提供することを目的とする。
An object of the present invention is to provide a key input device that can eliminate the need for a backflow prevention diode.

問題点を解決するための手段 本発明のキー入力装置は、メカニカルスイッチの読み取
り回路に初期設定用ダイオードを接続して初期設定する
よう構成すると共に、初期設定入力の読み取り直後に前
記メカニカルスイッチの入力の有無をチェックして、メ
カニカルスイッチの入力を検出した場合に読み取られて
いる初期設定入力を無効とし、メカニカルスイッチの入
力を検出しない場合に読み取られている前記初期設定入
力による初期設定を実行する判定手段を設けた特徴とす
る。
Means for Solving the Problems The key input device of the present invention is configured to perform initial setting by connecting an initial setting diode to a reading circuit of a mechanical switch, and immediately after reading the initial setting input, input of the mechanical switch is performed. Checks for the presence of , disables the read initial setting input when a mechanical switch input is detected, and executes initial setting based on the read initial setting input when a mechanical switch input is not detected. The feature is that a determination means is provided.

作用 この構成により、初期設定読み取りとその読み取られた
データによる初期設定実行との間に読み取り初期設定デ
ータが有効か無効であるかを判定する判定手段を設けた
ため、逆流防止ダイオードを設けずども正確な初期設定
を実施できる。
Effect: With this configuration, a determination means is provided to determine whether the read initial setting data is valid or invalid between reading the initial setting and executing the initial setting using the read data. You can perform initial settings.

実施例 以下、本発明の一実施例を第1図と第2図に基づいて説
明する。なお、第3図、第4図と同様の作用を成すもの
には同一符号を付けてその説明を省く。
EXAMPLE Hereinafter, an example of the present invention will be explained based on FIGS. 1 and 2. Components having the same functions as those in FIGS. 3 and 4 are designated by the same reference numerals, and their explanations will be omitted.

12はソフトウェアがROM (リードオンリーメモリ
ー)に固定化されたマイクロコンピュータ(例えば松下
電子工業株式会社製のM N 1400)である。第2
図は上記ROMの内容を示し、以下、動作に基づいて初
期設定動作を説明する。
12 is a microcomputer (for example, M N 1400 manufactured by Matsushita Electronics Co., Ltd.) in which software is fixed in a ROM (read only memory). Second
The figure shows the contents of the ROM, and the initial setting operation will be explained below based on the operation.

まずoutlを“H”レベル(a−1)、out2を“
L”レベル(a−2)にして■NO〜INSより入力を
行いダイオードスイッチ2及び3が接続されていること
を確認する(a−3)が、この時メカニカルスイッチ8
.9が押されているとoutl及びINlにダイオード
スイッチが接続されていると誤認してしまう。そこで、
ここでは次ICoutlf”L”レベル〔b−1〕、o
ut2を“HIIレベル(b−2)にして、INO〜I
N3よりメカニカルスイッチの入力をチェックしている
。このチェックは、先ず、INO〜INSの状態を読み
取り(b−3)、次いで(b−3)の内容をチェックし
てメカニカルスイッチ8〜11がオンされているかを判
定(b−4)L/、(b−4〕で何れかのメカニカルス
イッチ8〜11のオン状態を検出した場合には(a−1
)に戻って〔a−3〕で読み取られている初期設定デー
タを無効とする。(b−4)で何れのメカニカルスイッ
チ8〜11のオン状態を検出しない場合には(a −,
3)で読み取られている初期設定データを有効として(
a−3)で読み取り内容による初期設定を〔b−5〕す
る。(a−1)から(b−4)の実施に要する時間は、
例えばM N 14GGでは約40μsであり、人間の
応答速度及びメカニカルスイッチの復起時間に比べて極
めて短いため、上記動作により従来の如く逆流防止ダイ
オードを設けずどもダイオードスイッチとメカニカルス
イッチの干渉を防止できる。
First, set outl to “H” level (a-1), and set out2 to “H” level (a-1).
Set it to L” level (a-2) and input from NO to INS to confirm that diode switches 2 and 3 are connected (a-3), but at this time mechanical switch 8
.. If 9 is pressed, it will be mistakenly recognized that a diode switch is connected to outl and INl. Therefore,
Here, the next ICoutlf “L” level [b-1], o
Set ut2 to “HII level (b-2)” and
Mechanical switch input is checked from N3. This check first reads the status of INO to INS (b-3), then checks the contents of (b-3) to determine whether mechanical switches 8 to 11 are turned on (b-4) L/INS. , (b-4) when any of the mechanical switches 8 to 11 is detected to be on, (a-1
) and invalidate the initial setting data read in [a-3]. If the ON state of any of the mechanical switches 8 to 11 is not detected in (b-4), (a −,
Validate the initial setting data read in 3) (
Perform initial settings based on the read contents in a-3) [b-5]. The time required to implement (a-1) to (b-4) is
For example, for M N 14GG, it is about 40 μs, which is extremely short compared to the human response speed and the recovery time of a mechanical switch, so the above operation prevents interference between the diode switch and the mechanical switch without providing a backflow prevention diode as in the past. can.

上記実施例ではダイオードスイッチとメカニカルスイッ
チの入力を短時間で行う事により双方の干渉を防いだが
、双方の入力を数回繰り返して、その各々の入力状態が
等しいかを判別する事によリ、比較的長い周期で入力を
行っても双方の干渉を防ぐ事ができる。
In the above embodiment, interference between the diode switch and the mechanical switch is prevented by inputting them in a short period of time. Even if input is performed in a relatively long period, interference between the two sides can be prevented.

発明の詳細 な説明ように本発明のキー入力装置は、メカニカルスイ
ッチの読み取り回路に初期設定用ダイオードを接続して
初期設定するよう構成すると共に、初期設定入力の読み
取り直後に前記メカニカルスイッチの入力の有無をチェ
ックして、メカニカルスイッチの入力を検出した場合に
読み取られている初期設定入力を無効とし、メカニカル
スイッチの入力を検出しない場合に読み取られている前
記初期設定入力による初期設定を実行する判定手段を設
けたため、従来のキー入力装置で必要であった逆流防止
用ダイオードをなくすることができる。また判定手段は
、キー入力装置をマイクロコンピュータで構成する場合
にはマイクロコンピュータのソフトウェアを一部変更す
るだけで済み、高い生産性と低コスト化を図れるもので
ある。
DETAILED DESCRIPTION OF THE INVENTION As described above, the key input device of the present invention is configured to perform initial setting by connecting an initial setting diode to a reading circuit of a mechanical switch, and to perform initial setting immediately after reading the initial setting input. Determining whether to check for the presence of the mechanical switch, invalidate the read initial setting input when the input of the mechanical switch is detected, and execute the initial setting based on the read initial setting input when the mechanical switch input is not detected. Since the means is provided, it is possible to eliminate the backflow prevention diode required in the conventional key input device. In addition, when the key input device is configured with a microcomputer, the determination means only needs to partially change the software of the microcomputer, and high productivity and cost reduction can be achieved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のキー入力装置の一実施例の構成図、第
2図は第1図の70−チ1r−ト図、第3図は従来のキ
ー入力装置の構成図、第4図は第3図のフローチャート
図である。 2.3・・・ダイオードスイッチ、8.9,10.11
・・・メカニカルスイッチ、12・・・マイクロコンピ
ュータ代理人   森  本  義  弘 第2図
FIG. 1 is a block diagram of an embodiment of the key input device of the present invention, FIG. 2 is a 70-card diagram of FIG. 1, FIG. 3 is a block diagram of a conventional key input device, and FIG. is a flowchart diagram of FIG. 3; 2.3...Diode switch, 8.9, 10.11
...Mechanical switch, 12...Microcomputer agent Yoshihiro MorimotoFigure 2

Claims (1)

【特許請求の範囲】[Claims] 1、メカニカルスイッチの読み取り回路に初期設定用ダ
イオードを接続して初期設定するよう構成すると共に、
初期設定入力の読み取り直後に前記メカニカルスイッチ
の入力の有無をチェックして、メカニカルスイッチの入
力を検出した場合に読み取られている初期設定入力を無
効とし、メカニカルスイッチの入力を検出しない場合に
読み取られている前記初期設定入力による初期設定を実
行する判定手段を設けたキー入力装置。
1. Connect an initial setting diode to the reading circuit of the mechanical switch to perform initial setting, and
Immediately after reading the initial setting input, the presence or absence of the mechanical switch input is checked, and when the mechanical switch input is detected, the read initial setting input is invalidated, and when the mechanical switch input is not detected, the read initial setting input is invalidated. A key input device further comprising a determining means for performing initial setting based on the initial setting input.
JP60051622A 1985-03-14 1985-03-14 Key input device Pending JPS61210417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60051622A JPS61210417A (en) 1985-03-14 1985-03-14 Key input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60051622A JPS61210417A (en) 1985-03-14 1985-03-14 Key input device

Publications (1)

Publication Number Publication Date
JPS61210417A true JPS61210417A (en) 1986-09-18

Family

ID=12891968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60051622A Pending JPS61210417A (en) 1985-03-14 1985-03-14 Key input device

Country Status (1)

Country Link
JP (1) JPS61210417A (en)

Similar Documents

Publication Publication Date Title
US4728822A (en) Data processing system with improved output function
RU99109013A (en) ASYNCHRONOUS DATA PROCESSING DEVICE
JPS61210417A (en) Key input device
JPS6113250B2 (en)
KR940001557B1 (en) Integrated circuit device
JP2003016400A (en) Power failure detecting device and card reader equipped with the same power failure detecting device
KR890005353B1 (en) Error movement check method of micro processor
JPH076545Y2 (en) Signal discrimination circuit
KR930005834Y1 (en) Over current protective circuit
JPS6314499Y2 (en)
JPH0537256Y2 (en)
JPS6228838A (en) Interruption control circuit
JPH0342494Y2 (en)
JPH04311244A (en) Microcomputer
KR920001358Y1 (en) Rom for resetting of micro processor system
JPH01155416A (en) Memory initializing device
KR860003740Y1 (en) Microprecessor operation protecting circuit from error instruction
JPH0569329B2 (en)
JPS60156145A (en) Microcomputer
KR20000010095U (en) CPI oil input protector
JPH06119154A (en) Device for identifying program of microcomputer
JPS6160467B2 (en)
JPH0580913A (en) Keyboard device
JPS5819087B2 (en) Bus driver direction switching method
JPS6327930A (en) Interruption control circuit