JPH01199242A - Microcomputer system abnormality detection device - Google Patents
Microcomputer system abnormality detection deviceInfo
- Publication number
- JPH01199242A JPH01199242A JP63024233A JP2423388A JPH01199242A JP H01199242 A JPH01199242 A JP H01199242A JP 63024233 A JP63024233 A JP 63024233A JP 2423388 A JP2423388 A JP 2423388A JP H01199242 A JPH01199242 A JP H01199242A
- Authority
- JP
- Japan
- Prior art keywords
- data
- output
- microcomputer
- write command
- signal
- 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
産業上の利用分野
本発明はマイクロコンピュータを制御装置として用いる
制御システム等に利用されるマイクロコンピュータ系の
異常検出装置に関する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a microcomputer-based abnormality detection device used in a control system using a microcomputer as a control device.
従来の技術
第3図は、この種の従来装置が組込まれた制御システム
の概略ブロック図、第4図は、第3図に示す異常検出装
置の入出力関係をより細かく示すブロック図、第5図は
、同装置のブロック図である0
まず、第3図において、1はメイン制御部、2はサブ制
御部であり、これらは共にマイクロコンピエータ(以下
、マイコンという。)を主体に構成されているものであ
る。3は異常検出装置であり、この異常検出装置3はメ
イン制御部1より入力されるメイン監視信号によりメイ
ン制御部1におけるマイコンの動作を監視し、これに異
常が生じたときには切換信号を出力して切換えスイッチ
SWをサブ側へ切換えるようになっている。これにより
当該制御システムはメイン制御部1に異常が生じたとき
にはサブ制御部2へ制御を移行するようになっているも
のである。BACKGROUND ART FIG. 3 is a schematic block diagram of a control system incorporating this type of conventional device, FIG. 4 is a block diagram showing in more detail the input/output relationship of the abnormality detection device shown in FIG. 3, and FIG. The figure is a block diagram of the same device.0 First, in Figure 3, 1 is a main control unit, and 2 is a sub-control unit, both of which are mainly composed of a microcomputer (hereinafter referred to as a microcomputer). It is something that Reference numeral 3 denotes an abnormality detection device, and this abnormality detection device 3 monitors the operation of the microcomputer in the main control section 1 using a main monitoring signal inputted from the main control section 1, and outputs a switching signal when an abnormality occurs in the main control section 1. The changeover switch SW is switched to the sub side. As a result, the control system is configured to transfer control to the sub-control section 2 when an abnormality occurs in the main control section 1.
な鰺、4はその制御に使用するデータを得るだめの各種
センサ等からなる入力系、5は被制御機器等からなる出
力系である。4 is an input system consisting of various sensors for obtaining data used for control, and 5 is an output system consisting of controlled equipment and the like.
第4図において、6aはメイン制御部1のマイコン、7
はクロック発生部、8aはクロック発生部7と共に上記
異常検出装置3を構成する異常検出部である。In FIG. 4, 6a is a microcomputer of the main control unit 1;
8a is a clock generating section, and 8a is an abnormality detecting section which together with the clock generating section 7 constitutes the abnormality detecting device 3.
マイコン6aは所定範囲内の周期で上記メイン監視信号
(図中のWDTR8T)を出力する。The microcomputer 6a outputs the main monitoring signal (WDTR8T in the figure) at a cycle within a predetermined range.
クロック発生部7は一定周期のクロック信号(図中のC
K)を発生するものである。The clock generator 7 generates a clock signal with a constant period (C in the figure).
K).
異常検出部8aにはマイコン6aからのメイン監視″信
号とクロック発生部7からのクロック信号とが入力され
ている。この異常検出部8aは、クロック信号を使って
メイン監視信号の入力周期を計測することによりマイコ
ン6aの異常を検出し、切換え信号(図中のBU)を発
生する。なお、図中のRESETは電源立上げ時等にお
けるハード・リセット信号である。The main monitoring signal from the microcomputer 6a and the clock signal from the clock generator 7 are input to the abnormality detection section 8a.The abnormality detection section 8a measures the input period of the main monitoring signal using the clock signal. By doing so, an abnormality in the microcomputer 6a is detected and a switching signal (BU in the figure) is generated.Reset in the figure is a hard reset signal at power-up, etc.
第5図に示すように、異常検出部8aは、ウォッチドッ
グタイマーと呼ばれるカウンタ2oとDフリップフロッ
プ21とオアゲート22aとから大略構成されている。As shown in FIG. 5, the abnormality detection section 8a is roughly composed of a counter 2o called a watchdog timer, a D flip-flop 21, and an OR gate 22a.
カウンタ20はクロック発生部7からのクロック信号を
カウントすることによシ計時動作するもので、カウント
アツプしたときにはキャリーを出力する。このカウンタ
20によるカウント開始からキャリー出力までの時間は
上記メイン監視信号の入力周期の最大許容値とされるも
のであって、即ち、キャリーはマイコン6aの異常検出
信号とされるものである。The counter 20 performs a timekeeping operation by counting the clock signal from the clock generator 7, and outputs a carry when the count is up. The time from the start of counting by the counter 20 to the carry output is the maximum allowable value of the input cycle of the main monitoring signal, that is, the carry is the abnormality detection signal of the microcomputer 6a.
フリップフロップ21のD入力端子にはそのキャリーが
入力されるようになっており、同タロツク入力端子には
クロック発生部7からのクロック信号が入力される。こ
の7リツプフロツプ21はD入力端子にキャリーが入る
とQ出力端子がハイになる。これが、上記切換信号に相
当する。The carry signal is input to the D input terminal of the flip-flop 21, and the clock signal from the clock generator 7 is input to the tarlock input terminal of the flip-flop 21. When a carry enters the D input terminal of this 7-lip flop 21, the Q output terminal becomes high. This corresponds to the switching signal described above.
オアゲート22aにはメイン監視信号とハード・リセッ
ト信号とが入力され、その出力はカウンタ20のR入力
端子に入力されるようになっている。A main monitoring signal and a hard reset signal are input to the OR gate 22a, and its output is input to the R input terminal of the counter 20.
これによりカウンタ20は両信号の何れかによりリセッ
トされるようになっている。ハード・リセット信号はフ
リップフロップ21のR入力端子にも入力され、これが
リセットされるようになっている。This allows the counter 20 to be reset by either of the two signals. The hard reset signal is also input to the R input terminal of the flip-flop 21 so that it is reset.
次に、動作を説明する。Next, the operation will be explained.
マイコン6aが正常動作状態にあるときには、このマイ
コン6aから所定範囲内の周期でメイン監視信号が出力
されるため、カウンタ20はその周期で初期化が繰返さ
れるため、キャリーを出力するに至らない。When the microcomputer 6a is in a normal operating state, the main monitoring signal is output from the microcomputer 6a at a cycle within a predetermined range, and the counter 20 is initialized repeatedly at that cycle, so that it does not output a carry.
よって、クリップフロップ21のQ出力端子もローのま
まで、メイン制御部1による制御が続行される。Therefore, the Q output terminal of the clip-flop 21 also remains low, and control by the main control section 1 continues.
そして、マイコン6aに異常が生じ、メイン監視信号が
上記所定範囲内の周期で出力されないようになると、カ
ウンタ20がカウントアツプしてキャリーが出力される
こととなる。Then, when an abnormality occurs in the microcomputer 6a and the main monitoring signal is no longer output at a cycle within the predetermined range, the counter 20 counts up and a carry signal is output.
したがって、フリップフロップ21のQ出力端子がハイ
になり、制御がメイン制御部1からサブ制御部2へ移行
されることとなる。Therefore, the Q output terminal of the flip-flop 21 becomes high, and control is transferred from the main control section 1 to the sub-control section 2.
このように、従来の異常検出装置でもメイン監視信号の
出力周期が所定範囲内に入らなくなったことを検出する
ことによりマイコン6aの異常を検出することができる
。In this way, even the conventional abnormality detection device can detect an abnormality in the microcomputer 6a by detecting that the output cycle of the main monitoring signal no longer falls within a predetermined range.
発明が解決しようとする課題
しかしながら、上記従来の異常検出装置では、メイン監
視信号がマイコン系とは関係のないある程度の長さを持
つ信号線を通じて出力されていたため、この信号線に異
常が生じた場合、マイコン系が正常であるにもかかわら
ず異常として検出されたり、マイコン系に異常が発生し
ているにもかかわらず、これが検出されなかったシする
可能性が有り、検出動作の信頼性に欠けるという問題が
あった。Problems to be Solved by the Invention However, in the conventional abnormality detection device described above, the main monitoring signal is output through a signal line of a certain length that is unrelated to the microcomputer system, so an abnormality may occur in this signal line. In this case, it may be detected as abnormal even though the microcomputer system is normal, or it may not be detected even though there is an abnormality in the microcomputer system, which may affect the reliability of the detection operation. There was a problem with missing parts.
また、同様の理由により、マイコン系に属する各種パス
ラインでの異常が検出し難く、性能上、充分なものでは
なかった。Furthermore, for the same reason, it was difficult to detect abnormalities in various pass lines belonging to the microcomputer system, and the performance was not sufficient.
本発明は、このような従来の問題を解決するもので、検
出動作の信頼性向上と検出能力の向上とを図ったマイコ
ン系の異常検出装置を提供することを目的とする。The present invention is intended to solve such conventional problems, and aims to provide a microcomputer-based abnormality detection device that improves the reliability of detection operation and the detection ability.
課題を解決するための手段
本発明は、上記目的を達成するために、マイコン系に、
各種パスラインを通じて所定範囲内の周期でアドレスデ
ータ、書込み指令データ、書込み用データなどの監視用
データを出力する監視用データ発生手段を設け、上記ア
ドレスデータ及び書込み指令データをアドレスデコーダ
に入力して書込み指令信号を発生させ、計時内容が上記
所定範囲内の周期から外れるとマイコン系の異常検出信
号を発生するタイマーの計時内容を上記書込み指令信号
により初期化するようにして、その書込み指令信号の出
力周期を監視するようにすると共に、各回の書込み用デ
ータには相互に特定関係を持たせ、上記書込み指令信号
を受けると、この書込み用データを一のレジスタに取込
むと同時に、この一のレジスタに入っていたデータを他
のレジスタへシフトするシフトレジスタを設け、その一
のレジスタ及び他のレジスタのデータを判定回路に与え
、この判定回路に両データ間において特定関係が成立し
ているかどうかを監視させるようにしたものである。Means for Solving the Problems In order to achieve the above object, the present invention provides a microcomputer system with the following features:
A monitoring data generating means is provided for outputting monitoring data such as address data, write command data, and writing data at a cycle within a predetermined range through various path lines, and the address data and write command data are input to an address decoder. A write command signal is generated, and when the time measurement deviates from the cycle within the predetermined range, the time measurement content of a timer that generates an abnormality detection signal of the microcomputer system is initialized by the write command signal, and the write command signal is In addition to monitoring the output cycle, each write data has a specific relationship with each other, and when the write command signal is received, this write data is taken into one register, and at the same time, this one register is A shift register is provided to shift the data stored in the register to another register, and the data in that one register and the other register are fed to a judgment circuit, and the judgment circuit determines whether a specific relationship is established between both data. It is designed to monitor.
作用
したがって、本発明によれば、マイコン監視用の信号を
マイコン系に属する各種パスラインを通じて出力するよ
うにしたため、マイコン系とは関係の無いところの異常
が原因で誤動作することを極力防止できる。Therefore, according to the present invention, since signals for microcomputer monitoring are outputted through various path lines belonging to the microcomputer system, malfunctions due to abnormalities unrelated to the microcomputer system can be prevented as much as possible.
マタ、アドレスバス、コントロールバスヲ通シて出力さ
れるアドレスデータや書込み指令データの出力周期を監
視すると共に、データバスを通じて出力される各回の書
込み用データ相互間に成立すべき特定関係を監視するよ
うにしたので、マイコン本体の異常のみならず、それら
の各パスラインでの異常も確実に検出されるようになる
。Monitors the output cycle of address data and write command data output through the data bus, address bus, and control bus, as well as monitors the specific relationship that should be established between each write data output through the data bus. This makes it possible to reliably detect not only abnormalities in the microcomputer itself, but also abnormalities in each of these pass lines.
実施例
以下に、本発明の実施例を図面に基いて説明する0
第1図は本発明に係る異常検出装置の一実施例における
入出力関係を示すブロック図、第2図は同装置のブロッ
ク図である。Embodiments Below, embodiments of the present invention will be explained based on the drawings. FIG. 1 is a block diagram showing the input/output relationship in an embodiment of the abnormality detection device according to the present invention, and FIG. 2 is a block diagram of the same device. It is a diagram.
まず、第1図において、6bはメイン制御部のマイコン
であり、このマイコン6bは、所定範囲内の周期で、コ
ントロールバス10を通じて書込み指令データと読出し
指令データとを交互に出力すると同時に、アドレスバス
11を通じてアドレスデータを出力し、しかも、書込み
指令データを出力する毎にデータバスを通じて前回のも
のと特定関係を有する書込み用データを出力する。書込
み・読出し指令データ及びアドレスデータはアドレスデ
コーダ9に与えられ、ここで、書込み指令信号(図中の
WDWE) と読出し指令信号(図中のWDRE)と
にデコードされる。First, in FIG. 1, 6b is a microcomputer of the main control section, and this microcomputer 6b alternately outputs write command data and read command data through the control bus 10 at a cycle within a predetermined range, and at the same time outputs write command data and read command data through the address bus 10. 11, and each time write command data is output, write data having a specific relationship with the previous data is output through the data bus. The write/read command data and address data are applied to the address decoder 9, where they are decoded into a write command signal (WDWE in the figure) and a read command signal (WDRE in the figure).
8bは従来と同じクロック発生部7と共に異常検出装置
を構成する異常検出部である。この異常検出部8bは、
アドレスデコーダ9からの書込み指令信号及び読出し指
令信号の出力周期と、データバス12を通じて来る各回
の書込み用データ間における特定関係の成立性とを監視
してマイコン6bの異常を検出し、従来と同様の切換え
信号を発生する。Reference numeral 8b denotes an abnormality detecting section which together with the conventional clock generating section 7 constitutes an abnormality detecting device. This abnormality detection section 8b is
An abnormality in the microcomputer 6b is detected by monitoring the output cycle of the write command signal and read command signal from the address decoder 9 and the establishment of a specific relationship between the write data coming through the data bus 12, as in the conventional case. generates a switching signal.
第2図において、22bは3人力のオアゲートで、この
オアゲー) 22bには、書込み指令信号と読出し指令
信号とハード・リセット信号とが入力され、その出力は
カウンタ20のR入力端子に入力される。In FIG. 2, 22b is a three-man-powered OR gate, and a write command signal, a read command signal, and a hard reset signal are input to 22b, and its output is input to the R input terminal of the counter 20. .
このカウンタ20とフリップフロップ21とは第3図の
ものと同じものである。This counter 20 and flip-flop 21 are the same as those in FIG.
23はシフトレジスタであり、23a、 23bはその
各ビットを成すDフリップフロップである。23 is a shift register, and 23a and 23b are D flip-flops forming each bit thereof.
フリップフロップ23aのD入力端子にはマイコン6b
からの書込み用データが入力され、同夕ロッり入力端子
には書込み指令信号が入力されておシ、フリップフロッ
プ23aは書込み指令信号を受けると書込み用データの
内容がQ出力端子に現れるようになっている。フリップ
フロップ23aのS入力端子にはハード・リセット信号
が入力されており、これKよって、電源立上げ時等の初
期状態ではQ出力端子がハイレベルになるようにされて
いる。The microcomputer 6b is connected to the D input terminal of the flip-flop 23a.
On the same day, the write data is input from the input terminal, and the write command signal is input to the input terminal of the flip-flop 23a.When the flip-flop 23a receives the write command signal, the content of the write data appears at the Q output terminal. It has become. A hard reset signal is input to the S input terminal of the flip-flop 23a, so that the Q output terminal is at a high level in an initial state such as when power is turned on.
フリップフロップ23bのD入力端子にはフリップフロ
ップ23aのQ出力端子の出力が入力され、同クロック
入力端子には書込み指令信号が入力されるようになって
おり、このフリップフロップ23bは書込み指令信号を
受けるとフリップフロップ23aのQ出力端子の内容が
そのQ出力端子に現われる。The output of the Q output terminal of the flip-flop 23a is input to the D input terminal of the flip-flop 23b, and the write command signal is input to the same clock input terminal. When received, the contents of the Q output terminal of flip-flop 23a appear at its Q output terminal.
つまり、書込み指令信号が出力されたときには、フリッ
プフロップ23aに書込み用データが取込まれ、フリッ
プフロップ23bにはそのフリップフロップ23aに格
納されていたデータがシフトされてくることとなる。フ
リップフロップ123bのR入力端子にはノ・−ド・リ
セット信号が入力されるようになっており、このフリッ
プフロップ23bは初期状態ではQ出力端子がローレベ
ルになるようにされている。That is, when the write command signal is output, the write data is taken into the flip-flop 23a, and the data stored in the flip-flop 23a is shifted to the flip-flop 23b. A node reset signal is input to the R input terminal of the flip-flop 123b, and the Q output terminal of the flip-flop 23b is set to a low level in the initial state.
24は3ステート・バッファであり、このバッファ24
は、フリップフロップ23aのQ出力端子の出力を入力
しており、読出し指令信号でイネープノペつまり読出し
可能状態になる。24 is a 3-state buffer, and this buffer 24
inputs the output of the Q output terminal of the flip-flop 23a, and becomes enabled, that is, in a readable state in response to a read command signal.
マイコン6bは、読出し指令データを出力することで、
バッファ24を用いてフリップフロップ23aのデータ
を読込み、これと補数関係にあるデータを生成し、この
データを書込み用データとする機能をも有するものとさ
れている。つまり、上記特定関係は、ここでは、この補
数関係とされているものである。The microcomputer 6b outputs read command data to
It also has a function of reading data from the flip-flop 23a using the buffer 24, generating data in a complementary relationship with this data, and using this data as write data. In other words, the above-mentioned specific relationship is here a complement relationship.
ここにおいて、マイコン6bのシフトレジスタ23に対
するアクセス機能に当るステップは、電源が入って最初
のアクセスでは、まずアドレスデータと共に読出し指令
データを出力してフリップフロップ23aのデータを読
出し、その読出したデータの補数データを作成し、 (
説明の便宜上、ステップaという。)次のアクセスでは
、アドレスデータ、書込みデータと共にその補数データ
を書込み用データとして出力し、 (説明の便宜上、ス
テップbという。)以降、ステップa1ステップbの順
でこれらを繰返す、というものである。Here, the step corresponding to the access function to the shift register 23 of the microcomputer 6b is that in the first access after the power is turned on, read command data is outputted together with address data to read the data of the flip-flop 23a, and the read data is Create complement data and (
For convenience of explanation, this step will be referred to as step a. ) In the next access, address data, write data, and their complement data are output as write data (for convenience of explanation, this is referred to as step b). From then on, these steps are repeated in the order of step a and step b. .
25はコンパレータであす、このコンパレータ25は、
フリップフロップ23aのQ出力端子の出力を否定入力
し、かつフリップフロップ23bのQ出力端子の出力を
肯定入力して、両者を比較することで両者間に補数関係
が成立しているか否かを判定するものである。このコン
パレータ25は、成立と判定したときその出力はローレ
ベルになり、不成立と判定したときにはその出力はノ・
イレペルになる。このハイレベルの信号が異常検出信号
となるものである。25 is a comparator, this comparator 25 is
By inputting the output of the Q output terminal of the flip-flop 23a as a negative input, and inputting the output of the Q output terminal of the flip-flop 23b as a positive input, and comparing the two, it is determined whether or not a complement relationship is established between the two. It is something to do. This comparator 25 outputs a low level when it determines that it is true, and outputs a low level when it determines that it does not hold true.
Become Ileperu. This high level signal becomes an abnormality detection signal.
26はフリップフロップで、コンパレータ25の出力は
、このフリップフロップ26のD入力端子に入力され、
同タロツク入力端子には書込み指令信号が入力されてい
る。これにより、コンパレータ25の出力がノ1イレベ
ルになったときには、書込み指令信号をタイミングとし
てフリップフロップ26のQ出力端子がハイレベルとな
って切換え信号(BU)が出力されるようになる。26 is a flip-flop, and the output of the comparator 25 is input to the D input terminal of this flip-flop 26.
A write command signal is input to the taro clock input terminal. As a result, when the output of the comparator 25 reaches the ``1'' level, the Q output terminal of the flip-flop 26 becomes a high level at the timing of the write command signal, and a switching signal (BU) is output.
27は切換え信号出力用のオアゲートで、1、両フリッ
プフロップ21.26からの切換え信号は、このオアゲ
ート27を介して切換スイッチSWに出力されるように
なっている。Reference numeral 27 denotes an OR gate for outputting a switching signal, and the switching signals from the flip-flops 21 and 26 are outputted to the changeover switch SW via this OR gate 27.
次に上記実施例の動作について説明する。Next, the operation of the above embodiment will be explained.
マイコン6bが正常動作状態にあるときには、このマイ
コン6bから所定範囲内の周期でアクセスデータが出力
されるため、カウンタ20は読出し指令信号及び書込み
指令信号によりリセットがかけられて、上記所定範囲内
の周期で初期化が繰返されるため、キャリーを出力する
に至らない。When the microcomputer 6b is in a normal operating state, the microcomputer 6b outputs access data at a cycle within a predetermined range. Therefore, the counter 20 is reset by the read command signal and the write command signal, and the access data is output within the predetermined range. Since the initialization is repeated periodically, it is not possible to output a carry.
また一方、シフトレジスタ23のフリップフロップ23
a、 23bにおけるデータも補数関係を保持するため
、コンパレータ25の出力はローレベルのままとなる。On the other hand, the flip-flop 23 of the shift register 23
Since the data in a and 23b also maintain a complement relationship, the output of the comparator 25 remains at a low level.
そして、マイコン6bのプログラム実行状態やコントロ
ールパス10、アドレスバス11に異常カ生り、、アド
レスデータ、読出し・書込み指令データが上配所定範囲
内の周期で出力されないようになると、カウンタ20が
カウントアツプし、キャリーを出力するようになる。よ
ってフリップフロップ21の出力がハイレベルとなり、
オアゲート27より切換え信号が出力されて、制御部が
サブに切換えられることとなる。If an abnormality occurs in the program execution state of the microcomputer 6b, the control path 10, or the address bus 11, and the address data and read/write command data are not output at a cycle within a predetermined range, the counter 20 starts counting. UP and outputs a carry. Therefore, the output of the flip-flop 21 becomes high level,
A switching signal is output from the OR gate 27, and the control section is switched to the sub.
また、データバス12に異常が生じると、フリップフロ
ップ23a、 23bのデータの補数関係が崩れるため
、コンパレータ25の出力がハイレベルとなり、フリッ
プフロップ26の出力がハイレベルとなって、オアゲー
ト27から切換え信号が出力されることとなる。したが
って、データバス12に異常が生じた場合も、制御部が
サブに切換えられるようになる。Furthermore, when an abnormality occurs in the data bus 12, the complementary relationship between the data in the flip-flops 23a and 23b is disrupted, so the output of the comparator 25 becomes high level, the output of the flip-flop 26 becomes high level, and switching is performed from the OR gate 27. A signal will be output. Therefore, even if an abnormality occurs in the data bus 12, the control section can be switched to the sub.
このように、上記実施例によれば、マイコン系監視用の
信号であるアドレスデータ、読出し・書込み指令データ
、書込み用データ及び読出しデータの授受をパスライン
を通じて行なうようにしたため、マイコン系と関係の無
いところの異常が原因で誤動作することを極力防止でき
る。In this way, according to the above embodiment, address data, read/write command data, write data, and read data, which are signals for monitoring the microcomputer system, are sent and received through the pass line. It is possible to prevent malfunctions due to abnormalities in absent areas as much as possible.
まり、コントロールバス10及ヒアドレスパス11を通
して出力されるアクセスデータの出力周期を監視し、か
つ、データバス12を通じて出力される各回の書込み用
データ相互間に設定した補数関係を監視するようにした
ため、マイコン6b本体の異常のみではなく、各パスラ
インでの異常も確実に検出される。In other words, the output cycle of the access data outputted through the control bus 10 and the here address path 11 is monitored, and the complement relationship set between each write data outputted through the data bus 12 is monitored. , not only abnormalities in the main body of the microcomputer 6b but also abnormalities in each pass line are reliably detected.
なお、上記実施例では、フリップフロップ23a123
bの各データ間に補数関係を持たせるようにしたが、そ
の特定関係としてよシ複雑な関係を持たせるようにすれ
ば、異常が生じているにもかかわらず誤って正しい関係
が保持されるようになることを防止できることとなる。Note that in the above embodiment, the flip-flop 23a123
We created a complementary relationship between each data in b, but if we create a more complex relationship as the specific relationship, the correct relationship will be erroneously maintained even though an abnormality has occurred. This will prevent this from happening.
発明の効果
本発明は上記実施例により明らかなように、マイコン監
視用の信号をマイコン系に属する各種パスラインを通じ
て出力するようにしたため、マイコン系とは関係無いと
ころの異常が原因で誤動作することを極力防止すること
ができ、検出動作の信頼性が向上するという効果を奏す
る。Effects of the Invention As is clear from the above embodiments, the present invention outputs microcomputer monitoring signals through various path lines belonging to the microcomputer system, so malfunctions may occur due to abnormalities unrelated to the microcomputer system. This has the effect that the detection operation can be prevented as much as possible, and the reliability of the detection operation is improved.
マタ、アドレスバス、コントロールバスヲ通シて出力さ
れるアドレスデータや書込み指令データの出力周期を監
視すると共に、データバスを通じて出力される各回の書
込み用データ相互間に成立すべき特定関係を監視するよ
うにしたので、マイコン本体の異常のみならず、各種パ
スラインでの異常も確実に検出できるようになり、検出
能力が向上するという効果をも奏する。Monitors the output cycle of address data and write command data output through the data bus, address bus, and control bus, as well as monitors the specific relationship that should be established between each write data output through the data bus. This makes it possible to reliably detect not only abnormalities in the microcomputer itself, but also abnormalities in various path lines, and has the effect of improving detection ability.
第1図は本発明に係るマイクロコンビーータ系の異常検
出装置を示すブロック図、第2図は同装置の入出力関係
を示すブロック図、第3図は同装置が組込まれた制御シ
ステムの概略を示すブロック図、第4図は従来の異常検
出装置における入出力関係を示すブロック図、第5図は
第4図に示す異常検出装置の構成を詳細に示すブロック
図である0
6b・・・マイコン、7・・・クロック発生部、8b・
・・異常検出部、9・・・アドレスデコーダ、10・・
・コントロールバス、11・・・アドレスバス、12・
・・データバス、20・・・カウンタ、21・・・フリ
ップフロップ、23・・・シフトレジスタ、25・・・
コンパレータ。
代理人の氏名 弁理士 中尾敏男ほか1名第4図
第5図Fig. 1 is a block diagram showing a microconbeater-based abnormality detection device according to the present invention, Fig. 2 is a block diagram showing the input/output relationship of the device, and Fig. 3 is a block diagram of a control system in which the device is incorporated. FIG. 4 is a block diagram showing the outline, FIG. 4 is a block diagram showing the input/output relationship in a conventional abnormality detection device, and FIG. 5 is a block diagram showing the configuration of the abnormality detection device shown in FIG. 4 in detail.・Microcomputer, 7...Clock generator, 8b・
... Abnormality detection unit, 9... Address decoder, 10...
・Control bus, 11...Address bus, 12・
...Data bus, 20...Counter, 21...Flip-flop, 23...Shift register, 25...
comparator. Name of agent: Patent attorney Toshio Nakao and one other person Figure 4 Figure 5
Claims (1)
内の周期で、アドレスバスを通じてアドレスデータを出
力すると同時に、コントロールバスを通じて書込み指令
データを出力するとともに、この書込み指令データの出
力毎にデータバスを通じて前回のものと特定関係にある
書込み用データを出力する監視用データ発生手段と、前
記アドレスデータと前記書込み指令データにより書込み
指令信号を発生するアドレスデコーダと、計時内容が前
記所定範囲内の周期から外れたとき、これを前記マイク
ロコンピュータ系の異常として検出し、その異常検出信
号を出力するとともに、前記書込み指令信号によりその
計時内容が初期化されるタイマと、前記書込み指令信号
を受けると前記書込み用データを一のレジスタに取込む
と同時に、この一のレジスタに格納されていたデータを
他のレジスタへシフトするシフトレジスタと、前記一の
レジスタにおけるデータと前記他のレジスタにおけるデ
ータとの間に前記特定関係が成立しているか否かを判定
し、成立していないときには、これを前記マイクロコン
ピュータ系の異常として検出し、その異常検出信号を出
力する判定回路とを備えたマイクロコンピュータ系の異
常検出装置。Consists of a part of a microcomputer system, it outputs address data through the address bus at a cycle within a predetermined range, and at the same time outputs write command data through the control bus. monitoring data generating means for outputting write data having a specific relationship with the data; an address decoder for generating a write command signal based on the address data and the write command data; When this happens, it is detected as an abnormality in the microcomputer system and outputs the abnormality detection signal, and a timer whose timing is initialized by the write command signal, and a timer whose timing is initialized by the write command signal, A shift register that takes in data into one register and simultaneously shifts the data stored in this one register to another register; Abnormality detection for a microcomputer system, comprising: a determination circuit that determines whether a specific relationship is established, and when it is not established, detects this as an abnormality in the microcomputer system and outputs the abnormality detection signal. Device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63024233A JPH0776934B2 (en) | 1988-02-04 | 1988-02-04 | Microcomputer-based abnormality detection device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63024233A JPH0776934B2 (en) | 1988-02-04 | 1988-02-04 | Microcomputer-based abnormality detection device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01199242A true JPH01199242A (en) | 1989-08-10 |
| JPH0776934B2 JPH0776934B2 (en) | 1995-08-16 |
Family
ID=12132538
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63024233A Expired - Fee Related JPH0776934B2 (en) | 1988-02-04 | 1988-02-04 | Microcomputer-based abnormality detection device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0776934B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002288010A (en) * | 2001-03-28 | 2002-10-04 | Toshiba Corp | Monitoring device |
-
1988
- 1988-02-04 JP JP63024233A patent/JPH0776934B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002288010A (en) * | 2001-03-28 | 2002-10-04 | Toshiba Corp | Monitoring device |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0776934B2 (en) | 1995-08-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH01199242A (en) | Microcomputer system abnormality detection device | |
| JP2677084B2 (en) | Alternating signal circuit with error detection function | |
| JP3609601B2 (en) | Timer circuit with self-diagnosis function | |
| KR100207481B1 (en) | Detecting time adjustment equipment to detect data during desire period | |
| JP3669750B2 (en) | Microcomputer | |
| JP2587881B2 (en) | Image forming device | |
| JP2713222B2 (en) | Memory monitoring device | |
| JPH0426915Y2 (en) | ||
| JPH0573360A (en) | Watchdog timer | |
| JPH083078Y2 (en) | AIS transmission circuit in digital multiplexer | |
| JP3757407B2 (en) | Control device | |
| JP2591304B2 (en) | Memory monitoring circuit | |
| SU1456996A1 (en) | Device for monitoring memory units | |
| JP3019336B2 (en) | Microprocessor development support equipment | |
| JPS63101938A (en) | Device for preventing microprocessor from runaway | |
| JPS63292342A (en) | Error detecting circuit | |
| JPH09212201A (en) | Control circuit for production equipment | |
| JPH04115644A (en) | Memory monitor circuit | |
| JPH0797367B2 (en) | 1-chip microcomputer | |
| JPH03223940A (en) | Data memory monitoring circuit | |
| JPH029251A (en) | Framing error status circuit | |
| JPS639691B2 (en) | ||
| JPH0934751A (en) | Watchdog timer circuit for microcomputer | |
| JPH02176947A (en) | Cpu monitoring device | |
| JPH0410036A (en) | Monitor circuit for arithmetic processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |