JPS60239850A - Microprocessor system provided with no-break memory - Google Patents

Microprocessor system provided with no-break memory

Info

Publication number
JPS60239850A
JPS60239850A JP59096165A JP9616584A JPS60239850A JP S60239850 A JPS60239850 A JP S60239850A JP 59096165 A JP59096165 A JP 59096165A JP 9616584 A JP9616584 A JP 9616584A JP S60239850 A JPS60239850 A JP S60239850A
Authority
JP
Japan
Prior art keywords
signal
write
writing
gate
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
Application number
JP59096165A
Other languages
Japanese (ja)
Inventor
Yukimasa Totsuka
戸塚 幸将
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP59096165A priority Critical patent/JPS60239850A/en
Publication of JPS60239850A publication Critical patent/JPS60239850A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Abstract

PURPOSE:To prevent a no-break memory from incorrect writing due to the runaway of a program by inhibiting writing ordinally, forming a write inhibition releasing signal only at a writing time and impressing AND between the release signal and the writing signal to a non-volatile RAM. CONSTITUTION:Ordinarlly, an H level reading signal is impressed from a gate 6 to the R/W terminal of the non-volatile RAM(NVRAM)4, data reading is available and writing is inhibited. When a data writing request is generated, an L level signal S'w for releasing write inhibition is outputted from the PA1 terminal of an interface 15 to the gate 16. Since a write request signal W'R' is outputted from a CPU1 to the gate 16, the output of the gate 16 is turned to the L level and a write signal W'R' is impressed to the NVRAM4. The NVRAM4 stores data obtained from a data bus 5 in an address area selected by a chip selector signal C'S' outputted from an address decoder 7.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム暴走等により無停電メモリに誤った
書き込みが行なわれないようにした無停電メモリを備え
たマイクロプロセッサシステムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor system equipped with an uninterruptible memory that prevents erroneous writing to the uninterruptible memory due to program runaway or the like.

〔従来の技術〕[Conventional technology]

従来の無停電メモリを備えたマイクロプロセッサシステ
ムとして1例えば、第1図に示すものかあ夛、システム
の中核を成し各種の処理を実行するOPU 1と、0P
UIに各種の処理を実行させるためのプログラムが格納
されたROM 2と。
An example of a conventional microprocessor system equipped with an uninterruptible memory is the one shown in Figure 1.
A ROM 2 stores programs for causing the UI to execute various processes.

OPU 1による処理の結果及び各種データを一時的に
記憶されるRAM3と、主電源が遮断後にパ、テリから
電源供給を受けて格納されているデータ或いはプログラ
ムを保存する不揮発性メモIJ (NVRAM ) 4
と、各部材相互間を連結し並列ビットでデータを伝送す
るデータバス5及びアドレス指定を行なうアドレスバス
6と、アドレスバスs及び0PUxのコントロールライ
ンに接続されてメモリ群のチ、プセレクトt−行なうア
ドレスデコーダ7と、逆流防止用のダイオード8を介し
てNVRAM 4の電源端子に接続され、主電源d一時
にバラアップ電源を供給するバッテリ9と、主電源の電
圧vcc(+5v)が成る電圧(例えば、+4.3V)
以下になったときにNVRAM 4への電源上バッテリ
9に切替える電FA電圧検知回路10と工9構成される
。ビのほか1図示を省略しているが、外部機器、端末機
器等を制御するため出力インター7エイス、及び各種の
情報全入力するための入力インター7エイスがデータバ
ス5及びアドレスバス6に接続されている。
A RAM 3 that temporarily stores the results of processing by the OPU 1 and various data, and a non-volatile memory IJ (NVRAM) that stores data or programs that are supplied with power from the battery after the main power is cut off. 4
, a data bus 5 that connects each component and transmits data in parallel bits, an address bus 6 that performs address specification, and a memory group connected to the control lines of the address bus s and 0PUx to perform chip selection of the memory group. The battery 9 is connected to the power supply terminal of the NVRAM 4 via the address decoder 7 and the diode 8 for backflow prevention, and supplies the main power supply d at one time. For example, +4.3V)
The circuit 9 is composed of an electric FA voltage detection circuit 10 and an electric FA voltage detection circuit 10 which switches the power supply to the NVRAM 4 to the battery 9 when the voltage becomes below. Although not shown in the figure, an output interface 78 for controlling external equipment, terminal equipment, etc., and an input interface 78 for inputting all types of information are connected to the data bus 5 and address bus 6. has been done.

′−源電圧検知回路10は、電源■。。に接続される抵
抗11と、該抵抗11と接地間に接続され検知レベル電
圧(4,3V )にツェナー電圧v8が設定されるツェ
ナーダイオード12と、抵抗11の両端に入力端子の各
々が接続されてvcc〉v2 で出力電圧をハイレベル
に維持し、v8≧vccで出力電圧をローレベルに転す
る電圧比較器13と、該比較器13の出力電圧がハイレ
ベルのときにオンとなって■。、をNVRAM 4に印
 加し、出力電圧がローレベルのときにオフとなってダ
イオード8を介してバッテリ9の電圧をJffRAM 
41c印加させるトランジスタ14とよ多構成される。
'-The source voltage detection circuit 10 is the power supply ■. . A resistor 11 is connected to the resistor 11, a Zener diode 12 is connected between the resistor 11 and ground and the Zener voltage v8 is set to the detection level voltage (4,3V), and input terminals are connected to both ends of the resistor 11. A voltage comparator 13 maintains the output voltage at a high level when vcc>v2 and changes the output voltage to a low level when v8≧vcc, and is turned on when the output voltage of the comparator 13 is at a high level. . , is applied to the NVRAM 4, and when the output voltage is at a low level, it is turned off and the voltage of the battery 9 is transferred to the JffRAM via the diode 8.
41c is applied to the transistor 14.

以上の構成において、0PU1よりRD信号がROM 
2に出力されるときROM 2のプログラムが読み出さ
れ、また、WR信号或いはWR信号がRAM3及びNV
RAM 4に印加され、アドレスデコーダ7よプ出力さ
れるO8信号により選択されたメモリチップにデータが
書き込まれ、或いは該メモリチップからデータが読み出
される。停電時等でVCCが下が91例えば%4,3■
になると、OPU 1 、 ROM 2 、 RAM 
3及びアドレスデコーダ7の各々は動作不能となり、 
RAM 3に記憶されているデータは消えるが、 NV
RAM 4はトランジスタ14がオフになると同時に、
バッテリ9の電圧が印加されるため、記憶されているデ
ータは消されること無く保存される。
In the above configuration, the RD signal from 0PU1 is transferred to the ROM.
When the program is output to RAM 2, the program in ROM 2 is read out, and the WR signal or WR signal is output to RAM 3 and NV.
Data is written to or read from the memory chip selected by the O8 signal applied to the RAM 4 and output from the address decoder 7. For example, when VCC drops to 91% due to a power outage, etc., %4.3■
Then, OPU 1, ROM 2, RAM
3 and address decoder 7 become inoperable,
Although the data stored in RAM 3 will be deleted, NV
At the same time as the transistor 14 turns off, the RAM 4
Since the voltage of the battery 9 is applied, the stored data is preserved without being erased.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、従来の無停電メモIJ t−備えたマイクロプ
ロセ、Vによれば、何らかの原因でプログラムが暴71
:ヲ生じた場合には無停電メモリが誤ってアクセスされ
る恐れがおり、このような事態が生じると、無停電メモ
リの内容は何ら保証されることなく、制御対象の機器等
に重大な障害を及ばず恐れがある。
However, according to the conventional uninterruptible memory IJ t-equipped microprocessor, V, the program crashed due to some reason.
: If this occurs, there is a risk that the uninterruptible memory will be accessed by mistake, and if such a situation occurs, the contents of the uninterruptible memory will not be guaranteed and may cause serious damage to the equipment being controlled. There is a fear that it will not reach the target.

〔問題点を解決しようとする手段および作用〕本発明は
上記に鑑み′てなされたものであり。
[Means and operations for solving the problems] The present invention has been made in view of the above.

プログラム暴走等にニジ無停電メモリに誤った書き込み
が行なわれないようにするため、常時は書き込みを禁止
し、書き込み信号に同期して書き込み禁止の解除信号を
生成し、こ?解除信号と書き込み信号WR1との論理積
をとってNVRAMに書き込み信号を印加″j7″うに
腎た無停電メモリ金偏えたマイクロプロセッサシステム
金提供するものである。
In order to prevent erroneous writing to the uninterruptible memory due to program runaway, etc., writing is always prohibited and a write prohibition release signal is generated in synchronization with the write signal. The logical product of the release signal and the write signal WR1 is taken and a write signal is applied to the NVRAM "j7" to provide an uninterruptible memory for the microprocessor system.

〔実施例〕〔Example〕

以下1本発明による無停電メモリを備えたマイクロブに
セッサシステムを詳細に説明する。
Hereinafter, a microprocessor system equipped with an uninterruptible memory according to the present invention will be described in detail.

第2図線本発明の一実施例を示し、第1図と同一の部分
は同一の引用数字で示したので重複する説明は省略する
が、ROM2に設定されたプログラムに従って書き込み
要求時にのみ書き込み禁止の解除信号8Wを出力するイ
ンターフェイス15と、インターフェイス15の出力端
子″PAI”とOPU 1のWR端子より出力される書
き込み信号WRとの負論理の論理積をとるゲート16(
vき込み禁止回路)とを設けたものである。
Figure 2 shows an embodiment of the present invention, and the same parts as in Figure 1 are indicated by the same reference numerals, so redundant explanation will be omitted, but writing is prohibited only when a write request is made according to the program set in ROM2. The interface 15 outputs a release signal 8W, and the gate 16 (
A V writing prohibition circuit) is provided.

以上の構成において、全体的な動作は前述の通りである
ので重複する説明は省略するが、書き込み動作を第3図
に基づいて説明する。通常時に鉱、ゲート16エりハイ
レベルの読み出し書号がNVRAM4のR/W端子に印
加されている。
In the above configuration, the overall operation is as described above, so redundant explanation will be omitted, but the write operation will be explained based on FIG. 3. During normal operation, a high-level read signal from the gate 16 is applied to the R/W terminal of the NVRAM 4.

これによって随時N%’RAM 4よシのデータ読み出
−シ′が可能となる(書き込み禁止の状態)。
This makes it possible to read data from the RAM 4 at any time (in a write-inhibited state).

一方、データの書き込み要求の生じたことがCPU 1
によって判定されると、インターフェイス150PAI
端子より、ローレベルの書き込み禁止を解く解除信号庁
がゲート16に出力され、また、0PUIのn端子よシ
書き込み要求信号WRがゲート12に出力される。この
とき。
On the other hand, CPU 1
interface 150PAI as determined by
A release signal for releasing the low level write protection is output from the terminal to the gate 16, and a write request signal WR from the n terminal of 0PUI is output to the gate 12. At this time.

ゲート16の入力は共にローレベルであり、従って出力
電圧はハイレベルからローレベル状態じ、−2Fき込み
信号WRがNVRAM 4に印加されることになる。ゲ
ート16より出力されるWR倍信号受けたNVRAM 
4は、アドレスデコーダ7より出力されるチ、プセVク
タ信号(aS)により選択されたアドレス領域にデータ
バス5工りのデータを記憶する。書き込みの終了をOP
U 1が判定するとWR倍信号ゲート16に出力すると
共に、インターフェイス15よフ書き込み禁止信号5v
rfゲート16に出力し、該ゲート16の出力電圧をロ
ーレベルからハイレベルに転じさせる。
Both inputs of the gate 16 are at a low level, so the output voltage changes from a high level to a low level state, and a -2F write signal WR is applied to the NVRAM 4. NVRAM that receives the WR multiplied signal output from gate 16
4 stores the data on the data bus 5 in the address area selected by the preset V vector signal (aS) output from the address decoder 7. OP the end of writing
When U1 is determined, it outputs the WR multiplication signal to the gate 16, and also outputs the write inhibit signal 5v to the interface 15.
It outputs to the rf gate 16 and changes the output voltage of the gate 16 from low level to high level.

このように、 NVRAM 4への書き込みが可能とな
るのは、ゲート16の2人力が共にローレベル状態にあ
るときのみであり、通常時に於ては書き込みが禁止され
ている。従って、電源電圧の遮断等によってプログラム
に緋走が生じたとしても、NY)LAM 4に書き込不
信号が印加されること無く、誤ったデータが書き込まれ
ることはない。
In this way, writing to the NVRAM 4 is possible only when both of the gates 16 are at low level, and writing is prohibited in normal times. Therefore, even if a program stall occurs due to power supply voltage cutoff or the like, a write failure signal will not be applied to the NY) LAM 4, and erroneous data will not be written.

〔発明の効果〕〔Effect of the invention〕

以上説明した通り1本発明の無停電メモリを備、tlマ
イクログロセ、tシステムによれば。
As explained above, according to the TL microgrosse and T system, the uninterruptible memory of the present invention is provided.

OPUより出力される書き込み信号WBと、書き込み時
にのみWBと負の論理積がとれる信号を出力させ1両者
の論理条件が成立するときにNVRAMに対して書き込
み信号を印加するようにしたため、書き込み禁止時にプ
ログラムに暴走が生じても、無停電メモリに曹ヒ込みが
行なわれることは無く、データが誤って書き込まれる恐
れはない。
A signal that can be negatively ANDed with the write signal WB output from the OPU and WB only at the time of writing is output, and the write signal is applied to the NVRAM when the logical conditions for both are satisfied, so writing is prohibited. Even if the program sometimes goes out of control, the uninterruptible memory will not be overwritten, and there is no risk of data being erroneously written.

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

第1図は従来の無停電メモリ’Th備えたマイクロプロ
セッサシステムの回路図、$2図は本発明の一実施例を
示す回路図、第3図は第2図の実施例のタイムチャート
。 符号の説明 1・・・OPU、2・・・恥M、3・・・鳩、4・・・
無停電メモリ(NVRAM ) 、5・・・データバス
、6・・・アドレスバス、7・・・アドレスデコーダ。 8・・・ダイオード% 9・・・バッテリ、 10・・
・電源電圧検知回路、15・・・インターフェイス、1
6・・・ゲート。 特許出願人 富士ゼロ、クス株式会社 代理人 弁理士 松 原 伸 2 同 弁理士 村 木 清 司 同 弁理士 平 1) 忠 雄 同 弁理士 上 島 淳 − 同 弁理士 鈴 木 均 第1図 第2図
FIG. 1 is a circuit diagram of a conventional microprocessor system equipped with an uninterruptible memory 'Th, FIG. 2 is a circuit diagram showing an embodiment of the present invention, and FIG. 3 is a time chart of the embodiment of FIG. 2. Explanation of codes 1... OPU, 2... Shame M, 3... Pigeon, 4...
Uninterruptible memory (NVRAM), 5...data bus, 6...address bus, 7...address decoder. 8...Diode% 9...Battery, 10...
・Power supply voltage detection circuit, 15...interface, 1
6...Gate. Patent applicant: Fuji Zero, representative of Kusu Co., Ltd. Patent attorney: Shin Matsuhara 2 Patent attorney: Kiyoshi Muraki Patent attorney: Taira 1) Yudo Tadashi Patent attorney: Atsushi Ueshima - Patent attorney: Hitoshi Suzuki Figure 1, Figure 2 figure

Claims (1)

【特許請求の範囲】 主電源の電圧が成る値以下になったときにバ、テリによ
ってバックアップされる無停電メモリを備え、ROMに
格納されたプログラムに従って各種の処理を実行するO
PUによりデータの書き込み及び読み出しを行なうマイ
クロプロセッサシステムにおいて。 前記無停電メモリに対するデータ書き込み要求時に書き
込み禁止の解除信号を出力し、書き込み終了とと”もに
書き込み禁止信号を出力する信号発生手段と。 該手段による書き込み禁止の解除信号と前記OPUより
出力される書き込み信号との論理積条件が成立するとき
にのみ前記無停電メモリへ書き込み信号を出力するゲー
)回路とを設けたこと全特徴とする無停電メモリを備え
たマイクロプロセッサシステム。
[Scope of Claims] An operating system that is equipped with an uninterruptible memory that is backed up by a battery when the voltage of the main power supply drops below a certain value, and that executes various processes according to programs stored in the ROM.
In a microprocessor system that writes and reads data using a PU. signal generating means for outputting a write prohibition release signal when a data write request is made to the uninterruptible memory, and outputting a write prohibition signal upon completion of the write operation; A microprocessor system equipped with an uninterruptible memory, comprising: a game circuit that outputs a write signal to the uninterruptible memory only when an AND condition with a write signal is satisfied.
JP59096165A 1984-05-14 1984-05-14 Microprocessor system provided with no-break memory Pending JPS60239850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59096165A JPS60239850A (en) 1984-05-14 1984-05-14 Microprocessor system provided with no-break memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59096165A JPS60239850A (en) 1984-05-14 1984-05-14 Microprocessor system provided with no-break memory

Publications (1)

Publication Number Publication Date
JPS60239850A true JPS60239850A (en) 1985-11-28

Family

ID=14157721

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59096165A Pending JPS60239850A (en) 1984-05-14 1984-05-14 Microprocessor system provided with no-break memory

Country Status (1)

Country Link
JP (1) JPS60239850A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62211755A (en) * 1986-03-12 1987-09-17 Fujitsu Denso Ltd Erroneous data writing preventing circuit for storing means
JPS62151674U (en) * 1986-03-15 1987-09-25
JPS638955A (en) * 1986-06-30 1988-01-14 Yamatake Honeywell Co Ltd Erroneous writing preventing device to nonvolatile memory
JPS6399948U (en) * 1986-12-19 1988-06-29
JPH02189661A (en) * 1989-01-18 1990-07-25 Oval Eng Co Ltd Write protection system for memory

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS545330A (en) * 1977-06-15 1979-01-16 Hitachi Ltd Memory protect circuit
JPS5945567A (en) * 1982-09-08 1984-03-14 Hitachi Ltd Circuit for controlling writing in memory

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS545330A (en) * 1977-06-15 1979-01-16 Hitachi Ltd Memory protect circuit
JPS5945567A (en) * 1982-09-08 1984-03-14 Hitachi Ltd Circuit for controlling writing in memory

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62211755A (en) * 1986-03-12 1987-09-17 Fujitsu Denso Ltd Erroneous data writing preventing circuit for storing means
JPS62151674U (en) * 1986-03-15 1987-09-25
JPS638955A (en) * 1986-06-30 1988-01-14 Yamatake Honeywell Co Ltd Erroneous writing preventing device to nonvolatile memory
JPS6399948U (en) * 1986-12-19 1988-06-29
JPH0325230Y2 (en) * 1986-12-19 1991-05-31
JPH02189661A (en) * 1989-01-18 1990-07-25 Oval Eng Co Ltd Write protection system for memory

Similar Documents

Publication Publication Date Title
US10354073B2 (en) Information processor device verifying software and method of controlling information processor device
JPH0196747A (en) Data processor
JPS63221446A (en) Non-volatile memory protection apparatus and method
KR100251381B1 (en) Apparatas and method for initializing of volatile memory
JPS60239850A (en) Microprocessor system provided with no-break memory
JP2002366436A (en) Circuit and method for preventing erroneous erasure and erroneous writing of non-volatile memory
JPH07175725A (en) Semiconductor memory device
JP3832117B2 (en) Programmable controller backup data protection method and programmable controller
JP2000235483A (en) Information processor
KR100525537B1 (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
JPS59231800A (en) Preventing device for foul writing to main memory
JPH02128266A (en) Register with protective function
KR20010071231A (en) Microcontroller having write enable bit
JP3465511B2 (en) Digital protection relay
JPH0488448A (en) Protection device for program area
CN113703817A (en) Memory data protection system and method
JPH05298187A (en) Protection system of initialization information in function circuit
JPH02100743A (en) Electronic equipment
JPS63112894A (en) Battery backup circuit for random access memory
JP2002099468A (en) Writing control circuit
JP2003330800A (en) Semiconductor integrated circuit
JPH02224138A (en) Restarting system for information processor
JPS6014345A (en) Protecting system of program runaway
JPH02100744A (en) Electronic equipment
JPH03147158A (en) Memory control circuit