JP3485793B2 - Nonvolatile memory and microcomputer incorporating the same - Google Patents

Nonvolatile memory and microcomputer incorporating the same

Info

Publication number
JP3485793B2
JP3485793B2 JP06734998A JP6734998A JP3485793B2 JP 3485793 B2 JP3485793 B2 JP 3485793B2 JP 06734998 A JP06734998 A JP 06734998A JP 6734998 A JP6734998 A JP 6734998A JP 3485793 B2 JP3485793 B2 JP 3485793B2
Authority
JP
Japan
Prior art keywords
signal
output
nonvolatile memory
counter
erase
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.)
Expired - Fee Related
Application number
JP06734998A
Other languages
Japanese (ja)
Other versions
JPH11265598A (en
Inventor
徹 渡辺
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 JP06734998A priority Critical patent/JP3485793B2/en
Publication of JPH11265598A publication Critical patent/JPH11265598A/en
Application granted granted Critical
Publication of JP3485793B2 publication Critical patent/JP3485793B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Microcomputers (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明が属する技術分野】本発明は、フラッシュメモリ
等の不揮発性メモリ及びこれを内蔵したマイクロコンピ
ュータ(以下マイコンと呼ぶ)に関し、特に、メモリの
テストを効率的に行うための機能を付加した不揮発性メ
モリに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a nonvolatile memory such as a flash memory and a microcomputer incorporating the same (hereinafter referred to as a microcomputer), and more particularly to a nonvolatile memory added with a function for efficiently testing a memory. About sex memory.

【0002】[0002]

【従来の技術】メモリセルが単一のトランジスタからな
る電気的に消去可能なプログラマブルROM(EEPROM:E
lectricaly Erasable Programmable ROM)においては、
フローティングゲートとコントロールゲートを有する2
重ゲート構造のトランジスタによって各メモリセルが構
成される。このような2重ゲート構造のトランジスタの
場合、フローティングゲートのドレイン側で発生したホ
ットエレクトロンをソース側へ加速し、ゲート絶縁膜を
通過させてフローティングゲートに注入することにより
情報の書き込みが行われ、注入されたホットエレクトロ
ンをフローティングゲートから抜き取ることによって消
去が行われる。そして、フローティングゲートに電荷が
注入されたか否かによるメモリセルトランジスタの動作
特性の差を検出することで、情報の読み出しが行われ
る。
2. Description of the Related Art An electrically erasable programmable ROM (EEPROM: E) whose memory cell is a single transistor
lectricaly Erasable Programmable ROM)
2 with floating gate and control gate
Each memory cell is composed of a transistor having a double gate structure. In the case of such a transistor having a double-gate structure, information is written by accelerating hot electrons generated on the drain side of the floating gate toward the source side, passing through the gate insulating film and injecting into the floating gate, Erasing is performed by extracting the injected hot electrons from the floating gate. Then, information is read by detecting a difference in operating characteristics of the memory cell transistor depending on whether or not electric charge is injected into the floating gate.

【0003】特に、セクター(128バイト)毎の一括
消去及び書き込みが可能な不揮発性メモリは、フラッシ
ュメモリと呼ばれる。また、フラッシュメモリは、マイ
クロコンピュータのプログラム等が書き込まれるメモリ
として内蔵される場合があり、これは、フラッシュマイ
コンと呼ばれる。上述のような、書き込み、消去、読み
出しの動作は、外部から印加される制御信号*CE(チ
ップイネーブル)、*WE(ライトイネーブル)、*O
E(アウトプットイネーブル)によって制御される。
Particularly, a non-volatile memory capable of batch erasing and writing for each sector (128 bytes) is called a flash memory. The flash memory may be built in as a memory in which a program of a microcomputer is written, and this is called a flash microcomputer. The write, erase, and read operations as described above are performed by externally applied control signals * CE (chip enable), * WE (write enable), and * O.
It is controlled by E (output enable).

【0004】図3は、上記の制御を行うための従来例を
示す不揮発性メモリの一部ブロック図である。図に於い
て、発振回路1は、クロック信号CLKを発生するため
のリング発振器であり、その出力はタイマーカウンター
2に印加される。タイマーカウンター2は、バイナリー
カウンタで構成され、所定段の出力A1及びA2が制御
回路3に印加される。制御回路3は、制御信号*CE、
*OE、*WEの信号とタイマーカウンタ2の出力A1
及びA2に基づき、不揮発性メモリセルの内部書き込み
信号WRT、消去モード信号ERASE、書き込みモー
ド信号PROGRAMを発生する。
FIG. 3 is a partial block diagram of a non-volatile memory showing a conventional example for performing the above control. In the figure, an oscillator circuit 1 is a ring oscillator for generating a clock signal CLK, and its output is applied to a timer counter 2. The timer counter 2 is composed of a binary counter, and outputs A1 and A2 of a predetermined stage are applied to the control circuit 3. The control circuit 3 controls the control signal * CE,
* OE and * WE signals and timer counter 2 output A1
And A2, an internal write signal WRT for the nonvolatile memory cell, an erase mode signal ERASE, and a write mode signal PROGRAM are generated.

【0005】図4は、図3に示された回路におけるセク
ター単位の書き込みを行う場合のタイミング図を示し、
制御回路3の動作について説明する。外部から印加され
る制御信号*OEを「H」レベルとした状態で、制御信
号*CE及び*WEを「L」レベルにすると、制御回路
3は内部書き込み信号WRTを「H」レベルにする。こ
れにより、不揮発性メモリは、書き込み可能状態にな
る。その後、制御信号*CE及び*WEをクロッキング
することにより、印加されたアドレスで指定される不揮
発性メモリのバッファ(図示せず)に1セクタ(128
バイト)分のデータが書き込まれる。制御信号*CE、
*WEの128回のクロッキング終了に基づき、制御回
路3は、消去モード信号ERASEを「H」レベルと
し、不揮発性メモリの1セクタ分の消去動作を開始させ
る。一方、消去モード信号「H」の発生と同期して、制
御回路3は、タイマーカウンタ2をリセットする。不揮
発性メモリの消去動作は、フローティングゲートに注入
された電荷をコントロールゲートに引き抜く動作であ
り、1セクタのメモリセルの消去が一括で行われるが、
個々のメモリセルのばらつきにより、その消去時間にも
ばらつきがある。従って、すべてのメモリセルの消去が
完了するのに十分な時間をタイマーカウンタ2で設定し
ている。例えば、リセットされてから1.6msec後
に分周出力A1が発生すると、制御回路3は、消去モー
ド信号ERASEを「L」レベルにする。これにより、
消去動作が終了する。この消去モード信号ERASEの
終了を受けて、制御回路3は、書き込みモード信号PR
OGRAMを「H」レベルにし、消去されたセクタの書
き込み動作を開始させる。また、書き込みの開始と同期
してタイマーカウンタ2のリセットを行う。この書き込
み動作は、バッファに保持された128バイトのデータ
を一括で書き込むのであるが、メモリセルの書き込み特
性にばらつきがあるため、書き込み終了までに十分な時
間を要する。そのために、書き込み時間は、例えば、
3.2msecに設定され、タイマーカウンタ2のリセ
ットから3.2msec後に出力される分周出力A2に
より、制御回路3は、書き込みモード信号PROGRA
Mを「L」レベルにし、書き込み動作を終了させる。こ
れにより、セクター単位の書き込みが終了する。このよ
うな不揮発性メモリをマイコンのプログラムメモリある
いはデータメモリとして内蔵する、いわゆるフラッシュ
マイコンが開発されている。図5は、フラッシュマイコ
ンの概略ブロック図であり、マイコンのCPU部分4と
不揮発性メモリ5で構成される。不揮発性メモリ5の制
御信号*CE、*OE、*WE及びアドレス信号AD
は、CPU部分4から印加され、また、データDATA
もCPU部分4との間でやりとりされる。
FIG. 4 is a timing chart for writing data in sector units in the circuit shown in FIG.
The operation of the control circuit 3 will be described. When the control signals * CE and * WE are set to the “L” level while the externally applied control signal * OE is set to the “H” level, the control circuit 3 sets the internal write signal WRT to the “H” level. This puts the non-volatile memory in a writable state. Then, by clocking the control signals * CE and * WE, one sector (128) is stored in the buffer (not shown) of the nonvolatile memory specified by the applied address.
(Byte) of data is written. Control signal * CE,
Based on the end of * WE clocking 128 times, the control circuit 3 sets the erase mode signal ERASE to the “H” level to start the erase operation for one sector of the nonvolatile memory. On the other hand, the control circuit 3 resets the timer counter 2 in synchronization with the generation of the erase mode signal “H”. The erasing operation of the non-volatile memory is an operation of drawing out the charges injected into the floating gate to the control gate, and the erasing of the memory cells of one sector is performed collectively.
The erase time also varies depending on the variation of each memory cell. Therefore, the timer counter 2 sets a time sufficient to complete the erasing of all memory cells. For example, when the frequency-divided output A1 is generated 1.6 msec after the reset, the control circuit 3 sets the erase mode signal ERASE to the “L” level. This allows
The erase operation ends. In response to the end of the erase mode signal ERASE, the control circuit 3 causes the write mode signal PR
The OGRAM is set to the “H” level to start the write operation of the erased sector. Also, the timer counter 2 is reset in synchronization with the start of writing. In this write operation, the 128-byte data held in the buffer is written all at once, but it takes a sufficient time to complete the write because the write characteristics of the memory cells vary. Therefore, the writing time is, for example,
The control circuit 3 sets the write mode signal PROGRA by the frequency division output A2 which is set to 3.2 msec and is output 3.2 msec after the reset of the timer counter 2.
M is set to "L" level, and the write operation is completed. This completes writing in sector units. A so-called flash microcomputer has been developed which incorporates such a non-volatile memory as a program memory or a data memory of the microcomputer. FIG. 5 is a schematic block diagram of a flash microcomputer, which includes a CPU portion 4 of the microcomputer and a non-volatile memory 5. Control signals * CE, * OE, * WE and address signal AD of the non-volatile memory 5
Is applied from the CPU part 4 and the data DATA
Is also exchanged with the CPU part 4.

【0006】通常の動作状態では、マイコンのプログラ
ムによって、必要に応じて、不揮発性メモリ5の書き込
みを行うが、この場合には、制御信号*CE、*OE、
*WEによってCPU部分4が不揮発性メモリ5を制御
する。また、このようなマイコンでは、不揮発性メモリ
5のテストを行うために、外部から直接PROMライタ
ーによって書き込み及びテストができるように構成され
ている。即ち、マイコンをテスト状態にすると、入出力
端子I/0が直接不揮発性メモリ5の制御信号*CE、
*OE、*WEとアドレスADとデータDATAに接続
されるようになり、外部から直接不揮発性メモリ5を制
御可能になる。
In the normal operating state, the program of the microcomputer writes the nonvolatile memory 5 as needed. In this case, the control signals * CE, * OE,
* CPU part 4 controls non-volatile memory 5 by WE. Further, in such a microcomputer, in order to test the non-volatile memory 5, writing and testing can be performed directly from the outside by a PROM writer. That is, when the microcomputer is put in the test state, the input / output terminal I / 0 directly causes the control signal * CE of the nonvolatile memory 5,
Since it is connected to * OE, * WE, address AD and data DATA, the non-volatile memory 5 can be directly controlled from the outside.

【0007】[0007]

【発明が解決しようとする課題】上述した不揮発性メモ
リを製造して出荷する際には、テスターによって、図4
に示すようなセクター単位の書き込みテストを行う。こ
の時、消去時間及び書き込み時間は、メモリセルのばら
つきにあわせて十分に長く設定されているために、テス
ト時間が長くなり、生産成功率の改善の障害になってい
た。
When manufacturing and shipping the above-mentioned non-volatile memory, a tester is used.
A sector unit write test is performed as shown in. At this time, the erase time and the write time are set to be sufficiently long according to the variation of the memory cells, so the test time becomes long, which is an obstacle to the improvement of the production success rate.

【0008】[0008]

【課題を解決するための手段】 本発明は、上述の点に
鑑みなされたもので、内部クロック信号発生回路と、該
内部クロック信号発生回路からのクロックを計数するカ
ウンタと、外部から印加される書き込み及び読み出しを
制御するための制御信号が印加され前記カウンタからの
終了信号に基づいて不揮発性メモリセルの消去モード信
号及び書き込みモード信号を発生する制御回路とを備え
た不揮発性メモリに於いて、前記制御回路に印加される
前記カウンタの第1出力信号と第1の外部端子に印加さ
れたタイミング信号とを消去モード終了用信号として切
り替え出力する第1ゲート回路と、前記制御回路に印加
される前記カウンタの第2出力信号と第2の外部端子に
印加されたタイミング信号とを書き込みモード終了用信
号として切り替え出力する第2ゲート回路とが設けら
れ、消去モード信号の発生期間と書き込みモード信号の
発生期間を独立に設定できるようにしたことを特徴とす
る。
The present invention has been made in view of the above-mentioned points, and an internal clock signal generation circuit, a counter for counting clocks from the internal clock signal generation circuit, and an externally applied signal. In a non-volatile memory provided with a control circuit for applying a control signal for controlling writing and reading and generating an erase mode signal and a write mode signal of a non-volatile memory cell based on an end signal from the counter, A first gate circuit for switching and outputting a first output signal of the counter applied to the control circuit and a timing signal applied to a first external terminal as an erase mode end signal, and applied to the control circuit The second output signal of the counter and the timing signal applied to the second external terminal are switched as the write mode end signal. And a second gate circuit for inputting the write mode signal is provided so that the generation period of the erase mode signal and the generation period of the write mode signal can be set independently.

【0009】更に、ゲート回路が切り替え回路で構成さ
れた場合、不揮発性メモリセルのテスト行うテストモー
ドに於いて、前記切り替え回路を制御する切り替え信号
が外部端子に印加され、カウンタからの終了信号からタ
イミング信号に切り替えられる。これらにより、不揮発
性メモリのテストにおいて、外部から消去時間及び書き
込み時間を制御することができ、テスト時間の短縮が可
能になる。一方、不揮発性メモリを内蔵するマイクロコ
ンピュータに於いて、前記不揮発性メモリは、内部クロ
ック信号発生回路と、該内部クロック信号発生回路から
のクロックを計数するカウンタと、該カウンタからの終
了信号と前記マイクロコンピュータの内部で発生される
書き込み及び読み出しを制御するための制御信号に基づ
いて不揮発性メモリセルの消去モード信号及び/又は書
き込みモード信号を発生する制御回路と、前記カウンタ
の出力と外部端子に印加されたタイミング信号を切り替
えて前記制御回路に印加するゲート回路とを備え、消去
モード信号及び/又は書き込みモード信号を終了させる
ための外部からのタイミング信号により前記制御回路か
ら出力される消去モード信号及び/又は書き込みモード
信号の終了を制御可能とした。前記不揮発性メモリのテ
ストを行うテストモードに於いて、前記書き込み及び読
み出しを制御するための制御信号と前記タイミング信号
は、マイクロコンピュータの外部入出力端子から直接印
加され、外部から直接不揮発性メモリのテストが可能と
なる。
Further, when the gate circuit is composed of a switching circuit, a switching signal for controlling the switching circuit is applied to an external terminal in a test mode for testing a nonvolatile memory cell, and an end signal from a counter is output. It is switched to the timing signal. As a result, in the test of the nonvolatile memory, the erase time and the write time can be controlled from the outside, and the test time can be shortened. On the other hand, in a microcomputer including a non-volatile memory, the non-volatile memory includes an internal clock signal generation circuit, a counter for counting a clock from the internal clock signal generation circuit, an end signal from the counter, and the end signal. A control circuit for generating an erase mode signal and / or a write mode signal of a nonvolatile memory cell based on a control signal for controlling writing and reading generated inside the microcomputer, and an output of the counter and an external terminal. An erase mode signal output from the control circuit according to a timing signal from the outside for terminating the erase mode signal and / or the write mode signal, the gate circuit switching the applied timing signal and applying it to the control circuit. And / or control of termination of write mode signal In a test mode for testing the non-volatile memory, the control signal and the timing signal for controlling the writing and reading are directly applied from an external input / output terminal of the microcomputer, and are directly externally applied to the non-volatile memory. Testing is possible.

【0010】これにより、マイクロコンピュータに内蔵
される不揮発性メモリのテストが、外部から直接制御で
き、消去及び書き込みの時間が短縮できるものである。
As a result, the test of the nonvolatile memory built in the microcomputer can be directly controlled from the outside, and the erase and write times can be shortened.

【0011】[0011]

【発明の実施の形態】図1は、本発明の実施形態を示す
ブロック図であり、不揮発性メモリの一部を示す。図に
於いて、発振回路1、タイマーカウンター2、制御回路
3は、図3に示されたブロック図と同一の回路であり、
図番を一致させている。本実施形態の特徴とするところ
は、タイマーカウンター2の所定段の出力A1及びA2
と制御回路3の間に各々切り替え回路6、7を設けた点
にある。この切り替え回路6、7の切り替え動作は、外
部端子に印加される制御信号CTL1及びCTL2によ
って各々制御され、制御信号CTL1、又は、CTL2
が「H」レベルになると、切り替え回路6、7は、各々
分周出力A1から外部端子に印加されたタイミング信号
TIMG1、又は、TIMG2を制御回路3に供給す
る。尚、制御信号CTL1及びCTL2とタイミング信
号TIMG1及びTIMG2は、テストモードにおいて
外部端子からの入力が可能になるように構成される。即
ち、図示しないが、テストモードにするための外部端子
が設けられてあり、この端子にテスト信号を印加するこ
とによってテストモードに入り、この状態において端子
からの入力が可能となる。次に、セクター単位の書き込
み動作について説明する。通常の動作においては、制御
信号CTL1、及び、CTL2は、「L」レベルであ
り、切り替え回路6、7は、タイマーカウンタ2の分周
出力A1、A2を制御回路3に出力する。従って、この
場合の書き込み動作は、図4に於いて説明した動作と同
じになる。一方、テストモードになると、不揮発性メモ
リのテスタは、制御信号CTL1及びCTL2を「H」
レベルとして、タイミング信号TIMG1及びTIMG
2を制御回路3に印加可能とする。そこで、図4のタイ
ミング図において、1セクタのデータがバッファに書き
込まれ、消去モード信号ERASEが「H」レベルにな
って消去動作が行われているとき、通常であれば、十分
な余裕を持って出力される分周出力A1によって消去動
作が終了されるのであるが、テストモードの場合には、
不揮発性メモリの消去が完了すると見られる予定時間が
経過したときに、外部のテスタがタイミング信号TIM
G1を「H」レベルにすることにより、消去モード信号
ERASEが「L」レベルになり、消去動作が終了す
る。例えば、通常の消去動作の期間は、1.6msec
であるが、テストモードの場合にはその半分の0.8m
secにすることが可能となる。同様に、消去モード信
号ERASEの完了に起因して、書き込みモード信号P
ROGRAMが「H」レベルになって書き込み動作が行
われている場合、テストモードにおいては、メモリセル
の書き込みばらつきを考えて、書き込みが終了すると見
られる時間が経過したときに、外部テスタがタイミング
信号TIMG2を「H」レベルにすることにより、書き
込みモード信号PROGRAMが「L」レベルとなり、
書き込み動作が終了する。従って、通常は、十分な余裕
を持って設定された書き込み時間、例えば、3.2ms
ecを1.6msecにすることができる。以上のよう
に、通常動作では十分な余裕を持って設定された消去時
間、又は、書き込み時間をテストモードにおいては、外
部から自由に設定できるので、特に余裕を持たせること
なく動作を終了できる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment of the present invention and shows a part of a nonvolatile memory. In the figure, the oscillator circuit 1, the timer counter 2, and the control circuit 3 are the same circuits as in the block diagram shown in FIG.
The figure numbers are matched. The feature of this embodiment lies in that outputs A1 and A2 of a predetermined stage of the timer counter 2
The switching circuits 6 and 7 are provided between the control circuit 3 and the control circuit 3, respectively. The switching operation of the switching circuits 6 and 7 is controlled by the control signals CTL1 and CTL2 applied to the external terminals, and the control signals CTL1 and CTL2 are controlled.
Becomes "H" level, the switching circuits 6 and 7 respectively supply the timing signal TIMG1 or TIMG2 applied to the external terminal from the frequency division output A1 to the control circuit 3. The control signals CTL1 and CTL2 and the timing signals TIMG1 and TIMG2 are configured to be input from external terminals in the test mode. That is, although not shown, an external terminal for setting the test mode is provided, and a test signal is applied to this terminal to enter the test mode, and in this state, input from the terminal is possible. Next, the write operation in sector units will be described. In normal operation, the control signals CTL1 and CTL2 are at “L” level, and the switching circuits 6 and 7 output the frequency-divided outputs A1 and A2 of the timer counter 2 to the control circuit 3. Therefore, the write operation in this case is the same as the operation described in FIG. On the other hand, in the test mode, the non-volatile memory tester sets the control signals CTL1 and CTL2 to “H”.
As the level, timing signals TIMG1 and TIMG
2 can be applied to the control circuit 3. Therefore, in the timing chart of FIG. 4, when one sector of data is written in the buffer and the erase mode signal ERASE is set to the “H” level to perform the erase operation, normally, there is a sufficient margin. The erase operation is ended by the frequency-divided output A1 output as
When the scheduled time, which is considered to complete the erasing of the non-volatile memory, has passed, an external tester causes a timing signal TIM.
By setting G1 to "H" level, the erase mode signal ERASE becomes "L" level, and the erase operation is completed. For example, the normal erase operation period is 1.6 msec.
However, in the test mode, half of that is 0.8m
It becomes possible to set to sec. Similarly, due to the completion of the erase mode signal ERASE, the write mode signal P
When the ROGRAM is set to the “H” level and the write operation is performed, in the test mode, the external tester causes the timing signal to be output when the time when the write is considered to have ended, in consideration of the write variation of the memory cells. By setting TIMG2 to "H" level, the write mode signal PROGRAM becomes "L" level,
The write operation ends. Therefore, normally, the write time set with a sufficient margin, for example, 3.2 ms.
ec can be set to 1.6 msec. As described above, in the test mode, the erase time or the write time, which is set with a sufficient margin in the normal operation, can be freely set from the outside in the test mode, so that the operation can be ended without any particular margin.

【0012】図2は、本発明の他の実施形態を示すブロ
ック図である。図2に於いて、ゲート回路8、9は、各
々ANDゲートとORゲートによって構成され、外部端
子に印加されたタイミング信号TIMG1とTIMG2
は各々ORゲートに印加され、またその反転信号がAN
Dゲートに印加されている。タイミング信号TIMG1
又はTIMG2は、通常の状態では、「L」レベルであ
るため、タイマーカウンタ2の分周出力A1及びA2が
制御回路3に出力される。一方、テストモードになる
と、不揮発性メモリのテスタは、タイミング信号TIM
G1及びTIMG2を制御回路3に印加可能とする。従
って、前述と同様に、消去動作又は書き込み動作を終了
させるタイミングにおいてタイミング信号TIMG1又
はTIMG2を「H」レベルにすると、消去モード信号
ERASE又は書き込みモード信号PROGRAMが
「L」レベルとなって、そのモードが終了する。また、
図1に示された不揮発性メモリを図5の如くマイコンに
内蔵した場合、制御信号CTL1及びCTL2が印加さ
れる端子とタイミング信号TIMG1及びTIMG2が
印加される端子は、マイコンの入出力端子I/Oと共通
に使用され、マイコンがテストモードになった場合に
は、入出力端子I/Oに印加された信号が不揮発性メモ
リに直接に供給されるように構成されている。従って、
マイコンの不揮発性メモリをテストする場合にも、単体
の不揮発性メモリと同様にテストを行うことができるも
のである。また、図2に示された不揮発性メモリをマイ
コンに内蔵した場合も同じである。
FIG. 2 is a block diagram showing another embodiment of the present invention. In FIG. 2, gate circuits 8 and 9 are composed of AND gates and OR gates, respectively, and have timing signals TIMG1 and TIMG2 applied to external terminals.
Are respectively applied to OR gates, and their inverted signals are AN
It is applied to the D gate. Timing signal TIMG1
Alternatively, the TIMG2 is at the "L" level in the normal state, so the frequency-divided outputs A1 and A2 of the timer counter 2 are output to the control circuit 3. On the other hand, in the test mode, the non-volatile memory tester changes the timing signal TIM.
G1 and TIMG2 can be applied to the control circuit 3. Therefore, similar to the above, when the timing signal TIMG1 or TIMG2 is set to the “H” level at the timing of ending the erase operation or the write operation, the erase mode signal ERASE or the write mode signal PROGRAM becomes the “L” level and the mode is changed. Ends. Also,
When the nonvolatile memory shown in FIG. 1 is built in a microcomputer as shown in FIG. 5, the terminals to which the control signals CTL1 and CTL2 are applied and the terminals to which the timing signals TIMG1 and TIMG2 are applied are the input / output terminals I / I of the microcomputer. It is used in common with O, and when the microcomputer is in the test mode, the signal applied to the input / output terminal I / O is directly supplied to the nonvolatile memory. Therefore,
Even when testing the nonvolatile memory of the microcomputer, the test can be performed in the same manner as the standalone nonvolatile memory. The same applies when the nonvolatile memory shown in FIG. 2 is built in the microcomputer.

【0013】[0013]

【発明の効果】上述の如く、本発明によれば、通常動作
では十分な余裕を持って設定された消去時間、又は、書
き込み時間をテストモードにおいては、外部から自由に
設定できるので、特に余裕を持たせることなく動作を終
了できる。従って、消去及び書き込みのトータルの時間
を短縮することができるので、生産性向上に貢献できる
ものである。
As described above, according to the present invention, in the test mode, the erasing time or the writing time set with a sufficient margin in the normal operation can be freely set from the outside. The operation can be ended without having. Therefore, the total time of erasing and writing can be shortened, which contributes to the improvement of productivity.

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

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

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

【図3】従来例を示すブロック図である。FIG. 3 is a block diagram showing a conventional example.

【図4】不揮発性メモリのセクタ書き込みの動作を示す
タイミング図である。
FIG. 4 is a timing diagram showing a sector write operation of the nonvolatile memory.

【図5】不揮発性メモリを内蔵したマイコンのブロック
図である。
FIG. 5 is a block diagram of a microcomputer including a nonvolatile memory.

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

1 発振回路 2 タイマーカウンタ 3 制御回路 4 CPU 5 不揮発性メモリ 6、7 切り替え回路 8、9 ゲート回路 1 oscillator circuit 2 timer counter 3 control circuit 4 CPU 5 Non-volatile memory 6, 7 switching circuit 8, 9 Gate circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI G11C 17/00 631 (58)調査した分野(Int.Cl.7,DB名) G11C 29/00 G11C 16/06 - 16/34 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 identification code FI G11C 17/00 631 (58) Fields investigated (Int.Cl. 7 , DB name) G11C 29/00 G11C 16/06-16 / 34

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 内部クロック信号発生回路と、該内部ク
ロック信号発生回路からのクロックを計数するカウンタ
と、外部から印加される書き込み及び読み出しを制御す
るための制御信号が印加され前記カウンタからの終了信
号に基づいて不揮発性メモリセルの消去モード信号及び
書き込みモード信号を発生する制御回路とを備えた不揮
発性メモリに於いて、前記制御回路に印加される前記カ
ウンタの第1出力信号と第1の外部端子に印加されたタ
イミング信号とを消去モード終了用信号として切り替え
出力する第1ゲート回路と、前記制御回路に印加される
前記カウンタの第2出力信号と第2の外部端子に印加さ
れたタイミング信号とを書き込みモード終了用信号とし
て切り替え出力する第2ゲート回路とが設けられ、消去
モード信号の発生期間と書き込みモード信号の発生期間
を独立に設定できるようにしたことを特徴とする不揮発
性メモリ。
1. An internal clock signal generation circuit, a counter for counting clocks from the internal clock signal generation circuit, and a control signal applied from the outside for controlling writing and reading is applied to terminate the output from the counter. In a nonvolatile memory including a control circuit that generates an erase mode signal and a write mode signal of a nonvolatile memory cell based on a signal, a first output signal of the counter and a first output signal applied to the control circuit are provided. A first gate circuit that switches and outputs a timing signal applied to an external terminal as an erase mode end signal, a second output signal of the counter applied to the control circuit, and a timing applied to a second external terminal. A second gate circuit for switching and outputting the signal as a signal for ending the write mode, and a generation period of the erase mode signal. A non-volatile memory characterized in that the interval and the generation period of the write mode signal can be set independently.
【請求項2】 前記第1ゲート回路は、第3の外部端子
に印加された切り替え信号によってその出力が切り替わ
ることを特徴とする請求項1記載の不揮発性メモリ。
2. The non-volatile memory according to claim 1, wherein the output of the first gate circuit is switched by a switching signal applied to a third external terminal.
【請求項3】 前記第2ゲート回路は、第4の外部端子
に印加された切り替え信号によってその出力が切り替わ
ることを特徴とする請求項1記載の不揮発性メモリ。
3. The nonvolatile memory according to claim 1, wherein the output of the second gate circuit is switched by a switching signal applied to a fourth external terminal.
【請求項4】 不揮発性メモリセルのテスト行うテスト
モードに於いて、前記第1ゲート回路を制御する前記切
り替え信号が前記第3の外部端子に印加され、前記第1
ゲート回路の出力が前記カウンタの出力から前記タイミ
ング信号に切り替えられることを特徴とする請求項2記
載の不揮発性メモリ。
4. In a test mode for testing a nonvolatile memory cell, the switching signal for controlling the first gate circuit is applied to the third external terminal,
3. The non-volatile memory according to claim 2, wherein the output of the gate circuit is switched from the output of the counter to the timing signal.
【請求項5】 不揮発性メモリセルのテスト行うテスト
モードに於いて、前記第2ゲート回路を制御する前記切
り替え信号が前記第4の外部端子に印加され、前記第2
ゲート回路の出力が前記カウンタの出力から前記タイミ
ング信号に切り替えられることを特徴とする請求項3記
載の不揮発性メモリ。
5. In a test mode for testing a non-volatile memory cell, the switching signal for controlling the second gate circuit is applied to the fourth external terminal,
4. The nonvolatile memory according to claim 3, wherein the output of the gate circuit is switched from the output of the counter to the timing signal.
【請求項6】 請求項1記載の不揮発性メモリを内蔵す
ることを特徴とするマイクロコンピュータ。
6. A microcomputer including the nonvolatile memory according to claim 1.
JP06734998A 1998-03-17 1998-03-17 Nonvolatile memory and microcomputer incorporating the same Expired - Fee Related JP3485793B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06734998A JP3485793B2 (en) 1998-03-17 1998-03-17 Nonvolatile memory and microcomputer incorporating the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06734998A JP3485793B2 (en) 1998-03-17 1998-03-17 Nonvolatile memory and microcomputer incorporating the same

Publications (2)

Publication Number Publication Date
JPH11265598A JPH11265598A (en) 1999-09-28
JP3485793B2 true JP3485793B2 (en) 2004-01-13

Family

ID=13342465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06734998A Expired - Fee Related JP3485793B2 (en) 1998-03-17 1998-03-17 Nonvolatile memory and microcomputer incorporating the same

Country Status (1)

Country Link
JP (1) JP3485793B2 (en)

Also Published As

Publication number Publication date
JPH11265598A (en) 1999-09-28

Similar Documents

Publication Publication Date Title
JP3976839B2 (en) Nonvolatile memory system and nonvolatile semiconductor memory
US6567313B2 (en) Nonvolatile memory, semiconductor device and method of programming to nonvolatile memory
JP3411186B2 (en) Nonvolatile semiconductor memory device
JP2002150789A (en) Non-volatile semiconductor memory
US4805151A (en) Nonvolatile semiconductor memory device
US6385689B1 (en) Memory and a data processor including a memory
JP3485793B2 (en) Nonvolatile memory and microcomputer incorporating the same
US5381366A (en) Non-volatile semiconductor memory device with timer controlled re-write inhibit means
JP4322395B2 (en) Nonvolatile semiconductor memory device
JPH0562484A (en) Nonvolatile semiconductor memory
JP3710931B2 (en) Microcomputer
JPH11265599A (en) Non-volatile memory and microcomputer incorporating it
JP2848293B2 (en) Nonvolatile semiconductor memory device
US5327395A (en) Page-mode type memory writing control circuit using end-of-page address
JPH11283400A (en) Nonvolatile memory and microcomputer incorporating it
JPH11265600A (en) Non-volatile memory and microcomputer incorporating it
JPH0557680B2 (en)
JPH05290585A (en) Nonvolatile memory writable electrically
JP2000113688A (en) Nonvolatile memory and erasure and write method for nonvolatile memory
JP2002108716A (en) Nonvolatile semiconductor memory and its control method
JPH0668686A (en) Semiconductor non-volatile memory
US6229735B1 (en) Burst read mode word line boosting
JPH1196781A (en) Non-volatile semiconductor memory
JP2000113687A (en) Verifier
JPS6386197A (en) Nonvolatile semiconductor memory device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071024

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091024

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101024

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101024

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111024

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111024

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121024

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees