JP2000122748A - Abnormal state detecting circuit - Google Patents

Abnormal state detecting circuit

Info

Publication number
JP2000122748A
JP2000122748A JP10294951A JP29495198A JP2000122748A JP 2000122748 A JP2000122748 A JP 2000122748A JP 10294951 A JP10294951 A JP 10294951A JP 29495198 A JP29495198 A JP 29495198A JP 2000122748 A JP2000122748 A JP 2000122748A
Authority
JP
Japan
Prior art keywords
circuit
control register
value
oscillation
oscillation control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10294951A
Other languages
Japanese (ja)
Inventor
Hiroshi Benno
宏 辨野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP10294951A priority Critical patent/JP2000122748A/en
Publication of JP2000122748A publication Critical patent/JP2000122748A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect abnormality while suppressing power consumption even if the operation state of the abnormal state detecting circuit changes owing to an external factor and a clock stops by storing the change of a register which controls the operation stop of oscillation when the register become abnormal and no write signal is inputted. SOLUTION: If the value of the oscillation control register 51 varies although a write enable signal 52 is '0', that means that the value of the oscillation control register 51 varies owing to a factor such as external noise. For the purpose, this is detected by D type flip-flop circuits 55 and 56 and an abnormal state detection signal is outputted through an OR circuit 58. When the write enable signal is '1', there is the possibility that the value of the oscillation control register 51 varies and an AND circuit 54 cuts off it so as to prevent its detection. The D type flip-flop circuits 55 and 56 detect the oscillation control register changing from '0' to '1' and from '1' to '0' respectively.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はレジスタの出力で発
振の動作・停止を行う発振回路を有する異常状態検出回
路に関して、外部からの要因により動作状態が変化し、
クロックが停止した場合においても異常を検出する機能
を備えた異常状態検出回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an abnormal state detection circuit having an oscillation circuit for activating / stopping oscillation by the output of a register, the operation state of which is changed by an external factor.
The present invention relates to an abnormal state detection circuit having a function of detecting an abnormality even when a clock stops.

【0002】[0002]

【従来の技術】近年、マイクロコンピュータが広く普及
している。マイクロコンピュータはクロックにより動作
するものであるため、異常によりクロックが停止した場
合、マイクロコンピュータの動作も停止してしまい、異
常を検出することは困難である。
2. Description of the Related Art In recent years, microcomputers have become widespread. Since the microcomputer operates by the clock, if the clock stops due to an abnormality, the operation of the microcomputer also stops, and it is difficult to detect the abnormality.

【0003】このため、このような異常を検出するた
め、クロックに依存しない専用の回路を付加することが
一般に行われる。
Therefore, in order to detect such an abnormality, a dedicated circuit independent of a clock is generally added.

【0004】図1は、従来の異常によりクロックが停止
したことを検出する回路で、17は発振回路、24は抵
抗、25はキャパシタ、22はスイッチング素子、26
は判定回路、23は内部ノード、18はクロック、27
は異常状態検出信号である。
FIG. 1 shows a conventional circuit for detecting that a clock has stopped due to an abnormality. 17 is an oscillation circuit, 24 is a resistor, 25 is a capacitor, 22 is a switching element, and 26 is a switching element.
Is a decision circuit, 23 is an internal node, 18 is a clock, 27
Is an abnormal state detection signal.

【0005】以上のように構成された異常状態検出回路
について、以下にその動作を説明する。
[0005] The operation of the abnormal state detection circuit configured as described above will be described below.

