JPH0792793B2 - Micro computer - Google Patents

Micro computer

Info

Publication number
JPH0792793B2
JPH0792793B2 JP62094842A JP9484287A JPH0792793B2 JP H0792793 B2 JPH0792793 B2 JP H0792793B2 JP 62094842 A JP62094842 A JP 62094842A JP 9484287 A JP9484287 A JP 9484287A JP H0792793 B2 JPH0792793 B2 JP H0792793B2
Authority
JP
Japan
Prior art keywords
clock
output
output port
microcomputer
circuit
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 - Lifetime
Application number
JP62094842A
Other languages
Japanese (ja)
Other versions
JPS63261448A (en
Inventor
晃 宮崎
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP62094842A priority Critical patent/JPH0792793B2/en
Publication of JPS63261448A publication Critical patent/JPS63261448A/en
Publication of JPH0792793B2 publication Critical patent/JPH0792793B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 マイクロコンピュータの内部に、クロックが停止したら
出力ポートを初期化する回路を内蔵することで、クロッ
ク停止時のフェイルセーフ設計を容易にする。
DETAILED DESCRIPTION [Outline] A microcomputer that incorporates a circuit that initializes an output port when a clock is stopped facilitates a fail-safe design when the clock is stopped.

〔産業上の利用分野〕[Industrial application field]

本発明はクロック停止時に出力ポートを初期化する回路
を内蔵したマイクロコンピュータに関する。
The present invention relates to a microcomputer including a circuit that initializes an output port when a clock is stopped.

〔従来の技術〕[Conventional technology]

出力ポートを内蔵するマイクロコンピュータ(一般には
ワンチップのマイクロコンピュータ)では、外部からの
リセット信号がONするとレジスタ類と同時に出力ポート
の初期化を行う。第2図はこの種のマイクロコンピュー
タの部分構成図で、1は1つの出力ポート、2はリセッ
ト信号▲▼の入力端子、3は発振回路、4は
システムクロック発生回路、5〜7はDタイプのフリッ
プフロップ(FF)、8は外付けされた振動子である。
A microcomputer with a built-in output port (generally a one-chip microcomputer) initializes the output port at the same time as the registers when the external reset signal turns on. FIG. 2 is a partial configuration diagram of this type of microcomputer. 1 is one output port, 2 is an input terminal for reset signal ▲ ▼, 3 is an oscillation circuit, 4 is a system clock generation circuit, and 5 to 7 are D type. Flip-flops (FF) and 8 are externally attached oscillators.

出力ポート1の状態はFFT9の状態による。通常はFET9を
OFFにしてハイインピーダンスとするのが一般的であ
る。第3図はこの説明図である。システムクロック
φ1,φ2は発振回路3の出力を分周したもので、φ1はF
F5において外部リセット信号▲▼のラッチに
使用され、またφ2はFF7においてFF6の出力のラッチに
使用される。FF6は内部データを出力命令によって出力
ポート1に出すためのものであるが、そのセット端子SE
Tに内部リセット信号の反転したものが入ると、Q出力
は強制的にHレベルに固定される。従って、次のφ2
タイミングでFF7のQ出力はHになり、それを反転した
信号でFET9はオフになる。
The state of output port 1 depends on the state of FFT9. Normally FET9
It is generally turned off to have high impedance. FIG. 3 is an explanatory view of this. The system clocks φ 1 and φ 2 are obtained by dividing the output of the oscillator circuit 3, and φ 1 is F
F5 is used to latch the external reset signal ▲ ▼, and φ 2 is used to latch the output of FF6 in FF7. FF6 is for outputting internal data to output port 1 by an output command, but its set terminal SE
When an inverted version of the internal reset signal enters T, the Q output is forcibly fixed at H level. Therefore, at the next φ 2 timing, the Q output of FF7 becomes H, and the inverted signal turns off FET9.

このようなリセット機能はマイクロコンピュータの誤動
作対策として重要である。この場合、外部でリセット信
号▲▼を作成する回路には、例えばウォッチ
ドッグタイマ(WDT)がある。これはマイクロコンピュ
ータの或る出力ポートから常時パルス信号を出力してお
き、マイクロコンピュータが例えばスタックデータの破
壊により無限ループに陥いると上記のパルス信号が消失
するため、これを検出WDTがリセット信号▲
▼を一時的にONにする(Lにする)という方式である。
Such a reset function is important as a countermeasure against malfunction of the microcomputer. In this case, for example, a watchdog timer (WDT) is a circuit that externally generates the reset signal (). This is because a pulse signal is always output from a certain output port of the microcomputer, and when the microcomputer falls into an infinite loop due to the destruction of stack data, the above pulse signal disappears. ▲
In this method, ▼ is temporarily turned on (set to L).

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかしながら従来のリセット方式はマイクロコンピュー
タ内のクロックが正常に発生していることを前提として
いるので、何らかのハード的な故障でクロックφ1,φ2
等が停止してしまうとリセットはかからなくなり、出力
ポート1は直前の状態に保持されてしまう。
However, since the conventional reset method it is assumed that the clock in the microcomputer is occurring normally, clock phi 1 for some hardware failures, phi 2
If the same is stopped, the reset is not performed and the output port 1 is held in the state immediately before.

この種のマイクロコンピュータは各種の制御に利用され
るため、出力ポート1が保持される状態によっては好ま
しくないこともある。本発明は、かかるクロック停止時
には出力ポートを望ましい状態に保持する回路をマイク
ロコンピュータの内部に組込んでおくことで、フェイル
セーフ機能を高めようとするものである。
Since this type of microcomputer is used for various controls, it may not be preferable depending on the state in which the output port 1 is held. The present invention is intended to enhance a fail-safe function by incorporating a circuit for holding an output port in a desired state when the clock is stopped, in a microcomputer.

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

本発明は、クロック発生回路(4)の出力変化を監視し
クロックの停止を検出するクロック停止検出回路(10)
を備え、該クロック停止検出回路において、該クロック
発生回路の出力が停止したことが検出されたときに出力
ポート(1)を所定の状態に保持するようにしてなるこ
とを特徴とするものである。
The present invention relates to a clock stop detection circuit (10) for monitoring output changes of a clock generation circuit (4) and detecting stop of a clock.
The clock stop detection circuit holds the output port (1) in a predetermined state when it is detected that the output of the clock generation circuit is stopped. .

〔作用〕[Action]

クロック停止検出回路(10)はクロック発生回路(4)
の出力変化を監視し、クロックの停止をマイクロコンピ
ュータ内部でハード的に検出する。そして、クロックの
停止を検出したら出力ポート(1)をフェイルセーフ上
好ましい状態に保持する。これは予めそのようなハード
構成としておくことで実現できる。
The clock stop detection circuit (10) is a clock generation circuit (4)
Monitor the output change and detect the stop of the clock in the microcomputer. Then, when the stop of the clock is detected, the output port (1) is kept in a preferable state for fail-safe. This can be realized by setting such a hardware configuration in advance.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示す要部構成図で、第2図
の構成に点線枠内のクロック停止検出回路10を追加した
ものである。本例のクロック停止検出回路10は、システ
ムクロックφ2を分周するプリスケーラ11と、その出力
周波数Fを直流電圧Vに変換するF/V変換器12と、該直
流電圧Vを基準値Eと比較し、V>Eの間は出力をHに
保ち、V≦Eになると出力をLに反転する比較器13と、
この比較器13の出力がLになるとFET9を強制的にオフに
するアンドゲート14とからなる。
FIG. 1 is a configuration diagram of a main part showing an embodiment of the present invention, in which a clock stop detection circuit 10 within a dotted frame is added to the configuration of FIG. The clock stop detection circuit 10 of this example includes a prescaler 11 that divides the system clock φ 2 , an F / V converter 12 that converts an output frequency F of the system clock φ 2 into a DC voltage V, and the DC voltage V as a reference value E. Comparing, a comparator 13 that keeps the output at H while V> E and inverts the output to L when V ≦ E,
When the output of the comparator 13 becomes L, the AND gate 14 forcibly turns off the FET 9.

このゲート14はクロックφ2が発生している間は常に開
いていてFF7の出力を通過させる。従って、内部データ
によって出力ポート1が変化したり、或いはWDTからの
リセット信号で出力ポート1をハイインピーダンスにす
ることができる。これに対しクロックφ2が停止すると
ゲート14の出力はLとなるため、FET9はオフになって出
力ポート1はハイインピーダンスになる。この場合はハ
イインピーダンスが安全上好ましいと考えたケースであ
る。
This gate 14 is always open and allows the output of FF7 to pass while the clock φ 2 is generated. Therefore, the output port 1 can be changed by the internal data, or the output port 1 can be set to high impedance by the reset signal from the WDT. On the other hand, when the clock φ 2 is stopped, the output of the gate 14 becomes L, so that the FET 9 is turned off and the output port 1 becomes high impedance. In this case, high impedance is considered to be preferable for safety.

このクロック停止検出回路10による出力ポート1の固定
は何ら動作クロックを必要としない。従って、WDT等に
よる外部からのリセットと異なり、ハード的なクロック
停止障害になっても確実に出力ポート1を制御上安全な
状態に保持できる。また、検出回路10は内蔵されている
ので、クロックを外部へ出し、その検出結果を内部へ入
れるという様な端子(ポート)を必要としない。
The fixing of the output port 1 by the clock stop detection circuit 10 does not require any operation clock. Therefore, unlike the external reset by the WDT or the like, the output port 1 can be surely kept in a safe state for control even if a hardware-related clock stop failure occurs. Further, since the detection circuit 10 is built in, there is no need for a terminal (port) for outputting the clock to the outside and inputting the detection result to the inside.

〔発明の効果〕〔The invention's effect〕

以上述べたように本発明によれば、マイクロコンピュー
タがハード的に動作不能となる内部クロックの停止時
に、確実に出力ポートを安全上好ましい状態に保持でき
る利点がある。
As described above, according to the present invention, there is an advantage that the output port can be surely kept in a preferable state for safety when the internal clock which makes the microcomputer inoperable by hardware is stopped.

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

第1図は本発明の一実施例を示す要部構成図、 第2図は従来のマイクロコンピュータの部分構成図、 第3図は第2図の各部動作波形図である。 FIG. 1 is a configuration diagram of a main part showing an embodiment of the present invention, FIG. 2 is a partial configuration diagram of a conventional microcomputer, and FIG. 3 is an operation waveform diagram of each part of FIG.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】クロック発生回路(4)の出力変化を監視
しクロックの停止を検出するクロック停止検出回路(1
0)を備え、該クロック停止検出回路において、該クロ
ック発生回路の出力が停止したことが検出されたときに
出力ポート(1)を所定の状態に保持するようにしてな
ることを特徴とするマイクロコンピュータ。
1. A clock stop detection circuit (1) for monitoring a change in output of a clock generation circuit (4) and detecting stop of a clock.
0), wherein the clock stop detection circuit holds the output port (1) in a predetermined state when the output of the clock generation circuit is detected to stop. Computer.
JP62094842A 1987-04-17 1987-04-17 Micro computer Expired - Lifetime JPH0792793B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62094842A JPH0792793B2 (en) 1987-04-17 1987-04-17 Micro computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62094842A JPH0792793B2 (en) 1987-04-17 1987-04-17 Micro computer

