JPH0445065Y2 - - Google Patents

Info

Publication number
JPH0445065Y2
JPH0445065Y2 JP1987138303U JP13830387U JPH0445065Y2 JP H0445065 Y2 JPH0445065 Y2 JP H0445065Y2 JP 1987138303 U JP1987138303 U JP 1987138303U JP 13830387 U JP13830387 U JP 13830387U JP H0445065 Y2 JPH0445065 Y2 JP H0445065Y2
Authority
JP
Japan
Prior art keywords
standby
detection circuit
runaway detection
time
cpu
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.)
Expired
Application number
JP1987138303U
Other languages
Japanese (ja)
Other versions
JPS6443461U (en
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 filed Critical
Priority to JP1987138303U priority Critical patent/JPH0445065Y2/ja
Publication of JPS6443461U publication Critical patent/JPS6443461U/ja
Application granted granted Critical
Publication of JPH0445065Y2 publication Critical patent/JPH0445065Y2/ja
Expired legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Debugging And Monitoring (AREA)

Description

【考案の詳細な説明】 〔産業上の利用分野〕 本考案はコンピユータシステムに関し、特に、
コンピユータシステムにおいてCPUの暴走検出
に利用されるウオツチドツクタイマに関するもの
である。
[Detailed description of the invention] [Industrial application field] The present invention relates to computer systems, in particular,
This article relates to a watchdog timer used to detect CPU runaway in computer systems.

〔従来の技術〕[Conventional technology]

従来のコンピユータシステムを第2図に示す。
第2図において、1はCPU、、WDC、
RESET,VDD,VSSはCPU1の端子であり、端子
RS上の信号が「L」レベルの時CPU1は動作モ
ード、「H」レベルの時スタンバイモードとなり、
端子上の信号が「L」レベルの時CPU1
は初期化され、メモリ等はすべてクリアされる。
端子WDCは、CPU1が動作モードである時、一
定周期でウオツチドツクタイマをリセツトさせる
信号を出力する出力ポートであり、端子VDD
VSSはCPU1の電源端子である。また、2は暴走
検出回路、3はスタンバイスイツチ、4はインバ
ータ、5は抵抗、6は直流電源である。
A conventional computer system is shown in FIG.
In Figure 2, 1 is CPU, ,WDC,
RESET, V DD , V SS are the terminals of CPU1, and the terminals
When the signal on RS is "L" level, CPU1 is in operation mode, and when it is "H" level, it is in standby mode.
When the signal on the terminal is “L” level, CPU1
will be initialized and all memory etc. will be cleared.
The terminal WDC is an output port that outputs a signal to reset the watchdog timer at a fixed cycle when the CPU 1 is in the operation mode, and the terminals V DD ,
V SS is the power supply terminal of CPU1. Further, 2 is a runaway detection circuit, 3 is a standby switch, 4 is an inverter, 5 is a resistor, and 6 is a DC power supply.

第3図は第2図のコンピユータシステムを構成
する暴走検出回路を詳細に示す回路図である。第
3図において、Q1は演算増幅器、Q2はトラン
ジスタ、D1〜D3はダイオード、R1〜R7は
抵抗、C1,C2はコンデンサ、E1は直流電源
である。なお、第3図に示す暴走検出回路は、例
えば日本電気株式会社の「集積回路技術資料
IEM−962、15頁〜17頁」にウオツチドツク回路
として記載されている。
FIG. 3 is a circuit diagram showing in detail the runaway detection circuit constituting the computer system of FIG. 2. In FIG. 3, Q1 is an operational amplifier, Q2 is a transistor, D1 to D3 are diodes, R1 to R7 are resistors, C1 and C2 are capacitors, and E1 is a DC power supply. The runaway detection circuit shown in FIG.
It is described as a watchdog circuit in IEM-962, pages 15 to 17.

第2図のスタンバイスイツチ3による動作モー
ドとスタンバイモードのあるコンピユータシステ
ムにおいて、スタンバイモード時、メモリ上のデ
ータを保持し低消費電流化を得るため、CPUは
システムクロツクの発振を停止させる。これによ
り、プログラムの実行は停止状態となる。この時
暴走検出回路2は機能する必要がないので、第2
図に示すように、スタンバイスイツチ3にて電源
の供給がオフされる。
In a computer system that has an operating mode and a standby mode using the standby switch 3 shown in FIG. 2, in the standby mode, the CPU stops oscillation of the system clock in order to retain data in the memory and reduce current consumption. As a result, the program execution is stopped. At this time, the runaway detection circuit 2 does not need to function, so the second
As shown in the figure, the standby switch 3 turns off the power supply.

〔考案が解決しようとする問題点〕[Problem that the invention attempts to solve]

上述した従来のコンピユータシステムにおいて
は、スタンバイスイツチ3をオンからオフとした
時、暴走検出回路2の出力レベルは、例えば能動
素子のバラツキにより不定である。このため、
CPUを必要のないのにリセツトしてしまう場合
があり、スタンバイモードで保持されていたデー
タが消去される可能性がある。
In the conventional computer system described above, when the standby switch 3 is turned from on to off, the output level of the runaway detection circuit 2 is unstable due to, for example, variations in the active elements. For this reason,
The CPU may be reset when it is not necessary, and data held in standby mode may be erased.

また、スタンバイスイツチ3のオンからオフへ
の切替えにより第3図の暴走検出回路はスタンバ
イモードから動作モードへ切り替わるが、この動
作モードになつてから最初のウオツチドツクタイ
マリセツトパルス(出力ポートWDCから出力さ
れるパルス)が出力されるまでには、CPU1の
初期設定等のためのある時間tpが必要であり、暴
走検出回路2のタイムオーバー時間tpverは、 tp≪tpver となるように回路定数が設定されている。従つ
て、スタンバイスイツチ3を時間tpより短い時間
でオン・オフさせた場合、CPU1からウオツチ
ドツクタイマリセツトパルスが出力されることは
なく、コンデンサC2が充電され、CPU1はリ
セツトされてしまうことになる。
Furthermore, when the standby switch 3 is switched from on to off, the runaway detection circuit shown in Fig. 3 is switched from standby mode to operating mode. A certain time t p is required for the initial settings of the CPU 1, etc., before the output pulse) is output, and the time over time t pver of the runaway detection circuit 2 is set so that t p ≪ t pver . Circuit constants are set. Therefore, if the standby switch 3 is turned on and off in a time shorter than the time tp , the watchdog timer reset pulse will not be output from the CPU 1, and the capacitor C2 will be charged and the CPU 1 will be reset. become.

なお、第3図の暴走検出回路2は、時間計測部
であるコンデンサC2の両端電圧で時間を計測し
ており、CPU1はウオツチドツクタイマリセツ
トパルスを一定周期tsで出力する。tsとタイムオ
ーバ時間tpverの関係は、 tpver>20ts となるように設定される。
The runaway detection circuit 2 shown in FIG. 3 measures time using the voltage across a capacitor C2, which is a time measuring section, and the CPU 1 outputs a watchdog timer reset pulse at a constant period ts . The relationship between t s and time-over time t pver is set so that t pver >20t s .

〔問題点を解決するための手段〕[Means for solving problems]

上述したような問題点を解決するために本考案
は、CPUの動作モードとスタンバイモードとを
切り換えるためのスタンバイスイツチ3と、この
スタンバイスイツチをオフしてスタンバイモード
に切り換えたとき、ウオツチドツグ作用を行う暴
走検出回路2のタイムオーバ時間を計測する時間
計測部C2をリセツトする回路手段7,Q2と、
スタンバイスイツチをスタンバイモードに切り換
えたときでも前記暴走検出回路に電源を供給する
回路とから構成したものである。
In order to solve the above-mentioned problems, the present invention includes a standby switch 3 for switching between a CPU operating mode and a standby mode, and a watchdog function when the standby switch is turned off to switch to standby mode. circuit means 7, Q2 for resetting the time measuring section C2 that measures the time over time of the runaway detection circuit 2;
and a circuit that supplies power to the runaway detection circuit even when the standby switch is switched to standby mode.

〔作用〕[Effect]

CPUがスタンバイモードになつているとき、
暴走検出回路は通電しており、スタンバイスイツ
チの操作時にチヤタリングを起こしても、チヤタ
リングが生じたときにその都度時間計測部がリセ
ツトされるので、タイムオーバ時間の実質時間が
減少するようなことは起こらない。
When the CPU is in standby mode,
The runaway detection circuit is energized, and even if chattering occurs when the standby switch is operated, the time measurement section is reset each time chattering occurs, so the actual time over time will not be reduced. It doesn't happen.

〔実施例〕〔Example〕

第1図は本考案に係わるコンピユータシステム
の一実施例を示す回路図である。第1図におい
て、7はインバータ4の出力側の節点Pとトラン
ジスタQ2のベースとの間に接続された抵抗であ
り、スタンバイスイツチ3とインバータ4と抵抗
5,7はモード設定手段を構成する。なお、第1
図において第2図、第3図と同一部分又は相当部
分には同一符号が付してある。
FIG. 1 is a circuit diagram showing an embodiment of a computer system according to the present invention. In FIG. 1, 7 is a resistor connected between node P on the output side of inverter 4 and the base of transistor Q2, and standby switch 3, inverter 4, and resistors 5 and 7 constitute mode setting means. In addition, the first
In the figures, the same or corresponding parts as in FIGS. 2 and 3 are given the same reference numerals.

