JP2007041824A - Resetting circuit for electronic control unit - Google Patents

Resetting circuit for electronic control unit Download PDF

Info

Publication number
JP2007041824A
JP2007041824A JP2005224826A JP2005224826A JP2007041824A JP 2007041824 A JP2007041824 A JP 2007041824A JP 2005224826 A JP2005224826 A JP 2005224826A JP 2005224826 A JP2005224826 A JP 2005224826A JP 2007041824 A JP2007041824 A JP 2007041824A
Authority
JP
Japan
Prior art keywords
reset
generation unit
cpu
power supply
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
JP2005224826A
Other languages
Japanese (ja)
Inventor
Junichi Okamoto
淳一 岡本
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP2005224826A priority Critical patent/JP2007041824A/en
Publication of JP2007041824A publication Critical patent/JP2007041824A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To determine the cause of resetting of CPUs using a resetting circuit for an electronic control unit having two CPUs. <P>SOLUTION: A main reset generating part 13 outputs a reset signal RSa whose pulse width varies depending on whether a voltage drop in the output of a power supply circuit 15 is detected or runaway is detected through the monitoring of a WDT signal coming from a main CPU. A sub reset generating part 14 also has the function of detecting the low voltage of a power supply. A threshold Vtha for detecting low voltages at the main reset generating part 13 is set to be higher than a threshold Vthb for detecting low voltages at the sub reset generating part 14; a voltage drop at the power supply is first detected by the main reset generating part 13 and then the main CPU 11 is reset. The sub reset generating part 14 monitors the reset signal RSa outputted by the main reset generating part 13, and determines whether the cause of a reset is a voltage drop at the power supply or the runaway of the main CPU 11. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、電子制御ユニットのリセット回路、とくに2つのCPUを備えて相互監視する構成の電子制御ユニットにおけるCPUのリセット回路に関する。   The present invention relates to a reset circuit for an electronic control unit, and more particularly to a reset circuit for a CPU in an electronic control unit having two CPUs for mutual monitoring.

電子制御ユニットにおいてCPUの暴走が発生したときは、CPUをリセットしてから再起動することにより、正常な動作を得るようにしている。CPUのリセットはまた電源電圧の低下でCPUが正常な機能を発揮しないおそれがある場合にも実行される。
このようなCPUのリセットは、電子制御ユニットの安定動作を確保するために、2つのCPUを備えてその相互間で動作を監視するようにしたものでも行われている。例えば、特開平4−291610号公報に開示された電子制御ユニットでは、一方のCPUについてリセット条件が成立した場合には他方のCPUも同時にリセットするものとし、その後あらためて再起動するようにしている。
特開平4−291610号公報
When a CPU runaway occurs in the electronic control unit, the CPU is reset and then restarted to obtain normal operation. The CPU reset is also executed when there is a possibility that the CPU does not perform a normal function due to a decrease in power supply voltage.
Such a CPU reset is performed even in the case where two CPUs are provided and the operation is monitored between them in order to ensure a stable operation of the electronic control unit. For example, in the electronic control unit disclosed in Japanese Patent Application Laid-Open No. 4-291610, when a reset condition is established for one CPU, the other CPU is also reset at the same time, and then restarted again.
JP-A-4-291610

しかし、上記従来の電子制御ユニットでは、2つのCPUが両方ともリセットされてしまうために、CPUの暴走によるものか、電源電圧の低下によるものか、リセットの原因が判明しないままに再起動されてしまう。電圧低下によるリセットであれば、CPUに異常はないことになるが、その識別ができないために、CPUの異常の正確な判定ができないという問題がある。
また、両方のCPUを個別にリセットする場合においても、電源電圧の低下を検知するための閾値を同一にして設定しているにもかかわらず、回路誤差で一方のCPUのみがリセットされて再起動したとき、当該CPUを他方のCPUが異常であると誤判断することもある。
したがって本発明は、上記従来の問題点に鑑み、2つのCPUを備える電子制御ユニットにおいて、CPUのリセットの原因を判別できるようにしたリセット回路を提供することを目的としている。
However, in the above-mentioned conventional electronic control unit, since both of the two CPUs are reset, it is restarted without knowing the cause of the reset, whether it is due to the runaway of the CPU, the power supply voltage or the like. End up. If the reset is caused by a voltage drop, there is no abnormality in the CPU. However, since the identification cannot be performed, there is a problem that the CPU abnormality cannot be accurately determined.
Even when both CPUs are reset individually, only one CPU is reset due to a circuit error and restarted despite the fact that the threshold value for detecting a drop in power supply voltage is set to be the same. In such a case, the CPU may be erroneously determined that the other CPU is abnormal.
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a reset circuit capable of determining the cause of CPU reset in an electronic control unit including two CPUs.

本発明は、第1のCPUをリセットするための第1のリセット発生部が電源の低電圧検知機能を含む複数の異常検知機能を有して、異常検知時に異常ごとに異なるパルス幅のリセット信号を出力し、第2のCPUをリセットする第2のリセット発生部は電源の低電圧検知機能を有して、電源の低電圧検知時にリセット信号を出力するものとし、第1のリセット発生部における低電圧検知用の閾値と第2のリセット発生部における低電圧検知用の閾値とが、電源の電圧低下が第2のリセット発生部によるよりも早く第1のリセット発生部により検知されるように設定して、第2のCPUが第1のリセット発生部からのリセット信号を監視するものとした。   According to the present invention, the first reset generation unit for resetting the first CPU has a plurality of abnormality detection functions including a low voltage detection function of a power supply, and a reset signal having a pulse width that differs for each abnormality at the time of abnormality detection The second reset generation unit that resets the second CPU has a function of detecting a low voltage of the power source, and outputs a reset signal when the low voltage of the power source is detected. In the first reset generation unit, The low voltage detection threshold value and the low voltage detection threshold value in the second reset generation unit are set so that the first reset generation unit detects the voltage drop of the power supply earlier than the second reset generation unit. It is assumed that the second CPU monitors the reset signal from the first reset generation unit.

第1のリセット発生部が電源の電圧低下を検知して第1のCPUをリセットしても、第2のリセット発生部は同時に第2のCPUをリセットするリセット信号を出力しないよう設定されているので、第2のCPUは第1のリセット発生部が出力したリセット信号を監視することができ、当該リセット信号のパルス幅に基づいて異常原因を正しく判別することができる。   Even if the first reset generator detects the voltage drop of the power supply and resets the first CPU, the second reset generator is set not to output a reset signal for resetting the second CPU at the same time. Therefore, the second CPU can monitor the reset signal output from the first reset generation unit, and can correctly determine the cause of the abnormality based on the pulse width of the reset signal.

次に、発明の実施の形態を実施例により説明する。
図1は、本発明を車両用の電子制御ユニットに適用した実施の形態の構成を示す図である。
電子制御ユニット10は、図示しない車載装置を制御するためのプログラムを記憶して必要な各種演算を実行するメインCPU11と、メインCPU11と相互に通信可能に接続されて同じ演算を実行するサブCPU12とに、それぞれメインリセット発生部13とサブリセット発生部14を接続し、メインリセット発生部13とサブリセット発生部14はそれぞれ電源回路15に接続して構成されている。
電源回路15はバッテリ電源(バッテリ電圧VB)に接続されて、バッテリ電圧VBを電子制御ユニット10内の動作電圧Vccに変換する。
Next, embodiments of the present invention will be described by way of examples.
FIG. 1 is a diagram showing a configuration of an embodiment in which the present invention is applied to an electronic control unit for a vehicle.
The electronic control unit 10 stores a program for controlling an in-vehicle device (not shown) and executes various necessary calculations, and a sub CPU 12 that is connected to the main CPU 11 so as to communicate with each other and executes the same calculations. The main reset generator 13 and the sub-reset generator 14 are connected to each other, and the main reset generator 13 and the sub-reset generator 14 are connected to the power supply circuit 15 respectively.
The power supply circuit 15 is connected to a battery power supply (battery voltage VB) and converts the battery voltage VB into an operating voltage Vcc in the electronic control unit 10.

メインCPU11およびサブCPU12はそれぞれの出力端子(OUT)からWDT信号を出力する。WDT信号はそれぞれのCPUが正常に動作している間は所定周期Twdのパルスであり、CPUが暴走する異常が発生するとそのパルスが停止する。
メインリセット発生部13とサブリセット発生部14とは、それぞれウォッチドッグタイマ機能と、電源の低電圧検知機能を有している。
The main CPU 11 and the sub CPU 12 output a WDT signal from their output terminals (OUT). The WDT signal is a pulse having a predetermined period Twd while each CPU is operating normally. When an abnormality occurs in which the CPU runs away, the pulse stops.
The main reset generator 13 and the sub-reset generator 14 each have a watchdog timer function and a power supply low voltage detection function.

メインCPU11はそのWDT信号をメインリセット発生部13へ出力し、またそのリセット端子(R)にメインリセット発生部13からのリセット信号RSaを受ける。
サブCPU12も同様に、WDT信号をサブリセット発生部14へ出力し、そのリセット端子にサブリセット発生部14からのリセット信号RSbを受ける。サブCPU12はさらにその入力端子(IN)にメインリセット発生部13からのリセット信号RSaも受けるようになっている。
The main CPU 11 outputs the WDT signal to the main reset generator 13 and receives the reset signal RSa from the main reset generator 13 at its reset terminal (R).
Similarly, the sub CPU 12 outputs the WDT signal to the sub reset generation unit 14 and receives the reset signal RSb from the sub reset generation unit 14 at its reset terminal. The sub CPU 12 also receives a reset signal RSa from the main reset generator 13 at its input terminal (IN).

メインリセット発生部13は、リセット信号RSaとして通常はH(ハイ)信号をメインCPU11のリセット端子へ出力している。そして、電源電圧を監視して、電源回路15からメインリセット発生部13へ供給される電源電圧Vmain(=Vcc)が閾値Vthaを下回っている間はリセット信号RSaをL(ロー)レベルとする一方、電源電圧Vmainが閾値Vtha以上になったときはその時点から時間Trs1だけリセット信号RSaをLレベルに保持する。   The main reset generator 13 normally outputs an H (high) signal to the reset terminal of the main CPU 11 as the reset signal RSa. The power supply voltage is monitored, and while the power supply voltage Vmain (= Vcc) supplied from the power supply circuit 15 to the main reset generation unit 13 is lower than the threshold value Vtha, the reset signal RSa is set to L (low) level. When the power supply voltage Vmain becomes equal to or higher than the threshold value Vtha, the reset signal RSa is held at the L level for the time Trs1 from that point.

