JPS6265138A - Discriminating device for reset signal of microcomputer controller - Google Patents

Discriminating device for reset signal of microcomputer controller

Info

Publication number
JPS6265138A
JPS6265138A JP60204234A JP20423485A JPS6265138A JP S6265138 A JPS6265138 A JP S6265138A JP 60204234 A JP60204234 A JP 60204234A JP 20423485 A JP20423485 A JP 20423485A JP S6265138 A JPS6265138 A JP S6265138A
Authority
JP
Japan
Prior art keywords
power supply
voltage
microcomputer
reset signal
reset
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
JP60204234A
Other languages
Japanese (ja)
Inventor
Yoshiki Hayata
祥樹 早田
Motoshi Miyanaka
宮中 元士
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60204234A priority Critical patent/JPS6265138A/en
Publication of JPS6265138A publication Critical patent/JPS6265138A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To discriminating a reset state in the runaway mode of a microcomputer from a reset state in the drop mode of voltage, by providing a timer circuit consisting of a resistance, a capacitor, a diode, etc. and deciding the rest state according to the output voltage of the timer circuit. CONSTITUTION:When a microcomputer 1 is in a runaway state, a runaway detecting circuit 6 outputs a reset signal. In such a case, a power supply 3 has no drop of voltage and the output of a timer circuit consisting of a capacitor 5, a resistance 4 and a diode 13 is kept at H. While the charging electric charge of the capacitor 5 is discharged quickly via the diode 13 when a reset signal is delivered from a power supply voltage detecting circuit 7. Then the output of the timer circuit goes to L. As a result, a reset state due to the runaway of a microcomputer can be discriminated from a reset state due to the drop of the power supply voltage. Then the power supply 3 is switched to a back-up power supply 2, etc. by an appropriate program.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、マイコンの暴走検出時のリセット信号と電圧
低下時のリセット信号を区別するリセット信号弁別回路
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a reset signal discrimination circuit that distinguishes between a reset signal when a runaway of a microcomputer is detected and a reset signal when a voltage drop occurs.

〔発明の背t) 従来の装置ft−t、昭和56年5月発行の日立パルエ
アコンのサービスブックに記載されているように、瞬時
電圧低下により制御装置のマイコン又はLSIがリセッ
ト信号(f−読み込んだ時は、すべてリセットするよう
にして、腎り、リセット信号を区別することはなかった
〇 (発明の目的) 本発明は上記Kl!fみて発明されたtので、抵抗、コ
ンデンサ、ダイオードの簡単なタイマ回路を設けること
により、マイコン暴走と電圧低下とを区別することが出
来、それぞれの場合に応じた制御が可能となるマイコン
制御装置のリセット信号弁別装置を提供すること金目的
とする。
[Background of the invention t] As described in the service book of the conventional device ft-t, Hitachi Pal air conditioner issued in May 1981, the microcomputer or LSI of the control device issues a reset signal (f-t) due to an instantaneous voltage drop. When it is read, everything is reset, and there is no need to distinguish between reset signals. To provide a reset signal discrimination device for a microcomputer control device, which can distinguish between microcomputer runaway and voltage drop by providing a simple timer circuit, and enables control according to each case.

〔発明の概要〕[Summary of the invention]

上記目的を達成するため本発明は、電源から抵抗を通し
てコンデンサに光電するCRタイマにダイオードを抵抗
とコンデンサの接点と電源との間に接続する。充電時に
は抵抗を通してコンデンサに充電するため時間を要す。
In order to achieve the above object, the present invention connects a diode between the contact point of the resistor and the capacitor and the power source in a CR timer that photovoltaically connects the capacitor through the resistor from the power source. When charging, it takes time to charge the capacitor through the resistor.

電圧低下時には、コ゛  ンデンサに蓄えられた電荷は
ダイオードを通して放電される。このため短時間で放電
する。これをリセット信号が発生した際、まず、前述の
コンデンサの電圧を入力することにより、電圧低下時は
低入力となり、暴走検出回路からのリセットの場合は、
iil源の変化がないため入力は高い電圧となる。この
入力電圧によりセット信号を区別することができる特徴
を有する。
When the voltage drops, the charge stored in the capacitor is discharged through the diode. Therefore, it discharges in a short time. When a reset signal is generated, by first inputting the voltage of the capacitor mentioned above, the input becomes low when the voltage drops, and in the case of a reset from the runaway detection circuit,
Since there is no change in the ii source, the input will be at a high voltage. It has a feature that the set signal can be distinguished by this input voltage.

〔発明の実施例〕[Embodiments of the invention]

以上、本発明の一実施例?第1図により説明する0 通常マイコンIVc寛源3より電源電圧がかかっている
。リセット端子9には、暴走検出回路6、電源電圧低下
検出回路7が接続されている。マイコンバックアップ’
11m2が、バックアップ電源端子8に接続され、マイ
コンを源亀圧低下時にバックアップ用メモリの内容を保
存する。
Is this an embodiment of the present invention? 0, which will be explained with reference to FIG. 1. Normally, a power supply voltage is applied from the microcomputer IVc voltage source 3. A runaway detection circuit 6 and a power supply voltage drop detection circuit 7 are connected to the reset terminal 9. Microcomputer backup'
11m2 is connected to the backup power supply terminal 8, and saves the contents of the backup memory when the power supply voltage of the microcomputer decreases.

ここでマイコン暴走時には、暴走検出回路6からマイコ
ンリセット端子9ヘリセツト信号が出力されるが、電源
は成変であるため入力12は「H」のままである。電源
低下時VCは、亀源奄圧低下検出回路7からリセット信
号が出力される。またこのとき;ンデンサ5に蓄えられ
た電荷はダイオード1:l1mして短時間で放゛旺する
When the microcomputer goes out of control, the runaway detection circuit 6 outputs a reset signal to the microcomputer reset terminal 9, but the input 12 remains at "H" because the power supply is in a state of flux. When the power supply drops, a reset signal is output from the Kamegen pressure drop detection circuit 7 to the VC. Also at this time, the charge stored in the capacitor 5 is discharged in a short time through the diode 1:l1m.

そこで、リセット時の制御プログラムを第2図の如くす
ると、リセット後、まず端子12をチェックすることに
より、電源電圧が一担低下した後は、まだコンデンサ5
Vc十分充′底されていないため入力はrLJとなって
いる。rHJの場合は、マイコン暴走検知によるリセッ
ト信号信号と判断して暴走の処理を行なう。電圧低下の
場合、バックアップ用メモリの内容が破壊されていなけ
れば、運転継続の処理2行い、メモリの内容が破壊され
ていれば、イニシャライズ処理を行なう。
Therefore, if the control program at reset is made as shown in Figure 2, by first checking the terminal 12 after the reset, it is possible to check that the capacitor 5 is still connected after the power supply voltage has dropped by one level.
Since Vc is not fully charged, the input is rLJ. In the case of rHJ, it is determined that the reset signal is due to microcomputer runaway detection, and runaway processing is performed. In the case of a voltage drop, if the contents of the backup memory are not destroyed, a second process of continuing operation is performed, and if the contents of the memory are destroyed, an initialization process is performed.

ここでダイオード130カソードは、第3図の実施例の
ように[原電圧低下検出回路7の出力に接続することも
できる。このときダイオード14は、信号がまわりこむ
ことを県止するためのものである。
Here, the cathode of the diode 130 can also be connected to the output of the source voltage drop detection circuit 7 as in the embodiment of FIG. At this time, the diode 14 is used to prevent the signal from going around.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、抵抗、コンデン
サ、ダイオードによる簡単なタイマ回路を付加するだけ
で、マイコン暴走時のリセットと電圧低下時のリセット
ヲ区別できるのでリセット原因VC応じて運転を制御で
きる効果て有する。
As explained above, according to the present invention, by simply adding a simple timer circuit using a resistor, a capacitor, and a diode, it is possible to distinguish between a reset when a microcontroller runs out of control and a reset when a voltage drop occurs, so the operation is controlled according to the reset cause VC. It has a certain effect.

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

第1図は、本発明の一実施1+11を示すリセット信号
弁別回路図、第2図は、プログラムのフローチャート、
第3図は、他の実施例を示し、ダイオードl!i−電源
電圧低下検出回路に接続したときのりセット信号弁別回
路図である。
FIG. 1 is a reset signal discrimination circuit diagram showing one embodiment 1+11 of the present invention, FIG. 2 is a program flowchart,
FIG. 3 shows another embodiment, in which the diode l! FIG. 3 is a diagram of a glue set signal discrimination circuit when connected to an i-power supply voltage drop detection circuit.

Claims (1)

【特許請求の範囲】[Claims]  電源電圧低下時のバックアップ用メモリを内蔵し、バ
ックアップ用メモリの内容の破壊の有無を弁別できる構
造を持つマイコンを内蔵した制御装置において、マイコ
ン暴走検出回路からのリセット信号と、電圧低下時また
は電圧投入時のリセット信号を入力するマイコン端子が
同一の場合に、電源から抵抗を通しコンデンサに充電す
るCRタイマを設け、コンデンサと抵抗の接続点から電
源または電圧低下検出回路の出力にダイオードのカソー
ドを電源または電圧低下検出回路の出力側へ、アノード
をコンデンサと抵抗の接続点へ接続し、電源投入時には
長時間かかって充電し、電圧低下時にはダイオードを通
して短時間で放電する回路を形成し、マイコンにリセッ
ト信号が入力された場合、まず、このリセットが電圧低
下により発生したものか否かを前述のタイマ回路の電圧
をマイコンで判断し、電圧低下以外のリセット発生の場
合は暴走と判断し、電圧低下の場合はバックアップ用メ
モリの内容の破壊の有無を判断することを特徴とするマ
イコン制御装置のリセット信号弁別装置。
In a control device with a built-in microcomputer that has a built-in backup memory when the power supply voltage drops and has a structure that can distinguish whether the contents of the backup memory have been destroyed, the reset signal from the microcomputer runaway detection circuit and the If the microcomputer terminal that inputs the reset signal at power-on is the same, install a CR timer that charges the capacitor from the power supply through the resistor, and connect the cathode of the diode from the connection point of the capacitor and resistor to the output of the power supply or voltage drop detection circuit. Connect the anode to the connection point of the capacitor and resistor to the output side of the power supply or voltage drop detection circuit, form a circuit that takes a long time to charge when the power is turned on, and quickly discharges through the diode when the voltage drops, and the microcontroller When a reset signal is input, first, the microcontroller determines whether the reset is caused by a voltage drop or not by checking the voltage of the timer circuit described above.If the reset occurs due to something other than a voltage drop, it is determined that a runaway has occurred, and the voltage is A reset signal discriminating device for a microcomputer control device, characterized in that, in the case of a drop, it is determined whether or not the contents of a backup memory are destroyed.
JP60204234A 1985-09-18 1985-09-18 Discriminating device for reset signal of microcomputer controller Pending JPS6265138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60204234A JPS6265138A (en) 1985-09-18 1985-09-18 Discriminating device for reset signal of microcomputer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60204234A JPS6265138A (en) 1985-09-18 1985-09-18 Discriminating device for reset signal of microcomputer controller

Publications (1)

Publication Number Publication Date
JPS6265138A true JPS6265138A (en) 1987-03-24

Family

ID=16487065

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60204234A Pending JPS6265138A (en) 1985-09-18 1985-09-18 Discriminating device for reset signal of microcomputer controller

Country Status (1)

Country Link
JP (1) JPS6265138A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01147634A (en) * 1987-12-02 1989-06-09 Tokyo Electric Co Ltd Runaway preventing device for battery type microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01147634A (en) * 1987-12-02 1989-06-09 Tokyo Electric Co Ltd Runaway preventing device for battery type microcomputer

Similar Documents

Publication Publication Date Title
JP2979605B2 (en) Error detection method of key switch input part in computer
JPS6265138A (en) Discriminating device for reset signal of microcomputer controller
JP4351410B2 (en) Circuit device for detecting functional failures
JPH01253315A (en) Bidirectional buffer
JPH10201092A (en) Control circuit provided with forced operation function, and semiconductor device
JP2000277213A (en) System and method for detecting connection of power source adapter
JPS6117477Y2 (en)
US6430630B1 (en) Direct data access between input and output ports
JP3262386B2 (en) Electrical component connection recognition device
JP3354413B2 (en) Electronic circuit backup voltage detector
JPH0122367Y2 (en)
JPH08137583A (en) Information processor
JPH0334689B2 (en)
KR930003568B1 (en) Charge start control method
JPH0720759Y2 (en) Power supply circuit with power failure compensation malfunction prevention function
JPH0251717A (en) Back-up circuit for memory power supply
JPH08313564A (en) Interruption duration detecting circuit
JPH10307174A (en) Over-discharge detection circuit
JPH02114827A (en) Backup power source equipment
JPH0634192A (en) Reset device for air-conditining machine
JPS5940390A (en) Magnetic bubble memory device
JPS60150288A (en) Backup device for semiconductor memory
JPH0365828A (en) Reset device
JPH08227385A (en) Memory card
JPS5947603A (en) Microcomputer applied device