【0006】まず、クロック18が正常に動作している
ときは、スイッチング素子22が”ON”、”OFF”
を繰り返す。クロック18によりスイッチング素子22
が”OFF”状態の時は、電源線より抵抗24を介して
キャパシタ25への充電が行われるが、内部ノード23
のレベルが判定基準電位に達するまでにキャパシタ25
への放電が行われるため、異常状態検出信号27は変化
しない。一方発振回路17より入力される発振クロック
18が停止し、”L”レベルに固定されるとスイッチン
グ素子22が”OFF”状態となり、電源線より抵抗2
4を介してキャパシタ25へ充電が行われ、内部ノード
23のレベルが判定基準に達し異常状態検出信号27を
出力する。
First, when the clock 18 is operating normally, the switching element 22 is turned "ON" and "OFF".
repeat. The switching element 22 is generated by the clock 18.
Is in the "OFF" state, the capacitor 25 is charged from the power supply line via the resistor 24, but the internal node 23 is charged.
Until the level of the capacitor 25 reaches the determination reference potential.
, The abnormal state detection signal 27 does not change. On the other hand, when the oscillation clock 18 input from the oscillation circuit 17 is stopped and fixed at the “L” level, the switching element 22 is turned “OFF” and the resistance 2
4, the capacitor 25 is charged, and the level of the internal node 23 reaches the determination criterion, and outputs the abnormal state detection signal 27.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記従
来の方法では、図2に示すように抵抗、キャパシタによ
り充放電を繰り返すため、異常状態検出回路の消費電力
が多くなるという問題点が有った。本発明は、このよう
な問題点を解決するもので、異常状態検出回路の動作状
態が外的要因で変化しクロックが停止した場合において
も、消費電力を抑えて異常を検出できる異常状態検出回
路を提供することを目的とする。
However, in the above-mentioned conventional method, there is a problem that the power consumption of the abnormal state detecting circuit is increased because charging and discharging are repeated by a resistor and a capacitor as shown in FIG. . The present invention solves such a problem, and an abnormal state detection circuit that can detect an abnormality while suppressing power consumption even when the operation state of the abnormal state detection circuit changes due to an external factor and the clock stops. The purpose is to provide.

【0008】[0008]

【課題を解決するための手段】この課題を解決するため
に本発明は、発振制御レジスタへの書き込みイネーブル
信号がないにも関わらず、発振制御レジスタの値が”
0”から”1”へまたは”1”から”0”へ変化したこ
とを2つのフリップフロップ回路により検出し異常状態
検出信号を出力するものである。
SUMMARY OF THE INVENTION In order to solve this problem, according to the present invention, the value of the oscillation control register is set to "" even though there is no write enable signal to the oscillation control register.
The change from "0" to "1" or "1" to "0" is detected by two flip-flop circuits and an abnormal state detection signal is output.

【0009】また、本発明は、発振制御レジスタの値を
フリップフロップ回路に記憶しておき、発振制御レジス
タへの書き込みイネーブル信号がないにも関わらず、フ
リップフロップ回路に記憶した値と発振制御レジスタの
値が異なったものとなったものとなった場合、異常状態
検出信号を出力するものである。
Further, according to the present invention, the value of the oscillation control register is stored in the flip-flop circuit, and the value stored in the flip-flop circuit and the value of the oscillation control register are stored even though there is no write enable signal to the oscillation control register. If the value of becomes different, an abnormal state detection signal is output.

【0010】[0010]

【発明の実施の形態】本発明の実施の形態について図面
を参照しながら説明する。
Embodiments of the present invention will be described with reference to the drawings.

【0011】(実施の形態1)図3は、本発明の実施の
形態1における異常検出回路のブロック図で、50はク
ロックを生成する発振回路、51は発振回路50の発振
を制御する発振制御レジスタ、52は発振制御レジスタ
51の書き込みイネーブル信号、53、57は入力信号
を反転して出力する反転回路、54はAND回路、5
5、56はD型フリップフロップ回路、58は論理和を
演算するOR回路である。
(Embodiment 1) FIG. 3 is a block diagram of an abnormality detection circuit according to Embodiment 1 of the present invention. Reference numeral 50 denotes an oscillation circuit for generating a clock, and 51 denotes an oscillation control for controlling the oscillation of the oscillation circuit 50. 52, a write enable signal for the oscillation control register 51; 53, 57 an inverting circuit for inverting and outputting an input signal; 54, an AND circuit;
Reference numerals 5 and 56 denote D-type flip-flop circuits, and reference numeral 58 denotes an OR circuit for calculating a logical sum.

【0012】この実施の形態1は、書き込みイネーブル
信号52を”1”としていないにも関わらず、発振制御
レジスタ51が”0”から”1”または”1”から”
0”に変化したことをD型フリップフロップ回路55、
56で検出し、異常状態検出信号を生成するものであ
る。
In the first embodiment, although the write enable signal 52 is not set to "1", the oscillation control register 51 sets "0" to "1" or "1" to "1".
The D-type flip-flop circuit 55,
At 56, an abnormal state detection signal is generated.