メインリセット発生部13はさらにメインCPU11からのWDT信号を監視して、そのパルスが停止したときは所定長さTrs2のLレベルを出力する。
すなわち、メインリセット発生部13では抵抗R1とコンデンサC1を備える内蔵のCR回路20においてそのコンデンサC1の端子電圧VtがVwh〜Vwl間で充放電を繰り返すものとなっているが、コンデンサの端子電圧VtがVwhに達する前にメインCPU11からのWDT信号を受けるとVwlに戻り、WDT信号が定期周期で入力される間はコンデンサの端子電圧VtはVwhに達することはない。WDT信号のパルスが欠落するとコンデンサの端子電圧VtがVwhに達して、メインリセット発生部13はリセット信号RSaをLレベルとする。
The main reset generator 13 further monitors the WDT signal from the main CPU 11 and outputs an L level of a predetermined length Trs2 when the pulse stops.
That is, in the main reset generator 13, in the built-in CR circuit 20 including the resistor R1 and the capacitor C1, the terminal voltage Vt of the capacitor C1 is repeatedly charged and discharged between Vwh and Vwl. When the WDT signal from the main CPU 11 is received before the voltage reaches Vwh, the signal returns to Vwl, and the terminal voltage Vt of the capacitor does not reach Vwh while the WDT signal is input in a regular cycle. When the pulse of the WDT signal is lost, the terminal voltage Vt of the capacitor reaches Vwh, and the main reset generator 13 sets the reset signal RSa to L level.

サブリセット発生部14も、CR回路20と同構成のCR回路21を備え、リセット信号RSbとして通常はH信号をサブCPU12のリセット端子へ出力している。そして、電源電圧を監視して、電源回路15からサブリセット発生部14への供給される電源電圧Vsub(=Vcc)が閾値Vthbを下回っている間はLレベルを出力する一方、電源電圧Vsubが閾値Vthb以上になったときはその時点から時間Trs1だけリセット信号RSbをLレベルに保持する。
サブリセット発生部14はさらにサブCPU12からのWDT信号を監視して、そのパルスが停止したときは長さTrs2のLレベルを出力する。
CPU暴走検知時のリセット信号RSa、RSbのパルス長さTrs2は、後述するように低電圧検知時のパルス長さよりも大幅に短く設定されている。
The sub-reset generation unit 14 also includes a CR circuit 21 having the same configuration as the CR circuit 20, and normally outputs an H signal to the reset terminal of the sub CPU 12 as the reset signal RSb. The power supply voltage is monitored, and while the power supply voltage Vsub (= Vcc) supplied from the power supply circuit 15 to the sub-reset generation unit 14 is lower than the threshold value Vthb, the L level is output, while the power supply voltage Vsub is When the threshold value Vthb is exceeded, the reset signal RSb is held at the L level for the time Trs1 from that point.
The sub-reset generation unit 14 further monitors the WDT signal from the sub CPU 12, and outputs an L level of length Trs2 when the pulse stops.
The pulse length Trs2 of the reset signals RSa and RSb at the time of CPU runaway detection is set to be significantly shorter than the pulse length at the time of low voltage detection, as will be described later.

ここで、メインリセット発生部13とサブリセット発生部14における上記の低電圧検知用の閾値は
Vtha>Vthb
の関係に設定されており、したがって必ずメインリセット発生部13の方がサブリセット発生部14よりも先に電源電圧の低下を検知するようになっている。また、Vthbは一時的に低下する電圧値よりも十分低い値に設定されている。
Here, the threshold value for detecting the low voltage in the main reset generation unit 13 and the sub reset generation unit 14 is Vtha> Vthb.
Therefore, the main reset generation unit 13 always detects a drop in the power supply voltage before the sub-reset generation unit 14. Vthb is set to a value sufficiently lower than the voltage value that temporarily decreases.

以下、上記構成の電子制御ユニット10におけるCPUのリセット制御の流れについて、図2のタイミングチャートを参照して説明する。
このリセット制御は、車両の図示しないイグニションスイッチがON(オン)されてスタートする。
バッテリ電圧VBに基づいて電源回路15から時刻t0に電源電圧Vmain、Vsub(いずれもVcc)が出力されると、メインリセット発生部13のCR回路20のコンデンサC1への充電が開始してコンデンサの端子電圧Vtが上昇していく。このコンデンサの端子電圧VtがVwh(例えば4V)に達すると、Vwl(例えば2V)まで放電させて、最大幅Vwh〜Vwlの間で充放電が繰り返される。
Hereinafter, the flow of the CPU reset control in the electronic control unit 10 having the above configuration will be described with reference to the timing chart of FIG.
This reset control is started when an ignition switch (not shown) of the vehicle is turned on.
When the power supply voltages Vmain and Vsub (both Vcc) are output from the power supply circuit 15 at time t0 based on the battery voltage VB, charging of the capacitor C1 of the CR circuit 20 of the main reset generation unit 13 is started. The terminal voltage Vt increases. When the terminal voltage Vt of this capacitor reaches Vwh (for example, 4V), the capacitor is discharged to Vwl (for example, 2V), and charging / discharging is repeated between the maximum widths Vwh to Vwl.

時刻t0から端子電圧VtがVwhに達するまでの期間を含む時間Trs1の間はメインリセット発生部13からのリセット信号RSaはLレベルとなっており、時間Trs1が経過した時刻t1でリセット信号RSaはHレベルに変わる。
サブリセット発生部14のCR回路21における端子電圧の変化はとくに示さないが、同様に、時刻t1でリセット信号RSbはHレベルに変わる。
The reset signal RSa from the main reset generator 13 is at the L level during the time Trs1 including the period from the time t0 until the terminal voltage Vt reaches Vwh, and the reset signal RSa is at the time t1 when the time Trs1 has elapsed. Change to H level.
Although a change in terminal voltage in the CR circuit 21 of the sub-reset generation unit 14 is not particularly shown, similarly, the reset signal RSb changes to the H level at time t1.

CR回路20における充放電の間、端子電圧VtはWDT信号を受けるごとにVwlに戻り、Vwhに達することはない。
例えばエンジン始動のため、イグニションスイッチがON位置からSTART(スタート)位置に回され、スタータモータを駆動してクランキングした場合には、バッテリ電圧VBが一時的に低下する。これに伴い、電源回路15が出力する電源電圧Vcc(Vmain、Vsub)も低下する。
この低下によって、時刻t2において電源電圧Vmain(=Vcc)がメインリセット発生部13における閾値Vthaを下回ると、メインリセット発生部13からのリセット信号RSaがLレベルとなる。これにより、メインCPU11はリセットされる。
During charging / discharging in the CR circuit 20, the terminal voltage Vt returns to Vwl every time the WDT signal is received, and does not reach Vwh.
For example, in order to start the engine, when the ignition switch is turned from the ON position to the START (start) position and the starter motor is driven and cranked, the battery voltage VB temporarily decreases. Along with this, the power supply voltage Vcc (Vmain, Vsub) output from the power supply circuit 15 also decreases.
When the power supply voltage Vmain (= Vcc) falls below the threshold value Vtha in the main reset generation unit 13 at time t2 due to this decrease, the reset signal RSa from the main reset generation unit 13 becomes L level. Thereby, the main CPU 11 is reset.

一方、一時的なバッテリ電圧の低下にしたがって低下した電源電圧Vsub(=Vcc)がサブリセット発生部14における閾値Vthbを下回ることはないので、サブリセット発生部からのリセット信号はHレベルのままで変化はない。   On the other hand, since the power supply voltage Vsub (= Vcc), which has decreased as the battery voltage temporarily decreases, does not fall below the threshold value Vthb in the sub-reset generation unit 14, the reset signal from the sub-reset generation unit remains at the H level. There is no change.

CR回路20が放電しきった後、時刻t3で電源電圧Vmainが閾値Vtha以上に回復すると、その時点からTrs1が経過する時刻t4までリセット信号RSaをLレベルに保持する。CR回路20は時刻t3からコンデンサC1の充電を再開し、リセット信号RSaがLレベルの間に、端子電圧VtはVwh〜Vwl間の充放電繰り返しレベルへ戻る。その後、時刻t4でリセット信号RSaはHレベルへ戻る。   When the power supply voltage Vmain recovers to the threshold value Vtha or more at time t3 after the CR circuit 20 has completely discharged, the reset signal RSa is held at the L level from that time until time t4 when Trs1 elapses. The CR circuit 20 resumes charging of the capacitor C1 from time t3, and the terminal voltage Vt returns to the charge / discharge repetition level between Vwh and Vwl while the reset signal RSa is at the L level. Thereafter, the reset signal RSa returns to the H level at time t4.

一方、電源電圧Vmainがメインリセット発生部13における閾値Vthaよりも高い場合でも、メインCPU11からのWDT信号にパルスの欠落が発生すると、CR回路20の端子電圧Vtが上昇を続けて、Vwhに達した時刻t5において、メインリセット発生部13はリセット信号RSaをLレベルにする。Lレベルのパルス幅はTrs2である。これにより、メインCPU11はリセットされる。
なお、リセット信号RSaをLレベルにする長さ、すなわちパルス幅はCR回路20の定数により決定し、例えば
Trs1=1.6×C×R
Trs2=0.3×C
(ただし、CはコンデンサC1の容量値、Rは抵抗R1の抵抗値である。)
に設定される。
On the other hand, even when the power supply voltage Vmain is higher than the threshold value Vtha in the main reset generation unit 13, if a missing pulse occurs in the WDT signal from the main CPU 11, the terminal voltage Vt of the CR circuit 20 continues to increase and reaches Vwh. At time t5, the main reset generator 13 sets the reset signal RSa to L level. The L-level pulse width is Trs2. Thereby, the main CPU 11 is reset.
Note that the length at which the reset signal RSa is set to the L level, that is, the pulse width is determined by a constant of the CR circuit 20, for example, Trs1 = 1.6 × C × R
Trs2 = 0.3 × C
(Where C is the capacitance value of the capacitor C1, and R is the resistance value of the resistor R1.)
Set to

この間、サブCPU12はメインリセット発生部13からのリセット信号RSaを入力端子INに入力して監視しており、リセット信号RSaがLレベルとなったことでメインCPU11がリセットされたことを検知するとともに、そのLレベルのパルス幅がTrs1以上であるのかTrs2であるのかに基づいて、上記メインCPU11のリセットが低電圧によるリセットであるのか、WDT信号のパルス欠落によるリセットなのかを判別することができる。   During this time, the sub CPU 12 inputs and monitors the reset signal RSa from the main reset generation unit 13 to the input terminal IN, and detects that the main CPU 11 is reset when the reset signal RSa becomes L level. Based on whether the L-level pulse width is Trs1 or more or Trs2, it is possible to determine whether the reset of the main CPU 11 is a reset due to a low voltage or a reset due to a missing pulse of the WDT signal. .

リセットがメインCPU11からのWDT信号のパルス欠落による場合は、メインCPU11に動作異常が発生しているものとして、例えばフェール動作に移行する。あるいはまた、メインCPU11の再起動後に実行されるイニシャルチェックの結果により、問題がない場合には制御動作の再開処理などへ進むこともできる。
また、リセットが電源電圧の低下による場合は、制御動作を一時停止し、メインCPU11の再起動を待って制御動作を再開する。
When the reset is due to a missing pulse of the WDT signal from the main CPU 11, it is assumed that an operation abnormality has occurred in the main CPU 11, for example, and a transition is made to a fail operation. Alternatively, if there is no problem based on the result of the initial check executed after the main CPU 11 is restarted, the control operation can be resumed.
If the reset is due to a drop in power supply voltage, the control operation is temporarily stopped, and the control operation is resumed after the main CPU 11 is restarted.

本実施の形態では、メインCPU11が発明における第1のCPUに該当し、サブCPU12が第2のCPUに該当する。またメインリセット発生部13が第1のリセット発生部、サブリセット発生部14が第2のリセット発生部に該当する。
リセット信号RSa、RSbのLレベル区間の長さが第1のCPU、第2のCPUをリセットするためのリセット信号のパルス幅となる。
In the present embodiment, the main CPU 11 corresponds to the first CPU in the invention, and the sub CPU 12 corresponds to the second CPU. The main reset generation unit 13 corresponds to a first reset generation unit, and the sub-reset generation unit 14 corresponds to a second reset generation unit.
The length of the L level section of the reset signals RSa and RSb is the pulse width of the reset signal for resetting the first CPU and the second CPU.

実施の形態は以上のように構成され、メインCPU11をリセットするためのメインリセット発生部13が電源の電圧低下を検知する低電圧検知機能とメインCPU11の暴走を検知する暴走検知機能とを有して、電圧低下検知時と暴走検知時とで異なるパルス幅のリセット信号RSaを出力し、またサブCPU12をリセットするサブリセット発生部14は電源の低電圧検知機能を有して、電源の低電圧検知時にリセット信号RSbを出力するものとし、メインリセット発生部13における低電圧検知用の閾値とサブリセット発生部14における低電圧検知用の閾値とが、電源の電圧低下がサブリセット発生部14によるよりも早くメインリセット発生部13により検知されるように設定したので、メインリセット発生部13が電源の電圧低下を検知してメインCPU11をリセットしても、サブリセット発生部14はサブCPU12をリセットするリセット信号を出力しないので、サブCPU12はメインリセット発生部13が出力したリセット信号RSaを監視することができ、当該リセット信号RSaのパルス幅に基づいてリセットの原因が電源の電圧低下であるかメインCPU11の暴走であるかを判別することができる。   The embodiment is configured as described above, and the main reset generation unit 13 for resetting the main CPU 11 has a low voltage detection function for detecting a voltage drop of the power source and a runaway detection function for detecting a runaway of the main CPU 11. The sub-reset generation unit 14 that outputs a reset signal RSa having a different pulse width at the time of voltage drop detection and at the time of runaway detection and resets the sub CPU 12 has a power source low voltage detection function. It is assumed that the reset signal RSb is output at the time of detection, and the low voltage detection threshold value in the main reset generation unit 13 and the low voltage detection threshold value in the sub reset generation unit 14 indicate that the power supply voltage drop is caused by the sub reset generation unit 14. Since the main reset generator 13 is set so that it is detected earlier than the main reset generator 13, the main reset generator 13 Even if the main CPU 11 is reset by detecting the bottom, the sub reset generation unit 14 does not output a reset signal for resetting the sub CPU 12, so the sub CPU 12 may monitor the reset signal RSa output by the main reset generation unit 13. It is possible to determine whether the cause of the reset is a voltage drop of the power supply or a runaway of the main CPU 11 based on the pulse width of the reset signal RSa.

また、従来2つのCPUのうち一方だけがリセットされ再起動された場合、他方のCPUが上記再起動したCPUを故障と誤認する例もあるが、設定自体がメインリセット発生部13が先に電圧低下を検知してメインCPU11をリセットする構成であるから、メインCPU11だけがリセットされて再起動されたことだけをもってメインCPU11の故障であると誤認することもない。   In addition, when only one of the two CPUs is reset and restarted, there is an example in which the other CPU misidentifies the restarted CPU as a failure. Since the main CPU 11 is reset by detecting the decrease, it is not mistaken for the failure of the main CPU 11 only by resetting and restarting only the main CPU 11.

メインCPU11の暴走は例えば周期的なWDT信号に基づいて検知するから、その際のリセット信号RSaのパルス幅は短いのが好ましく、したがって、メインリセット発生部13が電源の低電圧を検知したときに出力するリセット信号RSaのパルス幅は、メインCPU11の暴走を検知したときに出力するリセット信号RSaのパルス幅よりも長く設定して、リセットの原因判別を容易としている。   Since the runaway of the main CPU 11 is detected based on, for example, a periodic WDT signal, the pulse width of the reset signal RSa at that time is preferably short. Therefore, when the main reset generator 13 detects a low voltage of the power supply The pulse width of the reset signal RSa to be output is set to be longer than the pulse width of the reset signal RSa to be output when the runaway of the main CPU 11 is detected, thereby making it easy to determine the cause of the reset.

メインリセット発生部13とサブリセット発生部14は共通の電源回路15から電源供給され、メインリセット発生部13における低電圧検知用の閾値Vthaがサブリセット発生部14における低電圧検知用の閾値Vthbよりも高く設定されているので、電源電圧が低下したときには確実にメインリセット発生部13が先にこれを検知してリセット信号RSaを出力する一方、リセットされないサブCPU12がメインリセット発生部13からのリセット信号RSaのパルス幅を確認することができる。   The main reset generator 13 and the sub-reset generator 14 are supplied with power from a common power supply circuit 15, and the low-voltage detection threshold Vtha in the main reset generator 13 is lower than the low-voltage detection threshold Vthb in the sub-reset generator 14. Therefore, when the power supply voltage decreases, the main reset generation unit 13 reliably detects this first and outputs the reset signal RSa, while the sub CPU 12 that is not reset resets from the main reset generation unit 13. The pulse width of the signal RSa can be confirmed.

なお、上記実施の形態ではメインCPU11とサブCPU12の両系統に対して電源回路15を共通とし、メインリセット発生部13へ供給される電源電圧Vmainと、サブリセット発生部14へ供給される電源電圧VsubがいずれもVccで同一としたが、本発明は図3に示すように系統別に異なる電源回路を設けた電子制御ユニット10Aにも適用できる。
以下、この変形例について説明する。
In the above embodiment, the power supply circuit 15 is shared by both the main CPU 11 and the sub CPU 12, and the power supply voltage Vmain supplied to the main reset generating unit 13 and the power supply voltage supplied to the sub reset generating unit 14 are used. Although Vsub is the same for all Vcc, the present invention can be applied to an electronic control unit 10A provided with different power supply circuits for each system as shown in FIG.
Hereinafter, this modification will be described.

この変形例では、電源回路15Aの出力とグラウンド間および電源回路15Bの出力とグラウンド間にそれぞれ低電圧検知順番設定用のコンデンサCa、Cbを設けて、バッテリ電圧VBが低下するとき、回路定数により電源回路15Bからサブリセット発生部14へ供給される電源電圧Vsubが閾値Vthbを下回るよりも先に、電源回路15Aからメインリセット発生部13へ供給される電源電圧Vmainが閾値Vthaを下回るように、各閾値Vtha、VthbとコンデンサCa、Cbの容量の組み合わせを設定すればよい。   In this modification, capacitors Ca and Cb for setting the low voltage detection order are provided between the output of the power supply circuit 15A and the ground and between the output of the power supply circuit 15B and the ground, respectively. Before the power supply voltage Vsub supplied from the power supply circuit 15B to the sub-reset generation unit 14 falls below the threshold value Vthb, the power supply voltage Vmain supplied from the power supply circuit 15A to the main reset generation unit 13 falls below the threshold value Vtha. What is necessary is just to set the combination of each threshold value Vtha and Vthb and the capacity | capacitance of capacitor | condenser Ca and Cb.

例えば、電源電圧Vmain、Vsubが同一に設定され、閾値VthaとVthbも同一に設定されても、電源回路15Aの出力とグラウンド間のコンデンサCbの容量を電源回路15Aの出力とグラウンド間のコンデンサCaの容量よりも大きくすると、電源電圧Vmain、Vsubが低下するとき容量の小さい側の放電速度が早くなり、メインリセット発生部13が先に電圧低下を検知することになる。
その他の構成は図1の実施の形態の構成と同じである。
For example, even if the power supply voltages Vmain and Vsub are set to be the same and the threshold values Vtha and Vthb are also set to be the same, the capacitance of the capacitor Cb between the output of the power supply circuit 15A and the ground is set to the capacitor Ca between the output of the power supply circuit 15A and the ground. When the power supply voltage Vmain, Vsub is reduced, the discharge rate on the side with the smaller capacity is increased when the power supply voltages Vmain, Vsub are lowered, and the main reset generation unit 13 detects the voltage drop first.
Other configurations are the same as those of the embodiment of FIG.

以上のように、系統別に異なる電源回路15A、15Bを設けた場合にも、メインリセット発生部13とサブリセット発生部14間で電源電圧低下の検知タイミングをずらせることができ、メインCPU11と同時にリセットされないサブCPU12によりメインリセット発生部13からのリセット信号RSaを監視することにより、そのLレベルの長さがTrs1以上であるか、Trs2であるかに基づいて、メインCPU11のリセットが低電圧によるリセットであるのか、WDT信号のパルス欠落すなわち暴走によるリセットなのかを判別することができる。   As described above, even when different power supply circuits 15A and 15B are provided for each system, the detection timing of the power supply voltage drop can be shifted between the main reset generation unit 13 and the sub-reset generation unit 14, and simultaneously with the main CPU 11. By monitoring the reset signal RSa from the main reset generation unit 13 by the sub CPU 12 that is not reset, the reset of the main CPU 11 is caused by a low voltage based on whether the L level length is Trs1 or more or Trs2. It is possible to determine whether the reset is due to a missing pulse of the WDT signal, that is, a reset due to runaway.

なお、実施の形態および変形例では、車両用の電子制御ユニットに適用した例について説明したが、本発明は車両用に限定されることなく、種々の電子制御ユニットのリセット回路に適用することができる。
また、メインリセット発生部13やサブリセット発生部14が出力するリセット信号は正常時はHレベルで、これをLレベルにすることにより対応するCPUをリセットするものとしたが、これに限定されず、正常時にLレベルで、CPUをリセットするときにHレベルとするようにしてもよい。
In the embodiment and the modification, the example applied to the vehicle electronic control unit has been described. However, the present invention is not limited to the vehicle and can be applied to reset circuits of various electronic control units. it can.
In addition, the reset signal output from the main reset generation unit 13 and the sub-reset generation unit 14 is normally at the H level, and the corresponding CPU is reset by setting it to the L level. However, the present invention is not limited to this. Alternatively, it may be at the L level when normal and at the H level when the CPU is reset.

