JPS63200254A - Memory write control circuit - Google Patents

Memory write control circuit

Info

Publication number
JPS63200254A
JPS63200254A JP62031424A JP3142487A JPS63200254A JP S63200254 A JPS63200254 A JP S63200254A JP 62031424 A JP62031424 A JP 62031424A JP 3142487 A JP3142487 A JP 3142487A JP S63200254 A JPS63200254 A JP S63200254A
Authority
JP
Japan
Prior art keywords
ram
data
output
timer
write
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
JP62031424A
Other languages
Japanese (ja)
Inventor
Osamu Sato
修 佐藤
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP62031424A priority Critical patent/JPS63200254A/en
Publication of JPS63200254A publication Critical patent/JPS63200254A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To avoid the miswrite of data to a RAM by allowing the write of data to the RAM only for a prescribed period of time from a time point when the specific data is written into a specific address. CONSTITUTION:A CPU 1 is connected to a RAM 5 via buses 2 and 3. A decoding circuit 6 connected to both buses 2 and 3 detects the specific data written into a specific address in the circuit 6 and delivers a pulse. This pulse starts a timer 7 and the output of this timer 7 is applied to a write terminal of the RAM 5 via an OR gate circuit 8. Thus the write of data is possible to the RAM 5 before the timer 7 has a time-up state. Thereafter no data is written into the RAM 5.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロコンピュータシステムにおけるR A
 M (Random Access Memory)
への書込制御回路に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is directed to R A in microcomputer systems.
M (Random Access Memory)
This invention relates to a write control circuit.

〔従来の技術〕[Conventional technology]

一般にマイクロコンピュータシステムに設けられている
RAMにデータを書込む場合には、RAMの書込端子に
CPUからの書込信号を出力するが、従来のマイクロコ
ンピュータシステムでは、RAMの書込端子は書込信号
線等を用いてCPU0書込端子に直接接続され、CPU
の書込端子から書込信号が出力されるときにはいつでも
RAMへの書込が可能とされている。
Generally, when writing data to the RAM provided in a microcomputer system, a write signal from the CPU is output to the RAM write terminal, but in conventional microcomputer systems, the RAM write terminal is It is directly connected to the CPU0 write terminal using a write signal line, etc., and the CPU
Writing to the RAM is possible whenever a write signal is output from the write terminal of the RAM.

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

上述した従来のマイクロコンピュータシステムでは、常
時RAMへの書込が可能であるため、例えばプログラム
エラー、またはプログラムの暴走が生じた時にRAMに
誤書込され、リセットをかけて再スタートさせたときに
、RAM内の大切なデータが破壊されるおそれがある。
In the conventional microcomputer system described above, since it is possible to write to RAM at all times, for example, if a program error or program runaway occurs and the RAM is erroneously written, then when the system is reset and restarted, , there is a risk that important data in the RAM will be destroyed.

プログラム暴走時には、例えばオートノーマスリセット
等を使用してプログラムの自動再スタートは可能である
が、データ破壊の防止手段は存在していない。
When a program runs out of control, it is possible to automatically restart the program using, for example, an automatic normal reset, but there is no means to prevent data destruction.

本発明はRAMへの誤書込を防止し、RAMにおけるデ
ータ破壊を確実に防止することを可能としたメモリ書込
制御回路を提供することを目的としている。
An object of the present invention is to provide a memory write control circuit that can prevent erroneous writing to RAM and reliably prevent data destruction in RAM.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のメモリ書込制御回路は、特定の番地に特定のデ
ータが書込まれたことを検出して出力するデコーダ回路
と、このデコーダ回路の出力により起動されタイムアツ
プするまでその出力を保持するタイマと、CPUからR
AMに出力される書込信号をタイマの出力信号に基づい
て制御し、タイマのタイムアツプの間のみ書込信号をR
AMに出力可能に構成したゲート回路とを備え、この間
以外ではRAMへの書込を禁止して暴走時等におけるR
AMへの誤書込及びデータ破壊を防止する構成としてい
る。
The memory write control circuit of the present invention includes a decoder circuit that detects and outputs specific data written to a specific address, and a timer that is activated by the output of this decoder circuit and holds the output until time-up. and R from the CPU
The write signal output to AM is controlled based on the output signal of the timer, and the write signal is R only during the timer time-up.
It is equipped with a gate circuit configured to be able to output to AM, and prohibits writing to RAM except during this period to prevent R in the event of a runaway.
It is configured to prevent erroneous writing to AM and data destruction.

〔実施例〕〔Example〕

