JPH01124035A - Output data control device - Google Patents

Output data control device

Info

Publication number
JPH01124035A
JPH01124035A JP62283498A JP28349887A JPH01124035A JP H01124035 A JPH01124035 A JP H01124035A JP 62283498 A JP62283498 A JP 62283498A JP 28349887 A JP28349887 A JP 28349887A JP H01124035 A JPH01124035 A JP H01124035A
Authority
JP
Japan
Prior art keywords
output
microcomputer
circuit
latch circuit
abnormality
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
JP62283498A
Other languages
Japanese (ja)
Inventor
Osamu Nishiguchi
西口 統
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.)
Shimadzu Corp
Original Assignee
Shimadzu Corp
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 Shimadzu Corp filed Critical Shimadzu Corp
Priority to JP62283498A priority Critical patent/JPH01124035A/en
Publication of JPH01124035A publication Critical patent/JPH01124035A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To surely hold an output signal obtained immediately before the generation of abnormality even at the time of generating runaway by providing the title device with the 1st and 2nd latch circuits and controlling the 2nd latch circuit by an external abnormality diagnosis output signal. CONSTITUTION:A data output circuit is constituted of a microcomputer 10 and the 1st and 2nd latch circuits 16, 18. The 2nd latch circuit 18 for holding an output signal from an operation part based upon control algorithm by means of a signal other than an output instruction from the microcomputer 10 generates no output until a signal based upon a self-diagnosis function 20 indicates a normal state even if output instructions due to the runaway of the microcomputer 10 are repeatedly applied. Consequently, the output signal generated immediately before the generation of abnormality can be surely held.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、マイクロコンピュータの周辺回路の分野で利
用される。
DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention is used in the field of peripheral circuits of microcomputers.

本発明は、出力データ制御装置に関し、詳しくはコンピ
ュータの異常時にその発生前の出力データを保持するた
めの出力データ制御装置に関し、プロセス制御装置、シ
ーケンスコントローラなどに使用される。
The present invention relates to an output data control device, and more particularly to an output data control device for holding output data before the occurrence of an abnormality in a computer, and is used in a process control device, a sequence controller, etc.

(ロ)従来技術 マイクロコンピュータからなる制御装置に異常が発生し
た場合、その制御装置の出力データを異常が発生する直
前の出力データとして保持することが、制御御対象に悪
影響を与えず、制御対象の安全上必要である。
(b) Conventional technology When an abnormality occurs in a control device consisting of a microcomputer, it is possible to retain the output data of the control device as the output data immediately before the abnormality occurred, so that the control object is not adversely affected. It is necessary for safety reasons.

H近のマイクロコンピュータ等を用いた制御装置では、
自身の異常を自分で検知する自己診断機能を有しており
、例えば第5図のような構成によって、異常発生時には
制御アルゴリズムによる演算結果をラッチ回路12(L
)により取り込まないようにして異常発生直前の出力を
保持するようにしている。
In the control device using a microcomputer etc. near H,
It has a self-diagnosis function to detect abnormalities in itself. For example, with the configuration shown in Fig. 5, when an abnormality occurs, the calculation results by the control algorithm are sent to the latch circuit 12 (L).
) so that the output immediately before the error occurs is retained.

なお、この第5図において、10はマイクロコンピュー
タ、20は自己診断機能回路、14はアンド回路である
。 自己診断機能回路20の出力信号にπ1.は正常の
場合にはH5異常の場合にはしてある。
In FIG. 5, 10 is a microcomputer, 20 is a self-diagnosis function circuit, and 14 is an AND circuit. The output signal of the self-diagnosis function circuit 20 is π1. is set for normal cases and for H5 abnormal cases.

従って、異常の場合には、ラッチ信号はLであリ、ラッ
チ回路120入カデータは出力データとならず、ラッチ
信号がLになる前の入力データが保持され、出力される
Therefore, in the case of an abnormality, the latch signal remains at L, the input data of the latch circuit 120 does not become output data, and the input data before the latch signal becomes L is held and output.

ラッチ信号がHとなったとき、ラッチ回路120入カデ
ータが取り込まれ、そのまま出力データとなる。 以下
において、ラッチ信号の制御論理はこのように解される
When the latch signal becomes H, the input data of the latch circuit 120 is taken in and becomes the output data as it is. In the following, the control logic of the latch signal will be understood in this way.

(ハ)発明が解決しようとする問題点 ところが、第5図に示すような従来例では、不充分であ
る。 例えばマイクロコンピュータの動作が暴走した場
合には、自己診断機能の1つとしてウォッチドッグタイ
マ等の監視機能によって異常が検出されるまでに、何回
も異常な(制御アルゴリズムに基づかない)信号が出力
されることになり、異常発生直前の出力信号の保持がで
きていない。
(c) Problems to be Solved by the Invention However, the conventional example shown in FIG. 5 is insufficient. For example, if the operation of a microcomputer goes out of control, an abnormal signal (not based on the control algorithm) will be output many times before the abnormality is detected by a monitoring function such as a watchdog timer as one of the self-diagnosis functions. As a result, the output signal immediately before the abnormality occurrence cannot be maintained.

このことは、第6図と第7図とにより説明される。 第
6図は正常な動作を示している。 演算結果出力のとこ
ろでマイクロコンピュータから出力命令Hが出ると共に
、他方WDT (ウォッチドッグタイマ)は、正常時で
はrWDTリセット」でサンプリング周期毎にリセット
されるので、自己診断機能回路20の出力ABN、はH
のままとなり、アンド回路14によりラッチ信号はHと
なる。
This is illustrated by FIGS. 6 and 7. Figure 6 shows normal operation. Output command H is issued from the microcomputer at the output of the calculation result, and the WDT (watchdog timer) is reset at every sampling period with "rWDT reset" in normal operation, so the output ABN of the self-diagnosis function circuit 20 is H
The latch signal remains unchanged, and the latch signal becomes H by the AND circuit 14.

第7図はマイクロコンピュータが暴走し、出力を繰り返
している例を示している。 異常時ないし暴走時ではW
DTリセット動作はないが、そのリセットがかかる時点
で暴走と判断され、自己診断機能回路20から出力信号
γπ玉、はLとなる。
FIG. 7 shows an example where the microcomputer goes out of control and outputs repeatedly. W in case of abnormality or runaway
Although there is no DT reset operation, at the point when the reset is applied, it is determined that a runaway has occurred, and the output signal γπ ball from the self-diagnosis function circuit 20 becomes L.

従って、ラッチ回路12(L)は出力(b)又は出力(
C)を保持することになり、異常発生直前の出力、つま
り1サンプリング周期前の出力を保持しない。
Therefore, the latch circuit 12 (L) outputs (b) or (
C) is held, and the output immediately before the abnormality occurs, that is, the output one sampling period before, is not held.

本発明の目的は、マイクロコンピュータの動作中に暴走
が起っても確実に異常発生直前の出力信号を保持する、
出力データ制御装置を提供することである。
An object of the present invention is to reliably maintain the output signal immediately before the abnormality occurs even if a runaway occurs during the operation of the microcomputer.
An object of the present invention is to provide an output data control device.

(ニ)問題点を解決するための手段 前記した目的は、マイクロコンピュータと、マイクロコ
ンピュータからのデータを第1のラッチ回路と第2のラ
ッチ回路とを介して出力させるデータ出力回路と、第1
のラッチ回路の制御を少なくともマイクロコンピュータ
の出力命令により行なう第1制御回路と、第2のラッチ
回路の制御をウォッチドッグタイマなどの外部異常診断
出力信号により行なう第2制御回路とを具備することに
より、達成される。
(d) Means for Solving Problems The above object is to provide a microcomputer, a data output circuit that outputs data from the microcomputer via a first latch circuit and a second latch circuit, and a first latch circuit.
A first control circuit that controls the latch circuit by at least an output command from a microcomputer, and a second control circuit that controls the second latch circuit by an external abnormality diagnosis output signal such as a watchdog timer. , achieved.

(ホ)作用 データ出力回路に、制御アルゴリズムに基づく演算部か
らの出力信号をマイクロコンピュータからの出力命令以
外の信号で保持する第2のラッチ回路を設け、マイクロ
コンピュータ (ソフトウェア)の暴走による出力命令
を何回受けても、自己診断機能(ウォッチドッグタイマ
等)による信号が正常を示さない限り外部に出力しない
ようにする。 このようにして、異常発生時には確実に
異常発生直前の出力信号を保持する。
(E) A second latch circuit is provided in the action data output circuit to hold the output signal from the arithmetic unit based on the control algorithm as a signal other than the output command from the microcomputer, and the output command is generated when the microcomputer (software) runs out of control. No matter how many times it is received, unless the signal from the self-diagnosis function (watchdog timer, etc.) indicates normality, it will not be output to the outside. In this way, when an abnormality occurs, the output signal immediately before the abnormality occurs is reliably maintained.

(へ)実施例 本発明の好適な実施例は、図面の第1図から第4図につ
いて説明される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described with reference to FIGS. 1 to 4 of the drawings.

第1図と第2図は各実施例を示した回路ブロック図であ
る。
FIGS. 1 and 2 are circuit block diagrams showing each embodiment.

16は第1のラッチ回路、18は第2のラッチ回路、2
2と24はアンド回路である。
16 is a first latch circuit, 18 is a second latch circuit, 2
2 and 24 are AND circuits.

