JP2006227742A - Reset circuit for microcomputer - Google Patents

Reset circuit for microcomputer Download PDF

Info

Publication number
JP2006227742A
JP2006227742A JP2005038084A JP2005038084A JP2006227742A JP 2006227742 A JP2006227742 A JP 2006227742A JP 2005038084 A JP2005038084 A JP 2005038084A JP 2005038084 A JP2005038084 A JP 2005038084A JP 2006227742 A JP2006227742 A JP 2006227742A
Authority
JP
Japan
Prior art keywords
reset signal
microcomputer
reset
input terminal
low voltage
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.)
Withdrawn
Application number
JP2005038084A
Other languages
Japanese (ja)
Inventor
Koji Uno
浩二 宇野
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.)
Valeo Japan Co Ltd
Original Assignee
Niles 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 Niles Co Ltd filed Critical Niles Co Ltd
Priority to JP2005038084A priority Critical patent/JP2006227742A/en
Publication of JP2006227742A publication Critical patent/JP2006227742A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To distinguish whether a reset signal inputted to a reset input terminal is caused by abnormality on a microcomputer side or by the other cause. <P>SOLUTION: A delay reset signal based on time of power-on from a delay circuit 12, a low voltage detection reset signal from a low voltage detection part 14 detecting low voltage of a power source, and a WDT abnormality detection reset signal from a WDT abnormality detection circuit part 16 monitoring a P-RUN signal are inputted to the reset input terminal R of the microcomputer 10. A storage circuit part 20 receives a storage clear signal from the low voltage detection part, and outputs a WDT reset signal that is a Hi level to a WDT reset signal input terminal W when the reset signal is inputted to the reset input terminal R while not detecting the low voltage. The microcomputer 10 can identify whether the reset signal to the rest input terminal R is caused by the low voltage or by the WDT abnormality by WDT reset signal reference. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、マイクロコンピュータが正常な作動を確保できないとき当該マイクロコンピュータをリセットさせるためのリセット回路に関する。   The present invention relates to a reset circuit for resetting a microcomputer when the microcomputer cannot ensure normal operation.

CPU(中央演算ユニット)を主要素とするマイクロコンピュータには、その正常な作動を確保できないときリセットして、あらためて再起動するなどのためリセット回路が付設されている。
例えば、マイクロコンピュータに電力を供給する電源の電圧が、マイクロコンピュータの正常動作を確保できない所定の低電圧になった場合には、低電圧検出部からの低電圧検出リセット信号がマイクロコンピュータに入力されてリセットする。また、WDT(ウォッチドッグタイマ)異常検出回路部がCPUからのP−RUN信号を監視して、P−RUN信号が途絶えたときには、CPUが暴走しているものとしてWDT異常検出リセット信号がマイクロコンピュータに入力されてリセットする。
A microcomputer having a CPU (central processing unit) as a main element is provided with a reset circuit for resetting and restarting when the normal operation cannot be ensured.
For example, when the voltage of the power source that supplies power to the microcomputer becomes a predetermined low voltage that cannot ensure the normal operation of the microcomputer, a low voltage detection reset signal from the low voltage detection unit is input to the microcomputer. To reset. When the WDT (watchdog timer) abnormality detection circuit section monitors the P-RUN signal from the CPU and the P-RUN signal is interrupted, it is assumed that the CPU is out of control and the WDT abnormality detection reset signal is sent to the microcomputer. To reset.

なおこのほか、マイクロコンピュータへの電源投入時には、電圧が所定値に達するまではマイクロコンピュータの起動を抑えておくため、遅延回路からも遅延リセット信号がマイクロコンピュータへ入力されるようになっている。
従来のリセット回路では、上記の各リセット信号がいずれもマイクロコンピュータの共通のリセット入力端子に入力されている。
実公平6−24898号公報
In addition, when the power to the microcomputer is turned on, a delay reset signal is also input to the microcomputer from the delay circuit in order to suppress the start-up of the microcomputer until the voltage reaches a predetermined value.
In the conventional reset circuit, all the reset signals described above are input to a common reset input terminal of the microcomputer.
Japanese Utility Model Publication No. 6-24898

ところで、リセット信号がマイクロコンピュータに入力されたときのリセット後の処置はリセット信号の種別によって異ならせるのが望ましい。
例えば、低電圧検出リセット信号の場合は電源電圧が低いだけであって、マイクロコンピュータ側に異常はないので、リセット解除後はマイクロコンピュータは再度通常動作を継続することができる。一方、WDT異常検出リセット信号の場合はマイクロコンピュータの故障として、その動作停止、あるいは故障通知などのフェールモードに移行する必要がある。
By the way, it is desirable to change the treatment after reset when the reset signal is input to the microcomputer depending on the type of the reset signal.
For example, in the case of a low-voltage detection reset signal, the power supply voltage is only low and there is no abnormality on the microcomputer side. Therefore, after the reset is released, the microcomputer can continue normal operation again. On the other hand, in the case of the WDT abnormality detection reset signal, it is necessary to shift to a failure mode such as the operation stop or failure notification as a failure of the microcomputer.

しかしながら、マイクロコンピュータのリセット信号入力端子は1つであり、従来のリセット回路では、単に各リセット信号を共通のリセット入力端子に入力するだけの構成であるため、低電圧検出リセット信号であるのかWDT異常検出リセット信号であるのか、さらには遅延リセット信号であるのかマイクロコンピュータは判断できず、リセット解除後の処置を再動作継続か、動作停止かいずれかに固定せざるを得ないという問題があった。   However, since the microcomputer has only one reset signal input terminal and the conventional reset circuit simply inputs each reset signal to the common reset input terminal, whether the low-voltage detection reset signal is WDT. The microcomputer cannot determine whether it is an abnormality detection reset signal or even a delayed reset signal, and there is a problem that the action after reset release must be fixed to continue operation or stop operation. It was.

したがって本発明は、上記従来の問題点に鑑み、リセット入力端子に入力されるリセット信号がマイクロコンピュータ側の異常によるものか他の原因によるものかをマイクロコンピュータで判別可能としたマイクロコンピュータのリセット回路を提供することを目的とする。   Therefore, in view of the above-described conventional problems, the present invention provides a microcomputer reset circuit that can determine whether the reset signal input to the reset input terminal is due to an abnormality on the microcomputer side or due to another cause. The purpose is to provide.

このため、本発明は、マイクロコンピュータに第1リセット信号入力端子を備え、マイクロコンピュータ内部および外部の状態に基くリセット信号が第1リセット信号入力端子に入力されて、当該マイクロコンピュータをリセットするリセット回路において、マイクロコンピュータにさらに上記リセット信号の発生状態に基く参照信号を入力する第2リセット信号入力端子を備えて、第1リセット信号入力端子に入力されたリセット信号がマイクロコンピュータ内部の状態に基くものか外部の状態に基くものかを識別可能とした。   Therefore, the present invention provides a reset circuit that includes a first reset signal input terminal in a microcomputer and resets the microcomputer when a reset signal based on the internal and external states of the microcomputer is input to the first reset signal input terminal. The microcomputer further includes a second reset signal input terminal for inputting a reference signal based on the generation state of the reset signal, and the reset signal input to the first reset signal input terminal is based on the internal state of the microcomputer. Or whether it is based on external conditions.

第2リセット信号入力端子に入力された参照信号を参照することにより、第1リセット信号入力端子に入力されたリセット信号がマイクロコンピュータ内部の状態に基くものか外部の状態に基くものかを識別できるので、マイクロコンピュータではリセット解除後に通常の再動作継続か、動作停止か、適切な処置を選択することができる。   By referring to the reference signal input to the second reset signal input terminal, it is possible to identify whether the reset signal input to the first reset signal input terminal is based on an internal state or an external state. Therefore, in the microcomputer, it is possible to select an appropriate measure to continue normal operation or stop operation after reset release.

