JPH05173688A - Key input device - Google Patents

Key input device

Info

Publication number
JPH05173688A
JPH05173688A JP3344905A JP34490591A JPH05173688A JP H05173688 A JPH05173688 A JP H05173688A JP 3344905 A JP3344905 A JP 3344905A JP 34490591 A JP34490591 A JP 34490591A JP H05173688 A JPH05173688 A JP H05173688A
Authority
JP
Japan
Prior art keywords
signal
key input
input
watchdog timer
key
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
JP3344905A
Other languages
Japanese (ja)
Inventor
Kazumi Goto
和美 後藤
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3344905A priority Critical patent/JPH05173688A/en
Publication of JPH05173688A publication Critical patent/JPH05173688A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PURPOSE:To inhibit a reset signal, generated periodically by a watchdog timer, in certain specific operation such as key input operation. CONSTITUTION:A watchdog signal WD and a signal which generates a Low level in the certain specific operation are inputted to an AND gate 5, which outputs the reset signal when the both are at a High level. Consequently, a device for key input operation such ash remote control transmitter can be reset in the key input operation regardless of the watchdog timer 6 and by the watchdog timer 6 at other times. For example, the key switch of the remote control transmitter is pressed and then released to put the watchdog timer 6 in operation immediately, thereby automatically resetting the transmission of a remote control signal.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は誤動作の防止に利用す
る。特に、キー入力操作を伴う装置のCPUの誤動作防
止技術に関する。特に、リモコン送信機に利用するに適
する。
BACKGROUND OF THE INVENTION The present invention is used to prevent malfunction. In particular, the present invention relates to a technique for preventing malfunction of the CPU of a device that involves key input operation. In particular, it is suitable for use as a remote control transmitter.

【0002】[0002]

【従来の技術】ウォッチドッグタイマが回路の他の部分
とは独立して構成され、回路が動作している間はウォッ
チドッグタイマがカウントを続け、ある一定時間が経過
すると必ず回路全体にリセットをかけるものがある。こ
の方式のウォッチドッグタイマは一定時間が経過すると
必ずリセットを発生しているので、もし回路が暴走して
も必ず復帰ができる。しかしながらウォッチドッグタイ
マのカウントアップ時間よりも長い時間の処理を行いた
いときでもそれはできないという制約があるためあまり
利用されていない。
2. Description of the Related Art A watchdog timer is constructed independently of the rest of the circuit, and the watchdog timer keeps counting while the circuit is operating, and after a certain period of time, the entire circuit must be reset. There is something to call. Since the watchdog timer of this system always resets after a certain period of time, it can always recover even if the circuit goes out of control. However, it is not often used because there is a constraint that it cannot be performed even when it is desired to perform a process longer than the count-up time of the watchdog timer.

【0003】従来例装置を図4を参照して説明する。図
4は従来例装置のブロック図である。
A conventional device will be described with reference to FIG. FIG. 4 is a block diagram of a conventional example device.

【0004】ROM11には回路が動作するためのソフ
トウェアが格納されている。インストラクションデコー
ダ12はROM11からの命令をデコードして回路の各
部に信号を送っている。ウォッチドッグタイマ13は、
複数のリセット付のフリップフロップで構成されてお
り、カウントアップするとウォッチドッグ信号WDを発
生する。この構成のウォッチドッグタイマでは回路を動
作させる命令の中にウォッチドッグタイマのカウント値
をリセットする命令をあらかじめ用意しておき、インス
トラクションデコーダ12がこの命令をデコードすると
ウォッチドッグタイマ13のカウント値をリセットする
信号RWを発生し、ウォッチドッグ信号WDの発生を遅
らせている。すなわち、ソフトウェアの作成者がソフト
ウェアを作成するとき、ソフトウェアの実行時間を計算
し、ウォッチドッグタイマ13がカウントアップする寸
前にウォッチドッグタイマ13をリセットする命令を実
行するようにソフトウェアを作成し、もし回路が暴走し
てソフトウェアが予定どおりの順番に実行されなかった
場合、このウォッチドッグタイマ13をリセットする命
令を実行するタイミングがずれ、ウォッチドッグ信号W
Dが発生して回路全体にリセットをかけるようになって
いる。
The ROM 11 stores software for operating the circuit. The instruction decoder 12 decodes the instruction from the ROM 11 and sends a signal to each part of the circuit. Watchdog timer 13
It is composed of a plurality of flip-flops with reset, and generates a watchdog signal WD when counting up. In the watchdog timer having this configuration, an instruction for resetting the count value of the watchdog timer is prepared in advance in the instruction for operating the circuit, and when the instruction decoder 12 decodes this instruction, the count value of the watchdog timer 13 is reset. Signal RW for delaying the generation of the watchdog signal WD. That is, when the software creator creates the software, the software execution time is calculated, and the software is created so as to execute the instruction to reset the watchdog timer 13 just before the watchdog timer 13 counts up. If the circuit is out of control and the software is not executed in the order as scheduled, the timing for executing the instruction to reset the watchdog timer 13 is deviated, and the watchdog signal W
When D is generated, the entire circuit is reset.

【0005】[0005]

【発明が解決しようとする課題】このような方式では、
前者の場合はウォッチドッグタイマのカウントアップ時
間より長い処理が実行できないという問題があり、後者
の場合は暴走検出に効果的なソフトウェアを作成するの
は困難であり、ソフトウェアによって検出率が変化して
しまうという問題点がある。
SUMMARY OF THE INVENTION In such a system,
In the former case, there is a problem that processing longer than the count-up time of the watchdog timer cannot be executed, and in the latter case, it is difficult to create software that is effective for detecting runaway, and the detection rate changes depending on the software. There is a problem that it ends up.

【0006】キー入力により動作する各種装置では、そ
のキー操作を行っている人間のキー操作スピードがまち
まちであることから、CPUがキー入力を受け付けてい
る時間は一定ではない。このような場合、常時定期的に
ウォッチドッグ信号を発生して装置にリセットをかける
ような構成のウォッチドッグタイマは適当でなく、キー
入力操作中にリセットをかけられるようでは正しいキー
入力ができなくなってしまう。
[0006] In various devices that operate by key input, the time during which the CPU accepts key input is not constant because the key operation speed of the person performing the key operation varies. In such a case, a watchdog timer configured to constantly generate a watchdog signal to reset the device is not appropriate. Correct resetting during key input operation will prevent proper key input. Will end up.

【0007】本発明はこのような背景に行われたもので
あり、キー入力操作時におけるウォッチドッグ信号の発
生を禁止するキー入力装置の提供を目的とする。
The present invention has been made against such a background, and an object thereof is to provide a key input device for inhibiting generation of a watchdog signal during a key input operation.

【0008】[0008]

【課題を解決するための手段】本発明は複数のキースイ
ッチが接続されるキー入力回路と、このキー入力回路か
らの入力により動作するCPUと、このCPUの動作を
監視してリセット信号を送出する監視回路とを備えたキ
ー入力装置において、前記監視回路は、前記キー入力回
路に入力が存在するときリセット信号の送出を停止する
手段を含むことを特徴とする。
According to the present invention, a key input circuit to which a plurality of key switches are connected, a CPU operated by an input from the key input circuit, an operation of the CPU is monitored, and a reset signal is sent. In the key input device, the monitoring circuit includes means for stopping transmission of a reset signal when an input is present in the key input circuit.

【0009】[0009]

【作用】複数のキースイッチの出力側をそれに対応する
複数のゲートを有するNORゲートに接続する。このN
ORゲートは入力側に接続されたキースイッチのすべて
に入力が存在しないとき出力はHighレベルとなり、
キースイッチのいずれか一つでも入力が存在するとLo
wレベルとなる。このNORゲートの出力と、ウォッチ
ドッグタイマのウォッチドッグ信号出力をANDゲート
の入力側に接続する。
The output side of the plurality of key switches is connected to the NOR gate having a plurality of gates corresponding to the output side. This N
The output of the OR gate becomes High level when there is no input in all of the key switches connected to the input side,
Lo if there is input from any one of the key switches
w level. The output of the NOR gate and the watchdog signal output of the watchdog timer are connected to the input side of the AND gate.

【0010】このANDゲートは2つの入力の両方とも
Highレベルになったときに出力もHighレベルと
なることは周知である。これにより、ウォッチドッグ信
号のHighレベル信号と、キースイッチのいずれにも
入力が存在しないときのNORゲートからのHighレ
ベル信号とが両方存在するときだけANDゲートに入力
されたウォッチドッグ信号はリセット信号としてCPU
に出力され、キースイッチのいずれか一つでも入力が存
在すればウォッチドッグ信号はANDゲートから出力さ
れない。
It is well known that the output of this AND gate also becomes High level when both of its two inputs become High level. As a result, the watchdog signal input to the AND gate is the reset signal only when both the high level signal of the watchdog signal and the high level signal from the NOR gate when there is no input in any of the key switches exist. As CPU
If any one of the key switches has an input, the watchdog signal is not output from the AND gate.

【0011】[0011]

【実施例】本発明実施例装置の構成を図1を参照して説
明する。図1は本発明実施例装置のブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of the device of the embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram of an apparatus according to an embodiment of the present invention.

【0012】本発明は複数のキースイッチが接続される
キー入力回路1と、このキー入力回路1からの入力によ
り動作するCPU2と、このCPU2の動作を監視して
リセット信号を送出する監視回路3とを備えたキー入力
装置において、監視回路3は、キー入力回路1に入力が
存在するときリセット信号Rの送出を停止する手段とし
てのNORゲート4およびANDゲート5を含むことを
特徴とする。
According to the present invention, a key input circuit 1 to which a plurality of key switches are connected, a CPU 2 which operates by an input from the key input circuit 1, and a monitoring circuit 3 which monitors the operation of the CPU 2 and sends a reset signal. In the key input device provided with, the monitoring circuit 3 is characterized by including a NOR gate 4 and an AND gate 5 as means for stopping the transmission of the reset signal R when an input is present in the key input circuit 1.

【0013】監視回路3はこのNORゲート4およびA
NDゲート5の他にウォッチドッグタイマ6で構成され
ている。ウォッチドッグタイマ6は複数のフリップフロ
ップで構成され、クロック信号CKを入力してカウント
アップするとウォッチドッグ信号WDを発生する。キー
入力回路1はプルダウン抵抗7付の入力端子8で構成さ
れ入力信号KIを発生する。NORゲート4は入力信号
KIを入力してキー入力判定信号KJを発生する。AN
Dゲート5は2入力のANDでウォッチドッグ信号WD
とキー入力判定信号KJを入力してリセット信号Rを出
力する。
The monitoring circuit 3 uses the NOR gates 4 and A.
In addition to the ND gate 5, it is composed of a watchdog timer 6. The watchdog timer 6 is composed of a plurality of flip-flops, and generates a watchdog signal WD when the clock signal CK is input and counted up. The key input circuit 1 comprises an input terminal 8 with a pull-down resistor 7 and generates an input signal KI. The NOR gate 4 receives the input signal KI and generates the key input determination signal KJ. AN
The D gate 5 is a 2-input AND gate and a watchdog signal WD.
The key input determination signal KJ is input and the reset signal R is output.

【0014】次に、本発明実施例装置の動作を図2を参
照して説明する。図2は本発明実施例装置の動作を示す
タイムチャートである。なお、本発明実施例装置の各種
信号はすべて立ち上がりエッヂ検出の信号である。
Next, the operation of the apparatus of the present invention will be described with reference to FIG. FIG. 2 is a time chart showing the operation of the apparatus of the present invention. It should be noted that all the various signals of the apparatus of the present invention are rising edge detection signals.

