JPH0748184B2 - Signal output circuit - Google Patents
Signal output circuitInfo
- Publication number
- JPH0748184B2 JPH0748184B2 JP63245045A JP24504588A JPH0748184B2 JP H0748184 B2 JPH0748184 B2 JP H0748184B2 JP 63245045 A JP63245045 A JP 63245045A JP 24504588 A JP24504588 A JP 24504588A JP H0748184 B2 JPH0748184 B2 JP H0748184B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- output
- circuit
- watchdog timer
- 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 - Fee Related
Links
Landscapes
- Debugging And Monitoring (AREA)
- Electronic Switches (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は信号出力回路に関し、特にマイクロコンピュー
タの信号出力回路に関する。The present invention relates to a signal output circuit, and more particularly to a signal output circuit of a microcomputer.
従来、マイクロコンピュータの信号出力回路は、プログ
ラムの暴走あるいはシステム異常等を検出する手段とし
てウォッチドッグ・タイマが用いられている。このウォ
ッチドッグ・タイマはプログラムの暴走やデッドロック
を検出するための機能で、プログラムの各モジュールご
とにウォッチドッグ・タイマをクリアする命令を入れて
プログラムを設計し、そのウォッチドッグ・タイマ割込
みが発生することでプログラムまたはシステムが異常動
作していることを検出するものである。Conventionally, a signal output circuit of a microcomputer uses a watchdog timer as a means for detecting a program runaway, a system abnormality, or the like. This watchdog timer is a function to detect runaway or deadlock of the program, design the program with the instruction to clear the watchdog timer for each module of the program, and generate the watchdog timer interrupt By doing so, it is detected that the program or system is operating abnormally.
第5図はかかる従来の一例を説明するためのウォッチド
ック・タイマからなる信号出力回路のブロック図であ
る。FIG. 5 is a block diagram of a signal output circuit including a watchdog timer for explaining such a conventional example.
第5図に示すように、かかる信号出力回路はウォッチド
ッグ・タイマ6にクロック信号φとウォッチドッグ・タ
イマクリア信号CLRとを入力し、ウォッチドッグ・タイ
マ回路6がオーバーフローした時、オーバーフロー信号
OVFを外部出力端子OUT1に出力するものである。このウ
ォッチドッグ・タイマ6は、プログラマブルに出力され
るCLR信号によりクリアされるが、クロック信号φによ
りカウントアップしオーバーフローするまでクリア信号
CLRによるクリア操作がおこなわれなかった時、オーバ
ーフロー信号OVFが外部出力端子OUT1より出力される。As shown in FIG. 5, the signal output circuit inputs the clock signal φ and the watchdog timer clear signal CLR to the watchdog timer 6 and outputs the overflow signal when the watchdog timer circuit 6 overflows.
OVF is output to the external output terminal OUT1. The watchdog timer 6 is cleared by the programmable CLR signal, but is cleared by the clock signal φ until it counts up and overflows.
When the clear operation by CLR is not performed, the overflow signal OVF is output from the external output terminal OUT1.
上述した従来のウォッチドッグ・タイマで構成される信
号出力回路は、ソフトウェアを介さずに外部のシステム
に対して内部システムの異常をすばやく正確に知らせる
ためには、ウォッチドッグ・タイマ専用の出力端子を備
える必要がある。従って、他の機能とマルチプレクスし
た端子にすることができず、端子数が増えてしまうとい
う欠点がある。The signal output circuit consisting of the conventional watchdog timer described above has a dedicated output terminal for the watchdog timer in order to notify the external system quickly and accurately to the external system without software. You need to be prepared. Therefore, there is a drawback in that the number of terminals cannot be increased because the terminals cannot be multiplexed with other functions.
本発明の目的は、からる外部への出力端子数を減らすと
ともに、小型化および経済化を実現する信号出力回路を
提供することにある。An object of the present invention is to provide a signal output circuit that reduces the number of output terminals to the outside, and realizes miniaturization and economy.
本発明の半導体集積回路は、発振回路およびCPUを備
え、前記発振回路からの周期信号および前記CPUからの
信号に基づいて動作する集積回路装置の信号出力回路に
おいて、前記周期信号を係数し且つ前記CPUから与えら
れる第一の入力信号によりクリアされるウォッチドッグ
・タイマからなるカウンタと、前記カウンタのオーバー
フロー信号によりセットされ且つ前記CPUから与えられ
る第二の入力信号によりリセットされるフリップフロッ
プと、前記周期信号と前記フリップフロップの出力とを
入力とする論理回路とを有し、前記フリップフロップの
出力により前記周期信号を前記論理回路から直接外部端
子に出力したり、停止したりするように構成される。A semiconductor integrated circuit of the present invention includes an oscillation circuit and a CPU, in a signal output circuit of an integrated circuit device that operates based on the periodic signal from the oscillation circuit and the signal from the CPU, A counter composed of a watchdog timer that is cleared by a first input signal provided from a CPU; a flip-flop that is set by an overflow signal of the counter and that is reset by a second input signal provided by the CPU; A logic circuit that receives the periodic signal and the output of the flip-flop, and is configured to output or stop the periodic signal directly from the logic circuit to an external terminal by the output of the flip-flop. It
次に、本発明の実施例について図面を参照して説明す
る。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の第一の実施例を説明するための信号出
力回路を含むマイクロコンピュータのシステム異常制御
回路の構成図である。FIG. 1 is a configuration diagram of a system abnormality control circuit of a microcomputer including a signal output circuit for explaining a first embodiment of the present invention.
第1図に示すように、本実施例はマイクロコンピュータ
1の異常動作出力をコンパレータ回路2で検出し、リセ
ット信号9によりマイクロコンピュータ1のCPU3をリセ
ット動作させるものである。マイクロコンピュータ1は
水晶発振器に接続したクロック発振回路4と、CPU3から
のクリア(CLR)信号とクロック(φ)信号とを入力し
て選択出力する信号出力回路5とを備え、更に信号出力
回路5はウォッチドッグ・タイマ6および信号選択回路
7を有している。一方、コンパレータ回路2はマイクロ
コンピュータ1の外部出力端子OUT1からの信号出力を抵
抗R1およびコンデンサC1からなる積分回路を介して一方
の入力に印加し、且つ他方の入力に1/4VDDを印加して比
較するコンパレータ8を有している。また、RESはマイ
クロコンピュータ1のリセット入力端子、前述したφは
発振回路4で作られるクロック信号、CLRはCPU3より出
力されるウォッチドッグ・タイマ・クリア信号、OVFは
ウォッチドッグ・タイマ6がオーバーフローしたときに
出力するオーバーフロー信号、RESETはCPU3より出力さ
れる内部リセット信号である。As shown in FIG. 1, in the present embodiment, the abnormal operation output of the microcomputer 1 is detected by the comparator circuit 2 and the CPU 3 of the microcomputer 1 is reset by the reset signal 9. The microcomputer 1 includes a clock oscillation circuit 4 connected to a crystal oscillator, a signal output circuit 5 for inputting and outputting a clear (CLR) signal and a clock (φ) signal from the CPU 3, and further a signal output circuit 5 Has a watchdog timer 6 and a signal selection circuit 7. On the other hand, the comparator circuit 2 applies the signal output from the external output terminal OUT1 of the microcomputer 1 to one input via the integrating circuit composed of the resistor R 1 and the capacitor C 1 , and applies 1/4 VDD to the other input. It has a comparator 8 for making and comparing. Further, RES is the reset input terminal of the microcomputer 1, φ is the clock signal generated by the oscillation circuit 4, CLR is the watchdog timer clear signal output from the CPU 3, and OVF is the watchdog timer 6 overflows. The overflow signal, RESET, which is sometimes output, is an internal reset signal output from the CPU3.
第2図は第1図に示す信号出力回路の構成図である。FIG. 2 is a block diagram of the signal output circuit shown in FIG.
第2図に示すように、信号出力回路はカウンタとしての
ウォッチドッグ・タイマ6と、フリップフロップ(FF)
10およびANDゲート11からなる信号選択回路7とから構
成されており、特に信号選択回路7は出力端子OUT1より
クロック信号φかウォッチドッグ・タイマ割込み要求信
号WDTOかを出力する回路である。また、セットリセット
型フリップフロップ回路(FF)10はOVF信号とRESET信号
をそれぞれセット・リセット信号とし、ウォッチドッグ
・タイマ割込み要求信号WDTOを出力し、ANDゲート11は
クロック信号φとWDTOとの論理をとり、一致すれば外部
出力端子OUT1へ比較信号を出力する。As shown in FIG. 2, the signal output circuit includes a watchdog timer 6 as a counter and a flip-flop (FF).
The signal selection circuit 7 is composed of 10 and an AND gate 11, and in particular, the signal selection circuit 7 is a circuit for outputting the clock signal φ or the watchdog timer interrupt request signal WDTO from the output terminal OUT1. Further, the set / reset type flip-flop circuit (FF) 10 uses the OVF signal and the RESET signal as set / reset signals, respectively, and outputs the watchdog timer interrupt request signal WDTO. If they match, the comparison signal is output to the external output terminal OUT1.
次に、かかる第1図および第2図で述べた信号出力回路
の動作を説明する。Next, the operation of the signal output circuit described in FIGS. 1 and 2 will be described.
第3図は第1図および第2図における外部出力信号等の
タイミング図である。FIG. 3 is a timing chart of the external output signals and the like in FIGS. 1 and 2.
第3図に示すように、かかる信号波形は正常動作状態か
らウォッチドッグ・タイマ6が異常を検出した状態への
信号の変化を示している。この例では、aの期間マイク
ロコンピュータ1が正常動作しており、bのタイミング
でウォッチドッグ・タイマ6により異常が検出され、OV
F信号にワンショット信号としてVDDレベル(1)が出力
される。aの期間WDTOとしてVDDレベル(1)の状態を
出力していたFF10はOVF信号が出力されるとWDTOとしてG
NDレベル(0)を出力する。これによりANDゲート11の
出力はクロック信号φからGNDレベル信号(0)に変
り、OUT1から出力される。従って、b点で異常が検出さ
れるとコンパレータ回路2にはOUT1端子よりGNDレベル
(0)が入力されてコンパレータ出力信号9を発生する
ため、信号9をRES端子に入力しCPU3をリセットするこ
とでマイクロコンピュータ1を容易にリセット動作させ
ることが可能となる。As shown in FIG. 3, such a signal waveform shows the change of the signal from the normal operation state to the state in which the watchdog timer 6 detects the abnormality. In this example, the microcomputer 1 is operating normally during the period of a, and the abnormality is detected by the watchdog timer 6 at the timing of b.
The VDD level (1) is output to the F signal as a one-shot signal. The FF10 that has output the VDD level (1) state as the WDTO during the period of a is G as the WDTO when the OVF signal is output.
Outputs ND level (0). As a result, the output of the AND gate 11 changes from the clock signal φ to the GND level signal (0) and is output from OUT1. Therefore, if an abnormality is detected at point b, the GND level (0) is input to the comparator circuit 2 from the OUT1 terminal and the comparator output signal 9 is generated. Therefore, input the signal 9 to the RES terminal and reset the CPU3. Thus, the microcomputer 1 can be easily reset.
第4図は本発明の第二の実施例を説明するための第2図
と同様の信号出力回路の構成図である。FIG. 4 is a configuration diagram of a signal output circuit similar to FIG. 2 for explaining the second embodiment of the present invention.
第4図に示すように、本実施例は前述した第一の実施例
と比較し、FF10の正相出力を用い、且つクロック信号φ
とWDTOとの論理をとるのにORゲート12を用いた以外は同
様である。すなわち、信号選択回路7は出力端子OUT1よ
りクロック信号φかウォッチドッグ・タイマ割込み要求
信号WDTOを出力する回路であり、マイクロコンピュータ
の正常動作時はクロック信号φを選択して出力端子OUT1
から外部へ出力し、ウォッチドッグ・タイマ6により異
常が検出され、しかもOVF信号が出力されてWTDO信号が
出力された場合には、出力端子OUT1からVDDレベル
(1)を出力する例である。As shown in FIG. 4, in comparison with the first embodiment described above, this embodiment uses the positive phase output of FF10 and uses the clock signal φ.
And WDTO are the same except that OR gate 12 is used to take the logic. That is, the signal selection circuit 7 is a circuit for outputting the clock signal φ or the watchdog timer interrupt request signal WDTO from the output terminal OUT1. When the microcomputer is operating normally, the clock signal φ is selected and the output terminal OUT1 is selected.
In this example, when the watchdog timer 6 detects an abnormality, the OVF signal is output, and the WTDO signal is output, the VDD level (1) is output from the output terminal OUT1.
以上説明したように、本発明は周期信号に基づいて動作
する集積回路装置の信号出力回路において、前記周期信
号を計数し第一の入力信号によりクリアされるカウンタ
と、前記カウンタのオーバーフロー信号によりセットさ
れ且つ第二の入力信号によりセットされるフリップフロ
ップと、前記周期信号と前記フリップフロップ出力とを
入力とする論理回路で構成され、前記論理回路の出力を
外部端子に出力することにより、クロック出力とウォッ
チドッグ・タイマ割込み要求出力とをマルチプレクスし
た信号として一本の出力端子から出力することができ、
回路の小型化および経済化を実現できるという効果があ
る。As described above, in the signal output circuit of the integrated circuit device that operates based on the periodic signal, the present invention sets a counter that counts the periodic signal and is cleared by the first input signal, and an overflow signal of the counter. A flip-flop that is set by a second input signal and a logic circuit that receives the periodic signal and the output of the flip-flop, and outputs the output of the logic circuit to an external terminal to output a clock. And a watchdog timer interrupt request output can be output from one output terminal as a multiplexed signal,
There is an effect that the circuit can be made compact and economical.
【図面の簡単な説明】 第1図は本発明の第一の実施例を説明するための信号出
力回路を含むマイクロコンピュータのシステム異常制御
回路図、第2図は第1図に示す信号出力回路の構成図、
第3図は第1図および第2図における外部出力信号等の
タイミング図、第4図は本発明の第二の実施例を説明す
るための第2図と同様の信号出力回路の構成図、第5図
は従来の一例を説明するためのウォッチドッグ・タイマ
からなる信号出力回路のブロック図である。 1……マイクロコンピュータ、2……コンパレータ回
路、3……CPU、4……発振回路、5……信号出力回
路、6……ウォッチドッグ・タイマ、7……信号選択回
路、8……コンパレータ、9……コンパレータ出力信
号、10……フリップフロップ(FF)回路、11,12……論
理回路、φ……クロック信号、CLR……ウォッチドッグ
・タイマ・クリア信号、OVF……オーバーフロー信号、R
ESET……内部リセット信号、OUT1……外部出力端子、WD
TO……ウォッチドッグ・タイマ割込み要求信号、a……
正常動作期間、b……割込み要求タイミング。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a system abnormality control circuit diagram of a microcomputer including a signal output circuit for explaining a first embodiment of the present invention, and FIG. 2 is a signal output circuit shown in FIG. Configuration diagram of
FIG. 3 is a timing chart of the external output signals and the like in FIGS. 1 and 2, and FIG. 4 is a configuration diagram of a signal output circuit similar to FIG. 2 for explaining the second embodiment of the present invention. FIG. 5 is a block diagram of a signal output circuit including a watchdog timer for explaining an example of the related art. 1 ... Microcomputer, 2 ... Comparator circuit, 3 ... CPU, 4 ... Oscillation circuit, 5 ... Signal output circuit, 6 ... Watchdog timer, 7 ... Signal selection circuit, 8 ... Comparator, 9 …… Comparator output signal, 10 …… Flip-flop (FF) circuit, 11,12 …… Logic circuit, φ …… Clock signal, CLR …… Watchdog timer clear signal, OVF …… Overflow signal, R
ESET …… Internal reset signal, OUT1 …… External output terminal, WD
TO …… Watchdog timer interrupt request signal, a ……
Normal operation period, b ... Interrupt request timing.
Claims (1)
からの周期信号および前記CPUからの信号に基づいて動
作する集積回路装置の信号出力回路において、前記周期
信号を計数し且つ前記CPUから与えられる第一の入力信
号によりクリアされるウォッチドッグ・タイマからなる
カウンタと、前記カウンタのオーバーフロー信号により
セットされ且つ前記CPUから与えられる第二の入力信号
によりリセットされるフリップフロップと、前記周期信
号と前記フリップフロップの出力とを入力とする論理回
路とを有し、前記フリップフロップの出力により前記周
期信号を前記論理回路から直接外部端子に出力したり、
停止したりすることを特徴とする信号出力回路。1. A signal output circuit of an integrated circuit device comprising an oscillation circuit and a CPU, which operates based on the periodic signal from said oscillation circuit and the signal from said CPU, counts said periodic signal and gives it from said CPU. A counter comprising a watchdog timer that is cleared by a first input signal, a flip-flop that is set by an overflow signal of the counter and that is reset by a second input signal provided by the CPU, and the periodic signal And a logic circuit having the output of the flip-flop as an input, and the output of the flip-flop outputs the periodic signal directly from the logic circuit to an external terminal,
A signal output circuit characterized by being stopped.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63245045A JPH0748184B2 (en) | 1988-09-28 | 1988-09-28 | Signal output circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63245045A JPH0748184B2 (en) | 1988-09-28 | 1988-09-28 | Signal output circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0292014A JPH0292014A (en) | 1990-03-30 |
| JPH0748184B2 true JPH0748184B2 (en) | 1995-05-24 |
Family
ID=17127762
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63245045A Expired - Fee Related JPH0748184B2 (en) | 1988-09-28 | 1988-09-28 | Signal output circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0748184B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5957033U (en) * | 1982-10-06 | 1984-04-13 | 株式会社山武 | Specified number pulse generation circuit |
| JPS6037932U (en) * | 1983-08-23 | 1985-03-15 | 横河電機株式会社 | pulse generator |
-
1988
- 1988-09-28 JP JP63245045A patent/JPH0748184B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0292014A (en) | 1990-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4005124B2 (en) | Microcomputer | |
| JPH0748184B2 (en) | Signal output circuit | |
| JPS6113250B2 (en) | ||
| JP2847604B2 (en) | IC with built-in counter circuit and one-chip microcomputer | |
| US5982248A (en) | Integrated circuit replacement operating clock signal generator having a crystal oscillator | |
| JP2734243B2 (en) | Watchdog timer | |
| JP3145937B2 (en) | Runaway detection method for microcomputer | |
| JP2830522B2 (en) | Watchdog timer | |
| JP2544224Y2 (en) | Microcomputer time constant setting circuit | |
| KR900007296B1 (en) | Microcomputer application controller mounted on vehicle | |
| JP2516711B2 (en) | Watchdog timer device | |
| JPH0348468B2 (en) | ||
| JP3035937B2 (en) | Multifunctional telephone | |
| JP2648003B2 (en) | Timer counter | |
| JPH0792793B2 (en) | Micro computer | |
| JP2693885B2 (en) | Microcomputer | |
| JPS61501661A (en) | Parallel synchronous operation | |
| JPH0371234A (en) | Status change detector | |
| JPS6362776B2 (en) | ||
| JPH0226245B2 (en) | ||
| JP2867617B2 (en) | Standby circuit | |
| JP2770377B2 (en) | Watchdog timer | |
| JPS6327930A (en) | Interruption control circuit | |
| JPH038005A (en) | Timer control system | |
| JPS62143145A (en) | Malfunction detecting circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |