JP2003140779A - Watch dog timer diagnosing system - Google Patents

Watch dog timer diagnosing system

Info

Publication number
JP2003140779A
JP2003140779A JP2001340561A JP2001340561A JP2003140779A JP 2003140779 A JP2003140779 A JP 2003140779A JP 2001340561 A JP2001340561 A JP 2001340561A JP 2001340561 A JP2001340561 A JP 2001340561A JP 2003140779 A JP2003140779 A JP 2003140779A
Authority
JP
Japan
Prior art keywords
reset signal
level
signal
input terminal
wdt
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
JP2001340561A
Other languages
Japanese (ja)
Inventor
Tomohiko Gonda
友彦 権田
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 JP2001340561A priority Critical patent/JP2003140779A/en
Publication of JP2003140779A publication Critical patent/JP2003140779A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a WDT diagnosing system capable of diagnosing the presence or absence of the abnormality of not only a watch dog timer but also a reset signal input terminal. SOLUTION: A WDT diagnosing circuit 20 outputs a reset signal when a pulse signal from a CPU 10 is away from a prescribed period. At the time of diagnosing failure, a reset signal level is set so as to be a higher level than the H level minimum input voltage of the reset signal input terminal RESB of the CPU so that the reset of the CPU can be prevented. When any failure is not diagnosed, the reset signal level is set so as to be a lower level than the L level maximum input voltage of the reset signal input terminal. The CPU receives the reset signal to a diagnosed result signal input terminal SINI which is different from the reset signal input terminal, and judges whether or not the WDT diagnosing circuit is normal based on the change of the reset signal. When WDT failure or open failure or the like on a route to the reset signal input terminal occurs, the reset signal is not changed so that the abnormality can be detected.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、システム動作を監
視し、特定の信号ラインにパルス信号が供給されなくな
ったり所定周期から外れたりした場合には、システムが
正常動作していないと判断しリセットをかけるウオッチ
ドッグタイマ(以下、「WDT」という)の診断が可能
なウオッチドッグタイマ診断システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention monitors system operation, and when a pulse signal is not supplied to a specific signal line or deviates from a predetermined cycle, it is determined that the system is not operating normally and reset. The present invention relates to a watchdog timer diagnostic system capable of diagnosing a watchdog timer (hereinafter, referred to as “WDT”) that activates a clock.

【0002】[0002]

【従来の技術】従来のWDT診断システムとして図7に
示すようなものがある。このシステムでは、ウオッチド
ッグタイマ(WDT)診断回路60が専用のICである
ASICで構成され、CPU(中央演算装置)50に接
続されている。CPU50は電源電圧VDDで作動し、
パルス信号出力端子PRNOから所定周期パルスのPR
UN信号を出力可能である。また、診断状態信号出力端
子SINJOからはWDT診断を制御する診断状態信号
を出力する。
2. Description of the Related Art A conventional WDT diagnostic system is shown in FIG. In this system, a watchdog timer (WDT) diagnostic circuit 60 is composed of an ASIC, which is a dedicated IC, and is connected to a CPU (central processing unit) 50. The CPU 50 operates at the power supply voltage VDD,
From the pulse signal output terminal PRNO, the PR of a predetermined period pulse
A UN signal can be output. Further, the diagnostic status signal output terminal SINJO outputs a diagnostic status signal for controlling WDT diagnosis.

【0003】WDT診断回路60はまず、電源入力端子
VCCを経て電源電圧VDDに接続されたパワーオンク
リア回路(POC)22と、CPU50からのPRUN
信号を入力するパルス信号入力端子PRNIに接続され
たWDT24を備える。WDT24は、入力されたPR
UN信号が所定周期から外れたとき、異常検出信号を出
力する。WDT診断回路60内では、診断状態信号入力
端子SINJIに受けたCPU50からの診断状態信号
が、AND回路62へ入力されるとともに、AND回路
64に反転入力される。
The WDT diagnostic circuit 60 first includes a power-on clear circuit (POC) 22 connected to a power supply voltage VDD via a power supply input terminal VCC and a PRUN from the CPU 50.
A WDT 24 connected to a pulse signal input terminal PRNI for inputting a signal is provided. WDT24 is the input PR
When the UN signal deviates from the predetermined cycle, the abnormality detection signal is output. In the WDT diagnostic circuit 60, the diagnostic status signal from the CPU 50 received by the diagnostic status signal input terminal SINJI is input to the AND circuit 62 and inverted to the AND circuit 64.

【0004】AND回路64には、WDT24から出力
される異常検出信号も入力され、WDT診断時はWDT
24から出力される異常検出信号をマスクし、非WDT
診断時は異常検出信号をOR回路66へ出力する。OR
回路66は、AND回路64とパワーオンクリア回路2
2とからの出力信号が入力可能とされ、いずれか一方の
信号が入力されたときリセット信号出力用のトランジス
タ68へ信号を出力する。トランジスタ68は、OR回
路66からのリセット出力信号の入力によりオン作動
し、リセット信号出力端子RESOからリセット信号を
CPU50のリセット信号入力端子RESBへ出力す
る。
An abnormality detection signal output from the WDT 24 is also input to the AND circuit 64, and the WDT is diagnosed at the time of WDT.
Anomaly detection signal output from 24 is masked, and non-WDT
During diagnosis, an abnormality detection signal is output to the OR circuit 66. OR
The circuit 66 includes an AND circuit 64 and a power-on clear circuit 2
Output signals from 2 and 2 can be input, and when either one of the signals is input, a signal is output to the reset signal output transistor 68. The transistor 68 is turned on by the input of the reset output signal from the OR circuit 66, and outputs the reset signal from the reset signal output terminal RESO to the reset signal input terminal RESB of the CPU 50.

【0005】リセット信号出力端子RESOとリセット
信号入力端子RESB間の接続線は抵抗74を介して電
源電圧VDDに接続され、トランジスタ68がオフの状
態ではCPU50のリセット信号入力端子RESBに非
リセット信号としてのHレベル(ハイ・レベル)の信号
を、またトランジスタ68がオンの状態ではリセット信
号入力端子RESBにリセット信号としてのLレベル
(ロー・レベル)の信号を供給するように構成されてい
る。
The connection line between the reset signal output terminal RESO and the reset signal input terminal RESB is connected to the power supply voltage VDD via the resistor 74, and when the transistor 68 is off, the reset signal input terminal RESB of the CPU 50 receives a non-reset signal. Is supplied to the reset signal input terminal RESB when the transistor 68 is in the ON state, and the L level (low level) signal as a reset signal is supplied to the reset signal input terminal RESB.

【0006】一方、AND回路62にも、診断状態信号
入力端子SINJIからの診断状態信号に加えて、WD
T24からの異常検出信号が入力され、診断状態信号に
よりWDT非診断時にはWDT24からの異常検出信号
をマスクし、WDT診断時には異常検出信号を出力バッ
ファ70へ出力する。出力バッファ70は、AND回路
62からの出力信号をインピーダンス変換して診断結果
信号出力端子SINOから診断結果信号として出力す
る。この診断結果信号はCPU50の診断結果信号入力
端子SINIに入力される。
On the other hand, in the AND circuit 62, in addition to the diagnostic status signal from the diagnostic status signal input terminal SINJI, WD
The abnormality detection signal from T24 is input, the abnormality detection signal from the WDT 24 is masked when the WDT is not diagnosed by the diagnostic state signal, and the abnormality detection signal is output to the output buffer 70 during the WDT diagnosis. The output buffer 70 impedance-converts the output signal from the AND circuit 62 and outputs it as a diagnostic result signal from the diagnostic result signal output terminal SINO. This diagnostic result signal is input to the diagnostic result signal input terminal SINI of the CPU 50.

【0007】すなわち、AND回路64以降の回路は、
PRUN信号が所定周期から外れたとき、WDT24か
ら出力される異常検出信号に基づいてリセット信号をC
PU50に入力することによりこれをリセットし、AN
D回路62以降の回路は、WDT24から出力される異
常検出信号を診断結果信号としてCPU50に入力する
ので、CPU50がWDT24の異常を判断する。
That is, the circuits after the AND circuit 64 are
When the PRUN signal deviates from the predetermined cycle, the reset signal is reset to C based on the abnormality detection signal output from the WDT 24.
This is reset by inputting to PU50, and AN
The circuits subsequent to the D circuit 62 input the abnormality detection signal output from the WDT 24 to the CPU 50 as a diagnosis result signal, so that the CPU 50 determines the abnormality of the WDT 24.

【0008】図8は、上記従来のWDT診断システムに
おいて、非WDT診断時に、PRUN信号が正常である
場合のタイムチャートである。CPU50の診断状態信
号出力端子SINJOからWDT診断回路60の診断状
態信号入力端子SINJIに入力される診断状態信号、
およびWDT診断回路60の診断結果信号出力端子SI
NOからCPU50の診断結果信号入力端子SINIへ
出力されるWDT診断結果信号は、非WDT診断状態で
あることから、ともにLレベルの状態で一定となってい
る。また、パルス信号入力端子PRNIに入力されるP
RUN信号は、正常であることから所定周期のパルス信
号であり、WDT24は異常検出信号を出力せず、リセ
ット信号入力端子RESBへ入力されるリセット信号
は、非リセット状態を示すHレベルで一定となってい
る。
FIG. 8 is a time chart when the PRUN signal is normal in the non-WDT diagnosis in the conventional WDT diagnosis system. A diagnostic status signal input from the diagnostic status signal output terminal SINJO of the CPU 50 to the diagnostic status signal input terminal SINJI of the WDT diagnostic circuit 60,
And diagnostic result signal output terminal SI of the WDT diagnostic circuit 60
Since the WDT diagnostic result signal output from NO to the diagnostic result signal input terminal SINI of the CPU 50 is in the non-WDT diagnostic state, both are constant at the L level. Further, P input to the pulse signal input terminal PRNI
The RUN signal is a pulse signal having a predetermined cycle because it is normal, the WDT 24 does not output an abnormality detection signal, and the reset signal input to the reset signal input terminal RESB is constant at an H level indicating a non-reset state. Has become.

【0009】図9は、上記非WDT診断時に、PRUN
信号が異常となった場合のタイムチャートである。ここ
でも、非WDT診断状態であることから、診断状態信号
入力端子SINJIに入力される診断状態信号、および
診断結果信号出力端子SINOから出力されるWDT診
断結果信号は、ともにLレベルの状態で一定となってい
る。この状態で、パルス信号入力端子PRNIに入力さ
れるPRUN信号がある時刻t1で所定周期から外れ、
例えば低レベルの一定値になると、WDT24は、PR
UN異常検知時間TRESが経過した時点t2で異常検
出信号を出力する。
FIG. 9 shows that when the non-WDT diagnosis is performed, the PRUN
It is a time chart when a signal becomes abnormal. Here again, since it is in the non-WDT diagnostic state, the diagnostic state signal input to the diagnostic state signal input terminal SINJI and the WDT diagnostic result signal output from the diagnostic result signal output terminal SINO are both constant at the L level state. Has become. In this state, the PRUN signal input to the pulse signal input terminal PRNI deviates from the predetermined cycle at a certain time t1,
For example, when the low level becomes a constant value, the WDT 24
An abnormality detection signal is output at time t2 when the UN abnormality detection time TRES has elapsed.

【0010】ここで、診断状態信号がLレベルの一定信
号であるので、AND回路64へは反転されHレベルと
して入力され、WDT24の出力がAND回路64を通
過して、OR回路66を介してトランジスタ68をオン
させる。この結果、リセット信号出力端子RESOから
リセット信号入力端子RESBへ入力するリセット信号
は、HレベルからLレベルに切り換わる。
Here, since the diagnostic state signal is a constant signal of L level, it is inverted and input to the AND circuit 64 as H level, and the output of the WDT 24 passes through the AND circuit 64 and the OR circuit 66. The transistor 68 is turned on. As a result, the reset signal input from the reset signal output terminal RESO to the reset signal input terminal RESB switches from the H level to the L level.

【0011】次に、WDT診断時におけるPRUN信号
が正常である場合のタイムチャートは図10のようにな
る。診断状態信号出力端子SINJOから診断状態信号
入力端子SINJIに入力される診断状態信号は、WD
T診断開始時点t3でLレベル状態からHレベル状態に
立ち上がる。これと同時に、CPU50はパルス信号出
力端子PRNOからパルス信号入力端子PRNIへ入力
されるPRUN信号を、擬似異常信号として所定周期か
らずれた低レベルの一定値とする。
Next, a time chart when the PRUN signal is normal at the time of WDT diagnosis is shown in FIG. The diagnostic status signal input from the diagnostic status signal output terminal SINJO to the diagnostic status signal input terminal SINJI is WD
At the time t3 when the T diagnosis is started, the L level state is changed to the H level state. At the same time, the CPU 50 sets the PRUN signal input from the pulse signal output terminal PRNO to the pulse signal input terminal PRNI to a low level constant value deviating from a predetermined cycle as a pseudo abnormal signal.

【0012】これにより、WDT24は、PRUN異常
検知時間TRESを経過した時刻t4で、異常検出信号
をAND回路64とAND回路62とへ出力する。ここ
で、AND回路64は、診断状態信号入力端子SINJ
Iへ入力された診断状態信号がHレベルとなっており、
これが反転してLレベル信号で入力されることから、異
常検出信号をマスクする。したがって、異常検出信号
は、もはやAND回路64から出力されず、OR回路6
6以下を通じてリセット信号としてCPU50に入力さ
れることはない。
As a result, the WDT 24 outputs an abnormality detection signal to the AND circuit 64 and the AND circuit 62 at the time t4 when the PRUN abnormality detection time TRES has elapsed. Here, the AND circuit 64 uses the diagnostic state signal input terminal SINJ.
The diagnostic status signal input to I is H level,
Since this is inverted and input as the L level signal, the abnormality detection signal is masked. Therefore, the abnormality detection signal is no longer output from the AND circuit 64, and the OR circuit 6
It will not be inputted to the CPU 50 as a reset signal through 6 and below.

【0013】一方、AND回路62は、診断状態信号が
Hレベルであるので、WDT24からの異常検出信号を
受けてHレベルを出力し、バッファ回路70を経て、診
断結果信号出力端子SINOから診断結果信号としてC
PU50の診断結果信号入力端子SINIへ出力され
る。この結果、CPU50は、WDT24が正常に作動
していると判断し、時刻t3から時間TSIN経過後の
時刻t5でWDT診断を終了して、PRUN信号を正常
に復帰させる。
On the other hand, since the diagnostic state signal is at the H level, the AND circuit 62 receives the abnormality detection signal from the WDT 24 and outputs the H level, and the AND circuit 62 outputs the diagnostic result from the diagnostic result signal output terminal SINO via the buffer circuit 70. C as signal
It is output to the diagnostic result signal input terminal SINI of the PU 50. As a result, the CPU 50 determines that the WDT 24 is operating normally, terminates the WDT diagnosis at time t5 after the time TSIN has elapsed from time t3, and returns the PRUN signal to normal.

【0014】これに対し、WDT24に故障がある場合
は、図11に示すように、WDT24は異常検出信号を
出力しない。したがって、異常検出信号が診断結果信号
として診断結果信号出力端子SINOから出力されず、
CPU50に入力されない。このため、診断結果信号が
WDT診断開始時刻t3から所定時間TSIN内に診断
結果信号入力端子SINIへ入力されないとき、CPU
50は、WDT24が異常であると判断して、時刻t5
でWDT診断を終了する。
On the other hand, when the WDT 24 has a failure, the WDT 24 does not output the abnormality detection signal as shown in FIG. Therefore, the abnormality detection signal is not output as the diagnosis result signal from the diagnosis result signal output terminal SINO,
It is not input to the CPU 50. Therefore, when the diagnosis result signal is not input to the diagnosis result signal input terminal SINI within the predetermined time TSIN from the WDT diagnosis start time t3, the CPU
50 determines that the WDT 24 is abnormal, and time t5
Then, the WDT diagnosis is completed.

【0015】[0015]

【発明が解決しようとする課題】ところで、上記のWD
T診断時には、CPUにリセットがかからないようにし
てある。すなわち、診断結果信号はリセット信号出力端
子RESOからではなく、専用の診断結果信号出力端子
SINOから出力している。ここで、WDT正常時にW
DT診断回路60のリセット信号出力端子RESOがオ
ープン故障したときの場合を考えると、WDT診断時に
は、診断状態信号入力端子SINJIへ診断状態信号を
入力すると同時に、PRUN信号を所定周期からずれた
ものとするので、WDT24が異常検出信号を出力する
が、診断状態信号がHレベルであるので異常検出信号は
AND回路64でマスクされ、CPU50のリセット信
号入力端子RESBへリセット信号が入力されることは
ない。すなわち、リセット信号出力端子RESOがオー
プン故障しているか否かにかかわらず、WDT診断時に
はCPU50にはリセットがかからない。
By the way, the above WD
At the time of T diagnosis, the CPU is not reset. That is, the diagnostic result signal is output from the dedicated diagnostic result signal output terminal SINO, not from the reset signal output terminal RESO. Where WDT is normal
Considering the case where the reset signal output terminal RESO of the DT diagnostic circuit 60 has an open failure, it is assumed that at the time of WDT diagnosis, the diagnostic status signal is input to the diagnostic status signal input terminal SINJI and the PRUN signal is deviated from the predetermined cycle. Therefore, the WDT 24 outputs the abnormality detection signal, but since the diagnosis state signal is at the H level, the abnormality detection signal is masked by the AND circuit 64, and the reset signal is not input to the reset signal input terminal RESB of the CPU 50. . That is, regardless of whether or not the reset signal output terminal RESO has an open failure, the CPU 50 is not reset during WDT diagnosis.

【0016】以上のように、従来のWDT診断システム
では、診断結果信号をリセット信号出力端子RESOと
異なる診断結果信号出力端子SINOから出力している
ので、WDT診断時にCPUへリセットがかからないよ
うにしながらWDT24の診断を実施することができる
ものの、WDT24からリセット信号出力端子RESO
に至る経路、さらにはCPU50のリセット信号入力端
子RESBまでにおける故障の有無については判断がで
きない。
As described above, in the conventional WDT diagnostic system, since the diagnostic result signal is output from the diagnostic result signal output terminal SINO different from the reset signal output terminal RESO, the CPU is not reset during WDT diagnosis. Although the WDT 24 can be diagnosed, the WDT 24 reset signal output terminal RESO
It is not possible to judge whether or not there is a failure in the path leading up to, and further up to the reset signal input terminal RESB of the CPU 50.

【0017】したがって本発明は、上記の問題に鑑み、
ウオッチドッグタイマのみならず、この回路からリセッ
ト信号入力端子までの回路の異常の有無をも診断できる
ようにしたウオッチドッグタイマ診断システムを提供す
ることを目的とする。
Therefore, the present invention has been made in view of the above problems.
An object of the present invention is to provide a watchdog timer diagnostic system capable of diagnosing not only the watchdog timer but also the presence or absence of an abnormality in the circuit from this circuit to the reset signal input terminal.

【0018】[0018]

【課題を解決するための手段】このため請求項1の本発
明は、CPUが出力するパルス信号が所定周期から外れ
た場合にウオッチドッグタイマから出力する異常検出信
号に基づいてCPU側のリセット信号入力端子へリセッ
ト信号を入力する一方、CPUから擬似異常信号を出力
してウオッチドッグタイマの故障診断を行うウオッチド
ッグタイマ診断システムにおいて、ウオッチドッグタイ
マの非故障診断時は、リセット信号入力端子に入力され
るリセット信号レベルをリセット信号入力端子のLレベ
ル最大入力電圧よりも低いレベルとし、ウオッチドッグ
タイマの故障診断時は、リセット信号レベルをリセット
信号入力端子のHレベル最小入力電圧よりも高いレベル
とするとともに、CPU側では、リセット信号入力端子
と異なる端子にリセット信号を入力して、該リセット信
号の変化に基づきウオッチドッグタイマが正常であるか
否かの判断を行うものとした。
Therefore, according to the present invention of claim 1, when the pulse signal output from the CPU deviates from the predetermined period, the reset signal on the CPU side is generated based on the abnormality detection signal output from the watchdog timer. While inputting a reset signal to the input terminal, in the watchdog timer diagnosis system that outputs a pseudo abnormal signal from the CPU to diagnose the failure of the watchdog timer, input it to the reset signal input terminal when not diagnosing the watchdog timer. The reset signal level is set to a level lower than the L level maximum input voltage of the reset signal input terminal, and at the time of failure diagnosis of the watchdog timer, the reset signal level is set to a level higher than the H level minimum input voltage of the reset signal input terminal. At the same time, on the CPU side, reconnect to a terminal different from the reset signal input terminal. Enter the Tsu bets signals were assumed to watchdog timer based on a change of the reset signal makes a determination whether or not normal.

【0019】請求項2の発明は、故障診断時および非故
障診断時のリセット信号レベルを、CPUから出力され
る診断状態信号に基づいて切り換えるものとした。ま
た、請求項3の発明は、とくに上記診断状態信号に基づ
いて抵抗値が切り換わるとともに、ウオッチドッグタイ
マの出力に基づいて制御されるトランジスタを介して接
地可能の可変抵抗手段と、電源電圧に接続された第1の
抵抗とを有し、リセット信号出力端子は、第1の抵抗と
可変抵抗手段との接続点に設けられて、リセット信号レ
ベルが、第1の抵抗の抵抗値とトランジスタのオン抵抗
および可変抵抗手段の抵抗値とで電源電圧を分圧したも
のとした。
According to a second aspect of the present invention, the reset signal level at the time of failure diagnosis and at the time of non-fault diagnosis is switched based on the diagnosis status signal output from the CPU. According to a third aspect of the present invention, in particular, the resistance value is switched based on the diagnostic state signal, and the variable resistance means that can be grounded via the transistor controlled based on the output of the watchdog timer is connected to the power supply voltage. A reset signal output terminal is provided at a connection point between the first resistor and the variable resistance means, and the reset signal level is equal to the resistance value of the first resistor and that of the transistor. The power supply voltage is divided by the on-resistance and the resistance value of the variable resistance means.

【0020】請求項4の発明は、とくに可変抵抗手段
が、互いに並列に設けられた第2の抵抗と、オン抵抗が
第2の抵抗より低く診断状態信号に基づいて切り換えら
れるスイッチとからなり、故障診断時は該スイッチをオ
フさせて抵抗値を高くし、非故障診断時はスイッチをオ
ンさせて抵抗値を低くするものとした。
According to a fourth aspect of the present invention, in particular, the variable resistance means comprises a second resistance provided in parallel with each other, and a switch whose ON resistance is lower than the second resistance and which is switched based on the diagnostic status signal. The switch is turned off to increase the resistance value at the time of failure diagnosis, and the switch is turned on to decrease the resistance value at the time of non-failure diagnosis.

【0021】[0021]

【発明の効果】請求項1の発明では、ウオッチドッグタ
イマ側からリセット信号を出力し、このリセット信号を
CPU側では診断結果信号としても利用する。そして、
ウオッチドッグタイマの診断時は、リセット信号レベル
をCPUのリセット信号入力端子のHレベル最小入力電
圧よりも高いレベルとすることにより、CPUがリセッ
トされることはない。また、CPU側ではリセット信号
入力端子と異なる端子にリセット信号を受けて、その信
号の変化により、ウオッチドッグタイマが正常であるか
否か、そしてウオッチドッグタイマからリセット信号入
力端子までの回路故障をも判断することができる。
According to the first aspect of the present invention, a reset signal is output from the watchdog timer side, and this reset signal is also used as a diagnosis result signal on the CPU side. And
During diagnosis of the watchdog timer, the CPU is not reset by setting the reset signal level to a level higher than the H level minimum input voltage of the reset signal input terminal of the CPU. In addition, the CPU receives a reset signal at a terminal different from the reset signal input terminal, and the change in the signal determines whether the watchdog timer is normal, and whether a circuit failure from the watchdog timer to the reset signal input terminal occurs. Can also be determined.