本発明の実施の形態の構成を示す図である。It is a figure which shows the structure of embodiment of this invention. リセット制御の流れを示すタイミングチャートである。It is a timing chart which shows the flow of reset control. 変形例を示す図である。It is a figure which shows a modification.

符号の説明Explanation of symbols

10、10A 電子制御ユニット
11 メインCPU(第1のCPU)
12 サブCPU(第2のCPU)
13 メインリセット発生部(第1のリセット発生部)
14 サブリセット発生部(第2のリセット発生部)
15、15A、15B 電源回路
20、21 CR回路
10, 10A Electronic control unit 11 Main CPU (first CPU)
12 Sub CPU (second CPU)
13 Main reset generator (first reset generator)
14 Sub-reset generator (second reset generator)
15, 15A, 15B Power supply circuit 20, 21 CR circuit

Claims (6)

第1のCPUと第2のCPUを備える電子制御ユニットにおいて、
電源の低電圧検知機能を含む複数の異常検知機能を有して、異常検知時に異常ごとに異なるパルス幅のリセット信号を出力して第1のCPUをリセットする第1のリセット発生部と、
電源の低電圧検知機能を有して、電源の低電圧検知時にリセット信号を出力して第2のCPUをリセットする第2のリセット発生部とを有し、
第1のリセット発生部における低電圧検知用の閾値と第2のリセット発生部における低電圧検知用の閾値とは、電源の電圧低下が第2のリセット発生部によるよりも早く第1のリセット発生部により検知されるように設定され、
第2のCPUが第1のリセット発生部からのリセット信号を監視して、当該リセット信号のパルス幅に基づいて異常原因を判別するように構成されたことを特徴とする電子制御ユニットのリセット回路。
In an electronic control unit comprising a first CPU and a second CPU,
A first reset generation unit having a plurality of abnormality detection functions including a low voltage detection function of a power supply, and outputting a reset signal having a different pulse width for each abnormality at the time of abnormality detection, and resetting the first CPU;
A second reset generation unit that has a power source low voltage detection function and outputs a reset signal when the power source low voltage is detected to reset the second CPU;
The threshold for low voltage detection in the first reset generation unit and the threshold for low voltage detection in the second reset generation unit are such that the first voltage drop in the power supply occurs earlier than the second reset generation unit. Set to be detected by the
A reset circuit for an electronic control unit, wherein the second CPU is configured to monitor a reset signal from the first reset generation unit and determine a cause of abnormality based on a pulse width of the reset signal. .
前記第1のリセット発生部は、前記複数の異常検知機能として、前記電源の低電圧検知機能と、第1のCPUの暴走検知機能とを有することを特徴とする請求項1記載の電子制御ユニットのリセット回路。 2. The electronic control unit according to claim 1, wherein the first reset generation unit includes a low voltage detection function of the power supply and a runaway detection function of the first CPU as the plurality of abnormality detection functions. Reset circuit. 前記第1のリセット発生部が電源の低電圧を検知したときに出力するリセット信号のパルス幅は、第1のCPUの暴走を検知したときに出力するリセット信号のパルス幅よりも長く設定されることを特徴とする請求項2記載の電子制御ユニットのリセット回路。 The pulse width of the reset signal output when the first reset generation unit detects a low voltage of the power supply is set longer than the pulse width of the reset signal output when the runaway of the first CPU is detected. 3. A reset circuit for an electronic control unit according to claim 2, wherein: 前記第1のリセット発生部と第2のリセット発生部が共通の電源回路から電源供給され、
前記第1のリセット発生部における低電圧検知用の閾値が第2のリセット発生部における低電圧検知用の閾値よりも高く設定されていることを特徴とする請求項1から3のいずれか1に記載の電子制御ユニットのリセット回路。
The first reset generator and the second reset generator are powered from a common power circuit,
4. The low voltage detection threshold value in the first reset generation unit is set higher than the low voltage detection threshold value in the second reset generation unit. 5. The reset circuit of the electronic control unit described.
前記第1のリセット発生部と第2のリセット発生部が電力源を共通とする個別の電源回路から電源供給され、
各電源回路の出力とグラウンド間にそれぞれコンデンサを設けて、回路定数により、第2のリセット発生部に供給される電源電圧が第2のリセット発生部における低電圧検知用の閾値まで低下するよりも早く第1のリセット発生部に供給される電源電圧が第1のリセット発生部における低電圧検知用の閾値まで低下するように設定されていることを特徴とする請求項1から3のいずれか1に記載の電子制御ユニットのリセット回路。
The first reset generation unit and the second reset generation unit are supplied with power from individual power supply circuits having a common power source,
A capacitor is provided between the output of each power supply circuit and the ground, and the power supply voltage supplied to the second reset generation unit is reduced to a low voltage detection threshold value in the second reset generation unit due to circuit constants. 4. The power supply voltage supplied to the first reset generation unit early is set to drop to a threshold value for detecting a low voltage in the first reset generation unit. The reset circuit of the electronic control unit described in 1.
第1のCPUと第2のCPUを備え、第1のCPUをリセットするためのリセット信号を出力する第1のリセット発生部と、第2のCPUをリセットするためのリセット信号を出力する第2のリセット発生部とを有する電子制御ユニットにおいて、
前記第1のリセット発生部では電源の電圧低下を含む複数の異常を検知して、異常ごとに前記第1のCPUをリセットするためのリセット信号のパルス幅を異ならせ、
前記第2のリセット発生部でも電源の電圧低下を検知して前記第2のCPUをリセットするためのリセット信号を出力し、
第1のリセット発生部における低電圧検知用の閾値と第2のリセット発生部における低電圧検知用の閾値とは、電源の電圧低下が第2のリセット発生部によるよりも早く第1のリセット発生部により検知されるように設定して、
第2のCPUが第1のリセット発生部からのリセット信号を監視して、当該リセット信号のパルス幅に基づいて異常原因を判別することを特徴とする電子制御ユニットのリセット方法。
A first reset generation unit that includes a first CPU and a second CPU and outputs a reset signal for resetting the first CPU; and a second that outputs a reset signal for resetting the second CPU In an electronic control unit having a reset generation unit of
The first reset generation unit detects a plurality of abnormalities including a power supply voltage drop, and varies the pulse width of a reset signal for resetting the first CPU for each abnormality,
The second reset generator also detects a power supply voltage drop and outputs a reset signal for resetting the second CPU,
The threshold for low voltage detection in the first reset generation unit and the threshold for low voltage detection in the second reset generation unit are such that the first voltage drop in the power supply occurs earlier than the second reset generation unit. Set to be detected by the
A method for resetting an electronic control unit, characterized in that a second CPU monitors a reset signal from a first reset generation unit and determines a cause of an abnormality based on a pulse width of the reset signal.
JP2005224826A 2005-08-03 2005-08-03 Resetting circuit for electronic control unit Withdrawn JP2007041824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005224826A JP2007041824A (en) 2005-08-03 2005-08-03 Resetting circuit for electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005224826A JP2007041824A (en) 2005-08-03 2005-08-03 Resetting circuit for electronic control unit