【0015】ウォッチドッグタイマ6はクロック信号C
Kを分周し、フリップフロップの段数とクロック信号C
Kの周波数により決定される時間毎にウォッチドッグ信
号WDを発生する。通常、このウォッチドッグ信号WD
はシステムリセット信号と同じとみなし、この信号が発
生すると回路全体にリセットをかける構成になってい
る。キー入力回路1はプルダウン抵抗7付の入力端子8
から構成されているので外部から入力がない場合は、入
力信号KIはLowレベルとなり、外部からHighレ
ベルの入力があったときのみ入力信号KIはHighレ
ベルとなる。本発明実施例装置のキー入力回路1は4本
の入力端子8で構成されている。NORゲート4は4入
力のNORで構成されており、入力信号KIがすべてL
owレベルのとき、すなわちキー入力が存在しないとき
キー入力判定信号KJはHighレベルとなり、入力信
号KIの内少なくとも一つがHighレベルとなったと
き、すなわちキー入力が一つでも存在するときキー入力
判定信号KJはLowレベルとなる。2入力のANDゲ
ート5はウォッチドッグ信号WDと、キー入力判定信号
KJを入力し、両方の信号がHighレベルのとき、す
なわちキー入力が存在せずしかもウォッチドッグ信号W
Dが発生しているときだけリセット信号Rを発生する。
これにより、キー入力操作中のリセット信号Rの発生は
禁止される。
The watchdog timer 6 has a clock signal C.
Divide K to obtain the number of flip-flop stages and clock signal C
The watchdog signal WD is generated every time determined by the frequency of K. Normally, this watchdog signal WD
Is regarded as the same as the system reset signal, and when this signal is generated, the entire circuit is reset. The key input circuit 1 has an input terminal 8 with a pull-down resistor 7.
Since there is no input from the outside, the input signal KI becomes the Low level, and the input signal KI becomes the High level only when there is the High level input from the outside. The key input circuit 1 of the device of the present invention is composed of four input terminals 8. The NOR gate 4 is composed of a 4-input NOR, and the input signal KI is all L level.
At the ow level, that is, when there is no key input, the key input determination signal KJ is at the high level, and when at least one of the input signals KI is at the high level, that is, when there is at least one key input, the key input determination is performed. The signal KJ becomes Low level. The 2-input AND gate 5 inputs the watchdog signal WD and the key input determination signal KJ, and when both signals are at the high level, that is, there is no key input and the watchdog signal W
The reset signal R is generated only when D is generated.
As a result, generation of the reset signal R during the key input operation is prohibited.

【0016】次に、本発明実施例装置をリモコン送信機
に応用した例を図3を参照して説明する。図3は本発明
実施例装置をリモコン送信機に応用したときのブロック
図である。
Next, an example in which the apparatus of the present invention is applied to a remote control transmitter will be described with reference to FIG. FIG. 3 is a block diagram when the apparatus of the present invention is applied to a remote control transmitter.

【0017】本発明実施例装置は、特にリモコン送信機
などへの応用に適する。リモコン送信機に本発明実施例
装置を用いてキースイッチを押下している間だけリモコ
ン信号が送出される構成とすることにより、電池の消耗
を防げる他にリモコン送信機本体の電源開閉のためのス
イッチを省略できる。また、リモコン送信機のキースイ
ッチを押下している間だけ表示器に操作内容の表示を出
力し、キースイッチ解放後は表示を自動的に停止する構
成とするときも本発明実施例装置が適応できる。
The apparatus of the present invention is particularly suitable for application to a remote control transmitter and the like. By using the device of the embodiment of the present invention for the remote control transmitter, the remote control signal is transmitted only while the key switch is being pressed, so that battery consumption can be prevented and the power supply of the remote control transmitter main body can be opened and closed. The switch can be omitted. Further, the device of the present invention is also applicable to a configuration in which the display of the operation content is output to the display unit only while the key switch of the remote control transmitter is pressed and the display is automatically stopped after the key switch is released. it can.

【0018】[0018]

【発明の効果】キー入力操作をしている間ウォッチドッ
グタイマの出力を禁止することにより、ウォッチドッグ
タイマのカウント値をソフトウェアでリセットしなくて
もキーを押し続けている間はウォッチドッグタイマのカ
ウントアップ時間より長い時間の処理を続けることがで
きる。また、回路構成が簡単であり確実な誤動作監視回
路を容易に構成することができる。リモコン送信機に応
用すれば、キースイッチ押下時のみリモコン信号を送出
および表示出力を出力するなどの構成とすることが容易
にできる。
[Effects of the Invention] By prohibiting the output of the watchdog timer while performing a key input operation, the watchdog timer's output can be maintained as long as the key is held down without resetting the count value of the watchdog timer by software. It is possible to continue processing for a time longer than the count-up time. In addition, the circuit configuration is simple and a reliable malfunction monitoring circuit can be easily configured. When applied to a remote control transmitter, it can be easily configured to send a remote control signal and output a display output only when a key switch is pressed.

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

