JPS6354642A - Memory controlling circuit - Google Patents

Memory controlling circuit

Info

Publication number
JPS6354642A
JPS6354642A JP19932386A JP19932386A JPS6354642A JP S6354642 A JPS6354642 A JP S6354642A JP 19932386 A JP19932386 A JP 19932386A JP 19932386 A JP19932386 A JP 19932386A JP S6354642 A JPS6354642 A JP S6354642A
Authority
JP
Japan
Prior art keywords
data
write
interruption
request signal
circuit
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
JP19932386A
Other languages
Japanese (ja)
Inventor
Mitsutoshi Kato
加藤 充利
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 JP19932386A priority Critical patent/JPS6354642A/en
Publication of JPS6354642A publication Critical patent/JPS6354642A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the time used exclusively for write of a data by a CPU by constituting the central processing unit so that a data is written by an interruption processing, the interruption is released by an interruption request signal stopping circuit, and a preparation for the next data write is executed. CONSTITUTION:By a Q output of an interrupting FF circuit 6 a CPU1 is allowed to generate an interruption request signal. The CPU1 receives this interruption request signal and starts a processing of an interruption routine. In this interruption routine, the CPU1 executes data write to the next byte, and thereafter outputs a reset pulse from an I/O port 5 in order to reset the Q output of the interrupting FF circuit 6. Also, even in case of writing a large quantity of data, the same operation is repeated. By such an interruption processing, write of an erasable nonvolatile semiconductor memory (E<2>PROM)4, therefore it is unnecessary to hold in a program until the E<2>PROM4 is released as to its re-write and the time when the CPU1 is used exclusively for write of a data can be shortened.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、メモリ制御回路に関し、特に、メモリ制御回
路の中央演算処理装置(以下、CPUという。)が、電
気的書き込み・消去可能不揮発性半導体メモリ(以下、
E2P ROMという。)にデーターを書き込むのに費
やす時間を短縮したメモリ制御回路に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a memory control circuit, and in particular, the central processing unit (hereinafter referred to as CPU) of the memory control circuit is an electrically writable/erasable nonvolatile Semiconductor memory (hereinafter referred to as
It is called E2P ROM. ) relates to a memory control circuit that reduces the amount of time it takes to write data to a memory device.

[従来の技術] 従来、E2PROMにデーター書き込みを行なうメモリ
ー制御回路は、書き込みが可能かどうかの判断を入力ボ
ートを通じてCPUが行なっていた。
[Prior Art] Conventionally, in a memory control circuit that writes data to an E2PROM, a CPU determines whether writing is possible through an input port.

第4図は、従来のメモリ制御回路の構成を示す。FIG. 4 shows the configuration of a conventional memory control circuit.

同図において、1はcpu、2はCPUIの処理プログ
ラムが書き込まれた読み出し専用メモリ(以下、ROM
という。)、3は随時読みだし書き込みメモリ(以下、
RAMという。)である。
In the figure, 1 is a CPU, and 2 is a read-only memory (hereinafter referred to as ROM) in which a CPU processing program is written.
That's what it means. ), 3 is a read/write memory (hereinafter referred to as
It is called RAM. ).

4はE2FROMで、電源が断になっても記憶されてい
るデーターを保持し、またデーター書き込みが可能かど
うかを判定する再書き込み判定信号(以下、R/B信号
という。)を出力する。5はI10ボートで、CPUI
はこのI10ボート5を通じてE’PROM4のR/E
3信号を監視する。
Reference numeral 4 denotes an E2FROM, which retains stored data even when the power is turned off, and outputs a rewrite determination signal (hereinafter referred to as an R/B signal) for determining whether data can be written. 5 is an I10 boat, CPU
is the R/E of E'PROM4 through this I10 boat 5.
3 Monitor the signal.

第5図は、E2PROMに連続したデーターを書き込む
プログラムのフローチャートを示す。
FIG. 5 shows a flowchart of a program for writing continuous data into the E2PROM.

上記構成において、E2FROM4に連続したデーター
を書き込む場合、CPUIは、1バイトデーターを書き
込むごとに次のバイトの書き込みが可能かどうかを判定
するため、I10ポート5を通してE2PROM4のR
/B信号を監視し続ける必要があった。このため、22
FROM4に大量のデーターを書き込む場合には、R/
B信号の監視に費やす時間が増し、CPUIはデーター
の書き込みに専有される時間が長くなり、CPUIの処
理能力を低下させていた。
In the above configuration, when writing continuous data to E2FROM4, the CPU writes R of E2PROM4 through I10 port 5 to determine whether the next byte can be written each time one byte of data is written.
It was necessary to continue monitoring the /B signal. For this reason, 22
When writing a large amount of data to FROM4, use R/
The amount of time spent monitoring the B signal increased, and the time the CPU was used exclusively for writing data increased, reducing the processing capacity of the CPU.

[解決すべき問題点] 上述した従来のメモリ制御回路では、E2PROMの書
き込みを行なうには、CPUは1バイト書き込むごとに
I10ポートからE2PROMの再書き込み判定信号を
監視し続け、次のバイト書き込みが可能になるまでプロ
グラム内で待機している必要があった。そして、E2P
ROMに大量のデーターを書き込む場合には、この待機
時間のためCPUの書き込みに専有される時間が長くな
り、CPUの処理能力を低下させるという問題点があっ
た。
[Problems to be solved] In the conventional memory control circuit described above, in order to write to the E2PROM, the CPU continuously monitors the E2PROM rewrite determination signal from the I10 port every time one byte is written, and waits until the next byte is written. The program had to wait until it was available. And E2P
When writing a large amount of data to the ROM, there is a problem in that the waiting time increases the amount of time the CPU is occupied with writing, reducing the processing capacity of the CPU.

本発明は、上記問題点にかんがみてなされたもので、メ
モリ制御回路において、CPUがE2PR○Mのデータ
ー書き込みに費やす時間を短縮し、CPUの処理能力を
向上させるメモリ制御回路の提供を目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a memory control circuit that reduces the time that the CPU spends writing data to E2PR○M and improves the processing performance of the CPU. do.

[問題点の解決手段] 上記目的を達成するため、本発明のメモリ制御回路は、
電気的書き込み・消去可能不揮発性半導体メモリの再書
き込み判定信号により割り込み要求信号を発生させる回
路と、中央演算処理装置の指令により該割り込み要求信
号発生回路の出力を停止させる回路とを備え、上記中央
演算処理装置は、上記割り込み要求信号を受け付け、割
り込み処理でデーター書き込みを行なうとともに、上記
割り込み要求信号停止回路により割り込みを解除させ、
次のデーター書き込みの準備を行なうよう構成しである
[Means for solving problems] In order to achieve the above object, the memory control circuit of the present invention has the following features:
A circuit that generates an interrupt request signal based on a rewrite determination signal of an electrically writable/erasable nonvolatile semiconductor memory, and a circuit that stops the output of the interrupt request signal generation circuit according to a command from a central processing unit, The arithmetic processing unit accepts the interrupt request signal, writes data in interrupt processing, and causes the interrupt request signal stop circuit to cancel the interrupt.
It is configured to prepare for the next data write.

そして、これにより、データー書き込みを簡単な割り込
み処理で行なえるようにしてCPUのデーター書き込み
に専有される時間の短縮化を可能ならしめている。
As a result, data writing can be performed by simple interrupt processing, thereby making it possible to shorten the time occupied by the CPU for data writing.

[実施例] 以下、図面にもとづいて本発明の詳細な説明する。なお
、従来例と共通または対応する部分については同一の符
号で表す。
[Example] Hereinafter, the present invention will be described in detail based on the drawings. Note that parts common to or corresponding to those of the conventional example are denoted by the same reference numerals.

第1図は本発明の一実施例に係るメモリ制御回路の構成
を示すブロック図、第2図は第1図のメモリ制御回路の
タイミングチャート、第3図は第1図のメモリ制御回路
のプログラムを示すフローチャートである。
1 is a block diagram showing the configuration of a memory control circuit according to an embodiment of the present invention, FIG. 2 is a timing chart of the memory control circuit of FIG. 1, and FIG. 3 is a program of the memory control circuit of FIG. 1. It is a flowchart which shows.

第1図において、6は割り込み要求信号発生用フリップ
・フロップ回路(以下、FF回路という。
In FIG. 1, reference numeral 6 denotes a flip-flop circuit (hereinafter referred to as an FF circuit) for generating an interrupt request signal.

)で、E2FROM4が書き込み禁止の時、すなわちR
/B信号が“Ljlレベルの時、Q出力はL”ルベルで
ある。そして、E’PROM4の書き込みが可能な状態
、すなわちR/B信号が′°L“レベルからII HI
Tレベルになると、Q出力はII HITレベルとなる
。また、1バイトデーター書き込み後、CPUIの指令
によりI10ボート5からリセット信号が出力されると
Q出力は再びII LITレベルとなる。
), when E2FROM4 is write-protected, that is, R
When the /B signal is at the "Ljl" level, the Q output is at the "L" level. Then, the E'PROM4 is in a write-enabled state, that is, the R/B signal changes from the '°L' level to II HI.
When it reaches the T level, the Q output becomes the II HIT level. Furthermore, after writing 1 byte data, when a reset signal is output from the I10 port 5 in response to a command from the CPUI, the Q output becomes the II LIT level again.

上記構成において、E’PROM4は1バイトデーター
書き込み後、−旦書き込み禁止となり、この間R/B信
号はIT Ll!レベルとなる。そして、次のバイトに
データー書き込みが可能になるとR/白信号が”′L″
レベルから゛′H″レベルとなり、割り込み用FF回路
6のQ出力によりCPUIに割り込み要求信号を発生さ
せる。CPUIはこの割り込み要求信号を受け付けて、
第3図に示すように割り込みルーチンの処理を開始する
。この割り込みルーチン内で、CPUIは次のバイトに
データー書き込みを行ない、その後、割り込み用FF回
路6のQ出力をリセットさせるため、I10ポート5か
らリセットパルスを出力させる。さらに、大量のデータ
ーを書き込む場合も同じ動作を繰り返す。
In the above configuration, after writing 1 byte data to E'PROM4, writing is disabled for -1 moment, and during this time the R/B signal is IT Ll! level. Then, when it becomes possible to write data to the next byte, the R/white signal becomes “L”.
level to "H" level, and the Q output of the interrupt FF circuit 6 generates an interrupt request signal to the CPUI.The CPUI accepts this interrupt request signal,
As shown in FIG. 3, processing of the interrupt routine is started. In this interrupt routine, the CPUI writes data to the next byte, and then outputs a reset pulse from the I10 port 5 in order to reset the Q output of the interrupt FF circuit 6. Furthermore, the same operation is repeated when writing a large amount of data.

このように、本実施例では割り込み処理によりE2PR
OM4の書き込みを行なうため、従来のようにE2PR
OM4が再書き込み解除となるまでプログラムの中で待
機する必要がなく、CPUIがデーターの書き込みに専
有される時間を短縮できる。また、CPUIは必要に応
じて他の処理を行なうことができる。
In this way, in this embodiment, the E2PR is
In order to write to OM4, E2PR is used as before.
There is no need to wait in the program until OM4 is released from rewriting, and the time that the CPU is exclusively used for writing data can be shortened. Further, the CPUI can perform other processing as necessary.

[発明の効果] 以上説明したように本発明は、簡単な回路構成でCPU
のE2PRoMのデーターの書き込みに費やされる時間
を短縮し、CPUの処理能力を向上させることができる
効果がある。
[Effects of the Invention] As explained above, the present invention has a simple circuit configuration that allows the CPU to
This has the effect of reducing the time spent writing data in the E2PRoM and improving the processing capacity of the CPU.

また、本発明をE2FROMを使って大量のデーターを
書き込み、電源が断になっても記憶されたデーターを保
持する必要のある一般のマイクロコンピュータ−を使っ
た制御監視装置等に適用することにより、マイクロプロ
セッサの空き時間の有効活用を図ることができる。
Furthermore, by applying the present invention to a control/monitoring device using a general microcomputer that writes a large amount of data using E2FROM and needs to retain the stored data even if the power is turned off, It is possible to effectively utilize the idle time of the microprocessor.

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

第1図は本発明の一実施例に係るメモリ制御回路のブロ
ック図、第2図は第1図のメモリ制御回路のタイミング
チャート、第3図は第1図のメモリ制御回路のプログラ
ムのフローチャート、第4図は従来の実施例に係るメモ
リ制御回路のブロック図、第5図は第4図のメモリ制御
回路のプログラムのフローチャートである。
1 is a block diagram of a memory control circuit according to an embodiment of the present invention, FIG. 2 is a timing chart of the memory control circuit of FIG. 1, and FIG. 3 is a flowchart of a program of the memory control circuit of FIG. 1. FIG. 4 is a block diagram of a memory control circuit according to a conventional embodiment, and FIG. 5 is a flowchart of a program of the memory control circuit of FIG.