次に、本発明を図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例をブロックで示した回路図で
ある。CPUIはアドレス端子Addr、とデータ端子
Da taが夫々アドレスバス2及びデータバス3に接
続されており、これらのバス2.3を通してRAM5が
接続されている。また、バス2゜3にはデコーダ回路6
が接続されており、このデコード回路6は前記CPUI
の書込端子■に書込信号線4により接続され、デコーダ
回路内のある特定のアドレスに特定のデータが書込まれ
た時にこれを検出してパルスを出力するように構成され
ている。このデコーダ回路6の出力端にはタイマ7が接
続されており、デコーダ回路6からの信号が入力された
時に起動され、所定の時間を経過(タイムアツプ)する
までその出力を保持させることができる。更にこのタイ
マ7の出力はオアゲート回路8の一方の入力に接続され
ている。このオアゲート回路8の他一方の入力には前記
書込信号線4が接続されおり、かつオアゲート回路8の
出力はRAM5の書込端子■に接続されている。
FIG. 1 is a circuit diagram showing an embodiment of the present invention in blocks. The CPUI has an address terminal Addr and a data terminal Data connected to an address bus 2 and a data bus 3, respectively, and a RAM 5 is connected through these buses 2.3. In addition, a decoder circuit 6 is connected to the bus 2°3.
is connected, and this decoding circuit 6 is connected to the CPUI.
The decoder circuit is connected to the write terminal (2) by a write signal line 4, and is configured to detect when specific data is written to a specific address in the decoder circuit and output a pulse. A timer 7 is connected to the output end of the decoder circuit 6, which is activated when a signal from the decoder circuit 6 is input, and can hold the output until a predetermined time elapses (time-up). Furthermore, the output of this timer 7 is connected to one input of an OR gate circuit 8. The write signal line 4 is connected to the other input of the OR gate circuit 8, and the output of the OR gate circuit 8 is connected to the write terminal (2) of the RAM 5.

次に、以上の回路構成による書込動作を説明する。Next, a write operation using the above circuit configuration will be explained.

第2図は第1図の回路の動作を説明するためのタイミン
グ図である。図において、Addr、はアドレスバス2
.[1ataはデータバス3,1cPtlはCPU1の
書込信号、 Timer outはタイマ7の出力。
FIG. 2 is a timing diagram for explaining the operation of the circuit of FIG. 1. In the figure, Addr is address bus 2
.. [1ata is the data bus 3, 1cPtl is the write signal of the CPU 1, and Timer out is the output of the timer 7.

■RAMはゲート回路8の各出力波形を示している。(2) RAM shows each output waveform of the gate circuit 8.

同図において、先ずtlにてデコーダ回路6の特定アド
レスA8に特定データD、がCPUIにより書込まれる
と、デコーダ回路6によりタイマ7が起動され、Tim
er outが“L”になる。この状態がRAM書込許
可である。
In the same figure, first, at tl, when specific data D is written to specific address A8 of the decoder circuit 6 by the CPUI, the timer 7 is started by the decoder circuit 6, and Timer 7 is started by the decoder circuit 6.
er out becomes “L”. This state is RAM write permission.

次に、t2においてCPUIがRAM5にデータを書込
んだとする。即ち、アドレスバス2にRAMのアドレス
ARAMをセットし、データバス3に書込むべきデータ
D2をセットし、書込信号■CPuを“L″にすると、
ゲート回路8の両方の入力が“し”となり、出力即ちR
AM5の書込端子籠に加えられる信号1ifRRAMも
“Llとなり、データバス3上のデータがRAM5に書
込まれる。
Next, assume that the CPUI writes data to the RAM 5 at t2. That is, when the RAM address ARAM is set on the address bus 2, the data D2 to be written is set on the data bus 3, and the write signal ■CPu is set to "L",
Both inputs of the gate circuit 8 become "Yes", and the output, that is, R
The signal 1ifRRAM applied to the write terminal basket of AM5 also becomes "Ll", and the data on the data bus 3 is written into the RAM5.

タイマ7のタイムアツプ時間Tが経過すると(t3 )
 、タイマ7の出力が“H”となる。その後は、仮にt
4にてRAM5にアドレスAII工にデータD4の書込
操作を行なってもゲート回路8の出力は“H″のままで
あり、RAM5にはデータの書込は行われない。書込を
行うには再びデコーダ回路6の特定アドレスA、に特定
データDxを書込めば、またその時点からTだけの間は
RAM5への書込は可能である。
When the time-up time T of timer 7 has elapsed (t3)
, the output of timer 7 becomes "H". After that, if t
Even if the data D4 is written to address AII in the RAM 5 in step 4, the output of the gate circuit 8 remains at "H" and no data is written to the RAM 5. To perform writing, the specific data Dx is written again to the specific address A of the decoder circuit 6, and writing to the RAM 5 is possible for a period of T from that point.

したがって、この例ではデコーダ回路6の特定アドレス
A8に特定データD8を書込んだ時から一定時間Tの間
のみRAMへの書込が可能とされるため、CPUIが暴
走したときにもRAM内のアドレスに誤ったデータを書
込むおそれは極めて少なくなり、RAMへの誤書込を防
止でき、データ破壊等を確実に防止することができる。
Therefore, in this example, writing to the RAM is possible only for a certain period of time T from the time when the specific data D8 is written to the specific address A8 of the decoder circuit 6, so even if the CPU goes out of control, the data in the RAM is The risk of writing erroneous data to an address is extremely reduced, erroneous writing to RAM can be prevented, and data destruction etc. can be reliably prevented.

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

以上説明したように本発明は、特定の番地に特定のデー
タが書込まれたことをデコーダ回路で検出してその出力
によりタイマを起動させ、このタイマがタイムアツプす
るまでの間のみCPUからRAMに書込信号を出力可能
に構成しているので、特定のアドレスに特定のデータを
書込んだ時点から所定時間の間のみRAMへの書込が可
能となり、これによりCPUが暴走したときに特定のア
ドレスに特定のデータを書込む確率は非常に小さくなり
、RAMへの誤書込を防止してデータ破壊等を確実に防
止できる。
As explained above, in the present invention, a decoder circuit detects that specific data has been written to a specific address, the output activates a timer, and the data is transferred from the CPU to the RAM only until the timer times up. Since it is configured to be able to output a write signal, it is possible to write to the RAM only for a predetermined period of time from the time when specific data is written to a specific address. The probability of writing specific data to an address becomes extremely small, and erroneous writing to the RAM can be prevented and data destruction etc. can be reliably prevented.

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

第1図は本発明の一実施例の回路図、第2図は第1図の
回路の動作を説明するためのタイミング図である。 1・・・CPU、2・・・アドレスバス、3・・・デー
タハ′ス、4・・・書込信号線、5・・・RAM、6・
・・デコーダ回路、7・・・タイマ、8・・・オアゲー
ト回路。 第1図 第2図
FIG. 1 is a circuit diagram of an embodiment of the present invention, and FIG. 2 is a timing diagram for explaining the operation of the circuit shown in FIG. 1...CPU, 2...Address bus, 3...Data bus, 4...Write signal line, 5...RAM, 6...
...Decoder circuit, 7...Timer, 8...OR gate circuit. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1)CPU、RAMを備えるマイクロコンピュータシ
ステムにおいて、特定の番地に特定のデータが書込まれ
たことを検出して出力するデコーダ回路と、このデコー
ダ回路の出力により起動されタイムアップするまでその
出力を保持するタイマと、CPUからRAMに出力され
る書込信号を前記タイマの出力信号に基づいて制御し、
前記タイムアップの間のみ書込信号をRAMに出力可能
に構成したゲート回路とを備えることを特徴とするメモ
リ書込制御回路。
(1) In a microcomputer system equipped with a CPU and RAM, there is a decoder circuit that detects that specific data has been written to a specific address and outputs it, and the decoder circuit is activated by the output of this decoder circuit and outputs the output until time is up. a timer that maintains the , and a write signal outputted from the CPU to the RAM based on the output signal of the timer;
A memory write control circuit comprising: a gate circuit configured to be able to output a write signal to the RAM only during the time-up period.
JP62031424A 1987-02-16 1987-02-16 Memory write control circuit Pending JPS63200254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62031424A JPS63200254A (en) 1987-02-16 1987-02-16 Memory write control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62031424A JPS63200254A (en) 1987-02-16 1987-02-16 Memory write control circuit

Publications (1)

Publication Number Publication Date
JPS63200254A true JPS63200254A (en) 1988-08-18

Family

ID=12330862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62031424A Pending JPS63200254A (en) 1987-02-16 1987-02-16 Memory write control circuit

Country Status (1)

Country Link
JP (1) JPS63200254A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0370054A (en) * 1989-08-09 1991-03-26 Canon Inc Electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56134400A (en) * 1980-02-21 1981-10-21 Taimupuretsukusu Inc Memory protecting device and data processor having same device
JPS57135500A (en) * 1981-02-16 1982-08-21 Nec Corp Data memory protecting circuit
JPS6133556A (en) * 1984-07-25 1986-02-17 Fujitsu Ltd Protecting method of writing in memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56134400A (en) * 1980-02-21 1981-10-21 Taimupuretsukusu Inc Memory protecting device and data processor having same device
JPS57135500A (en) * 1981-02-16 1982-08-21 Nec Corp Data memory protecting circuit
JPS6133556A (en) * 1984-07-25 1986-02-17 Fujitsu Ltd Protecting method of writing in memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0370054A (en) * 1989-08-09 1991-03-26 Canon Inc Electronic equipment

Similar Documents

Publication Publication Date Title
US5793774A (en) Flash memory controlling system
US4694393A (en) Peripheral unit for a microprocessor system
JPH10177563A (en) Microcomputer with built-in flash memory
JPS63200254A (en) Memory write control circuit
JPH0822422A (en) Memory device
JP2556268B2 (en) Program download method
JPH03244045A (en) Microcomputer circuit
JP3197410B2 (en) DMA bus master module device and control method
JP2809752B2 (en) Memory access circuit
JP2757034B2 (en) Data channel device activation method and data channel device of multiprocessor system
JPS62286143A (en) Semiconductor memory device
JPS63174158A (en) Multiprocessor system
JPS59112494A (en) Memory testing system
JPH02210515A (en) System resetting system
JP2539064B2 (en) Microprocessor
JPH11260075A (en) Microcomputer with built-in flash memory and data rewrite method
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JP2731386B2 (en) Control device
JPH06324956A (en) Data processor
JPS60220448A (en) Mutual checking method of multi-cpu system
JPS6323598B2 (en)
JPS6037936B2 (en) monitoring device
JP2003126484A (en) Game machine
JPH09212201A (en) Control circuit for production facility
JPS6014345A (en) Protecting system of program runaway