JPS6081664A - Microcomputer system - Google Patents

Microcomputer system

Info

Publication number
JPS6081664A
JPS6081664A JP58190368A JP19036883A JPS6081664A JP S6081664 A JPS6081664 A JP S6081664A JP 58190368 A JP58190368 A JP 58190368A JP 19036883 A JP19036883 A JP 19036883A JP S6081664 A JPS6081664 A JP S6081664A
Authority
JP
Japan
Prior art keywords
memory
circuit
signal
protect
gate
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
Application number
JP58190368A
Other languages
Japanese (ja)
Other versions
JPH0332822B2 (en
Inventor
Yoshio Sasajima
笹島 喜雄
Takeshi Kawaguchi
剛 川口
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.)
Nippon Signal Co Ltd
Original Assignee
Nippon Signal Co 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 Nippon Signal Co Ltd filed Critical Nippon Signal Co Ltd
Priority to JP58190368A priority Critical patent/JPS6081664A/en
Publication of JPS6081664A publication Critical patent/JPS6081664A/en
Publication of JPH0332822B2 publication Critical patent/JPH0332822B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To prevent malfunction due to the miss of a protection error by writing the protection error periodically and checking the detection of the protec- tion error to monitor a protecting circuit. CONSTITUTION:At data writing to an RAM2, a memory writing signal M/W of logic ''1'' is inputted from a CPU1 to an AND gate 42 through a signal line 13 to check a protection area selecting circuit 41. If the area is a write disabled area, the signal M/W is turned to logic ''0'' and a write enable (WE) signal indicating write enable state is not generated from the gate 42 because an input condition is not formed in the gate 42. However, the input condition is formed in an AND gate 43, an interruption signal is generated on the output side and a protection error is detected. The interruption signal is inputted to the CPU1 and whether the protecting circuit is in checking or not is discriminated. If the discriminated result is NO, the memory protecting circuit 4 is decided as abnormal status because the interruption signal is generated in spite of no checking.

Description

【発明の詳細な説明】 産業上の利用分野 本発明ハ、マイクロコンピュータシステム1こ関し、更
に詳しくはその故障検知技術に係るものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a microcomputer system 1, and more particularly to a failure detection technique thereof.

従来技術とその問題点 マイクロコンピュータシステムでは、ランダム、アクセ
ス メモリ(以下rRAMJと称する)に記憶された情
報の内、重要な情報は書換えられないように、メモリ、
プロテクト回路を設けることかある。
Prior Art and Its Problems In microcomputer systems, random access memory (rRAMJ) is used to prevent important information from being rewritten.
A protection circuit may be provided.

しかしながら、メモリ、プロテクト回路を設けただけで
は、このメモリ、プロテクト回路が故障した場合、シス
テムはそれを検出することができない。従って、メモリ
、プロテクト回路が故障した後にプロテクトエラーが発
生した場合には、その異畠を検出することができず、シ
ステムはメモリ プロテクト回路が正常であると誤認し
て動作し、二重故障へと遷移してしまうと言う問題かあ
った。
However, simply by providing a memory and a protection circuit, if the memory and protection circuit fail, the system cannot detect it. Therefore, if a protect error occurs after the memory or protect circuit fails, the abnormality cannot be detected, and the system mistakenly assumes that the memory protect circuit is normal and operates, leading to a double failure. There was a problem with the transition.

本発明の目的 本発明は上述する従来からの問題点を解決し、メモリ、
プロテクト回路の機能を定期的に検査して、プロテクト
エラーの見進しによる誤動作を防止し、二重故障への遷
移を阻止し得るようにしたマイクロコンピュータシステ
ムを提供することを目的とする。
OBJECTS OF THE INVENTION The present invention solves the above-mentioned conventional problems, and
It is an object of the present invention to provide a microcomputer system in which the function of a protect circuit is periodically inspected to prevent malfunction due to detection of a protect error and to prevent transition to a double failure.

本発明の構成 上記目的を達成するため、本発明は、メモリの記憶情報
の書換えを阻止するメモリ、プロテクト回路を有するマ
イクロコンピュータシステムにおいて、予め、プロテク
トエラーとなるデータを1没定しておき、定期的にプロ
テクトエラーを書込み、このプロテクトエラーが検出さ
れることを確認することにより、前記メモリ、プロテク
ト回路の正常、異常を監視することを特徴とする。
Structure of the Present Invention In order to achieve the above object, the present invention provides a microcomputer system having a memory and a protect circuit that prevents rewriting of information stored in the memory, in which data that would cause a protect error is previously destroyed. The present invention is characterized in that the normality or abnormality of the memory and the protection circuit is monitored by periodically writing a protection error and confirming that the protection error is detected.

実施例 第1図は本発明に係るマイクロコンピュータシステムの
ブロック図である。図において、1はマイクロコンピュ
ータ(以下rcPUJと称する)、2はRAM、3はリ
ード、オンリー、メモリ(以下rROMJと称する)で
ある。前記RAM2はアドレスを分割していくつかのエ
リアに分け、各エリア単位毎にプロテクトの設定/解除
を可能にしである。
Embodiment FIG. 1 is a block diagram of a microcomputer system according to the present invention. In the figure, 1 is a microcomputer (hereinafter referred to as rcPUJ), 2 is a RAM, and 3 is a read-only memory (hereinafter referred to as rROMJ). The RAM 2 divides addresses into several areas, and allows protection to be set/cancelled for each area.

4はRAM2のプロテクト、エリアに記憶されている情
報の書換えを阻止するメモリ、プロテクト回路である。
4 is a memory and a protect circuit that protects the RAM 2 and prevents the information stored in the area from being rewritten.

該メモリ、プロテクト回路4はプロテクト指示用ラッチ
回路40、プロテクトエリア選択回路41、アンドゲー
ト42及び43、インバータ44等を備えて構成されて
いる。前記プロテクト指示用ラッチ回路40はRAM2
の各エリア単位のプロテクトの設定/解除を記憶してお
く回路であり、CPUIからのデータを受けることによ
りその内容を換えることができる。また前記プロテクト
エリア選択回路41はプロテクト指示用ラッチ回路40
より与えられるプロテクト指示信号と、CPUIから与
えられるアドレス信号とより、プロテクトエリアを選択
し、そのエリアが書込み可能であれば論理「1」を出力
する。
The memory and protect circuit 4 includes a protect instruction latch circuit 40, a protect area selection circuit 41, AND gates 42 and 43, an inverter 44, and the like. The protection instruction latch circuit 40 is RAM2.
This is a circuit that stores protection setting/cancellation for each area, and its contents can be changed by receiving data from the CPUI. The protect area selection circuit 41 also includes a protect instruction latch circuit 40.
A protect area is selected based on a protect instruction signal given by the CPU and an address signal given from the CPU, and if the area is writable, a logic "1" is output.

5はトランス結合型交流増幅回路、6は整流回路、7は
継電器、71はその接点、8は電源である。9はアドレ
スバス、lOはデータバス、11は割込み信号線である
5 is a transformer-coupled AC amplifier circuit, 6 is a rectifier circuit, 7 is a relay, 71 is a contact thereof, and 8 is a power source. 9 is an address bus, IO is a data bus, and 11 is an interrupt signal line.

次に第2図(a)及υ(+))のフローチャートを参照
して動作を説明する。まず、ソフトウェアに従って、通
常のプロセス処理とメモリ、プロテクト回路4の故障チ
ェックとが一定の時間間隔で定期的に交互に行なわれる
。そして、通常のプロセス処理が終了すると、第3図(
a)に示す如く、ソフトウェアがメモリ、プロテクト回
路4のチェツク中となる。CPUIには、予め、プロテ
クトエラーとなるデータが設定されており、ソフトウェ
アがメモリ、プロテクト回路4のチェック中になると、
このデータは、データバス10を通して、定期的にプロ
テクト指示用ラッチ回路40に書込まれる。プロテクト
エリア選択回路41ではCPUIからアドレスバス9を
通して与えられるアドレス信号と、プロテクト指示用ラ
ンチ回路40より与えられたプロテクト指示信号とより
、RAM2のプロテクトエリアを選択する。そして、選
択されたエリアが書込みH(能であれば、信号線12に
論理「1」が出力され、アンドゲート42及びイン/ヘ
ータ44を通7してアントケート43に入力される。
Next, the operation will be explained with reference to the flowcharts in FIG. 2(a) and υ(+)). First, according to the software, normal process processing and failure checking of the memory and protection circuit 4 are periodically and alternately performed at fixed time intervals. Then, when the normal process is completed, as shown in Figure 3 (
As shown in a), the software is checking the memory and protection circuit 4. Data that will cause a protect error is preset in the CPUI, and when the software is checking the memory and protect circuit 4,
This data is periodically written to the protect instruction latch circuit 40 through the data bus 10. The protect area selection circuit 41 selects the protect area of the RAM 2 based on the address signal applied from the CPUI via the address bus 9 and the protect instruction signal applied from the protect instruction launch circuit 40. Then, if the selected area is writeable (H), a logic "1" is output to the signal line 12, and is input to the anchor 43 through the AND gate 42 and the input/hater 44.

一方、RAM2に対するデータの書込みに当って、CP
TJlから信号線13を通してアンドゲート42に論理
rlJのメモリ/書込信号(以下rM/W信号」と称す
る)か入力され、前記プロテクトエリア選択回路41の
チェックが行なわれる。ここで、プロテクトエリア選択
回路42で選択されたエリアが書込み可能であれば、前
述した如く、プロテクトエリア選択回路42から信号線
12に論理rlJの信号が出力されるから、アンドゲー
ト42の入力条件が調い、アンドゲート42から信号線
14を通してRAM2に書込可能を意味するWE倍信号
人力される。なお、論理rlJ(7)M/W信号はアン
ドケート43にも入力されるが、アンドゲート43の前
にインへ−夕44が接続されているので、アンドゲート
43の出力は論理「0」である。
On the other hand, when writing data to RAM2, CP
A logic rlJ memory/write signal (hereinafter referred to as rM/W signal) is input from TJl to AND gate 42 through signal line 13, and the protected area selection circuit 41 is checked. Here, if the area selected by the protect area selection circuit 42 is writable, the logic rlJ signal is output from the protect area selection circuit 42 to the signal line 12 as described above. is set, and a WE double signal is input from the AND gate 42 through the signal line 14, which means that writing is possible in the RAM 2. Note that the logic rlJ(7) M/W signal is also input to the AND gate 43, but since the input 44 is connected before the AND gate 43, the output of the AND gate 43 is logic "0". It is.

ところか書込不可能であると、CPtJlから信号線1
3を通してアンドゲート42に与えられるM/W信号が
論理「0」となり、アントゲート42側では入力条件が
調わないのでWE@号は発生しないが、アントゲート4
3では入力条件か調い、アントゲート43の出力側に割
込み信号が発生し、プロテクトエラーか検出される。こ
の割込み信号は信号線11を通してCPUIに入力され
、第3図(b)のフローチャー1・に示すように、メモ
リ、プロテクト回路チェック中か否かが判定される。メ
モリ、プロテクト回路チェック中であるか否かはソフト
ウェアによって判定できる。その結果がrYESJであ
るときは、メモリ、プロテクト回路チェック処理を解除
し、次のプロセス処理用ソフトウェアへと移行する。
However, if writing is not possible, signal line 1 is sent from CPtJl.
The M/W signal applied to the AND gate 42 through the AND gate 3 becomes logic "0", and the input condition is not correct on the ant gate 42 side, so the WE@ signal is not generated.
In step 3, the input conditions are checked, an interrupt signal is generated on the output side of the ant gate 43, and a protect error is detected. This interrupt signal is input to the CPUI through the signal line 11, and as shown in flowchart 1 of FIG. 3(b), it is determined whether or not the memory and protection circuits are being checked. Software can determine whether or not the memory and protection circuits are being checked. When the result is rYESJ, the memory and protection circuit check processing is canceled and the process moves to the next process processing software.

一方、前記判定の結果が「NO」であるときは、メモリ
、プロテクト回路チェック中でないにも拘わらず、割込
み信号が発生したのであるから、メモリ、プロテクト回
路4の異常と判定し、停止命令を実行させる。
On the other hand, if the result of the above judgment is "NO", since the interrupt signal was generated even though the memory and protection circuit were not being checked, it is judged that the memory and protection circuit 4 are abnormal, and a stop command is issued. Let it run.

上述の如く、メモリ、プロテクト回路4が正常であれば
、通常のプロセス処理とメモリ、プロテクト回路チェッ
ク処理とが一定の時間間隔で定期的に行なわれ、メモリ
、プロテクト回路チェック処理の度毎に割込み信号が発
生する。従って、メモリ、プロテクト回路4の出力はパ
ルス列となり、トランス結合型交流増幅回路5で増幅□
された交流信号が整流回路6に入力され、整流回路6か
ら整流出力が得られるから、継電器7が扛−ヒレ、電源
8に直列に挿入接続した接点71が閉じ、CPUIには
f#、続して電力が供給される。
As mentioned above, if the memory and protection circuit 4 are normal, normal process processing and memory and protection circuit check processing are performed periodically at fixed time intervals, and an interrupt is generated every time the memory and protection circuit check processing is performed. A signal is generated. Therefore, the output of the memory and protection circuit 4 becomes a pulse train, which is amplified by the transformer-coupled AC amplifier circuit 5.
The AC signal is input to the rectifier circuit 6, and a rectified output is obtained from the rectifier circuit 6. Therefore, the relay 7 is closed, and the contact 71 inserted and connected in series to the power supply 8 is closed, and the CPUI receives f# and the connection. power is supplied.

一方、メモリ、プロテクト回路4が故障したため、プロ
テクトエラーか検出できなかった場合は、割込み信号が
発生せず、メモリ、プロテクト回路4の出力はパルス列
とはならないから、トランス結合型増幅器5の出力は一
定の直流的なレベルになるかまたは出力なしとなる。ま
た、ソフトウェアに従って停止命令が実行された場合も
メモリ、プロテクト回路4の出力はパルス列とはならな
い。従って、これらの場合には、整流回路6からは整波
出力が得られず、継電器7が落下するから、その接点7
1が開き、CPUIに対する電源供給が遮断され、CP
UIは異常動作を行なわずに停止する。
On the other hand, if a protect error cannot be detected because the memory or protect circuit 4 has failed, no interrupt signal is generated and the output of the memory or protect circuit 4 does not become a pulse train, so the output of the transformer-coupled amplifier 5 is A constant DC level or no output. Further, even when a stop command is executed according to software, the output of the memory and protection circuit 4 does not become a pulse train. Therefore, in these cases, a rectified wave output cannot be obtained from the rectifier circuit 6 and the relay 7 falls, so that the contact 7
1 opens, the power supply to the CPUI is cut off, and the
The UI stops without performing any abnormal operations.

本発明の効果 以」二連へたように、本発明は、メモリの記憶情報の書
換えを阻止するメモリ、プロテクト回路を有するマイク
ロコンピュータシステムに゛おいて、予め、プロテクト
エラーとなるデータを設定しておき、定期的にプロテク
トエラーを書込み。
Effects of the Invention As stated in the second series, the present invention provides a method for setting data that will cause a protect error in advance in a microcomputer system that has a memory and a protect circuit that prevents the rewriting of information stored in the memory. and write protection errors periodically.

このプロテクトエラーが検出されることを確認すること
により、前記メモリ、プロテクト回路の正常、異常を監
視することを特徴とするから、メモリ、プロテクト回路
の機能を定期的に検査して、プロテクトエラーの見逃し
による誤動作を防止し、二重故障への遷移を阻1にし得
るようにしたマイクロコンピュータシステムを提供する
ことができる。
By confirming that this protect error is detected, the normality or abnormality of the memory and the protect circuit is monitored.The function of the memory and the protect circuit is periodically inspected to detect the protect error. It is possible to provide a microcomputer system that can prevent malfunctions due to oversight and prevent transition to a double failure.

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