マイクロコンピュータ10とラッチ回路16.18によ
りデータ出力回路が構成される。
The microcomputer 10 and latch circuits 16 and 18 constitute a data output circuit.

第1図による実施例の動作は次の通りである。The operation of the embodiment according to FIG. 1 is as follows.

正常時、つまり自己診断機能回路20によって異常が検
出されていない場合は第3図に示される。
A normal state, that is, a case where no abnormality is detected by the self-diagnosis function circuit 20, is shown in FIG.

a、演算結果がマイクロコンピュータ10の出力命令(
そのままラッチ回路16(Ll)に対するラッチ信号「
HJとなって)によってデータはラッチ回路16(Ll
)に取り込まれる。
a. The calculation result is the output command of the microcomputer 10 (
The latch signal "
HJ), the data is transferred to the latch circuit 16 (Ll
).

b0診断出出力器ABN、はrH,であるため、WDT
リセット信号がそのままラッチ回路18 (L2)に対
するラッチ信号’HJとなり、その立上りエツジによっ
てラッチ回路16(Ll)にラッチされた演算結果は、
ラッチ回路18(L2)にラッチされる。
b0 diagnostic output device ABN, is rH, so WDT
The reset signal directly becomes the latch signal 'HJ for the latch circuit 18 (L2), and the operation result latched by the latch circuit 16 (Ll) by its rising edge is as follows.
It is latched by the latch circuit 18 (L2).

すなわち、演算部からの演算結果がそのまま出力される
That is, the calculation results from the calculation section are output as they are.

異常発生時は第4図に例示される。An example of when an abnormality occurs is shown in FIG.

マイクロコンピュータ10の暴走以外の異常が自己診断
回路20によって検出された場合、その出力ABN、は
’LJとなるため、ラッチ回路18  (L2)に対す
るラッチ信号rH,は出ない。
If an abnormality other than runaway of the microcomputer 10 is detected by the self-diagnosis circuit 20, its output ABN becomes 'LJ, so that the latch signal rH, to the latch circuit 18 (L2) is not output.

VDTリセット信号’HJが出たとしても、アンド回路
22によってラッチ信号’HJは出ないので、異常発生
直前の(すなわち1サンプリング周期前の)出力がラッ
チ回路18(L2)にラッチされたままとなる。
Even if the VDT reset signal 'HJ is output, the latch signal 'HJ is not output by the AND circuit 22, so the output immediately before the abnormality occurs (that is, one sampling period before) remains latched in the latch circuit 18 (L2). Become.

また、マイクロコンピュータが暴走して出力命令がサン
プリング周期内に何回も出た場合には、a、マイクロコ
ンピュータの出力命令によって演算部からの異常なデー
タがラッチ回路16(Ll)に何回もラッチされる。
In addition, if the microcomputer goes out of control and output commands are issued many times within the sampling period, a. Latched.

b、暴走によって(WDTリセット動作が起らないこと
によって)自己診断回路の出力信号ππ玉、がrL、と
なるのは、時点taであるが、WDTリセット信号がマ
イクロコンピュータから出力されないため、上記a、で
ラッチ回路16(LL)にラッチされた異常なデータは
、ラッチ回路18(L2)にラッチされず、そのラッチ
回路18(L2)には異常発生直前の(すなわち1サン
プリング周期前の)出力がラッチされたままとなる。
b. Due to runaway (WDT reset operation does not occur), the output signal ππ ball of the self-diagnosis circuit becomes rL at time ta, but since the WDT reset signal is not output from the microcomputer, the above The abnormal data latched by the latch circuit 16 (LL) in step a is not latched by the latch circuit 18 (L2), and the abnormal data immediately before the abnormality occurs (that is, one sampling period before) is not latched by the latch circuit 18 (L2). The output remains latched.

このようにして異常発生時には異常発生直前の出力が保
持される。
In this way, when an abnormality occurs, the output immediately before the abnormality occurs is held.

さらに、第2図の実施例は、自己診断回路によって異常
が検出された場合、直ちにマイクロコンピュータが動作
を停止する(WDTリセットを出さない)ような構成が
前提となっている場合の構成であり、異常が検出される
と、WDTリセットが出ないのでラッチ回IM1B(L
2)は新しくデータを取り込まず、異常発生直前の(す
なわち、1サンプリング周期前の)出力がラッチされた
ままとなる。
Furthermore, the embodiment shown in FIG. 2 is a configuration in which the microcomputer immediately stops operating (does not issue a WDT reset) when an abnormality is detected by the self-diagnosis circuit. , If an abnormality is detected, the WDT reset will not be issued, so the latch circuit IM1B (L
In case 2), no new data is taken in, and the output immediately before the occurrence of the abnormality (that is, one sampling period before) remains latched.

(ト)効果 マイクロコンピュータ (ソフトウェア)の暴走によっ
て異常な出力を出そうとしても、確実に異常発生直前の
出力信号が保持され、制御対象に悪影響を与えない。
(g) Effects Even if the microcomputer (software) tries to output an abnormal output due to runaway, the output signal immediately before the abnormality occurs will be reliably maintained and will not adversely affect the controlled object.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の1実施例を示した回路例ブロック図、
第2図は他の実施例を示した同様図、第3図は第1図に
よる正常時タイムチャート例示図、第4図は異常時タイ
ムチャート例・来園、第5図は従来例の回路ブロック図
、第6図はその正常時タイムチャート例示図、第7図は
異常時のタイムチャート例示図である。 10はマイクロコンピュータ、12と16と18はラッ
チ回路、20は自己診断回路、22と24はアンド回路
である。 特許出願人 株式会社 島津製作所 ?
FIG. 1 is a block diagram of a circuit example showing one embodiment of the present invention.
Fig. 2 is a similar diagram showing another embodiment, Fig. 3 is an illustrative diagram of a normal time chart based on Fig. 1, Fig. 4 is an example of an abnormal time chart when visiting the park, and Fig. 5 is a circuit of a conventional example. The block diagram, FIG. 6, is an example of a time chart in a normal state, and FIG. 7 is an example of a time chart in an abnormal state. 10 is a microcomputer, 12, 16 and 18 are latch circuits, 20 is a self-diagnosis circuit, and 22 and 24 are AND circuits. Patent applicant: Shimadzu Corporation?

Claims (1)

【特許請求の範囲】[Claims]  マイクロコンピュータと、マイクロコンピュータから
のデータを第1のラッチ回路と第2のラッチ回路とを介
して出力させるデータ出力回路と、第1のラッチ回路の
制御を少なくともマイクロコンピュータの出力命令によ
り行なう第1制御回路と、第2のラッチ回路の制御をウ
ォッチドッグタイマなどの外部異常診断出力信号により
行なう第2制御回路とを具備していることを特徴とする
、出力データ制御装置。
a microcomputer, a data output circuit that outputs data from the microcomputer via a first latch circuit and a second latch circuit, and a first latch circuit that controls the first latch circuit based on at least an output command from the microcomputer. An output data control device comprising: a control circuit; and a second control circuit that controls a second latch circuit using an external abnormality diagnosis output signal such as a watchdog timer.
JP62283498A 1987-11-10 1987-11-10 Output data control device Pending JPH01124035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62283498A JPH01124035A (en) 1987-11-10 1987-11-10 Output data control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62283498A JPH01124035A (en) 1987-11-10 1987-11-10 Output data control device

Publications (1)

Publication Number Publication Date
JPH01124035A true JPH01124035A (en) 1989-05-16

Family

ID=17666323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62283498A Pending JPH01124035A (en) 1987-11-10 1987-11-10 Output data control device

Country Status (1)

Country Link
JP (1) JPH01124035A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100542316B1 (en) * 1999-12-24 2006-01-12 비오이 하이디스 테크놀로지 주식회사 Error data release circuit
US8803871B2 (en) 2007-01-17 2014-08-12 Samsung Display Co., Ltd. Display device, driving method thereof, and signal controller therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100542316B1 (en) * 1999-12-24 2006-01-12 비오이 하이디스 테크놀로지 주식회사 Error data release circuit
US8803871B2 (en) 2007-01-17 2014-08-12 Samsung Display Co., Ltd. Display device, driving method thereof, and signal controller therefor

Similar Documents

Publication Publication Date Title
JPH01124035A (en) Output data control device
JPH06329042A (en) Rear wheel steering system
JP2007011639A (en) Input/output control apparatus, information control apparatus, input/output control method, and information control method
JPH06324721A (en) Method for detecting falling-off of connection unit
JPH0395636A (en) Diagnostic system for fail-safe circuit
JPH03222020A (en) Reset system for multi-micro processor system
JPH0664569B2 (en) Micro program loading method
JPH0581065A (en) Self diagnostic method for programmable controller system
JPH0268606A (en) Cnc diagnosing system
JPS62151943A (en) Test system for microcomputer
JPS61145650A (en) Test system of information processing unit
JPH04105151A (en) Input/output controller
JPH0734296B2 (en) Hard disk control circuit
JPH0540510A (en) Controller
JPS6228841A (en) Input/output processor
JPS62279430A (en) Information processor
JPS61145617A (en) Power supply disconnection circuit
JPH04152435A (en) Maintenance diagnostic system
JPH0251748A (en) Microcomputer
JPH0458339A (en) Control microprocessor system
JPH0155498B2 (en)
JPS6052456B2 (en) Error control method
JPS62245456A (en) Time monitor and control system
JPS6249746A (en) Method for controlling transmission control procedure
JPH0363731A (en) System fault processing method