JPH11110303A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH11110303A
JPH11110303A JP9267192A JP26719297A JPH11110303A JP H11110303 A JPH11110303 A JP H11110303A JP 9267192 A JP9267192 A JP 9267192A JP 26719297 A JP26719297 A JP 26719297A JP H11110303 A JPH11110303 A JP H11110303A
Authority
JP
Japan
Prior art keywords
data
nonvolatile memory
state
area
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
JP9267192A
Other languages
Japanese (ja)
Inventor
Kazumasa Chiaki
一雅 千明
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP9267192A priority Critical patent/JPH11110303A/en
Publication of JPH11110303A publication Critical patent/JPH11110303A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce microcomputer malfunction which is caused by an overwriting condition of nonvolatile memory. SOLUTION: A controlling part 2 once stores external data in a buffer circuit 5 according to a data write instruction. After that, the part 2 outputs a write signal W and shifts the state of a write access flag in accordance with the signal W. One of data areas (a) to (d) of nonvolatile memory 7 is designated in accordance with the condition of the write access flag, data are transferred to the designated data area from the circuit 5 and the data are written. Because the write access flag maintains the condition of a pattern that corresponds to the designated data area, a data area that is currently designated can be recognized.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データの一括消去
可能な不揮発性メモリーを内蔵したマイクロコンピュー
タに関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a microcomputer having a built-in nonvolatile memory capable of collectively erasing data.

【0002】[0002]

【従来の技術】一般に、マイクロコンピュータには動作
制御用のプログラムが記憶されるマスクROMやデータ
が記憶されるRAMが内蔵されている。一方、メモリー
として、書き込まれたデータの電気的な一括消去が可能
な不揮発性メモリが知られており、最近ではマイクロコ
ンピュータにおいて前記マスクROM及びRAMの代わ
りに不揮発性メモリが内蔵されるようになった。不揮発
性メモリがマイクロコンピュータに内蔵されると、不揮
発性メモリが電気的に書き込み済みデータの消去が可能
なため、動作制御用のプログラムの書き換えが可能とな
る利点がある。その為、不揮発性メモリをマイクロコン
ピュータに内蔵する用途が多くなっている。
2. Description of the Related Art Generally, a microcomputer has a built-in mask ROM for storing an operation control program and a RAM for storing data. On the other hand, a nonvolatile memory capable of electrically erasing written data electrically at a time is known as a memory. Recently, a nonvolatile memory has been built in a microcomputer instead of the mask ROM and RAM. Was. When the nonvolatile memory is incorporated in the microcomputer, there is an advantage that the nonvolatile memory can electrically erase the already-written data, so that the operation control program can be rewritten. For this reason, applications for incorporating a non-volatile memory in a microcomputer are increasing.

【0003】ここで、不揮発性メモリの一つとして、図
4のようなスプリットゲート型フラッシュメモリーがあ
り、この不揮発性メモリーについて動作説明を行う。ま
ず、フラッシュメモリーへのデータの書き込みを行う場
合、ドレイン電極3を接地し、ソース電極4に12Vの
電圧を印加し、コントロールゲート電極に2Vの電圧を
印加する。ソース−ドレイン間に大きい電位差が生じる
ので、その間に負の電荷が生じ、ソースからドレインに
電流が流れ、このとき、ソース−ドレイン間の大きな電
位差に従いホットエレクトロンという電荷が発生する。
さらに、コントロールゲート2に2Vの電圧を印加して
いるため、フローティングゲート下部のチャネルの電圧
は約9Vとなり、前記ホットエレクトロンが引き上げら
れフローティングゲート1に蓄えられる。フローティン
グゲート1に電荷が蓄えられると、フローティングゲー
ト1下部のチャネルが正に帯電されるので、ソース−ド
レイン間に電流が流れることはない。よって、この状態
をデータ「0」の書き込み状態と定義する。尚、フロー
ティングゲート1に電荷が蓄えられていないと、フロー
ティングゲート1が正に帯電されるため、ソース−ドレ
イン間のチャネルが負に帯電されるため、この間を電流
が流れる。よって、この状態はデータ「1」の書き込み
状態になる。
Here, as one of the non-volatile memories, there is a split gate type flash memory as shown in FIG. 4, and the operation of the non-volatile memory will be described. First, when writing data to the flash memory, the drain electrode 3 is grounded, a voltage of 12V is applied to the source electrode 4, and a voltage of 2V is applied to the control gate electrode. Since a large potential difference is generated between the source and the drain, a negative charge is generated during the period, and a current flows from the source to the drain. At this time, a charge called hot electron is generated according to the large potential difference between the source and the drain.
Further, since a voltage of 2 V is applied to the control gate 2, the voltage of the channel below the floating gate becomes about 9 V, and the hot electrons are pulled up and stored in the floating gate 1. When charges are stored in the floating gate 1, the channel below the floating gate 1 is positively charged, so that no current flows between the source and the drain. Therefore, this state is defined as a state of writing data “0”. If no charge is stored in the floating gate 1, the floating gate 1 is positively charged, and the channel between the source and the drain is negatively charged. Therefore, this state is a state where data “1” is written.

【0004】また、フラッシュメモリーに書き込まれた
データを読み出す場合、ドレイン電極3に2Vの電圧を
印加し、ソース電極4を接地し、コントロールゲート電
極5に電源電圧程度の電圧を印加する。フローティング
ゲート1に電荷が蓄えられている場合、フローティング
ゲート1下部のチャネルが正に帯電されているため、ソ
ース−ドレイン間に一定の電位差を与えても、その間に
電流が流れない。また、フローティングゲート1に電荷
が蓄えれられていない場合、コントロールゲート電極5
に電圧を印加するため、ソース−ドレイン間のチャネル
がより一層負に帯電し、ソース−ドレイン間により多く
電流が流れる。よって、データの読み出しは、ソースか
ら得られるセル電流と呼ばれる電流の有無を確認するこ
とによって、行われる。
When reading data written in the flash memory, a voltage of 2 V is applied to the drain electrode 3, the source electrode 4 is grounded, and a voltage of about the power supply voltage is applied to the control gate electrode 5. In the case where charges are stored in the floating gate 1, since the channel below the floating gate 1 is positively charged, no current flows even if a certain potential difference is applied between the source and the drain. When no charge is stored in the floating gate 1, the control gate electrode 5
, The channel between the source and the drain is more negatively charged, and more current flows between the source and the drain. Therefore, data reading is performed by confirming the presence or absence of a current called a cell current obtained from a source.

【0005】次に、不揮発性メモリ中のデータの電気的
消去について説明する。図3において、ソース及びドレ
イン電極3及び4を接地(0V)し、コントロールゲー
ト電極5を15V以上にして、コントロールゲート2と
ソースとの間の電位差を大きくする。この電位差によ
り、フローティングゲート1の突起部からコントロール
ゲート2へトンネリング現象が起こり、フローティング
ゲート1に蓄積された電荷がトンネリング電流としてコ
ントロールゲート2に引き抜かれる。こうしてフローテ
ィングゲート1の電荷を除去し、フローティングゲート
1を元の状態とし、電気的消去が実行される。
Next, electrical erasure of data in the nonvolatile memory will be described. In FIG. 3, the source and drain electrodes 3 and 4 are grounded (0 V), the control gate electrode 5 is set to 15 V or more, and the potential difference between the control gate 2 and the source is increased. Due to this potential difference, a tunneling phenomenon occurs from the protrusion of the floating gate 1 to the control gate 2, and the charges accumulated in the floating gate 1 are drawn out to the control gate 2 as a tunneling current. In this way, the electric charge of the floating gate 1 is removed, the floating gate 1 is returned to the original state, and the electrical erasure is performed.

【0006】[0006]

【発明が解決しようとする課題】ところで、図4の不揮
発性メモリーには、書き込み/消去を数万回行うと、消
去ができなくなるという問題点がある。フローティング
ゲート1中の電荷をどの程度除去できるかは、一定時間
当たりにゲートに印加される電圧の大きさに依ってい
る。ゲートへの電圧が大きければフローティングゲート
1中の電荷を確実に除去できる。
The nonvolatile memory shown in FIG. 4 has a problem that erasing cannot be performed if writing / erasing is performed tens of thousands of times. How much the charge in the floating gate 1 can be removed depends on the magnitude of the voltage applied to the gate per fixed time. If the voltage to the gate is large, the charge in the floating gate 1 can be reliably removed.