以下、本発明の実施の形態について詳細に説明する。
図1は、実施の形態の構成を示すブロック図である。
マイクロコンピュータ10用の電源Bには、マイクロコンピュータ10とそれぞれ並列に、遅延回路12、低電圧検出部14およびWDT異常検出回路部16が接続されている。
マイクロコンピュータ10には、リセット信号入力端子RとP−RUN信号出力端子P、ならびにWDTリセット信号入力端子Wが設けられている。
遅延回路12、低電圧検出部14およびWDT異常検出回路部16の各出力はAND回路18を経てマイクロコンピュータ10のリセット信号入力端子Rに接続されている。
WDT異常検出回路部16にはP−RUN信号出力端子PからP−RUN信号が入力される。
マイクロコンピュータ10のWDTリセット信号入力端子Wには記憶回路部20が接続されている。AND回路18の出力側は記憶回路部20にも接続されている。
Hereinafter, embodiments of the present invention will be described in detail.
FIG. 1 is a block diagram showing the configuration of the embodiment.
A delay circuit 12, a low voltage detection unit 14, and a WDT abnormality detection circuit unit 16 are connected to the power supply B for the microcomputer 10 in parallel with the microcomputer 10, respectively.
The microcomputer 10 is provided with a reset signal input terminal R, a P-RUN signal output terminal P, and a WDT reset signal input terminal W.
The outputs of the delay circuit 12, the low voltage detection unit 14, and the WDT abnormality detection circuit unit 16 are connected to the reset signal input terminal R of the microcomputer 10 via the AND circuit 18.
The P-RUN signal is input from the P-RUN signal output terminal P to the WDT abnormality detection circuit unit 16.
A memory circuit unit 20 is connected to the WDT reset signal input terminal W of the microcomputer 10. The output side of the AND circuit 18 is also connected to the memory circuit unit 20.

遅延回路12は、電源投入時に、電源電圧がマイクロコンピュータ10が作動するに必要な電圧に達するまでの間、遅延リセット信号を出力する。
低電圧検出部14は、電源電圧がマイクロコンピュータ10の作動不安定となる所定の低電圧VB以下になった場合に、低電圧検出リセット信号を出力する。
WDT異常検出回路部16は、マイクロコンピュータ10から入力されるP−RUN信号が途絶えたとき(WDT異常時)、WDT異常検出リセット信号を出力する。
低電圧検出部14はさらに、低電圧検出リセット信号と同じ記憶クリア信号を記憶回路部20へ出力する。
記憶回路部20は、記憶クリア信号に基づいて、AND回路18を経た遅延回路12、低電圧検出部14およびWDT異常検出回路部16からのリセット信号を選択的に記憶、クリアする。記憶回路部20はマイクロコンピュータ10のWDTリセット信号入力端子WへWDTリセット信号を出力する。
The delay circuit 12 outputs a delay reset signal until the power supply voltage reaches a voltage necessary for the microcomputer 10 to operate when the power is turned on.
The low voltage detection unit 14 outputs a low voltage detection reset signal when the power supply voltage becomes equal to or lower than a predetermined low voltage VB at which the operation of the microcomputer 10 becomes unstable.
The WDT abnormality detection circuit unit 16 outputs a WDT abnormality detection reset signal when the P-RUN signal input from the microcomputer 10 is interrupted (when WDT is abnormal).
The low voltage detection unit 14 further outputs the same memory clear signal as the low voltage detection reset signal to the storage circuit unit 20.
The storage circuit unit 20 selectively stores and clears reset signals from the delay circuit 12, the low voltage detection unit 14, and the WDT abnormality detection circuit unit 16 that have passed through the AND circuit 18 based on the storage clear signal. The memory circuit unit 20 outputs a WDT reset signal to the WDT reset signal input terminal W of the microcomputer 10.

図2のタイミングチャートは上述した各信号の具体例を示す。
遅延リセット信号は電源電圧が電圧VAに達したあと所定の時間経過(遅延)までLowレベルを示し、その後Hiレベルとなる。電源電圧は電圧VAに達したあとの遅延時間経過により、通常、電圧VBより高くなる。
低電圧検出リセット信号と記憶クリア信号とは、電源電圧が電圧VBより高い間はHiレベルで、電圧VB以下になるとLowレベルとなる。
WDT異常検出リセット信号はP−RUN信号が途絶えたときから所定時間の間だけLowレベルを示し、その後はHiレベルとなる。
遅延リセット信号、低電圧検出リセット信号およびWDT異常検出リセット信号はAND回路18を経ることによりLowレベルが優先され、いずれかがLowレベルになるとマイクロコンピュータ10のリセット信号入力端子Rにはリセット信号としてLowレベルが入力される。
The timing chart of FIG. 2 shows a specific example of each signal described above.
The delayed reset signal indicates the Low level until a predetermined time elapses (delay) after the power supply voltage reaches the voltage VA, and then becomes the Hi level. The power supply voltage usually becomes higher than the voltage VB as a delay time elapses after reaching the voltage VA.
The low voltage detection reset signal and the storage clear signal are at a high level when the power supply voltage is higher than the voltage VB, and at a low level when the voltage is lower than the voltage VB.
The WDT abnormality detection reset signal indicates a low level for a predetermined time from when the P-RUN signal stops, and then becomes a high level.
The delayed reset signal, the low voltage detection reset signal, and the WDT abnormality detection reset signal are given priority to the low level through the AND circuit 18, and when any of them becomes the low level, the reset signal input terminal R of the microcomputer 10 has a reset signal as a reset signal. Low level is input.

記憶回路部20は、低電圧検出部14からの記憶クリア信号がLowレベルである間はWDTリセット信号をLowレベルとし、記憶クリア信号がHiレベルとなっている間は、AND回路18からLowレベル(リセット信号)が入力すると、HiレベルのWDTリセット信号をマイクロコンピュータ10のWDTリセット信号入力端子Wへ出力し、この状態を保持する。   The memory circuit unit 20 sets the WDT reset signal to the Low level while the memory clear signal from the low voltage detection unit 14 is at the Low level, and from the AND circuit 18 to the Low level while the memory clear signal is at the Hi level. When (reset signal) is input, a Hi-level WDT reset signal is output to the WDT reset signal input terminal W of the microcomputer 10, and this state is maintained.

図2における時刻t1は、電源投入後、遅延リセット信号がLowからHiレベルへ変化し、正常電圧状態で起動が開始した状態を示す。
低電圧検出リセット信号もHiレベル、P−RUN信号も正常でWDT異常検出リセット信号もHiレベルであるから、AND回路18からマイクロコンピュータ10のリセット信号入力端子Rに入力するリセット信号はHiレベルである。
記憶クリア信号もHiレベルであるが、リセット信号がLowレベルでないので、記憶回路部20からのWDTリセット信号はLowレベルである。
A time t1 in FIG. 2 indicates a state in which the delay reset signal changes from Low to Hi level after power-on and the start-up is started in a normal voltage state.
Since the low voltage detection reset signal is also at the Hi level, the P-RUN signal is normal, and the WDT abnormality detection reset signal is at the Hi level, the reset signal input from the AND circuit 18 to the reset signal input terminal R of the microcomputer 10 is at the Hi level. is there.
Although the memory clear signal is also at the Hi level, the WDT reset signal from the memory circuit unit 20 is at the Low level because the reset signal is not at the Low level.

時刻t2からt3の間では、電源電圧が低電圧となったため、低電圧検出リセット信号がLowレベルに変化し、AND回路18からマイクロコンピュータ10のリセット信号入力端子Rに入力するリセット信号はLowレベルとなる。
このとき、記憶クリア信号もLowレベルとなるので、WDTリセット信号はLowレベルのままである。
Between time t2 and t3, since the power supply voltage has become low, the low voltage detection reset signal changes to low level, and the reset signal input from the AND circuit 18 to the reset signal input terminal R of the microcomputer 10 is low level. It becomes.
At this time, since the memory clear signal is also at the low level, the WDT reset signal remains at the low level.

時刻t4は、電源電圧は正常であるが、マイクロコンピュータ10からのP−RUN信号が途絶えたため、WDT異常検出リセット信号がHiからLowレベルへ変化したときである。これにより、マイクロコンピュータ10のリセット信号入力端子Rに入力するリセット信号はLowレベルとなる。
電源電圧は低電圧ではないから、記憶回路部20は、記憶クリア信号がHiレベルの状態でLowレベルのリセット信号が入力するので、HiレベルのWDTリセット信号を出力する。
このあと、WDT異常検出リセット信号は所定時間経過後にHiレベルへ戻るが、HiレベルのWDTリセット信号は継続する。
At time t4, the power supply voltage is normal, but the P-RUN signal from the microcomputer 10 is interrupted, so that the WDT abnormality detection reset signal changes from Hi to Low level. As a result, the reset signal input to the reset signal input terminal R of the microcomputer 10 becomes a low level.
Since the power supply voltage is not a low voltage, the memory circuit unit 20 outputs the Hi level WDT reset signal because the Low level reset signal is input while the memory clear signal is at the Hi level.
Thereafter, the WDT abnormality detection reset signal returns to the Hi level after a predetermined time has elapsed, but the Hi level WDT reset signal continues.

時刻t5は、HiレベルのWDTリセット信号が継続している状態で、P−RUN信号が復旧し、その後電源電圧が低電圧となったときを示し、低電圧検出リセット信号がLowレベルに変化し、記憶クリア信号もLowレベルとなる。
これにより、マイクロコンピュータ10のリセット信号入力端子Rに入力するリセット信号はLowレベルへ、WDTリセット信号はHiからLowレベルへ変化する。
以上の各信号の変化から、リセット信号が低電圧検出による場合はWDTリセット信号はLowレベルとなり、WDT異常検出のみによる場合はWDTリセット信号がHiレベルとなる。
At time t5, when the Hi-level WDT reset signal continues, the P-RUN signal recovers, and then the power supply voltage becomes low. The low-voltage detection reset signal changes to Low level. The memory clear signal also goes low.
As a result, the reset signal input to the reset signal input terminal R of the microcomputer 10 changes to Low level, and the WDT reset signal changes from Hi to Low level.
From the above changes in the signals, the WDT reset signal becomes the Low level when the reset signal is based on the low voltage detection, and the WDT reset signal becomes the Hi level only when the WDT abnormality is detected.

以上のように構成されたマイクロコンピュータのリセット回路では、リセット信号入力端子Rにリセット信号が入力されてマイクロコンピュータがリセットされ、そのリセット解除後にWDTリセット信号の状態を参照することによって、リセット信号入力端子Rに入力したリセット信号がWDT異常のみによるものか、低電圧等によるものかを識別することができる。
したがって、マイクロコンピュータ10はその原因の識別結果に基づいて、リセット解除後の適切な処置が可能となる。
図3はマイクロコンピュータ10におけるリセット信号入力時の処理フローを示す。
リセット信号入力端子Rにリセット信号が入力されマイクロコンピュータ10がリセットされると、そのリセット解除後にまずステップ101において、WDTリセット信号入力端子Wの入力状態を読み込み、ステップ102で、WDTリセット信号がHiレベルであるか、Lowレベルであるかをチェックする。
In the reset circuit of the microcomputer configured as described above, the reset signal is input to the reset signal input terminal R, the microcomputer is reset, and the reset signal is input by referring to the state of the WDT reset signal after releasing the reset. It is possible to identify whether the reset signal input to the terminal R is due to only WDT abnormality or low voltage.
Therefore, the microcomputer 10 can take an appropriate action after reset release based on the identification result of the cause.
FIG. 3 shows a processing flow at the time of reset signal input in the microcomputer 10.
When the reset signal is input to the reset signal input terminal R and the microcomputer 10 is reset, first after the reset is released, in step 101, the input state of the WDT reset signal input terminal W is read. In step 102, the WDT reset signal is It is checked whether the level is Hi level or Low level.

WDTリセット信号入力端子Wに入力しているWDTリセット信号がLowレベルのときは、低電圧をふくむ原因によるものとして、ステップ103へ進み再起動して、今回のリセット信号入力に対する処理を終了する。これによりマイクロコンピュータ10は通常の動作を継続する。
一方、ステップ102のチェックでWDTリセット信号がHiレベルであったときは、WDT異常によるものとして、ステップ105へ進み、マイクロコンピュータ10の動作停止、またはフェールモードへの移行を行い、その後ステップ106で電源をリセットして終了する。
When the WDT reset signal input to the WDT reset signal input terminal W is at the low level, it is assumed that the low voltage is included, the process proceeds to step 103 and restarts, and the process for the current reset signal input is terminated. Thereby, the microcomputer 10 continues normal operation.
On the other hand, if the WDT reset signal is at the Hi level in the check in step 102, it is determined that the WDT is abnormal, and the process proceeds to step 105 to stop the operation of the microcomputer 10 or shift to the fail mode. Reset the power and exit.

なお、電源電圧が低電圧になると同時にマイクロコンピュータ10からのP−RUN信号が途絶えて、低電圧検出リセット信号とWDT異常検出リセット信号が同時にLowレベルになった場合は、記憶クリア信号もLowレベルであるから、記憶回路部20はWDTリセット信号をLowレベルとする。したがってマイクロコンピュータ10はステップ102からステップ103へ進み、通常のリセット処理を実行する。このリセット処理のあと再起動し低電圧状態が解消されても依然としてP−RUN信号が発せられなければ、またWDT異常検出リセット信号がLowレベルとなり、今度はステップ102からステップ105へ進む。したがって、WDT異常がある場合は最終的に動作停止など異常時処理が行われることになる。   If the P-RUN signal from the microcomputer 10 is interrupted at the same time as the power supply voltage becomes low, and the low voltage detection reset signal and the WDT abnormality detection reset signal are simultaneously set to the low level, the memory clear signal is also set to the low level. Therefore, the memory circuit unit 20 sets the WDT reset signal to the low level. Therefore, the microcomputer 10 proceeds from step 102 to step 103 and executes normal reset processing. If the P-RUN signal is not issued even after the reset process is restarted and the low voltage state is resolved, the WDT abnormality detection reset signal becomes the low level, and the process proceeds from step 102 to step 105 this time. Therefore, when there is a WDT abnormality, an abnormal process such as operation stop is finally performed.

本実施例は以上のように構成され、マイクロコンピュータ10にリセット信号入力端子Rを備え、マイクロコンピュータ内部および外部の状態に基くリセット信号がリセット信号入力端子Rに入力されて、当該マイクロコンピュータをリセットするリセット回路において、マイクロコンピュータ10にさらにリセット信号の発生状態に基く参照信号としてWDTリセット信号を入力するWDTリセット信号入力端子Wを備えて、リセット信号入力端子Rに入力されたリセット信号がマイクロコンピュータ内部の状態に基くものか外部の状態に基くものかを識別可能としたので、リセット解除後に通常の再動作継続か、動作停止か、適切な処置を選択することができる。   The present embodiment is configured as described above. The microcomputer 10 includes the reset signal input terminal R, and a reset signal based on the internal and external states of the microcomputer is input to the reset signal input terminal R to reset the microcomputer. In the reset circuit, the microcomputer 10 further includes a WDT reset signal input terminal W for inputting a WDT reset signal as a reference signal based on the generation state of the reset signal, and the reset signal input to the reset signal input terminal R is the microcomputer. Since it is possible to discriminate whether it is based on the internal state or the external state, it is possible to select an appropriate treatment to continue normal operation or stop operation after reset is released.

より具体的には、マイクロコンピュータ外部の状態に基くリセット信号は電源Bの低電圧を検出する低電圧検出部14からの低電圧検出リセット信号であり、マイクロコンピュータ内部の状態に基くリセット信号はP−RUN信号を監視するWDT異常検出回路部16からのWDT異常検出リセット信号である。そして、WDTリセット信号は、低電圧検出部14から低電圧検出リセット信号と対応して出力される記憶クリア信号に基いて記憶回路部20から出力されるものであって、電源が低電圧でないときにリセット信号があると変化する。これにより、マイクロコンピュータ10では、リセット信号が低電圧によるものか、マイクロコンピュータ自体の故障によるものかを識別できる。
すなわち、マイクロコンピュータは、リセット信号が低電圧など外部の状態に基くものであった場合にはリセット解除後に再起動し、リセット信号がWDT異常で内部の状態に基くものであった場合にはリセット解除後に動作停止またはフェールモードへ移行する。
More specifically, the reset signal based on the state outside the microcomputer is a low voltage detection reset signal from the low voltage detection unit 14 that detects the low voltage of the power supply B, and the reset signal based on the state inside the microcomputer is P A WDT abnormality detection reset signal from the WDT abnormality detection circuit unit 16 that monitors the RUN signal. The WDT reset signal is output from the storage circuit unit 20 based on the storage clear signal output from the low voltage detection unit 14 corresponding to the low voltage detection reset signal, and the power source is not at a low voltage. Changes when there is a reset signal. Thereby, the microcomputer 10 can identify whether the reset signal is due to a low voltage or a failure of the microcomputer itself.
In other words, the microcomputer restarts after reset release if the reset signal is based on an external condition such as a low voltage, and resets if the reset signal is based on the internal condition due to WDT abnormality. After canceling, the operation stops or moves to fail mode.

なお、実施の形態では遅延回路12、低電圧検出部14およびWDT異常検出回路部16から出力される各リセット信号は、リセットさせるべき状態をLowレベルで示し、記憶回路部20からのWDTリセット信号はWDT異常検出リセット信号発生時をHiレベルで示すものとしたが、信号レベルの設定はこれに限定されず、識別可能に設定される限り反転させたものでもよい。
低電圧検出部14から記憶回路部20へ出力される記憶クリア信号は、低電圧検出リセット信号自体を用いてもよい。
また、遅延回路12の所定電圧VAは、低電圧検出部14の所定低電圧VBよりもわずかに低く設定してあるが、同一値としてもよい。
In the embodiment, each reset signal output from the delay circuit 12, the low voltage detection unit 14, and the WDT abnormality detection circuit unit 16 indicates a state to be reset at a low level, and the WDT reset signal from the storage circuit unit 20. Indicates the Hi level when the WDT abnormality detection reset signal is generated, but the setting of the signal level is not limited to this, and it may be reversed as long as it can be identified.
The storage clear signal output from the low voltage detection unit 14 to the storage circuit unit 20 may use the low voltage detection reset signal itself.
Further, the predetermined voltage VA of the delay circuit 12 is set slightly lower than the predetermined low voltage VB of the low voltage detector 14, but may be the same value.

実施の形態の構成を示すブロック図である。It is a block diagram which shows the structure of embodiment. 実施の形態における信号状態を示すタイミングチャートである。It is a timing chart which shows the signal state in an embodiment. マイクロコンピュータにおける処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in a microcomputer.

符号の説明Explanation of symbols

10 マイクロコンピュータ
12 遅延回路
14 低電圧検出部
16 WDT異常検出回路部
18 AND回路
20 記憶回路部
B 電源
P P−RUN信号出力端子
R リセット信号入力端子
W WDTリセット信号入力端子
DESCRIPTION OF SYMBOLS 10 Microcomputer 12 Delay circuit 14 Low voltage detection part 16 WDT abnormality detection circuit part 18 AND circuit 20 Memory circuit part B Power supply P P-RUN signal output terminal R Reset signal input terminal W WDT Reset signal input terminal

Claims (4)