第1図は本発明に係るマイクロコンピュータシステムの
プロ・ンク図、第2図(、a )及び(b)は本発明に
係るマイクロコンピュータシステムのフローチャートで
ある。 l・・φマイクロコンピュータ(CPU)2・・・ラン
ダム、アクセス、メモリ(RAM)4・・・メモリ、プ
ロテクト回路 40・・・プロテクト指示用ラッチ回路41・φ命プロ
テクトエリア選択回路 第2図 官1込lf、飼 〉 (0)
FIG. 1 is a flowchart of the microcomputer system according to the present invention, and FIGS. 2(a) and (b) are flowcharts of the microcomputer system according to the present invention. l...φ Microcomputer (CPU) 2...Random, access, memory (RAM) 4...Memory, protect circuit 40...Latch circuit for protection instruction 41・φ Life protection area selection circuit 2nd diagram 1 included lf, feed〉 (0)

Claims (1)

【特許請求の範囲】[Claims] (1) メモリの記憶情報の書換えを阻止するメモリ、
プロテクト回路を有するマイクロコンピュータシステム
において、予め、プロテクトエラーとなるデータを設定
しておき、定期的にプロテクトエラーを発生させ、この
プロテクトエラーが検出されることを確認することによ
り、前記メモリ プロテクト回路の正常、異常を監視す
ることを特徴とするマイクロコンピュータシステム。
(1) A memory that prevents the information stored in the memory from being rewritten;
In a microcomputer system having a protect circuit, by setting data that will cause a protect error in advance, generating a protect error periodically, and confirming that this protect error is detected, the memory protect circuit can be protected. A microcomputer system that monitors normality and abnormality.
JP58190368A 1983-10-12 1983-10-12 Microcomputer system Granted JPS6081664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58190368A JPS6081664A (en) 1983-10-12 1983-10-12 Microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58190368A JPS6081664A (en) 1983-10-12 1983-10-12 Microcomputer system

Publications (2)

Publication Number Publication Date
JPS6081664A true JPS6081664A (en) 1985-05-09
JPH0332822B2 JPH0332822B2 (en) 1991-05-14

Family

ID=16257015

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58190368A Granted JPS6081664A (en) 1983-10-12 1983-10-12 Microcomputer system

Country Status (1)

Country Link
JP (1) JPS6081664A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008530432A (en) * 2005-02-17 2008-08-07 スカニア シーブイ アクチボラグ(パブル) Supercharged air cooler

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008530432A (en) * 2005-02-17 2008-08-07 スカニア シーブイ アクチボラグ(パブル) Supercharged air cooler

Also Published As

Publication number Publication date
JPH0332822B2 (en) 1991-05-14

Similar Documents

Publication Publication Date Title
JPS6280733A (en) Information processor
JPH02156357A (en) Program destruction preventing method
JPS6081664A (en) Microcomputer system
JP3659014B2 (en) Memory fault diagnosis device
JPH11143784A (en) Display device for programmable controller
JPS6259400B2 (en)
JPH0844629A (en) Memory access abnormality monitoring device
JPH0644145A (en) Memory error saving system
JPS6232544A (en) Abnormally detecting circuit for information processor
JPS61162899A (en) Device for detecting erroneous insertion of prom
JPH03266154A (en) Information processor
JPH08220198A (en) Battery backup memory unit and backup function testing method
JPH02297235A (en) Memory data protecting circuit
JPH05324487A (en) Memory control system
JPH02166510A (en) Disk controller
JPH04172911A (en) Protective relay
JPS6252650A (en) Memory checking method
JPS621037A (en) Access detecting system for memory undefined area
JPS6319053A (en) Memory device
JPS6070600A (en) Microcomputer system
JPH03273347A (en) Microprocessor monitor circuit
JPH0683720A (en) Data backup type computer system
JPH05297901A (en) Process controller
JPH02130791A (en) Diagnostic system for defective address of magnetic bubble memory
JPH05241905A (en) Processor device