【0022】一方、非診断時には、リセット信号レベル
をCPUのリセット信号入力端子のLレベル最大入力電
圧よりも低いレベルとすることで、CPUにリセットを
かけることが可能となる。
On the other hand, at the time of non-diagnosis, it is possible to reset the CPU by setting the reset signal level to a level lower than the L level maximum input voltage of the reset signal input terminal of the CPU.

【0023】請求項2の発明では、故障診断時および非
故障診断時のリセット信号レベルを、CPUからの診断
状態信号に基づいて切り換えるものとしたので、ウオッ
チドッグタイマ側に切り換えタイミングを決定する複雑
な回路を要しない。請求項3の発明では、電源電圧に接
続された第1の抵抗とトランジスタで接地可能の可変抵
抗手段との接続点にリセット信号出力端子を設け、診断
状態信号に基づいて可変抵抗手段の抵抗値を切り換え
て、リセット信号レベルを分圧値で得るものとしたの
で、簡単な構成でリセット信号レベルを切り換えること
ができる。
According to the second aspect of the present invention, since the reset signal level at the time of failure diagnosis and at the time of non-fault diagnosis is switched based on the diagnosis status signal from the CPU, it is complicated to determine the switching timing on the watchdog timer side. It does not require a special circuit. According to the invention of claim 3, a reset signal output terminal is provided at a connection point between the first resistance connected to the power supply voltage and the variable resistance means that can be grounded by a transistor, and the resistance value of the variable resistance means is determined based on the diagnostic state signal. , And the reset signal level is obtained by the divided voltage value. Therefore, the reset signal level can be switched with a simple configuration.

【0024】請求項4の発明は、上記の可変抵抗手段を
並列の第2の抵抗とスイッチとから構成し、故障診断時
は該スイッチをオフさせて抵抗値を高くし、非故障診断
時はスイッチをオンさせてその低いオン抵抗を用いるも
のとしたので、スイッチのオン、オフだけでとくに簡便
に異なるレベルのリセット信号を得ることができる。
According to a fourth aspect of the present invention, the variable resistance means comprises a second resistor and a switch connected in parallel, the switch is turned off to increase the resistance value at the time of failure diagnosis, and the non-fault diagnosis is made at the time of non-failure diagnosis. Since the switch is turned on and its low on-resistance is used, reset signals of different levels can be obtained particularly simply by turning the switch on and off.

【0025】[0025]

【発明の実施の形態】以下、本発明の実施の形態につい
て詳細に説明する。図1は、発明の実施の構成を示すブ
ロック図である。CPU10は電源電圧VDDで作動
し、パルス信号出力端子PRNOから所定周期のパルス
信号PRUNを出力可能であり、また、診断状態信号出
力端子SINJOからはWDT診断を制御する診断状態
信号を出力する。そして、WDT診断回路20からのリ
セット信号を受けるリセット信号入力端子RESBと、
同じくリセット信号を受ける診断結果信号入力端子SI
NIを備えている。リセット信号入力端子RESBおよ
び診断結果信号入力端子SINIはそれぞれ、Lレベル
最大入力電圧VLmaxとLレベル最小入力電圧VLm
inの間をLレベル信号の入力範囲とし、Hレベル最大
入力電圧VHmaxとHレベル最小入力電圧VHmin
の間をHレベル信号の入力範囲としている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below. FIG. 1 is a block diagram showing a configuration of an embodiment of the invention. The CPU 10 operates at the power supply voltage VDD, can output a pulse signal PRUN of a predetermined cycle from the pulse signal output terminal PRNO, and outputs a diagnostic state signal for controlling WDT diagnosis from the diagnostic state signal output terminal SINJO. Then, a reset signal input terminal RESB that receives the reset signal from the WDT diagnostic circuit 20,
Similarly, a diagnostic result signal input terminal SI for receiving a reset signal
It has NI. The reset signal input terminal RESB and the diagnostic result signal input terminal SINI are respectively at the L level maximum input voltage VLmax and the L level minimum input voltage VLm.
The input range of the L level signal is between in and the H level maximum input voltage VHmax and the H level minimum input voltage VHmin.
The interval between them is the input range of the H level signal.

【0026】WDT診断回路20は、電源電圧VDDに
接続された電源入力端子VCCと、CPU10のパルス
信号出力端子PRNOと接続されたパルス信号入力端子
PRNIと、診断状態信号出力端子SINJOと接続さ
れた診断状態信号入力端子SINJIと、CPU10へ
リセット信号を出力するリセット信号出力端子RESO
を備える。WDT診断回路20のリセット信号出力端子
RESOとCPU10のリセット信号入力端子RESB
間の接続線は、抵抗34を介して電源電圧VDDに接続
されている。
The WDT diagnosis circuit 20 is connected to a power supply input terminal VCC connected to the power supply voltage VDD, a pulse signal input terminal PRNI connected to the pulse signal output terminal PRNO of the CPU 10, and a diagnosis status signal output terminal SINJO. Diagnostic status signal input terminal SINJI and reset signal output terminal RESO for outputting a reset signal to the CPU 10.
Equipped with. Reset signal output terminal RESO of WDT diagnostic circuit 20 and reset signal input terminal RESB of CPU 10
The connection line between them is connected to the power supply voltage VDD via the resistor 34.

【0027】WDT診断回路20内には、電源入力端子
VCCに接続されたパワーオンクリア回路22と、パル
ス信号入力端子PRNIに接続されたWDT24を有し
ている。WDT24は、入力されたPRUN信号が所定
周期から外れたとき異常と判断して、異常検出信号(こ
こではHレベル信号)を出力する。リセット信号出力端
子RESOは、抵抗30からトランジスタ28を介して
接地され、抵抗30と並列にスイッチ32が設けられて
いる。スイッチ32のオン抵抗は、抵抗30および抵抗
34よりも十分小さい。パワーオンクリア回路22とW
DT24の各出力はOR回路26に入力され、OR回路
26の出力がトランジスタ28のゲートに接続されてい
る。
The WDT diagnostic circuit 20 has a power-on clear circuit 22 connected to the power supply input terminal VCC and a WDT 24 connected to the pulse signal input terminal PRNI. The WDT 24 determines that an abnormality has occurred when the input PRUN signal deviates from a predetermined cycle, and outputs an abnormality detection signal (here, an H level signal). The reset signal output terminal RESO is grounded from the resistor 30 via the transistor 28, and the switch 32 is provided in parallel with the resistor 30. The on resistance of the switch 32 is sufficiently smaller than the resistance 30 and the resistance 34. Power-on clear circuit 22 and W
Each output of the DT 24 is input to the OR circuit 26, and the output of the OR circuit 26 is connected to the gate of the transistor 28.

【0028】スイッチ32はその制御端子が診断状態信
号入力端子SINJIに接続してあり、診断状態信号に
よりオン/オフする。すなわち、診断状態信号がLレベ
ルとされる非WDT診断時にはオン状態となり、診断状
態信号がHレベルとされるWDT診断時にはオフ状態と
なる。これにより、並列に設けられた抵抗30とスイッ
チ32は、スイッチ32のオン、オフにより後述のよう
に全体としての抵抗値が変化する可変抵抗手段を構成す
る。以上のWDT診断回路20は専用のASICとして
構成されている。
The switch 32 has its control terminal connected to the diagnostic state signal input terminal SINJI and is turned on / off by the diagnostic state signal. That is, the non-WDT diagnosis in which the diagnostic state signal is at the L level is in the on state, and the WDT diagnostic in which the diagnostic state signal is at the H level is in the off state. As a result, the resistor 30 and the switch 32 provided in parallel constitute variable resistance means whose overall resistance value changes as will be described later when the switch 32 is turned on and off. The above WDT diagnostic circuit 20 is configured as a dedicated ASIC.

【0029】トランジスタ28がオフの状態ではCPU
10のリセット信号入力端子RESBに非リセット信号
としてのハイ・レベル(Hレベル)の信号を、またトラ
ンジスタ28がオンの状態ではリセット信号入力端子R
ESBにリセット信号としてのロー・レベル(Lレベ
ル)の信号を供給するように構成されている。
When the transistor 28 is off, the CPU
A high-level (H-level) signal as a non-reset signal is applied to the reset signal input terminal RESB 10 and a reset signal input terminal R when the transistor 28 is on.
The ESB is configured to supply a low level (L level) signal as a reset signal.