【0013】具体的には、書き込みイネーブル信号52
を”1”とした場合は、発振制御レジスタ51の値が変
わる可能性があるので、これをD型フリップフロップ回
路55、56が検出するのを防止するため、AND回路
54で遮断している。また、D型フリップフロップ回路
55は発振制御レジスタ51が”0”から”1”になる
ことを、D型フリップフロップ回路56は発振制御レジ
スタ51が”1”から”0”になることを検出してい
る。
More specifically, the write enable signal 52
Is set to "1", the value of the oscillation control register 51 may change. Therefore, in order to prevent the D-type flip-flop circuits 55 and 56 from detecting this, the AND circuit 54 cuts off this. . The D-type flip-flop circuit 55 detects that the oscillation control register 51 changes from “0” to “1”, and the D-type flip-flop circuit 56 detects that the oscillation control register 51 changes from “1” to “0”. are doing.

【0014】次に、図4のタイミングチャートを用い
て、動作を具体的に説明する。まず、前提として発振回
路50は、発振制御レジスタ51の値が”1”のときは
発振を行い(タイミングt2)、一方発振制御レジスタ
51の値が”0”のときは発振を停止する(タイミング
t1)。そして、発振制御レジスタ51の値は、書き込
みイネーブル信号52を”1”とし書き込みデータを与
えることで書き換えることができる。
Next, the operation will be specifically described with reference to the timing chart of FIG. First, as a premise, the oscillation circuit 50 oscillates when the value of the oscillation control register 51 is "1" (timing t2), and stops oscillation when the value of the oscillation control register 51 is "0" (timing t2). t1). The value of the oscillation control register 51 can be rewritten by setting the write enable signal 52 to “1” and supplying write data.

【0015】このような前提のもとで、書き込みイネー
ブル信号52が”0”であるにも関わらず発振制御レジ
スタ51の値が変化した場合(タイミングt3)、外部
のノイズ等の要因により発振制御レジスタ51の値が変
化したことを意味するので、これをD型フリップフロッ
プ回路で検出し、異常状態検出信号を出力する。図4で
は、書き込みイネーブル信号52が”0”であるにも関
わらず発振制御レジスタ51の値が”1”から”0”に
変化しているので、D型フリップフロップ回路56の出
力が”1”となり、OR回路58を介して異常状態検出
信号として出力される。
Under such a premise, if the value of the oscillation control register 51 changes (timing t3) even though the write enable signal 52 is "0", the oscillation control is performed due to external noise or the like. Since this means that the value of the register 51 has changed, this is detected by a D-type flip-flop circuit, and an abnormal state detection signal is output. In FIG. 4, since the value of the oscillation control register 51 changes from “1” to “0” even though the write enable signal 52 is “0”, the output of the D-type flip-flop circuit 56 becomes “1”. "And output as an abnormal state detection signal via the OR circuit 58.

【0016】(実施の形態2)図5は実施の形態2にお
ける異常状態検出回路のブロック図で、60は排他的論
理和を演算するEXOR回路、61は論理積を演算する
AND回路、62は入力信号を反転して出力する反転回
路であり、図3と同じものについては同一の符号を用い
ている。
(Embodiment 2) FIG. 5 is a block diagram of an abnormal state detection circuit according to Embodiment 2; 60 is an EXOR circuit for calculating exclusive OR, 61 is an AND circuit for calculating logical product, and 62 is This is an inverting circuit that inverts and outputs an input signal, and the same components as those in FIG. 3 are denoted by the same reference numerals.

【0017】この実施の形態2は、D型フリップフロッ
プ回路55により今から発振制御レジスタ51へ書き込
もうとしている値を記憶し、発振制御レジスタ51の値
が異常により変化した場合をEXOR回路60で検出
し、異常状態検出信号を出力するものである。AND回
路61は図3のAND回路54と同等の役割を持つもの
で、書き込みイネーブル信号52が”0”にも関わら
ず、発振制御レジスタ51の値が変わったことを検出す
るものである。これにより、実施の形態1と比べてより
簡単な回路により、異常状態を検出することができる。
In the second embodiment, the value to be written to the oscillation control register 51 is stored by the D-type flip-flop circuit 55, and the EXOR circuit 60 determines when the value of the oscillation control register 51 changes due to abnormality. It detects and outputs an abnormal state detection signal. The AND circuit 61 has a role equivalent to that of the AND circuit 54 of FIG. 3, and detects that the value of the oscillation control register 51 has changed despite the write enable signal 52 being "0". Thus, an abnormal state can be detected by a simpler circuit than in the first embodiment.