【図1】本発明実施例装置のブロック図。FIG. 1 is a block diagram of an apparatus according to an embodiment of the present invention.

【図2】本発明実施例装置の動作を示すタイムチャー
ト。
FIG. 2 is a time chart showing the operation of the apparatus according to the embodiment of the present invention.

【図3】本発明実施例装置をリモコン送信機に応用した
ときのブロック図。
FIG. 3 is a block diagram when the device according to the embodiment of the present invention is applied to a remote control transmitter.

【図4】従来例装置のブロック図。FIG. 4 is a block diagram of a conventional device.

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

1 キー入力回路 2 CPU 3 監視回路 4 NORゲート 5 ANDゲート 6 ウォッチドッグタイマ 7 プルダウン抵抗 8 入力端子 11 ROM 12 インストラクションデコーダ 13 ウォッチドッグタイマ CK クロック信号 KI 入力信号 KJ キー入力判定信号 R リセット信号 RW ウォッチドッグタイマのカウント値をリセットす
る信号 WD ウォッチドッグ信号
1 key input circuit 2 CPU 3 monitoring circuit 4 NOR gate 5 AND gate 6 watchdog timer 7 pull-down resistor 8 input terminal 11 ROM 12 instruction decoder 13 watchdog timer CK clock signal KI input signal KJ key input determination signal R reset signal RW watch Signal that resets the count value of the dog timer WD Watchdog signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のキースイッチが接続されるキー入
力回路と、このキー入力回路からの入力により動作する
CPUと、このCPUの動作を監視してリセット信号を
送出する監視回路とを備えたキー入力装置において、 前記監視回路は、 前記キー入力回路に入力が存在するときリセット信号の
送出を停止する手段を含むことを特徴とするキー入力装
置。
1. A key input circuit to which a plurality of key switches are connected, a CPU that operates by an input from the key input circuit, and a monitoring circuit that monitors the operation of the CPU and sends a reset signal. In the key input device, the monitoring circuit includes means for stopping transmission of a reset signal when an input is present in the key input circuit.
JP3344905A 1991-12-26 1991-12-26 Key input device Pending JPH05173688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3344905A JPH05173688A (en) 1991-12-26 1991-12-26 Key input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3344905A JPH05173688A (en) 1991-12-26 1991-12-26 Key input device

Publications (1)

Publication Number Publication Date
JPH05173688A true JPH05173688A (en) 1993-07-13

Family

ID=18372902

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3344905A Pending JPH05173688A (en) 1991-12-26 1991-12-26 Key input device

Country Status (1)

Country Link
JP (1) JPH05173688A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016011028A (en) * 2014-06-27 2016-01-21 株式会社デンソー Vehicular electronic control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016011028A (en) * 2014-06-27 2016-01-21 株式会社デンソー Vehicular electronic control device

Similar Documents

Publication Publication Date Title
KR880011997A (en) Automatic gain control system
US3825926A (en) Interfacing circuitry for connecting a remote keyboard with a data receiving buffer
JPH05173688A (en) Key input device
KR960032138A (en) Microcomputer
US4246651A (en) Electronic timepiece
GB1466603A (en) Flip-flop controlled clock gating system
KR970004947A (en) How to prevent malfunction of the remote control
GB2262172A (en) Low power change-of-contact-state detector
KR930006074Y1 (en) Noise detecting and controlling circuit of logic circuit
KR0148528B1 (en) Microcontroller
SU656215A1 (en) Device for monitoring binary counter with sped-up carry
JP2000035903A (en) Runaway monitoring device for microcomputer
JPH0215320A (en) Clock mechanism control system
JPH04286036A (en) Watch dog timer device
JP2734370B2 (en) Alarm occurrence detection protection device
KR880000515Y1 (en) Switching signal control circuit
JPS622687Y2 (en)
KR19980036691A (en) Micom malfunction prevention circuit
KR950014167B1 (en) Interrupt generating apparatus for supervising abnoxmal state
JP3025318U (en) Reset signal generator
JPS6310248A (en) Detecting system for abnormal state of microprocessor
JPH02205940A (en) Watchdog timer device
JPH0369235A (en) Serial data transmitting circuit
JPH025149A (en) Program runaway detecting circuit
KR20010009389A (en) Error prevention circuit