このように、第1図のコンピユータシステムと
第2図のコンピユータシステムとの違いは、暴走
検出回路2の電源の取り方すなわち暴走検出回路
2がCPU1と同じように常時通電されているこ
と、およびインバータ4の出力側の節点Pとトラ
ンジスタQ2のベースとの間に抵抗7が接続され
ていることである。
In this way, the difference between the computer system in FIG. 1 and the computer system in FIG. 2 is that the runaway detection circuit 2 is powered at all times in the same way as the CPU 1, and A resistor 7 is connected between the node P on the output side of the inverter 4 and the base of the transistor Q2.

このように構成されたコンピユータシステムに
おいて、スタンバイスイツチ3をオフとすると、
節点Pのレベルは「H」となり、トランジスタQ
2はオンとなり、時間計測部であるタイミングコ
ンデンサC2は両端が略0Vのリセツト状態とな
る。従つて、スタンバイスイツチ3がオフである
限り、暴走検出回路2は機能を停止する。
In the computer system configured in this way, when the standby switch 3 is turned off,
The level of node P becomes "H", and transistor Q
2 is turned on, and the timing capacitor C2, which is a time measuring section, is reset to approximately 0V at both ends. Therefore, as long as the standby switch 3 is off, the runaway detection circuit 2 stops functioning.

また、スタンバイスイツチ3をオンとすると、
節点Pのレベルは「L」となり、トランジスタQ
2はオフとなる。つまり、トランジスタQ2がオ
ンするのは、出力ポートWDCの出力信号である
ウオツチドツクタイマリセツトパルスが「L」か
ら「H」となつた時であり、この時コンデンサC
2は放電し、演算増幅器Q1は「H」レベルを出
力し、暴走検出回路はウオツチドツクタイマとし
ての機能を開始する。また、演算増幅器Q1の出
力レベル「H」である故、CPU1のリセツトは
非能動状態である。
Also, when standby switch 3 is turned on,
The level of the node P becomes "L", and the transistor Q
2 is off. In other words, the transistor Q2 turns on when the watchdog timer reset pulse, which is the output signal of the output port WDC, changes from "L" to "H", and at this time, the capacitor C
2 is discharged, operational amplifier Q1 outputs an "H" level, and the runaway detection circuit starts functioning as a watchdog timer. Further, since the output level of the operational amplifier Q1 is "H", the reset of the CPU 1 is in an inactive state.

なお、上記コンピユータシステムにおける消費
電流は、CPU1の動作モード時で3mA、CPU1
のスタンバイモード時で0.5mA、暴走検出回路の
動作モード時、スタンバイモード時で共に0.5mA
である。従つて、上記コンピユータシステムにお
けるスタンバイモード時の消費電流は1mAであ
り、これは従来例における消費電流0.5mAよりわ
ずか0.5mA多い値である。
The current consumption in the above computer system is 3mA in the CPU1 operating mode;
0.5mA in standby mode, 0.5mA in runaway detection circuit operating mode and standby mode.
It is. Therefore, the current consumption in the standby mode in the above computer system is 1 mA, which is only 0.5 mA more than the 0.5 mA current consumption in the conventional example.

〔考案の効果〕[Effect of idea]

以上説明したように本考案は、スタンバイスイ
ツチの操作時にチヤタリングを起こしても、チヤ
タリングが生じたときにその都度時間計測部がリ
セツトされるので、タイムオーバ時間の実質時間
が減少するようなことが起こらないので、スタン
バイスイツチがオフである限り、またスタンバイ
スイツチをCPUの初期設定時間より短い時間で
オン・オフしても、CPUはリセツトされないと
いう効果がある。
As explained above, in the present invention, even if chattering occurs when operating the standby switch, the time measuring section is reset each time the chattering occurs, so the actual time of the time over time will not be reduced. Since this does not occur, the effect is that as long as the standby switch is off, the CPU will not be reset even if the standby switch is turned on and off for a shorter time than the CPU's initial setting time.

また、暴走検出回路をCPUと同様に常時通電
状態とすれば、暴走検出回路の出力が不定となる
こともないので、スタンバイスイツチのオン・オ
フ時の誤動作を防止できる効果がある。
Further, if the runaway detection circuit is always energized like the CPU, the output of the runaway detection circuit will not become unstable, which has the effect of preventing malfunctions when the standby switch is turned on and off.

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

第1図は本考案に係わるコンピユータシステム
の一実施例を示す回路図、第2図は従来のコンピ
ユータシステムを示す回路図、第3図は第1図お
よび第2図のシステムを構成する暴走検出回路を
示す回路図である。 1……CPU、2……暴走検出回路、3……ス
タンバイスイツチ、4……インバータ、5,7,
R1〜R7……抵抗、6……直流電源、、
WDC、、VDD,VSS……端子、Q1……
演算増幅器、Q2……トランジスタ、D1〜D3
……ダイオード、C1,C2……コンデンサ、E
1……直流電源。
Fig. 1 is a circuit diagram showing an embodiment of a computer system according to the present invention, Fig. 2 is a circuit diagram showing a conventional computer system, and Fig. 3 is a runaway detection component of the system shown in Figs. 1 and 2. It is a circuit diagram showing a circuit. 1... CPU, 2... Runaway detection circuit, 3... Standby switch, 4... Inverter, 5, 7,
R1 to R7...Resistance, 6...DC power supply,
WDC, , V DD , V SS ... terminal, Q1 ...
Operational amplifier, Q2...transistor, D1 to D3
...Diode, C1, C2...Capacitor, E
1...DC power supply.

Claims (1)

【実用新案登録請求の範囲】 動作モードとスタンバイモードとを有する
CPUと、ウオツチドツグ回路として作用する暴
走検出回路とからなるコンピユータシステムにお
いて、 前記動作モードとスタンバイモードとを切り換
えるためのスタンバイスイツチと、 このスタンバイスイツチをスタンバイモードに
切り換えたとき、前記暴走検出回路のタイムオー
バ時間を計測する時間計測部をリセツトする回路
手段と、 前記スタンバイスイツチをスタンバイモードに
切り換えたときでも前記暴走検出回路に電源を供
給する回路と を備えたことを特徴とするコンピユータシステ
ム。
[Claims for Utility Model Registration] Has an operating mode and a standby mode.
In a computer system consisting of a CPU and a runaway detection circuit that acts as a watchdog circuit, there is a standby switch for switching between the operating mode and standby mode, and when the standby switch is switched to standby mode, the time of the runaway detection circuit is determined. A computer system comprising: circuit means for resetting a time measuring section that measures overtime; and a circuit that supplies power to the runaway detection circuit even when the standby switch is switched to standby mode.
JP1987138303U 1987-09-11 1987-09-11 Expired JPH0445065Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1987138303U JPH0445065Y2 (en) 1987-09-11 1987-09-11

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1987138303U JPH0445065Y2 (en) 1987-09-11 1987-09-11

Publications (2)

Publication Number Publication Date
JPS6443461U JPS6443461U (en) 1989-03-15
JPH0445065Y2 true JPH0445065Y2 (en) 1992-10-23

Family

ID=31400517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1987138303U Expired JPH0445065Y2 (en) 1987-09-11 1987-09-11

Country Status (1)

Country Link
JP (1) JPH0445065Y2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2571589Y2 (en) * 1992-03-24 1998-05-18 株式会社ミツバ Watchdog detection control circuit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5557956A (en) * 1978-10-25 1980-04-30 Nissan Motor Co Ltd Malfunction prevention unit of microcomputer
JPS5836448U (en) * 1981-08-28 1983-03-09 ソニー株式会社 Microcomputer reset circuit

Also Published As

Publication number Publication date
JPS6443461U (en) 1989-03-15

Similar Documents

Publication Publication Date Title
US6501342B2 (en) Power-conserving external clock for use with a clock-dependent integrated circuit
JPH0445065Y2 (en)
JPH0460245B2 (en)
JPH11510938A (en) Microcontroller with minimum number of external components
JPH0519911A (en) Power supply circuit
JP2691882B2 (en) Control circuit
JP2722348B2 (en) Oscillation circuit
JP2522689Y2 (en) Computer voltage monitoring circuit
JP2779485B2 (en) Device for setting bias source to standby
KR200299465Y1 (en) Microprocessor's Power-Down Wake-Up Circuitry
JPH0431620Y2 (en)
JPH0430720Y2 (en)
JPH045043Y2 (en)
JP2804119B2 (en) Fire detector with self-operation monitoring function
JPH03127938U (en)
JPH076541Y2 (en) Initial test start identification circuit
JPH022165B2 (en)
JPS5924194Y2 (en) fail safe circuit
JPH0726748Y2 (en) Reset circuit
JPH0313782Y2 (en)
JPH0726735Y2 (en) Power supply circuit
JPH02176920A (en) Electronic apparatus
JPH05290187A (en) Low-power-consumption microcomputer operation system
JPH042963B2 (en)
JPS61112460U (en)