【0007】しかし、従来例では、フローティングゲー
ト1の電荷を除去することを目的として、ゲートに印加
される電圧の大きさは一定であった。その為、不揮発性
メモリのデータの電気的消去を何度も繰り返している
と、場合によっては、電気的消去を行ったつもりでいて
も不揮発性メモリのメモリセルの中にはフローティング
ゲート中の電荷が完全に除去されないで一部残っている
状況が起こり得る(過書き込み状態)。すると、フロー
ティングゲートに電荷が残った状態で、メモリセルに
「1」を書き込もうとすると、フローティングゲート1
に電荷が残っているため、このメモリセルは「0」の書
き込み状態となり、「1」を書き込むことができなかっ
た。
However, in the prior art, the magnitude of the voltage applied to the floating gate 1 is constant for the purpose of removing the electric charge from the floating gate. Therefore, if the electrical erasure of data in the nonvolatile memory is repeated many times, the electric charge in the floating gate may be stored in the memory cells of the nonvolatile memory even if the electrical erasure is intended. May not be completely removed and may remain partially (overwriting condition). Then, when an attempt is made to write “1” into the memory cell while electric charges remain in the floating gate, the floating gate 1
, This memory cell is in the state of writing "0" and could not write "1".

【0008】上記の不揮発性メモリの問題は、不揮発性
メモリを内蔵したマイクロコンピュータにも悪影響を及
ぼす。例えば、不揮発性メモリをRAMとして使用した
場合、データの書き換えにより不揮発性メモリは書き込
み/消去が繰り返される。この書き込み/消去が不揮発
性メモリの同一アドレス上、即ち所定のメモリセルを含
む領域で繰り返し続けられると、上記の過書き込み状態
が発生する。その為、マイクロコンピュータを動作させ
た場合、過書き込み状態により使用者の意図に反したデ
ータが書き込まれ、誤ったデータや誤ったプログラムが
不揮発性メモリに記憶され、マイクロコンピュータの誤
動作の原因となっていた。
[0008] The above-mentioned problem of the non-volatile memory adversely affects the microcomputer having the non-volatile memory. For example, when a nonvolatile memory is used as a RAM, writing / erasing of the nonvolatile memory is repeated by rewriting data. If this writing / erasing is repeated on the same address of the nonvolatile memory, that is, in an area including a predetermined memory cell, the overwriting state occurs. For this reason, when the microcomputer is operated, data contrary to the user's intention is written due to an overwrite state, and erroneous data and an incorrect program are stored in the non-volatile memory, which causes a malfunction of the microcomputer. I was

【0009】[0009]

【課題を解決するための手段】本発明は、書き込み済み
のデータを電気的に一括消去可能な不揮発性メモリと、
前記不揮発性メモリの書き込み及び消去を制御する制御
部とを備えるマイクロコンピュータにおいて、前記不揮
発性メモリに、所定単位のデータ領域を複数個設けたこ
とを特徴とする。
According to the present invention, there is provided a nonvolatile memory capable of electrically erasing written data electrically at once,
In a microcomputer including a control unit for controlling writing and erasing of the nonvolatile memory, a plurality of data areas of a predetermined unit are provided in the nonvolatile memory.

【0010】特に、前記制御部は、前記データ領域のう
ち一つを指定してデータを書き込ませ、前記不揮発性メ
モリにデータを書き込ませるごとに、指定するデータ領
域を変えることを特徴とする。さらに、前記不揮発性メ
モリ中に、指定されているデータ領域が認識できるよう
に所定の状態が保持されるライトアクセスフラグを設け
たことを特徴とする。
In particular, the controller is characterized in that one of the data areas is designated to write data, and the designated data area is changed each time data is written to the nonvolatile memory. Furthermore, a write access flag for maintaining a predetermined state is provided in the nonvolatile memory so that a specified data area can be recognized.

【0011】また、前記ライトアクセスフラグは、前記
データ領域の各々に対応したフラグ領域を有し、前記不
揮発性メモリにデータが書き込まれる毎に前記フラグ領
域の状態が遷移することを特徴とする。さらに、データ
書き込み時前記制御部から出力されるライト信号に応じ
て、前記ライトアクセスフラグの状態を遷移させるアク
セス制御回路を備えることを特徴とする。
The write access flag has a flag area corresponding to each of the data areas, and the state of the flag area changes every time data is written to the nonvolatile memory. Furthermore, an access control circuit is provided which changes the state of the write access flag in accordance with a write signal output from the control unit when writing data.

【0012】本発明に依れば、不揮発性メモリを所定単
位のデータ領域を複数個備え、データの書き込みを行わ
せる毎に、書き込みが指定されるデータ領域が順次変え
るので、書き込み/消去の回数が各データ領域に分散さ
れ、1つのデータ領域における回数が減少し、過書き込
み状態となるまでの不揮発性メモリ全体の回数を防止す
ることができる。
According to the present invention, since the nonvolatile memory is provided with a plurality of data areas of a predetermined unit and the data area designated to be written is sequentially changed each time data is written, the number of times of writing / erasing is changed. Are distributed to each data area, the number of times in one data area decreases, and the number of times of the entire nonvolatile memory until the overwriting state is reached can be prevented.

【0013】[0013]

【発明の実施の形態】図1は本発明の実施の形態を示す
図である。1は例えば外部データが入出力される入出力
ポート、2は入出力ポート1からのデータを後述される
不揮発性メモリに書き込むために各回路の動作を制御す
る制御部であり、例えばCPU(中央演算処理装置)で
構成され、図示されない不揮発性メモリのプログラム領
域に記憶されるプログラムに基づいて動作し、主に後述
される不揮発性メモリ7へのデータの書き込み/読み出
し動作を制御する。
FIG. 1 is a diagram showing an embodiment of the present invention. Reference numeral 1 denotes an input / output port through which external data is input / output, and 2 denotes a control unit that controls the operation of each circuit to write data from the input / output port 1 to a nonvolatile memory described later. And operates based on a program stored in a program area of a non-volatile memory (not shown), and mainly controls an operation of writing / reading data to / from the non-volatile memory 7 described later.

【0014】3は制御部2の指示により、外部データや
プログラム動作中に生成されたデータを一旦記憶するR
AM、4はアドレスバスを含み、入出力ポート1、制御
部2及びRAM3の間のデータ伝送を行うためのバス、
5は1ページ分の領域を有し、データバス6を介して伝
送された1ページ分のデータを一旦格納するページバッ
ファ、7は1ページ分のデータの記憶可能な4つのデー
タ領域a乃至dと、データ領域へのアクセス状態を示す
ライトアクセスフラグとを含み、データ領域a乃至dに
データが記憶される不揮発性メモリ、8は制御部2のラ
イト信号及びリード信号に基づいてライトアクセスフラ
グの状態を遷移させるアクセス制御回路である。不揮発
性メモリ7はデータ領域a乃至dのうち1つを指定する
アドレス回路を内蔵しており、ライトアクセスフラグの
状態に応じてデータ領域を指定する。
Reference numeral 3 denotes an R which temporarily stores external data or data generated during a program operation in accordance with an instruction from the control unit 2.
AM, 4 include an address bus, a bus for performing data transmission between the input / output port 1, the control unit 2 and the RAM 3,
Reference numeral 5 denotes a page buffer having an area for one page and temporarily storing data for one page transmitted via the data bus 6, and 7 denotes four data areas a to d capable of storing data for one page. And a write access flag indicating a state of access to the data area. The nonvolatile memory 8 stores data in the data areas a to d. This is an access control circuit that changes the state. The nonvolatile memory 7 has a built-in address circuit for designating one of the data areas a to d, and designates the data area according to the state of the write access flag.

【0015】次に、図1の書き換え動作について図2を
参照して説明する。まず、外部より書き換え命令が制御
部2に入力されると、制御部2は入力ポート1を介して
外部からデータを取り込み、データをRAM3に一時記
憶させる(S1)。続いて、一時記憶が完了すると、制
御部2は、RAM3に記憶されるデータを1バイト毎読
み出し、前記データを126バイト(=1ページ)分だ
けバッファ回路5に一旦格納させる。バッファ回路5へ
の1ページ分のデータの転送が完了すると、制御部2は
ライト信号Wを出力する(S2)。
Next, the rewriting operation of FIG. 1 will be described with reference to FIG. First, when a rewrite command is input from the outside to the control unit 2, the control unit 2 takes in data from the outside via the input port 1 and temporarily stores the data in the RAM 3 (S1). Subsequently, when the temporary storage is completed, the control unit 2 reads out the data stored in the RAM 3 for each byte and temporarily stores the data in the buffer circuit 5 for 126 bytes (= 1 page). When the transfer of one page of data to the buffer circuit 5 is completed, the control unit 2 outputs a write signal W (S2).

【0016】ライト信号Wはアクセス制御回路8に入力
される。アクセス制御回路8はライト信号Wを受ける毎
に、ライトアクセスフラグの状態を遷移させる。ライト
アクセスフラグは各々のデータ領域a乃至dに対応した
フラグ領域Fa乃至Fdを有しており、フラグ領域の状
態のパターンは図3のように4パターンとる。このフラ
グ領域は例えばデータ領域と独立した領域に形成されて
おり、アクセス制御回路8によりフラグ領域のアドレス
が指定されて、フラグ領域の状態が遷移される。そし
て、アクセス制御回路8は、各々のフラグ領域Fa乃至
Fdの状態を、図3の矢印のような順番に従って順次遷
移させていく。図3の順番は、ライト信号が印加される
毎に*印のフラグ領域に「0」のデータを書き込み、状
態を反転することによって、達成される。そして、ライ
トアクセスフラグは4番目の状態から次の状態に遷移す
るとき、フラグ領域の不揮発性メモリを消去することに
より、1番目の状態に戻る。
The write signal W is input to the access control circuit 8. Each time the access control circuit 8 receives the write signal W, it changes the state of the write access flag. The write access flag has flag areas Fa to Fd corresponding to the data areas a to d, respectively, and the state of the flag area has four patterns as shown in FIG. The flag area is formed, for example, in an area independent of the data area. The address of the flag area is designated by the access control circuit 8, and the state of the flag area is changed. Then, the access control circuit 8 sequentially changes the state of each of the flag areas Fa to Fd in the order shown by the arrow in FIG. The order of FIG. 3 is achieved by writing "0" data in the flag area marked * every time a write signal is applied, and inverting the state. When the write access flag transitions from the fourth state to the next state, the nonvolatile memory in the flag area is erased to return to the first state.

【0017】ライト信号Wにより、1番の状態から2番
の状態に遷移したとすると、*印が付いたフラグ領域F
bの一つ上のフラグ領域Faに対応するデータ領域aが
指定されるように構成される。つまり、不揮発性メモリ
7に内蔵されるアドレス回路は、*印が付いたフラグ領
域の一つ前のフラグ領域に対応するデータ領域aを指定
する。但し、フラグ領域Faに*印がある場合、フラグ
領域Fdに対応するデータ領域dが指定される。データ
領域aが指定されることにより、データ領域aのみが書
き込み可能な状態になる。
If it is assumed that the state changes from the first state to the second state by the write signal W, the flag area F marked with *
The configuration is such that a data area a corresponding to the flag area Fa one level above b is specified. That is, the address circuit built in the nonvolatile memory 7 specifies the data area a corresponding to the flag area immediately before the flag area marked with *. However, when there is a mark * in the flag area Fa, the data area d corresponding to the flag area Fd is designated. When the data area a is designated, only the data area a becomes writable.

【0018】その後、バッファ回路5から不揮発性メモ
リ7に、1ページ分のデータが転送され、書き込み可能
な状態となっているデータ領域aにデータが書き込まれ
る。次に、データ領域aに書き込まれたテーブルデータ
が正確に書き込まれたか否か確認される。制御部2はリ
ード信号Rを出力し、アクセス制御回路8は不揮発性メ
モリ7を読み出し状態とし、ライトアクセスフラグの状
態によってデータ領域aが読み出し可能な状態になる。
そして、制御部2は、データ領域aからデータを読み出
し、また、RAM3からもデータを読み出す。制御部2
において、データ領域aのデータとRAM3のデータと
が比較される。つまり、不揮発性メモリ7に書き込み済
みのデータと、書き込み前のデータとが、1ページ分の
それぞれにおいて一致しているか否か検出する(S
3)。
Thereafter, one page of data is transferred from the buffer circuit 5 to the nonvolatile memory 7, and the data is written to the data area a in a writable state. Next, it is confirmed whether or not the table data written in the data area a has been correctly written. The control unit 2 outputs a read signal R, the access control circuit 8 sets the nonvolatile memory 7 to a read state, and the data area a becomes readable according to the state of the write access flag.
Then, the control unit 2 reads data from the data area a and also reads data from the RAM 3. Control unit 2
, The data in the data area a and the data in the RAM 3 are compared. That is, it is detected whether or not the data written in the nonvolatile memory 7 and the data before the writing match each other for one page (S
3).

【0019】データ領域aのデータとRAM3のデータ
とが一致しない場合、S1に戻り、再度データの書き込
みが行われる。データの不一致は、消去時不揮発性メモ
リ7のフローティング中の電荷を完全に除去できないた
めに、指定されたデータ領域が正確な記憶を行うことが
できなかったことに起因する。よって、データ領域aで
は正確な書き込み動作ができないため、次のデータ領域
bを選択するように動作させる。即ち、データをバッフ
ァ回路5に転送し、制御部2が再びライト信号Wを出力
し、ライト信号Wに基づきアクセス制御回路8はライト
アクセスフラグを2番目から3番目の状態に遷移させ
る。その結果データ領域bが指定され、データ領域bに
データを書き込もうとし、書き込まれたら再びデータが
一致するか確認動作を行う。
If the data in the data area "a" does not match the data in the RAM 3, the process returns to S1 and the data is written again. The data mismatch is caused by the fact that the floating charge of the nonvolatile memory 7 at the time of erasing cannot be completely removed, so that the specified data area cannot be accurately stored. Therefore, since an accurate write operation cannot be performed in the data area a, an operation is performed to select the next data area b. That is, the data is transferred to the buffer circuit 5, the control unit 2 outputs the write signal W again, and the access control circuit 8 changes the write access flag from the second state to the third state based on the write signal W. As a result, the data area b is specified, and an attempt is made to write data to the data area b. When the data is written, an operation for confirming whether the data matches again is performed.

【0020】また、S3において、データ領域aのデー
タとRAM3のデータとが一致する場合、書き込みが正
確に行われたと判断され、不揮発性メモリ7の書き換え
動作を終了する。再び、書き換え命令が制御部2に入力
されると、書き換え動作が開始され、不揮発性メモリ7
のデータの書き換え動作が行われるようになる。する
と、制御部2がライト信号Wを出力すると、アクセス制
御回路8により、ライトアクセスフラグの状態が遷移さ
れる。その結果データ領域bが指定され、制御部2はデ
ータ領域bにデータを書き込もうとする。
If the data in the data area a and the data in the RAM 3 match in S3, it is determined that the writing has been correctly performed, and the rewriting operation of the nonvolatile memory 7 ends. When the rewrite command is input to the control unit 2 again, the rewrite operation is started and the nonvolatile memory 7
Data rewriting operation is performed. Then, when the control unit 2 outputs the write signal W, the access control circuit 8 changes the state of the write access flag. As a result, the data area b is specified, and the control unit 2 attempts to write data in the data area b.

【0021】[0021]

【発明の効果】本発明に依れば、不揮発性メモリにおい
て、データを書き込むデータ領域を複数に分け、書き込
みする毎にデータ領域を順次変えて書き込みを行うの
で、書き込み/消去の回数が各データ領域に分散され、
1つのデータ領域における回数が減少する。これによ
り、過書き込み状態になるまでの不揮発性メモリ全体の
書き込み/消去の回数を増大させることができる。不揮
発性メモリ内蔵のマイクロコンピュータでは、正確なデ
ータ書き込みを行う回数を増やすことができるので、誤
動作を低減することができる。
According to the present invention, in a nonvolatile memory, a data area to which data is written is divided into a plurality of areas, and the data area is sequentially changed every time writing is performed. Distributed in the area,
The number of times in one data area decreases. This makes it possible to increase the number of times of writing / erasing of the entire nonvolatile memory until the overwriting state occurs. In a microcomputer with a built-in nonvolatile memory, the number of times of accurate data writing can be increased, so that malfunctions can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1の動作を説明するフローチャートである。FIG. 2 is a flowchart illustrating the operation of FIG.

【図3】図1のライトアクセスフラグの状態を示す図で
ある。
FIG. 3 is a diagram showing a state of a write access flag in FIG. 1;

【図4】スプリットゲート型不揮発性メモリを示す断面
図である。
FIG. 4 is a sectional view showing a split gate nonvolatile memory.

【符号の説明】[Explanation of symbols]

1 入出力ポート 2 制御部 3 RAM 5 バッファ回路 7 不揮発性メモリ 8 アクセス制御回路 DESCRIPTION OF SYMBOLS 1 I / O port 2 Control part 3 RAM 5 Buffer circuit 7 Non-volatile memory 8 Access control circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 書き込み済みのデータを電気的に一括消
去可能な不揮発性メモリと、前記不揮発性メモリの書き
込み及び消去を制御する制御部とを備えるマイクロコン
ピュータにおいて、 前記不揮発性メモリに、所定単位のデータ領域を複数個
設けたことを特徴とするマイクロコンピュータ。
1. A microcomputer comprising: a nonvolatile memory capable of electrically erasing written data in a batch; and a control unit that controls writing and erasing of the nonvolatile memory. Wherein a plurality of data areas are provided.
【請求項2】 前記制御部は、前記データ領域のうち一
つを指定してデータを書き込ませ、前記不揮発性メモリ
にデータを書き込ませるごとに、指定するデータ領域を
変えることを特徴とする請求項1記載のマイクロコンピ
ュータ。
2. The method according to claim 1, wherein the control unit designates one of the data areas to write data, and changes the designated data area each time data is written to the nonvolatile memory. Item 18. The microcomputer according to Item 1.
【請求項3】 前記不揮発性メモリ中に、指定されてい
るデータ領域が認識できるように所定の状態が保持され
るライトアクセスフラグを設けたことを特徴とする請求
項1記載のマイクロコンピュータ。
3. The microcomputer according to claim 1, wherein a write access flag for maintaining a predetermined state is provided in the nonvolatile memory so that a designated data area can be recognized.
【請求項4】 前記ライトアクセスフラグは、前記デー
タ領域の各々に対応したフラグ領域を有し、前記不揮発
性メモリにデータが書き込まれる毎に前記フラグ領域の
状態が遷移することを特徴とする請求項3記載のマイク
ロコンピュータ。
4. The write access flag has a flag area corresponding to each of the data areas, and the state of the flag area changes every time data is written to the nonvolatile memory. Item 18. The microcomputer according to Item 3.
【請求項5】 さらに、データ書き込み時前記制御部か
ら出力されるライト信号に応じて、前記ライトアクセス
フラグの状態を遷移させるアクセス制御回路を備えるこ
とを特徴とする請求項3記載のマイクロコンピュータ。
5. The microcomputer according to claim 3, further comprising an access control circuit that changes a state of the write access flag in accordance with a write signal output from the control unit when writing data.
JP9267192A 1997-09-30 1997-09-30 Microcomputer Pending JPH11110303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9267192A JPH11110303A (en) 1997-09-30 1997-09-30 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9267192A JPH11110303A (en) 1997-09-30 1997-09-30 Microcomputer

Publications (1)

Publication Number Publication Date
JPH11110303A true JPH11110303A (en) 1999-04-23

Family

ID=17441404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9267192A Pending JPH11110303A (en) 1997-09-30 1997-09-30 Microcomputer

Country Status (1)

Country Link
JP (1) JPH11110303A (en)

Similar Documents

Publication Publication Date Title
KR100320360B1 (en) Program memory for remote reprogrammable microcontrollers
JP3489708B2 (en) Nonvolatile semiconductor memory device
JP3251968B2 (en) Semiconductor storage device
US20050254306A1 (en) Flash memory device and method for driving the same
US7075831B2 (en) Method for erasing an NROM cell
KR100291807B1 (en) A nonvolatile storage device and control method therefor
US6781882B2 (en) Nonvolatile semiconductor storage device having a shortened time required for a data erasing operation and data erasing method thereof
JP4330057B2 (en) Flash compatible EEPROM
US7590793B2 (en) Data access controlling method in flash memory and data access controlling program
EP4107728A1 (en) Wear leveling in eeprom emulator formed of flash memory cells
JP3641066B2 (en) Microcomputer data rewriting method with embedded flash memory
JPH11110303A (en) Microcomputer
EP1111622A2 (en) System and method for handling a power supply interruption in a non-volatile memory
EP1011105B1 (en) One-chip microcomputer
JPH11110299A (en) Microcomputer
JPS58208994A (en) Nonvolatile semiconductor storage device
US6898680B2 (en) Minimization of overhead of non-volatile memory operation
TWI420526B (en) Semiconductor device and control method therefor
JPH11110304A (en) Microcomputer
JPH0131313B2 (en)
JP4213053B2 (en) MEMORY CONTROLLER, FLASH MEMORY SYSTEM PROVIDED WITH MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD
JPH05290585A (en) Nonvolatile memory writable electrically
JPH11110298A (en) Microcomputer
JP2001189086A (en) Erasing method of flash memory element
JP4678957B2 (en) Nonvolatile memory array, microcomputer and microcomputer program rewriting method