JPH0251748A - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JPH0251748A JPH0251748A JP63203613A JP20361388A JPH0251748A JP H0251748 A JPH0251748 A JP H0251748A JP 63203613 A JP63203613 A JP 63203613A JP 20361388 A JP20361388 A JP 20361388A JP H0251748 A JPH0251748 A JP H0251748A
- Authority
- JP
- Japan
- Prior art keywords
- output
- signal
- watchdog timer
- latch
- data
- 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
Links
- 230000002159 abnormal effect Effects 0.000 abstract description 5
- 230000005856 abnormality Effects 0.000 abstract description 3
- 238000001514 detection method Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はマイクロコンピュータに関し、特にウォッチド
ッグタイマの出力信号によりあらかじめ定められた出力
ラッチデータをポートに出力でキルマイクロコンピュー
タに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer, and more particularly to a kill microcomputer by outputting predetermined output latch data to a port using an output signal of a watchdog timer.
従来この種のマイクロコンピュータでは、ウォッチドッ
グタイマの出力はプログラムの暴走やシステムの異常等
を検出するための出力として使用し、また出力ポートは
通常正常動作時には、転送命令により出力ラッチとアキ
ュームレータとの間でデータのやりとりを行ない出力ラ
ッチデータをポートに出力するようになっていた。Conventionally, in this type of microcomputer, the output of the watchdog timer is used as an output to detect program runaway or system abnormality, and the output port is normally used to connect the output latch and accumulator with a transfer command during normal operation. Data was exchanged between them, and the output latch data was output to the port.
上述した従来のマイクロコンピュータテハ、ウォッチド
ッグタイマをプログラムの暴走やデッドロックを防ぐた
めの機能として使用し、プログラムの各モジュール毎に
つtyチドックタイマをクリアする命令を入れてウォッ
チドッグタイマの出力が発生しないことでプログラム又
はシステムが正常に動作していることを確認することに
使用している。一方、−度ウォッチドックタイマからオ
ーバーフローの出力が出されれば、この時点でマイクロ
コンピュータはすでに異常動作状8にあるため出力ラッ
チが書き変えられる可能性があり、通常は、このウォッ
チドッグタイマのオーバーフロー出力をノンマスカブル
割り込み要求として処理を行ないマイクロコンピュータ
を再リセットし、プログラムを初めからスタートさせ正
常なポート出力にもどす。The conventional microcomputer technology described above uses the watchdog timer as a function to prevent program runaway and deadlock, and inserts an instruction to clear the tydog timer in each module of the program to generate the watchdog timer output. It is used to confirm that a program or system is working properly by not checking the system. On the other hand, if an overflow output is output from the watchdog timer, the microcomputer is already in abnormal operation state 8 at this point, and the output latch may be rewritten. The overflow output is processed as a non-maskable interrupt request, the microcomputer is reset again, the program is restarted from the beginning, and normal port output is restored.
従ってウォッチドッグタイマのオーバーフローが出力さ
れてから、プログラムが再スタートし正常動作になるま
では各出力ポートの値は一時的に不定状態となるため、
マイクロコンピュータを用いた高信頼性を要求する装置
、例えばロボット制御、NC制御、自動車電装制御等で
は上述した様なプログラム暴走時等に出力ポートに固定
された出力が得られないため予知できない動作をしてし
まうという欠点がある。Therefore, after the watchdog timer overflow is output, the value of each output port will be temporarily in an undefined state until the program restarts and returns to normal operation.
In devices that require high reliability using microcomputers, such as robot control, NC control, and automobile electrical equipment control, when a program runs out of control as described above, a fixed output cannot be obtained from the output port, resulting in unpredictable operation. It has the disadvantage that it does.
本発明のマイクロコンピュータはウォッチドッグタイマ
のオーバーフロー出力をラッチする回路と、この信号に
より2つの入力をセレクトするセレクタ回路と、セレク
タ回路に入力する通常動作時用出力ラッチ回路と、異常
動作時用出力う、子回路とを有している。The microcomputer of the present invention includes a circuit that latches the overflow output of a watchdog timer, a selector circuit that selects two inputs using this signal, an output latch circuit for normal operation input to the selector circuit, and an output for abnormal operation. It also has a child circuit.
次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.
ウォッチドッグタイマ1は内部クロックfcLア2の入
力信号により動作するタイマで所定時間をカウントする
とウォッチドッグタイマ出力としてオーバーフロー信号
3を出力する。このウォッチドッグタイマ1はクリア信
号4によってクリア可能でありクリア信号4が入力され
ると、最初からカウントを開始する。オーバーフロー信
号3はウォッチドッグタイマ出力として出力されるほか
にデータラッチ回路5によってラッチされる。The watchdog timer 1 is a timer operated by the input signal of the internal clock fcL2 and outputs an overflow signal 3 as the watchdog timer output when a predetermined time has been counted. This watchdog timer 1 can be cleared by a clear signal 4, and when the clear signal 4 is input, it starts counting from the beginning. The overflow signal 3 is output as a watchdog timer output and is also latched by the data latch circuit 5.
データラッチ回路5はオーバーフロー信号を受けるとデ
ータをラッチすると共に次段(出力セレクタ11)へデ
ータを出力するが、クリア信号4が入力されると出力は
停止状態となる。When the data latch circuit 5 receives an overflow signal, it latches the data and outputs the data to the next stage (output selector 11), but when the clear signal 4 is input, the output is stopped.
出力ラッチB7はポート書き込み信号B8により内部バ
ス6からの出力データ(ハイ又はロウレベル)をラッチ
する回路であり通常動作時に使用する。出力ラッチA9
はポート書き込み信号AIOにより内部バス6からのデ
ータ(ハイ又はロウレベル)をラッチする回路でありC
PU異常動作時に出力したいデータを書き込んでおく。The output latch B7 is a circuit that latches output data (high or low level) from the internal bus 6 in response to the port write signal B8, and is used during normal operation. Output latch A9
C is a circuit that latches data (high or low level) from the internal bus 6 using the port write signal AIO.
Write the data you want to output when the PU malfunctions.
それぞれの出力ラッチA、Bのラッチデータは出力セレ
クタ11に入力されている。この出力セレクタ11は入
力された2種類のデータを選択する回路でデータラッチ
回路5の出力信号がSELに入力されている時にはAを
選択し、それ以外の時にはBを選択する回路である0選
択された信号は出力バッファ12によってポート出力1
3に出力される構造となっている。Latch data of each output latch A, B is input to an output selector 11. This output selector 11 is a circuit that selects two types of input data, and selects A when the output signal of the data latch circuit 5 is input to SEL, and selects B otherwise.0 selection. The output signal is sent to port output 1 by output buffer 12.
It has a structure that is output to 3.
通常動作時では出力セレクタはBを選択しているため出
力ラッチBを通して内部バスからの書き込みデータをポ
ート出力に出力している。またウォッチドッグタイマは
プログラムの各モジュール毎に入れられたクリア命令に
よりクリアされているためオーバーフロー信号は発生せ
ずデータラッチ回路も未出力状態となる。During normal operation, the output selector selects B, so write data from the internal bus is output through output latch B to the port output. Furthermore, since the watchdog timer is cleared by a clear command entered for each module of the program, no overflow signal is generated and the data latch circuit is also in a non-output state.
CPUの異常動作によりオーバーフロー信号(ウォッチ
ドッグタイマ出力)が出力されるとデータラッチ回路か
ら出力セレクタに信号が出力され、出力セレクタ回路は
出力ラッチAを選択しあらかじめ定められたデータ(ハ
イ又はロウレベル)をポート出力に出力する。When an overflow signal (watchdog timer output) is output due to abnormal operation of the CPU, a signal is output from the data latch circuit to the output selector, and the output selector circuit selects output latch A and outputs predetermined data (high or low level). output to the port output.
以上説明したように本発明はウォッチドッグタイマのオ
ーバーフロー出力信号すなわちCPUの異常検出と同時
にあらかじめ定めた出力ラッチデータを出力ポートに出
力できることによりマイクロコンピュータを使用した特
に高信頼性を要求されるシステムでは、マイクロコンピ
ュータが異常動作時にもシステムが安全サイドに動作す
るよう設計が可能となり、システムの暴走等による予知
できない動作を最小限におさえることができる効果があ
る。As explained above, the present invention can output the predetermined output latch data to the output port at the same time as the overflow output signal of the watchdog timer, that is, the abnormality detection of the CPU. This allows the system to be designed to operate safely even when the microcomputer malfunctions, and has the effect of minimizing unpredictable operations due to system runaway.
第1図は本発明のマイクロコンピュータの一実施例を示
すブロック図である。
■・・・・・・ウォッチドッグタイマ、2・・・・・・
内部クロックfcLx、3・・・・・・オーバーフロー
信号(ウォッチドッグタイマ出力)、4・・・・・・ク
リア信号、5・・・・・・データラ、子回路、6・・・
・・・内部バス、7・・・・・・出力ラッチB、8・・
・・・・ポート書き込み信号B、9・・・・・・出力ラ
ッチA、IO・・・・・・ポート書き込み信号A、11
・・・・・・出力セレクタ、12・・・・・・出力バッ
ファ、13・・・・・・ポート出力。
代理人 弁理士 内 原 晋FIG. 1 is a block diagram showing an embodiment of the microcomputer of the present invention. ■・・・Watchdog timer, 2・・・・・・
Internal clock fcLx, 3... Overflow signal (watchdog timer output), 4... Clear signal, 5... Data controller, child circuit, 6...
... Internal bus, 7... Output latch B, 8...
...Port write signal B, 9...Output latch A, IO...Port write signal A, 11
...Output selector, 12...Output buffer, 13...Port output. Agent Patent Attorney Susumu Uchihara
Claims (1)
て転送命令により出力ラッチとアキュームレータとの間
でデータのやりとりが行なえ、一度出力ラッチに書き込
まれたデータが次にポートを操作する命令が実行される
まで保持される出力ポートとを有するマイクロコンピュ
ータにおいて、ウォッチドッグタイマの出力信号により
あらかじめ定められた出力ラッチデータを出力できるこ
とを特徴とするマイクロコンピュータ。It has a watchdog timer function, and as an output port function, data can be exchanged between the output latch and the accumulator using transfer commands, and data once written to the output latch is stored until the next command to operate the port is executed. What is claimed is: 1. A microcomputer having a latched output port, the microcomputer being capable of outputting predetermined output latch data based on an output signal of a watchdog timer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63203613A JPH0251748A (en) | 1988-08-15 | 1988-08-15 | Microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63203613A JPH0251748A (en) | 1988-08-15 | 1988-08-15 | Microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0251748A true JPH0251748A (en) | 1990-02-21 |
Family
ID=16476943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63203613A Pending JPH0251748A (en) | 1988-08-15 | 1988-08-15 | Microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0251748A (en) |
-
1988
- 1988-08-15 JP JP63203613A patent/JPH0251748A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US3566368A (en) | Delta clock and interrupt logic | |
US7890800B2 (en) | Method, operating system and computing hardware for running a computer program | |
US5541943A (en) | Watchdog timer lock-up prevention circuit | |
JPH0251748A (en) | Microcomputer | |
JP2998804B2 (en) | Multi-microprocessor system | |
JPS603755A (en) | Output port circuit | |
JP3724034B2 (en) | Control circuit for production equipment | |
JPH0395636A (en) | Diagnostic system for fail-safe circuit | |
JPH0273451A (en) | Controller | |
JPS6362776B2 (en) | ||
JPH02281343A (en) | Cpu operation monitor system | |
JPH03188515A (en) | Soft power source off system | |
JPH0612294A (en) | Monitor device | |
JPH0430245A (en) | Multiprocessor control system | |
JPH05233374A (en) | Watchdog timer device | |
JPS6318229B2 (en) | ||
JP2985188B2 (en) | Redundant computer system | |
JPS59221702A (en) | Digital controller | |
JPS59148961A (en) | Monitoring system of operation of processor | |
JPH06250864A (en) | Method for preventing generation of error output from programmable controller | |
JPS61145617A (en) | Power supply disconnection circuit | |
JPH0375882B2 (en) | ||
JPH05233576A (en) | Duplex system | |
JPS5833737A (en) | Reset controlling system | |
JPH0540510A (en) | Controller |