Publications (2)

Publication Number Publication Date
JPS63261448A JPS63261448A (en) 1988-10-28
JPH0792793B2 true JPH0792793B2 (en) 1995-10-09

Family

ID=14121291

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62094842A Expired - Lifetime JPH0792793B2 (en) 1987-04-17 1987-04-17 Micro computer

Country Status (1)

Country Link
JP (1) JPH0792793B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006261769A (en) * 2005-03-15 2006-09-28 Ricoh Co Ltd Image processing apparatus, method, and program

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4413388B2 (en) * 2000-07-14 2010-02-10 株式会社三共 Game machine
JP4127283B2 (en) 2003-04-25 2008-07-30 日本電気株式会社 Reset circuit and digital communication device
JP5045692B2 (en) * 2003-07-31 2012-10-10 富士通セミコンダクター株式会社 Operation mode control circuit and microcomputer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62235673A (en) * 1986-04-04 1987-10-15 Matsushita Electric Ind Co Ltd Microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006261769A (en) * 2005-03-15 2006-09-28 Ricoh Co Ltd Image processing apparatus, method, and program

Also Published As

Publication number Publication date
JPS63261448A (en) 1988-10-28

Similar Documents

Publication Publication Date Title
US5828243A (en) Method for detecting clock failure and switching to backup clock
JPS6345697A (en) Invader detector
US7149915B2 (en) Microcomputer using a shared counter
JPH0792793B2 (en) Micro computer
JP2593915B2 (en) Double microcomputer system runaway prevention circuit
WO1997032282A1 (en) A watchdog circuit employing minimum and maximum interval detectors
JP3080785B2 (en) System clock selection circuit
JPH01288934A (en) Double microcomputer system runaway preventing circuit
JP3724034B2 (en) Control circuit for production equipment
JPH1069403A (en) Method and circuit for initializing and monitoring microprocessor
JPS6277653A (en) Malfunction preventing circuit
JP2698260B2 (en) Watchdog timer device
JPH11316615A (en) Power noise preventing circuit for mcu
JPH05218834A (en) Reset circuit
JPH0426915Y2 (en)
JPH04115634A (en) Power source noise detection circuit
JP2722348B2 (en) Oscillation circuit
JP2000035903A (en) Runaway monitoring device for microcomputer
KR0155045B1 (en) Watch dog timmer of self-service guard system
JP2899237B2 (en) CPU monitoring device
JPS59117647A (en) Malfunction preventing device for microcomputer
JPS586598A (en) Semiconductor control circuit device
JPS63174144A (en) Reset control circuit for microprocessor
JP2514695B2 (en) Dynamic RAM refresh controller
JPH0573360A (en) Watchdog timer