Publications (1)

Publication Number Publication Date
JP2007041824A true JP2007041824A (en) 2007-02-15

Family

ID=37799750

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005224826A Withdrawn JP2007041824A (en) 2005-08-03 2005-08-03 Resetting circuit for electronic control unit

Country Status (1)

Country Link
JP (1) JP2007041824A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163071A (en) * 2011-01-20 2011-08-24 海能达通信股份有限公司 Control circuit and power control method during reset thereof
US8155824B2 (en) 2008-02-04 2012-04-10 Denso Corporation Electronic control apparatus for vehicles, which is provided with plural microcomputers
JP2012254765A (en) * 2011-06-10 2012-12-27 Yazaki Corp Control device for onboard equipment
JP2018005303A (en) * 2016-06-27 2018-01-11 株式会社リコー Information processing device, information processing system, and program
JP2020102020A (en) * 2018-12-21 2020-07-02 株式会社デンソーテン Control device and control method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8155824B2 (en) 2008-02-04 2012-04-10 Denso Corporation Electronic control apparatus for vehicles, which is provided with plural microcomputers
CN102163071A (en) * 2011-01-20 2011-08-24 海能达通信股份有限公司 Control circuit and power control method during reset thereof
CN102163071B (en) * 2011-01-20 2013-09-11 海能达通信股份有限公司 Control circuit and power control method during reset thereof
JP2012254765A (en) * 2011-06-10 2012-12-27 Yazaki Corp Control device for onboard equipment
JP2018005303A (en) * 2016-06-27 2018-01-11 株式会社リコー Information processing device, information processing system, and program
JP2020102020A (en) * 2018-12-21 2020-07-02 株式会社デンソーテン Control device and control method
JP7220071B2 (en) 2018-12-21 2023-02-09 株式会社デンソーテン Control device and control method

Similar Documents

Publication Publication Date Title
US6883123B2 (en) Microprocessor runaway monitoring control circuit
JP4849164B2 (en) Voltage monitoring device
KR900001444B1 (en) Engine control apparatus
US8453004B2 (en) Microcomputer with reset pin and electronic control unit with the same
JP2007041824A (en) Resetting circuit for electronic control unit
JP5902975B2 (en) Monitoring device and in-vehicle electronic control device
US9142068B2 (en) Airbag control unit
US9599644B2 (en) Semiconductor device
JP6583718B2 (en) Battery deterioration judgment device
JP3142437B2 (en) Ignition device for internal combustion engine
EP3716011B1 (en) Power management integrated circuit
JP2007306351A (en) Power-on reset circuit
US10536141B2 (en) Semiconductor device
JP6665632B2 (en) Electronic control unit
JPH07239795A (en) Runaway preventing circuit for microprocessor
US10164446B2 (en) Discharge circuit malfunction diagnosis device and discharge circuit malfunction diagnosis method
JP6172040B2 (en) Electronic control unit
JP7143797B2 (en) Power control device for in-vehicle camera module
JP5347460B2 (en) Integrated circuit device for secondary battery protection and inspection method for integrated circuit device for secondary battery protection
KR100775328B1 (en) Apparatus for resetting micoms
JP6720725B2 (en) Output device and switching system
US20080141053A1 (en) Monitoring Circuit
CN110928220A (en) Monitoring method and monitoring circuit
JP2006115203A (en) Communication controller
JP2023149041A (en) Semiconductor device and failure detection method

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: 20081007