【0030】また、リセット信号出力端子RESOとリ
セット信号入力端子RESB間の接続線はCPU10の
診断結果信号入力端子SINIにも接続され、前述のよ
うにリセット信号が診断結果信号入力端子SINIにも
入力されるようになっている。WDT診断回路20のリ
セット信号出力端子RESOから出力されるリセット信
号のHレベルおよびLレベルの高さは、WDTの診断時
と非診断時とで変化する。
The connecting line between the reset signal output terminal RESO and the reset signal input terminal RESB is also connected to the diagnostic result signal input terminal SINI of the CPU 10, and the reset signal is also input to the diagnostic result signal input terminal SINI as described above. It is supposed to be done. The heights of the H level and the L level of the reset signal output from the reset signal output terminal RESO of the WDT diagnostic circuit 20 change depending on whether the WDT is diagnosed or not.

【0031】図2の(a)は、非WDT診断時のリセッ
ト信号レベルを示し、(b)はWDT診断時のリセット
信号レベルを示す。非WDT診断時は、CPU10から
WDT診断回路20の診断状態信号入力端子SINJI
に入力される診断状態信号がLレベルとされることか
ら、スイッチ32がオン状態にある。パルス信号入力端
子PRNIに入力されたCPU10からのパルス信号P
RUNが所定周期からずれたとき、WDT24は異常と
判断して異常検出信号(Hレベル信号)を出力する。こ
の異常検出信号に基づきOR回路26の出力がトランジ
スタ28をオンさせる。
FIG. 2A shows the reset signal level during non-WDT diagnosis, and FIG. 2B shows the reset signal level during WDT diagnosis. At the time of non-WDT diagnosis, the CPU 10 outputs the diagnosis state signal input terminal SINJI of the WDT diagnosis circuit 20.
The switch 32 is in the on-state because the diagnostic state signal input to is set to the L level. The pulse signal P from the CPU 10 input to the pulse signal input terminal PRNI
When the RUN deviates from the predetermined cycle, the WDT 24 determines that it is abnormal and outputs an abnormality detection signal (H level signal). Based on this abnormality detection signal, the output of the OR circuit 26 turns on the transistor 28.

【0032】その際、スイッチ32のオン抵抗は抵抗3
0の抵抗値より十分小さい(低い)ので、前述した可変
抵抗手段としての抵抗値は実質的にスイッチ32のオン
抵抗で表わされる。こうして、リセット信号出力端子R
ESOに現われるリセット信号の電圧レベルは、電源電
圧VDDを抵抗34と、スイッチ32のオン抵抗および
トランジスタ28のオン抵抗とで分圧した電圧となる。
抵抗34とスイッチ32のオン抵抗の抵抗値は、まずこ
の分圧された電圧レベルが、図2の(a)に示すよう
に、CPU10のリセット信号入力端子RESBのLレ
ベル最大入力電圧VLmaxとLレベル最小入力電圧V
Lminの間の電圧範囲Va内になるように、トランジ
スタ28のオン抵抗も考慮して設定してある。したがっ
て、非WDT診断時のCPU10は、このリセット信号
をリセット信号入力端子RESBに受けて、リセットさ
れる。
At this time, the on resistance of the switch 32 is the resistance 3
Since it is sufficiently smaller (lower) than the resistance value of 0, the resistance value as the variable resistance means described above is substantially represented by the ON resistance of the switch 32. Thus, the reset signal output terminal R
The voltage level of the reset signal appearing in ESO is a voltage obtained by dividing the power supply voltage VDD by the resistance 34, the on resistance of the switch 32, and the on resistance of the transistor 28.
As for the resistance value of the on-resistance of the resistor 34 and the switch 32, the divided voltage level is, as shown in FIG. 2A, the L level maximum input voltage VLmax and L of the reset signal input terminal RESB of the CPU 10. Level minimum input voltage V
The ON resistance of the transistor 28 is also taken into consideration so as to be within the voltage range Va during Lmin. Therefore, the CPU 10 at the time of non-WDT diagnosis receives the reset signal at the reset signal input terminal RESB and is reset.

【0033】一方、WDT診断時には、CPU10から
診断状態信号入力端子SINJIに入力される診断状態
信号がHレベルとされることから、スイッチ32はオフ
となる。この場合も、PRUN信号が所定周期からずれ
るとWDT24がその異常を検出し、異常検出信号を出
力する。この異常検出信号に基づきOR回路26の出力
がトランジスタ28をオンさせる。
On the other hand, at the time of WDT diagnosis, the switch 32 is turned off because the diagnosis status signal input from the CPU 10 to the diagnosis status signal input terminal SINJI is at the H level. Also in this case, when the PRUN signal deviates from the predetermined cycle, the WDT 24 detects the abnormality and outputs the abnormality detection signal. Based on this abnormality detection signal, the output of the OR circuit 26 turns on the transistor 28.

【0034】その際、リセット信号出力端子RESOに
現われるリセット信号の電圧レベルは、電源電圧VDD
を抵抗34と、抵抗30およびトランジスタ28のオン
抵抗とで分圧した電圧となる。抵抗34とスイッチ32
のオン抵抗の抵抗値はさらに、この分圧された電圧レベ
ルが、図2の(b)に示すように、CPU10のリセッ
ト信号入力端子RESBのHレベル最大入力電圧VHm
axとHレベル最小入力電圧VHminの間の電圧範囲
Vb内になるように設定されている。したがって、WD
T診断時には上記リセット信号によりCPU10がリセ
ットされることはない。
At this time, the voltage level of the reset signal appearing at the reset signal output terminal RESO is the power supply voltage VDD.
Is divided by the resistance 34, the resistance 30 and the on-resistance of the transistor 28 to obtain a voltage. Resistor 34 and switch 32
Further, as for the resistance value of the on resistance of, the divided voltage level is, as shown in FIG. 2B, the H level maximum input voltage VHm of the reset signal input terminal RESB of the CPU 10.
It is set to be within a voltage range Vb between ax and the H level minimum input voltage VHmin. Therefore, WD
At the time of T diagnosis, the CPU 10 is not reset by the reset signal.

【0035】つぎに、本実施の形態における非WDT診
断時において、PRUN信号が正常な場合のタイムチャ
ートを図3に示す。CPU10の診断状態信号出力端子
SINJOから出力されWDT診断回路20の診断状態
信号入力端子SINJIに入力される診断状態信号は、
非WDT診断時であることからLレベル状態の一定信号
である。このため、スイッチ(SW)32はオン状態と
なっている。
Next, FIG. 3 shows a time chart when the PRUN signal is normal during the non-WDT diagnosis in the present embodiment. The diagnostic status signal output from the diagnostic status signal output terminal SINJO of the CPU 10 and input to the diagnostic status signal input terminal SINJI of the WDT diagnostic circuit 20 is
This is a constant signal in the L level state because it is during non-WDT diagnosis. Therefore, the switch (SW) 32 is in the on state.

【0036】WDT診断回路20のパルス信号入力端子
PRNIに入力されるPRUN信号が正常な所定のパル
ス信号であるので、OR回路26に入力されるWDT2
4の出力はLレベル状態で、パワーオンクリア回路22
のオフ状態と相まってトランジスタ(TR)28はオフ
状態となっている。これにより、リセット信号出力端子
RESOのリセット信号が非リセットレベル状態である
Hレベルの一定信号となっているので、CPU10のリ
セット信号入力端子RESBおよび診断結果信号入力端
子SINIはHレベル状態で、したがって、CPU10
がリセットされることはない。
Since the PRUN signal input to the pulse signal input terminal PRNI of the WDT diagnostic circuit 20 is a normal predetermined pulse signal, the WDT2 input to the OR circuit 26 is input.
The output of 4 is in the L level state, and the power-on clear circuit 22
The transistor (TR) 28 is in an off state together with the off state. As a result, the reset signal of the reset signal output terminal RESO is a constant signal of H level which is a non-reset level state, and therefore the reset signal input terminal RESB and the diagnostic result signal input terminal SINI of the CPU 10 are in the H level state, , CPU10
Will never be reset.