Claims (1)

【特許請求の範囲】[Claims]  中央演算処理装置により電気的書き込み・消去可能不
揮発性半導体メモリのデーター書き込みを行なうメモリ
制御回路において、上記電気的書き込み・消去可能不揮
発性半導体メモリの再書き込み判定信号にもとづいて割
り込み要求信号を発生させる回路と、上記中央演算処理
装置の指令により該割り込み要求信号発生回路の出力を
停止させる回路とを備え、上記中央演算処理装置は、上
記割り込み要求信号を受け付けると割り込み処理により
データー書き込みを行ない、さらに上記割り込み要求信
号停止回路により割り込みを解除させ、次のデーター書
き込みの準備を行なうよう構成されてなるメモリ制御回
路。
In a memory control circuit that writes data to the electrically programmable and erasable nonvolatile semiconductor memory by a central processing unit, an interrupt request signal is generated based on the rewrite determination signal of the electrically programmable and erasable nonvolatile semiconductor memory. and a circuit for stopping the output of the interrupt request signal generation circuit according to a command from the central processing unit, and the central processing unit, upon receiving the interrupt request signal, performs data writing by interrupt processing; A memory control circuit configured to release an interrupt by the interrupt request signal stop circuit and prepare for writing the next data.
JP19932386A 1986-08-25 1986-08-25 Memory controlling circuit Pending JPS6354642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19932386A JPS6354642A (en) 1986-08-25 1986-08-25 Memory controlling circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19932386A JPS6354642A (en) 1986-08-25 1986-08-25 Memory controlling circuit

Publications (1)

Publication Number Publication Date
JPS6354642A true JPS6354642A (en) 1988-03-09

Family

ID=16405884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19932386A Pending JPS6354642A (en) 1986-08-25 1986-08-25 Memory controlling circuit

Country Status (1)

Country Link
JP (1) JPS6354642A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6427096A (en) * 1987-07-23 1989-01-30 Fujitsu Ltd Microcomputer with built-in eeprom
JPH01279496A (en) * 1988-04-30 1989-11-09 Kanto Seiki Co Ltd Method and apparatus for rewriting nonvolatile memory
US5983330A (en) * 1997-03-21 1999-11-09 Mitsubishi Denki Kabushiki Kaisha Microcomputer with watchdog timer settings suppressing interrupt request processing over memory data write operation to flash memory

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6427096A (en) * 1987-07-23 1989-01-30 Fujitsu Ltd Microcomputer with built-in eeprom
JPH01279496A (en) * 1988-04-30 1989-11-09 Kanto Seiki Co Ltd Method and apparatus for rewriting nonvolatile memory
US5983330A (en) * 1997-03-21 1999-11-09 Mitsubishi Denki Kabushiki Kaisha Microcomputer with watchdog timer settings suppressing interrupt request processing over memory data write operation to flash memory

Similar Documents

Publication Publication Date Title
JPS6354642A (en) Memory controlling circuit
KR100223844B1 (en) Option circuit
US5487157A (en) Microprogrammed microcomputer with high-speed interrupt for DRAM refresh
JP3956305B2 (en) Nonvolatile semiconductor memory device and data processing device
JPH01261758A (en) Computer system
JPH0554009A (en) Program load system
JPS603658B2 (en) Digital protection control device
JP3127737B2 (en) Digital signal processor
JPS63298654A (en) Microcomputer
JPS60230238A (en) Microprogram control device
JPS63298657A (en) Ipl system
JPH11154096A (en) Flash memory management device and method, and interruption management device and method
JPH0289296A (en) Nonvolatile memory circuit
JPS63117396A (en) Non-volatile semiconductor memory device
JPS61183764A (en) Direct memory access controlling system
JPH03256127A (en) Microprocessor system
JPH1153174A (en) Computer and program execution method
JPH02125303A (en) Programmable controller
JPH02123450A (en) Information processing system
JPH0527873A (en) Reset device in computer system
JPH0287227A (en) Data processor
JPH0250390A (en) Dynamic ram controlling system
JPS62152056A (en) Information processor
JPS61166630A (en) Microprogram control system
JPH02178865A (en) Preventing circuit for ipl program destruction