マイクロコンピュータに第1リセット信号入力端子を備え、マイクロコンピュータ内部および外部の状態に基くリセット信号が第1リセット信号入力端子に入力されて、当該マイクロコンピュータをリセットするリセット回路において、
マイクロコンピュータにさらに前記リセット信号の発生原因に基く参照信号を入力する第2リセット信号入力端子を備えて、
マイクロコンピュータは前記参照信号を参照することにより、前記第1リセット信号入力端子に入力されたリセット信号がマイクロコンピュータ内部の状態に基くものか外部の状態に基くものかを識別可能としたことを特徴とするマイクロコンピュータのリセット回路。
In a reset circuit that includes a first reset signal input terminal in a microcomputer, and a reset signal based on internal and external states of the microcomputer is input to the first reset signal input terminal to reset the microcomputer.
The microcomputer further comprises a second reset signal input terminal for inputting a reference signal based on the cause of occurrence of the reset signal,
The microcomputer can identify whether the reset signal input to the first reset signal input terminal is based on an internal state or an external state by referring to the reference signal. A microcomputer reset circuit.
マイクロコンピュータには、電源の低電圧を検出する低電圧検出部と、P−RUN信号を監視するWDT異常検出回路部と、第1リセット信号入力端子に入力される前記リセット信号が入力される記憶回路部が付設され、
前記マイクロコンピュータ外部の状態に基くリセット信号が前記低電圧検出部からの低電圧検出リセット信号であり、
前記マイクロコンピュータ内部の状態に基くリセット信号が前記WDT異常検出回路部からのWDT異常検出リセット信号であり、
前記低電圧検出部はさらに前記記憶回路部へ低電圧検出リセット信号と対応する記憶クリア信号を出力し、
前記記憶回路部は、前記記憶クリア信号と、第1リセット信号入力端子に入力されるリセット信号とに基いて、前記参照信号を出力することを特徴とする請求項1記載のマイクロコンピュータのリセット回路。
The microcomputer has a low voltage detection unit for detecting a low voltage of the power supply, a WDT abnormality detection circuit unit for monitoring the P-RUN signal, and a memory to which the reset signal input to the first reset signal input terminal is input. A circuit part is attached,
The reset signal based on the state outside the microcomputer is a low voltage detection reset signal from the low voltage detection unit,
The reset signal based on the state inside the microcomputer is a WDT abnormality detection reset signal from the WDT abnormality detection circuit unit,
The low voltage detection unit further outputs a storage clear signal corresponding to a low voltage detection reset signal to the storage circuit unit,
2. The microcomputer reset circuit according to claim 1, wherein the memory circuit unit outputs the reference signal based on the memory clear signal and a reset signal input to a first reset signal input terminal. .
前記参照信号は、電源が低電圧でないときに第1リセット信号入力端子に入力されるリセット信号があるとき変化し、
マイクロコンピュータはこの参照信号を受けて第1リセット信号入力端子に入力された前記リセット信号はWDT異常によるものと判断するものであることを特徴とする請求項2記載のマイクロコンピュータのリセット回路。
The reference signal changes when there is a reset signal input to the first reset signal input terminal when the power supply is not at a low voltage,
3. The microcomputer reset circuit according to claim 2, wherein the microcomputer receives the reference signal and determines that the reset signal input to the first reset signal input terminal is caused by WDT abnormality.
マイクロコンピュータは、前記リセット信号が外部の状態に基くものであった場合にはリセット解除後に再起動するとともに、前記リセット信号が内部の状態に基くものであった場合にはリセット解除後に動作停止またはフェールモードへ移行することを特徴とする請求項1から3のいずれか1に記載のマイクロコンピュータのリセット回路。   When the reset signal is based on an external state, the microcomputer restarts after the reset is released, and when the reset signal is based on an internal state, the microcomputer stops operating after the reset is released. 4. The microcomputer reset circuit according to claim 1, wherein the microcomputer is shifted to a fail mode.
JP2005038084A 2005-02-15 2005-02-15 Reset circuit for microcomputer Withdrawn JP2006227742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005038084A JP2006227742A (en) 2005-02-15 2005-02-15 Reset circuit for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005038084A JP2006227742A (en) 2005-02-15 2005-02-15 Reset circuit for microcomputer

Publications (1)

Publication Number Publication Date
JP2006227742A true JP2006227742A (en) 2006-08-31

Family

ID=36989100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005038084A Withdrawn JP2006227742A (en) 2005-02-15 2005-02-15 Reset circuit for microcomputer

Country Status (1)

Country Link
JP (1) JP2006227742A (en)

Similar Documents

Publication Publication Date Title
JP5476238B2 (en) Semiconductor device
JP5739290B2 (en) Electronic control unit
JP6360387B2 (en) Processor system, engine control system, and control method
US8677182B2 (en) Computer system capable of generating an internal error reset signal according to a catastrophic error signal
JP2003248598A (en) Micro-controller and method for detecting micro- controller trouble
JP4655718B2 (en) Computer system and control method thereof
JP2004280783A (en) Microcomputer
JP5241450B2 (en) Semiconductor device and abnormality detection method thereof
JP7063692B2 (en) Watchdog timer monitoring system
KR20180108497A (en) Monitoring circuit
WO2016204070A1 (en) Cpu monitoring device
JP2011077673A (en) Reset circuit
JP2007028118A (en) Failure judging method of node device
JP2006011686A (en) Method for detecting abnormality of multi-task system
JP2006227742A (en) Reset circuit for microcomputer
JP2009003663A (en) Power control device
JPWO2008059638A1 (en) Semiconductor device
JP4983806B2 (en) System monitoring apparatus and monitoring method using dual timer
JP6325217B2 (en) CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD
JP2007122298A (en) System reset circuit
JP4647276B2 (en) Semiconductor circuit device
TWI421701B (en) Computer system
JP2011134063A (en) Watchdog timer
JP2018097697A (en) Processor
JP4396572B2 (en) Method for resetting signal processing apparatus

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080513