【0037】これに対し、非WDT診断時においてPR
UN信号が異常な場合のタイムチャートを図4に示す。
上記同様、WDT診断回路20におけるスイッチ32は
オン状態である。ここで、PRUN信号が時刻t1で異
常となりパルス信号入力端子PRNIに所定周期からず
れた信号(ここでは、一定の低レベル信号)が入力され
ると、WDT24はPRUN異常検出時間(TRES)
を経過した時刻t2で異常検出信号(Hレベル信号)を
出力し、OR回路26を介してトランジスタ28をオフ
からオン状態に切り換える。したがって、リセット信号
出力端子RESOにおける電圧レベルは、リセット信号
入力端子RESBおよび診断結果信号入力端子SINI
のLレベル最大入力電圧VLmaxとLレベル最小入力
電圧VLmin間の電圧範囲Va内の高さまで大きく低
下し、このリセット信号によりCPU10はリセットさ
れる。
On the other hand, the PR during non-WDT diagnosis
FIG. 4 shows a time chart when the UN signal is abnormal.
Similarly to the above, the switch 32 in the WDT diagnostic circuit 20 is in the ON state. Here, when the PRUN signal becomes abnormal at time t1 and a signal (here, a constant low level signal) deviating from the predetermined period is input to the pulse signal input terminal PRNI, the WDT 24 causes the PRUN abnormality detection time (TRES).
At time t2 after the passage of time, an abnormality detection signal (H level signal) is output, and the transistor 28 is switched from the off state to the on state via the OR circuit 26. Therefore, the voltage level at the reset signal output terminal RESO is determined by the reset signal input terminal RESB and the diagnostic result signal input terminal SINI.
To a height within a voltage range Va between the L level maximum input voltage VLmax and the L level minimum input voltage VLmin, and the CPU 10 is reset by this reset signal.

【0038】次に、WDT正常時にWDT診断を実施し
た場合のタイムチャートを、図5に基づき説明する。診
断状態信号入力端子SINJIに入力される信号は、W
DT診断開始時点t3でLレベルからHレベルに立ち上
がる。これにより、スイッチ32がオンからオフ状態に
切り換わる。また、同時にCPU10のパルス信号出力
端子PRNOから出力されるPRUN信号は、所定周期
からずれた低レベルの一定信号となるので、WDT24
は異常検出時間TRES経過後の時刻t4に異常検出信
号を出力し、トランジスタ28をオン状態にする。
Next, a time chart when the WDT diagnosis is performed when the WDT is normal will be described with reference to FIG. The signal input to the diagnostic status signal input terminal SINJI is W
At time t3 when the DT diagnosis starts, the L level rises to the H level. As a result, the switch 32 is switched from the on state to the off state. At the same time, the PRUN signal output from the pulse signal output terminal PRNO of the CPU 10 becomes a low-level constant signal deviated from the predetermined cycle, so the WDT 24
Outputs an abnormality detection signal at time t4 after the abnormality detection time TRES has elapsed, and turns on the transistor 28.

【0039】このとき、リセット信号出力端子RESO
におけるリセット信号の電圧レベルは、リセット信号入
力端子RESBおよび診断結果信号入力端子SINIの
Hレベル最大入力電圧VHmaxとHレベル最小入力電
圧VHmin間の電圧範囲Vb内の高さへと若干低下す
る。したがって、CPU10はこのリセット信号により
リセットされないものの、CPU10は診断結果信号入
力端子SINIに入力される上記の電圧変化を検知し
て、WDT24が正常に作動していると判断する。この
あと、時刻t5で診断を終了する。すなわち、WDT2
4が異常検出信号を正常に出力しており、かつWDT2
4からリセット信号出力端子RESOまで、ひいてはC
PU10の診断結果信号入力端子SINIまで故障がな
く、WDT診断回路20が正常であると判断される。
At this time, the reset signal output terminal RESO
The voltage level of the reset signal at is slightly lowered to the height within the voltage range Vb between the H level maximum input voltage VHmax and the H level minimum input voltage VHmin of the reset signal input terminal RESB and the diagnostic result signal input terminal SINI. Therefore, although the CPU 10 is not reset by this reset signal, the CPU 10 detects the above voltage change input to the diagnostic result signal input terminal SINI and determines that the WDT 24 is operating normally. After that, the diagnosis ends at time t5. That is, WDT2
4 outputs the abnormality detection signal normally, and WDT2
4 to the reset signal output terminal RESO, and eventually C
It is determined that the WDT diagnostic circuit 20 is normal since there is no failure up to the diagnostic result signal input terminal SINI of the PU 10.

【0040】これに対し、図6は、WDT異常時にWD
T診断を実施した場合のタイムチャートである。この場
合も、WDT診断回路20におけるスイッチ32はオフ
状態である。また、同時にCPU10のパルス信号出力
端子PRNOから出力されるPRUN信号も所定周期か
らずれた信号となるが、WDT24に異常があると異常
検出信号が出力されない。したがって、リセット信号出
力端子RESOの電圧レベルは非リセットレベル状態で
あるHレベルに保持され、CPU10はリセットされな
い。そして、CPU10は、WDT診断開始時刻t3か
ら所定時間TSIN内にリセット信号が診断結果信号入
力端子SINIに入力されないことから、WDT24に
異常があると判断し、時刻t5でWDT診断を終了す
る。
On the other hand, FIG. 6 shows that when the WDT is abnormal, the WD
It is a time chart at the time of implementing T diagnosis. In this case also, the switch 32 in the WDT diagnostic circuit 20 is in the off state. At the same time, the PRUN signal output from the pulse signal output terminal PRNO of the CPU 10 also becomes a signal deviated from the predetermined cycle, but if the WDT 24 is abnormal, the abnormality detection signal is not output. Therefore, the voltage level of the reset signal output terminal RESO is held at the H level which is the non-reset level state, and the CPU 10 is not reset. Then, since the reset signal is not input to the diagnosis result signal input terminal SINI within the predetermined time TSIN from the WDT diagnosis start time t3, the CPU 10 determines that the WDT 24 has an abnormality, and ends the WDT diagnosis at time t5.

【0041】次に、WDT24が正常作動しているもの
のリセット信号出力端子RESOがオープン故障してい
るときも同様である。すなわち、図5の場合と同じく、
WDT診断回路20が診断状態信号を受けて、時刻t3
でスイッチ32がオフ状態になる。そして同時に、CP
U5側のPRNO端子7から出力されるPRUN信号も
所定周期からずれた信号となり、WDT24が時間TR
ES経過後異常検出信号を出力する。しかしながら、リ
セット信号出力端子RESOがオープン故障しているか
ら、リセット信号はCPU10のリセット信号入力端子
RESBおよび診断結果信号入力端子SINIへは入力
されない。したがって、図6の場合と同じく、CPU1
0は、WDT診断開始時点t3から所定時間TSIN内
にリセット信号を受けないことから、WDT診断回路2
0が異常であると判断し、時刻t5でWDT診断を終了
する。
The same applies when the WDT 24 is operating normally but the reset signal output terminal RESO has an open failure. That is, as in the case of FIG.
When the WDT diagnostic circuit 20 receives the diagnostic status signal, the time t3
Then, the switch 32 is turned off. And at the same time, CP
The PRUN signal output from the PRNO terminal 7 on the U5 side also becomes a signal deviated from the predetermined cycle, and the WDT 24 outputs the time TR.
After ES has passed, an abnormality detection signal is output. However, since the reset signal output terminal RESO has an open failure, the reset signal is not input to the reset signal input terminal RESB and the diagnostic result signal input terminal SINI of the CPU 10. Therefore, as in the case of FIG.
0 does not receive the reset signal within the predetermined time TSIN from the WDT diagnosis start time t3, so the WDT diagnosis circuit 2
It is determined that 0 is abnormal, and the WDT diagnosis is ended at time t5.

【0042】以上のように、本実施の形態では、WDT
診断時にWDT診断回路20のリセット信号出力端子R
ESOからリセット信号を出力し、CPU10側ではこ
のリセット信号を診断結果信号としても用いるものとし
た。そして、WDT診断時はWDT診断回路20のWD
T24に異常検出信号を出力させるとともに、スイッチ
32をオンからオフ状態に切り換えることで、CPU1
0のリセット信号入力端子RESBおよび診断結果信号
入力端子SINIに入力されるリセット信号レベルを、
リセット信号入力端子のHレベル最小入力電圧VHmi
nよりも高いレベルとするので、CPU10をリセット
させることなく、WDT診断回路に異常のないことを判
断することができる。
As described above, in the present embodiment, the WDT
Reset signal output terminal R of WDT diagnostic circuit 20 at the time of diagnosis
A reset signal is output from the ESO, and the CPU 10 side also uses this reset signal as a diagnostic result signal. Then, at the time of WDT diagnosis, the WD of the WDT diagnosis circuit 20
By outputting an abnormality detection signal to T24 and switching the switch 32 from the ON state to the OFF state, the CPU 1
0 reset signal input terminal RESB and diagnostic result signal input terminal SINI
Minimum H level input voltage VHmi of reset signal input terminal
Since the level is higher than n, it can be determined that the WDT diagnostic circuit has no abnormality without resetting the CPU 10.

【0043】一方、WDT24に故障がある場合やリセ
ット信号出力端子RESOにオープン故障がある場合に
は、WDT診断開始時点t3から所定時間TSIN内に
リセット信号が診断結果信号入力端子SINIに入力さ
れないので、CPU10をリセットさせることなく、W
DT診断回路20に異常があることが検出できる。
On the other hand, when the WDT 24 has a failure or the reset signal output terminal RESO has an open failure, the reset signal is not input to the diagnosis result signal input terminal SINI within the predetermined time TSIN from the WDT diagnosis start time t3. , W without resetting the CPU 10
It can be detected that the DT diagnosis circuit 20 is abnormal.

【0044】なお、非WDT診断時には、スイッチ32
がオン状態となっていることから、CPU10のリセッ
ト信号入力端子RESBに入力されるリセット信号レベ
ルを当該入力端子RESBのLレベル最大入力電圧VL
maxとLレベル最小入力電圧VLmin間のレベルと
するので、CPU10からのPRUN信号の周期がずれ
た場合などにはCPU10にリセットをかけることがで
きる。
The switch 32 is used for non-WDT diagnosis.
Is on, the reset signal level input to the reset signal input terminal RESB of the CPU 10 is set to the L level maximum input voltage VL of the input terminal RESB.
Since the level is between max and the L level minimum input voltage VLmin, the CPU 10 can be reset when the cycle of the PRUN signal from the CPU 10 is deviated.

【0045】こうして、WDT24はもちろん、WDT
24からリセット信号出力端子RESOまでの経路を含
むWDT診断回路20の診断まで行うことが可能で、し
かも、リセット信号を診断結果信号としても利用するの
で、WDT診断回路20には診断結果出力用の独立の回
路も不要となる。
Thus, not only the WDT 24 but also the WDT
Since the WDT diagnostic circuit 20 including the path from 24 to the reset signal output terminal RESO can be diagnosed and the reset signal is also used as the diagnostic result signal, the WDT diagnostic circuit 20 can output the diagnostic result. No separate circuit is required.

【0046】以上、実施の形態について説明したが、本
発明は図示の実施の形態に限定されるものではなく、そ
の要旨を逸脱しない範囲において種々の変形が可能であ
る。例えば実施の形態では、可変抵抗手段を抵抗30と
スイッチ32で構成し、電源電圧VDDに対する抵抗3
0、抵抗34、スイッチ32のオン抵抗、トランジスタ
28のオン抵抗の組み合わせにより、CPU10のリセ
ット信号入力端子RESB、診断結果信号入力端子SI
NIのリセット電圧レベルを変えるものとしたが、可変
抵抗手段としては、抵抗30に代えてそれと同じ抵抗値
のオン抵抗を持つ第2のスイッチに置き換え、スイッチ
32のオン、オフ制御と逆作動させるようにしてもよ
い。
Although the embodiments have been described above, the present invention is not limited to the illustrated embodiments, and various modifications can be made without departing from the scope of the invention. For example, in the embodiment, the variable resistance means is composed of the resistor 30 and the switch 32, and the resistor 3 for the power supply voltage VDD is used.
0, the resistance 34, the on resistance of the switch 32, and the on resistance of the transistor 28, the reset signal input terminal RESB of the CPU 10 and the diagnostic result signal input terminal SI.
Although the reset voltage level of the NI is changed, the variable resistance means is replaced with a second switch having an ON resistance having the same resistance value as the resistance 30, and the variable resistance means is operated opposite to the ON / OFF control of the switch 32. You may do it.

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

【図1】本発明の実施の形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】リセット信号入力端子の入力電圧と、リセット
信号レベルとの関係を示す図である。
FIG. 2 is a diagram showing a relationship between an input voltage of a reset signal input terminal and a reset signal level.

【図3】非診断時においてCPUのパルス信号が正常な
場合のタイムチャートである。
FIG. 3 is a time chart when the pulse signal of the CPU is normal during non-diagnosis.

【図4】非診断時においてCPUのパルス信号が異常な
場合のタイムチャートである。
FIG. 4 is a time chart when the pulse signal of the CPU is abnormal during non-diagnosis.

【図5】ウオッチドッグタイマ正常時において診断を実
施する場合のタイムチャートである。
FIG. 5 is a time chart when a diagnosis is performed when the watchdog timer is normal.

【図6】ウオッチドッグタイマ異常時に診断を実施した
場合のタイムチャートである。
FIG. 6 is a time chart when the diagnosis is performed when the watchdog timer is abnormal.

【図7】従来例の構成を示す図である。FIG. 7 is a diagram showing a configuration of a conventional example.

【図8】従来例での非診断時においてCPUのパルス信
号が正常な場合のタイムチャートである。
FIG. 8 is a time chart when the pulse signal of the CPU is normal during non-diagnosis in the conventional example.

【図9】従来例での非診断時においてCPUのパルス信
号が異常な場合のタイムチャートである。
FIG. 9 is a time chart when the pulse signal of the CPU is abnormal during non-diagnosis in the conventional example.

【図10】従来例でウオッチドッグタイマ正常時におい
て診断を実施する場合のタイムチャートである。
FIG. 10 is a time chart in the case of performing diagnosis when the watchdog timer is normal in the conventional example.

【図11】従来例でウオッチドッグタイマ異常時に診断
を実施した場合のタイムチャートである。
FIG. 11 is a time chart when diagnosis is performed when a watchdog timer is abnormal in a conventional example.

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

10 CPU 20 ウオッチドッグタイマ診断回路 22 パワーオンクリア回路 24 ウオッチドッグタイマ 26 OR回路 28 トランジスタ 30 抵抗(第2の抵抗) 32 スイッチ 34 抵抗(第1の抵抗) 50 CPU 60 ウオッチドッグタイマ診断回路 62 AND回路 64 AND回路 66 OR回路 68 トランジスタ 70 出力バッファ 74 抵抗 PRNI パルス信号入力端子 PRNO パルス信号出力端子 RESB リセット信号入力端子 RESO リセット信号出力端子 SINI 診断結果信号入力端子 SINJI 診断状態信号入力端子 SINJO 診断状態信号出力端子 VCC 電源入力端子 VDD 電源電圧 VHmax Hレベル最大入力電圧 VHmin Hレベル最小入力電圧 VLmax Lレベル最大入力電圧 VLmin Lレベル最小入力電圧 10 CPU 20 Watchdog timer diagnostic circuit 22 Power-on clear circuit 24 watchdog timer 26 OR circuit 28 transistors 30 resistance (second resistance) 32 switch 34 resistance (first resistance) 50 CPU 60 Watchdog timer diagnostic circuit 62 AND circuit 64 AND circuit 66 OR circuit 68 transistors 70 output buffer 74 resistance PRNI pulse signal input terminal PRNO pulse signal output terminal RESB reset signal input terminal RESO reset signal output terminal SINI Diagnostic result signal input terminal SINJI diagnostic status signal input terminal SINJO diagnostic status signal output terminal VCC power input terminal VDD power supply voltage VHmax H level maximum input voltage VHmin H level minimum input voltage VLmax L level maximum input voltage VLmin L level minimum input voltage

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 CPUが出力するパルス信号が所定周期
から外れた場合にウオッチドッグタイマから出力する異
常検出信号に基づいてCPU側のリセット信号入力端子
へリセット信号を入力する一方、CPUから擬似異常信
号を出力してウオッチドッグタイマの故障診断を行うウ
オッチドッグタイマ診断システムにおいて、前記ウオッ
チドッグタイマの非故障診断時は、前記リセット信号入
力端子に入力されるリセット信号レベルを前記リセット
信号入力端子のLレベル最大入力電圧よりも低いレベル
とし、前記ウオッチドッグタイマの故障診断時は、リセ
ット信号レベルを前記リセット信号入力端子のHレベル
最小入力電圧よりも高いレベルとするとともに、CPU
側では、前記リセット信号入力端子と異なる端子に前記
リセット信号を入力して、該リセット信号の変化に基づ
き前記ウオッチドッグタイマが正常であるかの否かの判
断を行う構成としたことを特徴とするウオッチドッグタ
イマ診断システム。
1. When a pulse signal output from a CPU deviates from a predetermined cycle, a reset signal is input to a reset signal input terminal on the CPU side based on an abnormality detection signal output from a watchdog timer, while a pseudo abnormality is output from the CPU. In a watchdog timer diagnosis system that outputs a signal to perform failure diagnosis of the watchdog timer, at the time of non-fault diagnosis of the watchdog timer, the reset signal level input to the reset signal input terminal is set to the reset signal input terminal The level is lower than the L level maximum input voltage, and at the time of failure diagnosis of the watchdog timer, the reset signal level is higher than the H level minimum input voltage of the reset signal input terminal, and the CPU
On the side, the reset signal is input to a terminal different from the reset signal input terminal, and it is configured to determine whether the watchdog timer is normal based on a change in the reset signal. Watchdog timer diagnostic system.
【請求項2】 前記故障診断時および非故障診断時のリ
セット信号レベルは、前記CPUから出力される診断状
態信号に基づいて切り換えられることを特徹とする請求
項1記載のウオッチドッグタイマ診断システム。
2. The watchdog timer diagnostic system according to claim 1, wherein the reset signal level at the time of the fault diagnosis and at the time of the non-fault diagnosis is switched based on a diagnostic state signal output from the CPU. .
【請求項3】 前記診断状態信号に基づいて抵抗値が切
り換わるとともに、前記ウオッチドッグタイマの出力に
基づいて制御されるトランジスタを介して接地可能の可
変抵抗手段と、電源電圧に接続された第1の抵抗とを有
し、前記リセット信号出力端子は、前記第1の抵抗と可
変抵抗手段との接続点に設けられて、前記リセット信号
レベルが、第1の抵抗の抵抗値と前記トランジスタのオ
ン抵抗および可変抵抗手段の抵抗値とで電源電圧を分圧
したものであることを特徹とする請求項2記載のウオッ
チドッグタイマ診断システム。
3. The resistance value is switched based on the diagnostic state signal, and variable resistance means that can be grounded via a transistor controlled based on the output of the watchdog timer and a first voltage source connected to a power supply voltage. The reset signal output terminal is provided at a connection point between the first resistor and the variable resistance means, and the reset signal level is set to the resistance value of the first resistor and that of the transistor. The watchdog timer diagnostic system according to claim 2, wherein the power supply voltage is divided by the on-resistance and the resistance value of the variable resistance means.
【請求項4】 前記可変抵抗手段は、互いに並列に設け
られた第2の抵抗と、オン抵抗が第2の抵抗より低く前
記診断状態信号に基づいて切り換えられるスイッチとか
らなり、故障診断時は該スイッチをオフさせて抵抗値を
高くし、非故障診断時はスイッチをオンさせて抵抗値を
低くするように構成したことを特徹とする請求項3記載
のウオッチドッグタイマ診断システム。
4. The variable resistance means comprises a second resistance provided in parallel with each other and a switch whose ON resistance is lower than that of the second resistance and which is switched based on the diagnosis status signal. 4. The watchdog timer diagnosis system according to claim 3, wherein the switch is turned off to increase the resistance value, and the switch is turned on to decrease the resistance value during non-fault diagnosis.
JP2001340561A 2001-11-06 2001-11-06 Watch dog timer diagnosing system Withdrawn JP2003140779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001340561A JP2003140779A (en) 2001-11-06 2001-11-06 Watch dog timer diagnosing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001340561A JP2003140779A (en) 2001-11-06 2001-11-06 Watch dog timer diagnosing system

Publications (1)

Publication Number Publication Date
JP2003140779A true JP2003140779A (en) 2003-05-16

Family

ID=19154740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001340561A Withdrawn JP2003140779A (en) 2001-11-06 2001-11-06 Watch dog timer diagnosing system

Country Status (1)

Country Link
JP (1) JP2003140779A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013062981A (en) * 2011-09-14 2013-04-04 Keihin Corp Electronic control device and vehicle control system
JP2013061863A (en) * 2011-09-14 2013-04-04 Keihin Corp Electronic control device
CN111190762A (en) * 2020-01-05 2020-05-22 上海汉枫电子科技有限公司 Automatic resetting and state keeping device and method of intelligent household equipment and application
JP2020156222A (en) * 2019-03-20 2020-09-24 株式会社デンソー Power supply controller of in-vehicle camera module
CN111984453A (en) * 2020-08-26 2020-11-24 刘情 Network inspection equipment based on watchdog and use method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013062981A (en) * 2011-09-14 2013-04-04 Keihin Corp Electronic control device and vehicle control system
JP2013061863A (en) * 2011-09-14 2013-04-04 Keihin Corp Electronic control device
US8996927B2 (en) 2011-09-14 2015-03-31 Keihin Corporation Electronic control device with watchdog timer and processing unit to diagnose malfunction of watchdog timer
JP2020156222A (en) * 2019-03-20 2020-09-24 株式会社デンソー Power supply controller of in-vehicle camera module
JP7143797B2 (en) 2019-03-20 2022-09-29 株式会社デンソー Power control device for in-vehicle camera module
CN111190762A (en) * 2020-01-05 2020-05-22 上海汉枫电子科技有限公司 Automatic resetting and state keeping device and method of intelligent household equipment and application
CN111190762B (en) * 2020-01-05 2024-02-27 上海汉枫电子科技有限公司 Automatic reset and state maintaining device, method and application of intelligent household equipment
CN111984453A (en) * 2020-08-26 2020-11-24 刘情 Network inspection equipment based on watchdog and use method thereof

Similar Documents

Publication Publication Date Title
KR100296984B1 (en) Monitoring System For Electronic Control System
JP2002182808A (en) Method for reducing power consumption of cpu, electronic equipment and recording medium recorded with power consumption reducing program
JP2003140779A (en) Watch dog timer diagnosing system
US20080197889A1 (en) Semiconductor Integrated Circuit Device and Mobile Device Using Same
JP2007041824A (en) Resetting circuit for electronic control unit
JPH07236180A (en) Device for activating logical unit
US5949797A (en) Microcontroller test circuit
US20030046597A1 (en) Clock switch device and microcontroller
US20190146547A1 (en) Semiconductor integrated circuit device
JPH09160690A (en) Bus driver fault detection system
JP2001332161A (en) Latching relay driving circuit
JP4088967B2 (en) Diagnostic circuit for output contact device
JP2023122184A (en) electronic controller
JP2698260B2 (en) Watchdog timer device
JP3080785B2 (en) System clock selection circuit
US11656276B2 (en) Monitoring circuit and method for function monitoring
JPS60118941A (en) Runaway control circuit
JP2005099919A (en) Semiconductor circuit device
US20200088771A1 (en) Semiconductor device
KR100775328B1 (en) Apparatus for resetting micoms
JP2022169335A (en) Voltage monitoring circuit with self-diagnosis function and electronic control device
JPH0573360A (en) Watchdog timer
JP2000010825A (en) Microcomputer fault monitor system
JPH07146343A (en) Malfunction preventing test circuit
JPH01189223A (en) Clock signal detecting circuit and through current preventing circuit for dynamic shift register utilizing same

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