【0018】なお、動作は図4に示すものと同じである
ため説明は省略する。 (実施の形態3)図6は実施の形態3における異常状態
検出回路のブロック図で、図5と比べて反転回路62の
変わりに反転回路63を持つ点が異なる。
The operation is the same as that shown in FIG. 4 and will not be described. (Embodiment 3) FIG. 6 is a block diagram of an abnormal state detecting circuit according to Embodiment 3 and differs from FIG. 5 in that an inverting circuit 63 is provided instead of the inverting circuit 62.

【0019】この実施の形態3は、実施の形態2とほと
んど類似したものであるが、D型フリップフロップ回路
へは発振制御レジスタ51に現に書き込まれている値を
入力しているため、反転回路63により書き込みイネー
ブル信号52の立ち下がりエッジでD型フリップフロッ
プ回路55に発振制御レジスタ51の値を記憶すること
とし、タイミングを調整している。
The third embodiment is almost similar to the second embodiment. However, since the value currently written in the oscillation control register 51 is input to the D-type flip-flop circuit, the inversion circuit is used. At 63, the value of the oscillation control register 51 is stored in the D-type flip-flop circuit 55 at the falling edge of the write enable signal 52, and the timing is adjusted.

【0020】なお、動作は図4に示すものと同じである
ため説明は省略する。
The operation is the same as that shown in FIG.

【0021】[0021]

【発明の効果】以上のように本発明によれば、発振の動
作停止を制御するレジスタに異常が発生し、レジスタへ
の書き込み信号が入力されていないときに、レジスタの
変化を記憶することで、発振異常を外部に伝達すること
ができる異常状態検出回路を実現できる。
As described above, according to the present invention, when an abnormality occurs in the register for controlling the stop of the oscillation operation and the write signal to the register is not input, the change in the register is stored. Thus, it is possible to realize an abnormal state detection circuit capable of transmitting an oscillation abnormality to the outside.

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

【図1】従来の異常状態検出回路のブロック図FIG. 1 is a block diagram of a conventional abnormal state detection circuit.

【図2】従来の異常状態検出回路のタイミングチャートFIG. 2 is a timing chart of a conventional abnormal state detection circuit.

【図3】本発明の実施の形態1における異常状態検出回
路のブロック図
FIG. 3 is a block diagram of an abnormal state detection circuit according to the first embodiment of the present invention.

【図4】本発明の実施の形態1におけるタイミングチャ
ート
FIG. 4 is a timing chart according to the first embodiment of the present invention.

【図5】本発明の実施の形態2における異常状態検出回
路のブロック図
FIG. 5 is a block diagram of an abnormal state detection circuit according to a second embodiment of the present invention.

【図6】本発明の実施の形態3における異常状態検出回
路のブロック図
FIG. 6 is a block diagram of an abnormal state detection circuit according to a third embodiment of the present invention.

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

17 発振回路 18 クロック 22 スイッチング素子 23 内部ノード 24 抵抗 25 キャパシタ 26 判定回路 27 異常状態検出信号 50 発振回路 51 発振制御レジスタ 52 書き込みイネーブル信号 53、57、62、63 反転回路 54、61 AND回路 55、56 D型フリップフロップ回路 58 OR回路 60 EXOR回路 17 Oscillation circuit 18 Clock 22 Switching element 23 Internal node 24 Resistance 25 Capacitor 26 Judgment circuit 27 Abnormal state detection signal 50 Oscillation circuit 51 Oscillation control register 52 Write enable signal 53, 57, 62, 63 Inversion circuit 54, 61 AND circuit 55, 56 D-type flip-flop circuit 58 OR circuit 60 EXOR circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 発振制御レジスタの値により発振が制御
される発振回路の異常を検出する異常検出回路におい
て、 前記発振制御レジスタの値が”0”から”1”に変化し
たことを検出する第1のフリップフロップ回路と、 前記発振制御レジスタの値が”1”から”0”に変化し
たことを検出する第2のフリップフロップ回路と、 前記発振制御レジスタへの書き込みイネーブル信号がな
いにも関わらず前記第1又は第2のフリップフロップ回
路の出力があった場合には、異常状態検出信号を出力す
ることを特徴とする異常状態検出回路。
An abnormality detection circuit for detecting an abnormality of an oscillation circuit whose oscillation is controlled by a value of an oscillation control register, wherein the abnormality detection circuit detects that the value of the oscillation control register has changed from “0” to “1”. 1 flip-flop circuit, a second flip-flop circuit for detecting that the value of the oscillation control register has changed from "1" to "0", and a write enable signal to the oscillation control register being absent. An abnormal state detection circuit which outputs an abnormal state detection signal when an output of the first or second flip-flop circuit is received.
【請求項2】 発振制御レジスタの値により発振が制御
される発振回路の異常を検出する異常検出回路におい
て、 前記発振制御レジスタへ書き込もうとする値を記憶する
フリップフロップ回路と、 前記発振制御レジスタへの書き込みイネーブル信号がな
いにも関わらず前記フリップフロップ回路に記憶されて
いる値と前記発振制御レジスタの値とが異なったものと
なった場合に異常状態検出信号を出力することを特徴と
する異常状態検出回路。
2. An abnormality detection circuit for detecting an abnormality of an oscillation circuit whose oscillation is controlled by a value of an oscillation control register, wherein: a flip-flop circuit for storing a value to be written to the oscillation control register; Outputting an abnormal state detection signal when the value stored in the flip-flop circuit and the value of the oscillation control register become different despite the absence of the write enable signal of State detection circuit.
【請求項3】 発振制御レジスタの値により発振が制御
される発振回路の異常を検出する異常検出回路におい
て、 前記発振制御レジスタの値を記憶するフリップフロップ
回路と、 前記発振制御レジスタへの書き込みイネーブル信号がな
いにも関わらず前記フリップフロップ回路に記憶されて
いる値と前記発振制御レジスタの値とが異なったものと
なった場合に異常状態検出信号を出力することを特徴と
する異常状態検出回路。
3. An abnormality detection circuit for detecting an abnormality of an oscillation circuit whose oscillation is controlled by a value of an oscillation control register, a flip-flop circuit for storing the value of the oscillation control register, and a write enable to the oscillation control register. An abnormal state detection circuit for outputting an abnormal state detection signal when a value stored in the flip-flop circuit and a value of the oscillation control register are different from each other despite no signal; .
JP10294951A 1998-10-16 1998-10-16 Abnormal state detecting circuit Pending JP2000122748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10294951A JP2000122748A (en) 1998-10-16 1998-10-16 Abnormal state detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10294951A JP2000122748A (en) 1998-10-16 1998-10-16 Abnormal state detecting circuit

Publications (1)

Publication Number Publication Date
JP2000122748A true JP2000122748A (en) 2000-04-28

Family

ID=17814411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10294951A Pending JP2000122748A (en) 1998-10-16 1998-10-16 Abnormal state detecting circuit

Country Status (1)

Country Link
JP (1) JP2000122748A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002175128A (en) * 2000-12-08 2002-06-21 Matsushita Electric Ind Co Ltd Clock operation diagnosing circuit and battery pack provided therewith

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002175128A (en) * 2000-12-08 2002-06-21 Matsushita Electric Ind Co Ltd Clock operation diagnosing circuit and battery pack provided therewith

Similar Documents

Publication Publication Date Title
JP4304028B2 (en) DLL circuit and driving method thereof
US20030067332A1 (en) Method and circuit for adjusting the timing of output data based on an operational mode of output drivers
WO2002069146A2 (en) Data processing system having an on-chip background debug system and method therefor
JP3898371B2 (en) Synchronous DRAM semiconductor device
US7007181B2 (en) Microcontroller
JP2000122748A (en) Abnormal state detecting circuit
US5734878A (en) Microcomputer in which a CPU is operated on the basis of a clock signal input into one of two clock terminals
JP2003032089A (en) Microcomputer with built-in reset function
JP2819877B2 (en) Oscillation circuit
JPH11510938A (en) Microcontroller with minimum number of external components
KR100492794B1 (en) Rambus DRAM Power-Down Shutdown Control
JP2870337B2 (en) Communication device
JPH04258885A (en) Semiconductor memory device
JP2003288278A (en) Microcontroller
JP4374514B2 (en) Waveform correction circuit
JPH0962649A (en) Signal input/output circuit
KR20000045666A (en) Micro controller with device for prevention of error movement
JP3097672B2 (en) Memory control circuit
JP2626125B2 (en) Microcomputer
KR100223749B1 (en) Register with enable siganl
KR100266627B1 (en) Power down circuit
JPS6016034B2 (en) Information protection method for memory that requires refresh
JP3216200B2 (en) Data memory write control circuit
JPH0529885A (en) Oscillation stop detector and oscillator
JPS63257995A (en) Refreshing control circuit