JPH02257497A - Integrated circuit - Google Patents

Integrated circuit

Info

Publication number
JPH02257497A
JPH02257497A JP1060309A JP6030989A JPH02257497A JP H02257497 A JPH02257497 A JP H02257497A JP 1060309 A JP1060309 A JP 1060309A JP 6030989 A JP6030989 A JP 6030989A JP H02257497 A JPH02257497 A JP H02257497A
Authority
JP
Japan
Prior art keywords
data
signal
address
prom
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
JP1060309A
Other languages
Japanese (ja)
Inventor
Takayoshi Sasaki
隆義 佐々木
Yukio Maehashi
幸男 前橋
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 JP1060309A priority Critical patent/JPH02257497A/en
Publication of JPH02257497A publication Critical patent/JPH02257497A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent data, which are written to the cell of a PROM, from being erased even at a high temperature or after the lapse of a long period by once writing the data, which are read out of the cell of the PROM, to a register according to a signal to instruct rewriting and writing these data to the cell of the PROM again. CONSTITUTION:When rewriting is started, a refresh signal REF is set to '1'. At timing that the refresh signal is '1' and a read signal RD is '0', a register (REG) 109 latches a data signal from a nonvolatile memory (PROM) 103 and outputs a data signal IO. The data signal IO is inputted through a multiplexer (MPX) 110 to the PROM 103 and stored. Since an address signal at such a time is still an address signal when the data signal is read out of the PROM 103, the data written from the REG 109 are stored in an address same as that of a reading time and rewriting is completed concerning one address. Thus, the PROM data can be held even at the high temperature or after the lapse of a long period.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、紫外線を照射することでデータ消去をするプ
ログラマブルロム装置(以下、単にFROM)に間し、
特にリフレッシュ回路に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a programmable ROM device (hereinafter simply referred to as FROMM) that erases data by irradiating it with ultraviolet rays.
In particular, it relates to refresh circuits.

[従来の技術] 紫外線照射することによりデータの消去を行い、電気的
にデータを記憶する不揮発性メモリ(以下、PROMと
称す)のセルを構成する記憶素子として、浮遊ゲートと
制御ゲートの2層ゲート構造を有する電界効果トランジ
スタ(以下、メモリートランジスタと称す)がある。
[Prior Art] As a memory element constituting a cell of a non-volatile memory (hereinafter referred to as PROM), which erases data by irradiating it with ultraviolet rays and stores data electrically, two layers of a floating gate and a control gate are used. There is a field effect transistor (hereinafter referred to as a memory transistor) having a gate structure.

第7図(A)はメモリートランジスタの構造を示してい
る。P型基板701上には、N型拡散によってソース7
02、及びドレイン703が形成されている。ソース7
02.ドレイン703間には基板701上にゲート酸化
膜704が形成される。ゲート酸化膜704上には絶縁
された浮遊ゲート705が形成され、さらに浮遊ゲート
706の上方には制御ゲート706が形成されている。
FIG. 7(A) shows the structure of a memory transistor. A source 7 is formed on the P-type substrate 701 by N-type diffusion.
02 and a drain 703 are formed. source 7
02. A gate oxide film 704 is formed on the substrate 701 between the drains 703 . An insulated floating gate 705 is formed on the gate oxide film 704, and a control gate 706 is further formed above the floating gate 706.

GNDは接地で、ソース702及びP型基板701はG
NDに接続されている。VGは制御ゲート電圧、VDは
ドレイン電圧である。
GND is grounded, and source 702 and P-type substrate 701 are connected to G
Connected to ND. VG is a control gate voltage, and VD is a drain voltage.

第7図(B)はメモリートランジスタの制御ゲート電圧
VCと、ドレイン電流IDの関係を示している。
FIG. 7(B) shows the relationship between the control gate voltage VC of the memory transistor and the drain current ID.

このメモリートランジスタは浮遊ゲート705が電気的
に中性状態の時(以下、非書き込み状態と称す)には、
実線707に示すように、低い制御ゲート電圧VG(例
えば2V)で導通状態になりドレイン電流が流れる。
In this memory transistor, when the floating gate 705 is in an electrically neutral state (hereinafter referred to as a non-writing state),
As shown by a solid line 707, a conductive state is established at a low control gate voltage VG (for example, 2V), and a drain current flows.

制御ゲート電圧VGとドレイン電圧VDに高電圧(例え
ば12.5V)をくわえると、浮遊ゲート705に電子
が注入され、制御ゲート706からみたメモリートラン
ジスタのしきい値電圧が高くなる(以下、書き込み状態
と称す)ので、実線708で示すように高い制御ゲート
電圧VG(例えば7V)を加えなければ導通状態になら
ない。
When a high voltage (for example, 12.5 V) is added to the control gate voltage VG and drain voltage VD, electrons are injected into the floating gate 705, and the threshold voltage of the memory transistor as seen from the control gate 706 increases (hereinafter referred to as the write state). Therefore, as shown by a solid line 708, a conductive state cannot be achieved unless a high control gate voltage VG (for example, 7 V) is applied.

したがってデータ読み出し時に制御ゲート電圧VGが実
線707と実線708の間にあるとすると(例えば5V
)、非書き込み状態にあるメモリートランジスタはソー
ス・ドレイン間が導通し、書き込み状態にあるメモリー
トランジスタはソース・ドレイン間が導通しないのでデ
ータの有無を区別することができる。
Therefore, if the control gate voltage VG is between the solid line 707 and the solid line 708 when reading data (for example, 5V
), the memory transistor in the non-writing state has conduction between the source and drain, and the memory transistor in the writing state has no conduction between the source and drain, so it is possible to distinguish whether data exists or not.

従来のFROMはこのメモリトランジスタを利用したセ
ルを配列し、さらにセンスアレブ、書き込み読出し制御
回路、アドレスデコーダ等によって構成されていた(図
示せず)。
A conventional FROM is configured by arranging cells using these memory transistors, and further includes a sense array, a write/read control circuit, an address decoder, etc. (not shown).

第8図に従来のFROMのブロック図を示す。FIG. 8 shows a block diagram of a conventional FROM.

点線内部が集積内部を示している。The area inside the dotted line indicates the inside of the accumulation.

アドレス信号はアドレス端子群801に入力され、アド
レスバッファ802を介してF R0M803に入力さ
れている。
The address signal is input to an address terminal group 801, and is input to the FR0M 803 via an address buffer 802.

リード信号RDはアクティブ(“0′′)の時、FRO
Mに対するデータ読み出しを指示する信号で、外部端子
804を介してPROM803に入力される。
When read signal RD is active (“0″), FRO
This is a signal instructing data read for M, and is input to the PROM 803 via an external terminal 804.

ライト信号PROGはアクティブ(“0”)の時、F 
R0M803に対するデータ書き込みを指示する信号で
、外部端子805を介してPROM803に入力されて
いる。
When the write signal PROG is active (“0”), F
This signal instructs data writing to R0M803, and is input to PROM803 via external terminal 805.

データ信号はデータ端子群806から入出力される。Data signals are input and output from data terminal group 806.

データ人出力バッフ7807はデータ端子群806に接
続され、リード信号RDがti Ouの時出力バッファ
としてデータ信号を出力し、ライト信号PROGが“0
”の時入カバッファとして動作しデータ信号を入力する
The data output buffer 7807 is connected to the data terminal group 806, and outputs a data signal as an output buffer when the read signal RD is ti Ou, and when the write signal PROG is “0”.
” operates as an input buffer and inputs data signals.

PROM803へのデータ信号の書き込みについて説明
する。
Writing a data signal to the PROM 803 will be explained.

アドレス端子群801からアドレス信号を入力する。ア
ドレス信号はアドレスバッファ802を通し1”PRO
M803CZ入力され、PROM803のアドレスを指
定する。
Address signals are input from the address terminal group 801. The address signal passes through the address buffer 802 and outputs 1” PRO.
M803CZ is input and specifies the address of PROM803.

ライト信号PROGを“0邦にしデータ端子群806か
らデータ信号を入力すると、データ人出カバラフ780
7.PROM803Ci:データ信号が入力され指定さ
れたアドレスにデータ信号が書き込める。
When the write signal PROG is set to "0" and a data signal is input from the data terminal group 806, the data output cover rough 780
7. PROM803Ci: A data signal is input and the data signal can be written to a specified address.

PROM803からのデータ信号の読み出しは、アドレ
ス端子群801からアドレス信号を入力する。アドレス
信号はアドレスバッファ802を通しTPROM803
C:入力されPROM803(7)アドレスを指定する
To read data signals from the PROM 803, address signals are input from the address terminal group 801. The address signal passes through the address buffer 802 to the TPROM 803.
C: Input to specify PROM803(7) address.

リード信号RDを“0”にすると、指定されたアドレス
のデータ信号がPROM803から出力される。データ
信号はデータ人出力バッフ7807を通してデータ信号
端子群806より出力される。
When the read signal RD is set to "0", the data signal of the designated address is output from the PROM 803. The data signal is output from the data signal terminal group 806 through the data output buffer 7807.

[発明が解決しようとする課題] FROMのセルの構成要素であるメモリートランジスタ
は、浮遊ゲートに電子を蓄積するものである。このFR
OMセルによって構成されたPROMを高温で動作させ
ると、浮遊ゲートに蓄積された電子は熱エネルギーによ
り励起され高エネルギー状態になり浮遊ゲート外部に散
失する。また高温下でなくても書き込み後から長時間経
過すれば蓄積された電子は外部に散失する。
[Problems to be Solved by the Invention] A memory transistor, which is a component of a FROM cell, stores electrons in a floating gate. This FR
When a PROM made up of OM cells is operated at a high temperature, the electrons accumulated in the floating gate are excited by thermal energy, enter a high energy state, and are dissipated outside the floating gate. Further, even if the temperature is not high, the accumulated electrons will be dissipated to the outside if a long period of time has passed after writing.

ひとつのセルでも電子が散失しデータの消去が起これば
そのFROMに書き込まれたデータが別の意味のデータ
となってしまい、このデータがプログラム命令コードの
場合にはプログラムの暴走等の障害を起こす可能性が大
きい。
If electrons are lost in even one cell and data is erased, the data written in that FROM will become data with a different meaning, and if this data is a program instruction code, problems such as program runaway may occur. There is a high possibility that it will happen.

従って、高温下及び書き込み後長時間経過した後ではP
ROMに書き込んだデータが散失されるため、自動車電
装等の特定の条件下ではFROMを使用できないという
問題が生じる。
Therefore, under high temperatures or after a long time has passed after writing,
Since the data written in the ROM is lost, a problem arises in that the FROM cannot be used under certain conditions such as in automobile electrical equipment.

本発明は上記従来の事情に鑑みなされたもので、上記問
題点を合理的に解決する集積回路を提供することを目的
とする。
The present invention has been made in view of the above-mentioned conventional circumstances, and it is an object of the present invention to provide an integrated circuit that reasonably solves the above-mentioned problems.

[発明の従来技術に対する相違点コ 上述した従来のPROMが浮遊ゲートに蓄積された電子
の散失に対して何ら対策を講じていなかったのに対して
、第一の発明では再書き込みを指示する信号によりPR
OMのセルより読出したデータを−Hレジスタに書き込
み、このレジスタのデータを再びFROMのセルに書き
込むことでデータの再書き込みをし、高温下及び長時間
経過後でもFROMのセルに書き込んだデータの消去を
防止している。
[Differences between the invention and the prior art: While the conventional PROM described above did not take any measures against the dissipation of electrons accumulated in the floating gate, the first invention uses a signal instructing rewriting. PR by
The data read from the OM cell is written to the -H register, and the data in this register is written to the FROM cell again to rewrite the data. Even under high temperatures or after a long period of time, the data written to the FROM cell remains unchanged. Prevents erasure.

さらに、第二の発明では再書き込みを指示する信号によ
りFROMのセルより読出したデータを−Hレジスタに
書き込み、このレジスタのデータを再びFROMのセル
に書き込む際に、高温下及び長時間経過後のために読出
されたFROMのセルのデータが一部消去されていても
エラー訂正回路によってデータを訂正し、消去される前
の正しいデータを書き込むため信頼性の高いFROMを
構成することができる。
Furthermore, in the second invention, data read from the FROM cell is written to the -H register by a signal instructing rewriting, and when writing the data in this register to the FROM cell again, the Even if the data in the cell of the FROM read out is partially erased, the data is corrected by the error correction circuit and the correct data before being erased is written, so a highly reliable FROM can be constructed.

尚、集積回路外部へデータを読み出す場合にはエラー訂
正回路を通さないので、そのための信号遅延がなくデー
タを高速に読み出すことができる。
Note that when data is read out from the integrated circuit, it does not pass through an error correction circuit, so there is no signal delay and data can be read out at high speed.

[課題を解決するための手段] 本願の第一の発明に係る集積回路は、電気的にデータを
書き込める不揮発性メモリセルからなるメモリ部を含む
集積回路において、データの書き込みまたは読み出しの
ためアドレスを指定するアドレス指示回路と、該アドレ
ス指示回路により指定された不揮発性メモリセルから読
出されたデータを保持する保持回路と、制御信号に応答
してアドレス指示回路により指定された不揮発性メモリ
セルに上記保持回路に保持されたデータまたは外部デー
タを供給する切り換え回路とを備えたことを特徴とする
[Means for Solving the Problems] An integrated circuit according to the first invention of the present application is an integrated circuit that includes a memory section consisting of non-volatile memory cells into which data can be electrically written, in which an address is set for writing or reading data. A specified address instruction circuit, a holding circuit that holds data read from the nonvolatile memory cell specified by the address instruction circuit, and a holding circuit that holds the data read from the nonvolatile memory cell specified by the address instruction circuit in response to a control signal. The present invention is characterized by comprising a switching circuit that supplies data held in the holding circuit or external data.

本願の第二の発明に係る集積回路は、電気的にデータを
書き込める不揮発性メモリセルからなるメモリ部を含む
集積回路において、データの書き込みまたは読み出しの
ためアドレスを指定するアドレス指示回路と、不揮発、
性メモリセルへの書き込みデータからデータ訂正のため
の検査信号データを生成して該書き込みデータと共に同
一の不揮発性メモリセルへ書き込む検査信号生成回路と
、アドレス指示回路により指定された不揮発性メモリセ
ルから読出された書き込みデータ及び検査信号データを
保持する保持回路と、保持回路に保持された書き込みデ
ータが前記不揮発性メモリセルへの書き込み時のデータ
と異なっている場合にこれを検査信号データに基づいて
訂正する訂正回路と、制御信号に応答してアドレス指示
回路により指定された不揮発性メモリセルに訂正回路か
らの出力データまたは外部データを供給する切り換え回
路とを備えたことを特徴とする。
An integrated circuit according to a second invention of the present application is an integrated circuit including a memory section made of nonvolatile memory cells into which data can be electrically written, and an address instruction circuit that specifies an address for writing or reading data;
A test signal generation circuit generates test signal data for data correction from write data to a non-volatile memory cell and writes the data to the same non-volatile memory cell together with the write data, and a test signal generation circuit generates test signal data from the non-volatile memory cell specified by the address instruction circuit. A holding circuit that holds the read write data and test signal data; and a holding circuit that holds the read write data and test signal data; The present invention is characterized by comprising a correction circuit that performs correction, and a switching circuit that supplies output data from the correction circuit or external data to a nonvolatile memory cell designated by an address instruction circuit in response to a control signal.

[実施例] 第1図に第一の発明の第1実施例に係るPROMのブロ
ック図を示す。点線内部が集積回路内部を示している。
[Embodiment] FIG. 1 shows a block diagram of a PROM according to a first embodiment of the first invention. The area inside the dotted line indicates the inside of the integrated circuit.

本実施例においてPROM103はデータ幅を8ビツト
としている。
In this embodiment, the PROM 103 has a data width of 8 bits.

アドレス信号はアドレス端子群101に入力され、アド
レスバッファ102を介してFROMI03に入力され
ている。
The address signal is input to the address terminal group 101, and is input to FROMI03 via the address buffer 102.

リード信号RDはアクティブ(“0”)の時、PROM
103に対するデータ読み出しを指示する信号で、外部
端子104を介してFROMIO3に入力される。
When the read signal RD is active (“0”), the PROM
This is a signal instructing data read to 103, and is input to FROMIO3 via external terminal 104.

ライト信号PROGはアクティブ(O’”)の時、PR
OM103に対するデータ書き込みを指示する信号で外
部端子105を介してFROMI03に入力されている
When the write signal PROG is active (O'''), PR
A signal instructing data writing to OM103 is input to FROMI03 via external terminal 105.

データ信号はデータ端子群106から入出力される。Data signals are input and output from data terminal group 106.

データ人出力バッファ107はデータ端子群106に接
続され、リード信号RDが′0″の時出力バッファとし
てデータ信号を出力し、ライト信号PROGが“0”の
鋳入カバッファとして動作しデータ信号を入力する。
The data output buffer 107 is connected to the data terminal group 106, and when the read signal RD is '0', it outputs a data signal as an output buffer, and when the write signal PROG is '0', it operates as an input buffer and inputs a data signal. do.

リフレッシュ信号REFはFROMのデータの再書き込
みを指示する信号でアクティブ(” 1 ″)の時再書
き込みを示し、外部端子108から入力される。
The refresh signal REF is a signal that instructs rewriting of FROM data, and when active (“1”) indicates rewriting, and is input from the external terminal 108.

レジスタ(以下、REGと称す)109はPROMのデ
ータ信号を人力とし、リフレッシュ信号REFが“1”
でリード信号RDが“0″の時データ信号をラッチし、
リフレッシュ信号REFが“1″でライト信号PROG
がO′′の時データ信号を出力する。
The register (hereinafter referred to as REG) 109 uses the PROM data signal manually, and the refresh signal REF is "1".
latches the data signal when the read signal RD is “0”,
When the refresh signal REF is “1”, the write signal PROG
When is O'', a data signal is output.

マルチプレクサ−(以下、MPXと称す)110は人出
力バッファ107とREG109の出力信号とを入力と
し、信号REFが“0“の時データ人出力バッファ10
7にPROM103のデータ信号を入出力し、信号RE
Fが“1゛′の時REG109の出力信号をPROM1
03へデータ信号として入力する。
A multiplexer (hereinafter referred to as MPX) 110 receives the output signals of the output buffer 107 and REG 109 as inputs, and when the signal REF is "0", the data input buffer 10
7 inputs and outputs the data signal of PROM 103, and the signal RE
When F is “1”, the output signal of REG109 is transferred to PROM1.
03 as a data signal.

PROM103へのデータ信号の書き込みについて説明
する。リフレッシュ信号REFを“0”にしアドレス端
子群101からアドレス信号を入力する。アドレス信号
はアドレスバッファ102を通してPROM103に入
力され、FROMI03のアドレスを指定する。
Writing a data signal to PROM 103 will be explained. The refresh signal REF is set to "0" and an address signal is input from the address terminal group 101. The address signal is input to PROM 103 through address buffer 102 and specifies the address of FROMI03.

ライト信号PROGを“0”にしデータ端子群106か
らデータ信号を入力すると、データ人出力バッファ10
79MPx110を通してPROM103にデータ信号
が入力され指定されたアドレスにデータ信号が書き込め
る。
When the write signal PROG is set to "0" and a data signal is input from the data terminal group 106, the data output buffer 10
A data signal is input to the PROM 103 through the 79MPx 110, and the data signal can be written to a designated address.

ここで、マルチプレクサ−MPXIIOはリフレッシュ
信号REFが“0”なのでデータ人出力バッファ107
の出力をPROM103に入力している。
Here, since the refresh signal REF of the multiplexer MPXIIO is "0", the data output buffer 107
The output is input to the PROM 103.

PROM103からのデータ信号の読み出しはリフレッ
シュ信号REFを“0”にしアドレス端子群101から
アドレス信号を入力する。アドレス信号はアドレスバッ
ファ102を通してPROM103に入力されPROM
103のアドレスを指定する。
To read a data signal from the PROM 103, the refresh signal REF is set to "0" and an address signal is input from the address terminal group 101. The address signal is input to the PROM 103 through the address buffer 102.
Specify the address of 103.

リード信号RDを“0”にすると指定されたアドレスの
データ信号がPROM103から出力されるデータ信号
はMPXIIO,データ人出力バッファ107を通して
データ信号端子群106より出力される。
When the read signal RD is set to "0", the data signal of the designated address is output from the PROM 103. The data signal is output from the data signal terminal group 106 through the MPXIIO and the data output buffer 107.

ここで、MPXIIOはリフレッシュ信号REFが“0
”なのでPROM103のデータ信号出力をデータ人出
力バッファ107に供給している。
Here, MPXIIO has a refresh signal REF of “0”.
Therefore, the data signal output of the PROM 103 is supplied to the data output buffer 107.

次に、FROMへデータを再書き込みする場合について
第2図のタイミング図を参照しながら説明する。
Next, the case of rewriting data to FROM will be explained with reference to the timing diagram of FIG. 2.

リフレッシュ信号REFは再書き込みを始めるとき“1
”にする。リフレッシュ信号が“1”なのでMPXII
OはREG109の出力をPROM103のデータ信号
として入力する。
The refresh signal REF becomes “1” when starting rewriting.
”.Since the refresh signal is “1”, MPXII
O inputs the output of REG109 as a data signal of PROM103.

次に、PROM103のデータを再書き込みしたいアド
レスを示すアドレス信号を示すアドレス端子群101へ
入力する。第2図ではAOて示している。さらにリード
信号RDを“0”にするとPROM103がアドレス信
号AOに対応するデータ信号を出力する。
Next, an address signal indicating an address at which data in the PROM 103 is to be rewritten is input to the address terminal group 101. In FIG. 2, it is indicated by AO. Further, when the read signal RD is set to "0", the PROM 103 outputs a data signal corresponding to the address signal AO.

REG109はリフレッシュ信号REFが“1■ リー
ド信号RDが“0”のタイミングでPROM103から
のデータ信号をラッチする。ラッチされたデータ信号を
第2図では■0で示している。リード信号RDを“1”
にするとFROMIO3のデータ信号読み出しは終了す
る。
The REG 109 latches the data signal from the PROM 103 at the timing when the refresh signal REF is "1" and the read signal RD is "0". The latched data signal is shown as "0" in FIG. 2. The read signal RD is "0". 1”
When this is done, reading the data signal from FROMIO3 is completed.

ライト信号PROGを“0”にすることでREG109
はデータ信号IOを出力する。データ信号IOはMPX
IIOを介して、FROMI 03に人力される。PR
OM103はライト信号PROGが“0”なのでデータ
信号IOを記憶する。
By setting the write signal PROG to “0”, REG109
outputs the data signal IO. Data signal IO is MPX
Human-powered FROMI 03 via IIO. PR
Since the write signal PROG is "0", the OM 103 stores the data signal IO.

このときのアドレス信号はPROM103よりデータ信
号を読出したときのアドレス信号のままなのでREG1
09より書き込んだときのデータも読み出し時と同じア
ドレスに記憶され、一つのアドレスについて再書き込み
が完了する。書き込みが完了した時点でライト信号PR
OG“1”にする。
The address signal at this time is the same as the address signal when the data signal was read from PROM103, so REG1
The data written from 09 is also stored at the same address as when read, and rewriting is completed for one address. Write signal PR when writing is completed
Set OG to “1”.

PROM103の次のアドレスを再書き込みする場合に
は、同様な信号を人力すればよい。第2図においては次
のアドレス信号をA1、REGI09のデータ信号を1
1で示している。
When rewriting the next address in the PROM 103, a similar signal may be manually input. In Figure 2, the next address signal is A1, and the REGI09 data signal is 1.
It is shown as 1.

第3図に第一の発明の第2実施例に係るPROMを内蔵
したマイクロコンピュータのブロック図を示す。点線内
部が集積回路内部を示している。
FIG. 3 shows a block diagram of a microcomputer incorporating a PROM according to a second embodiment of the first invention. The area inside the dotted line indicates the inside of the integrated circuit.

第1図に示した実施例との主要な相違点はCPUがアド
レス信号、リフレッシュ信号、リード信号、ライト信号
を発生する点である。
The main difference from the embodiment shown in FIG. 1 is that the CPU generates address signals, refresh signals, read signals, and write signals.

以下、第3図を参照しながら本実施例について説明する
0本実施例においてPROM302のデータ幅は8ビツ
トとする。モード信号MODEは外部端子301に入力
されアクティブ(“1”)の時にPROM302データ
を集積回路外部から読み書きするように指示し、インア
クティブ(“0”)の時にF R0M302のデータを
集積回路内部で読み書きするように指示する信号である
This embodiment will be described below with reference to FIG. 3. In this embodiment, the data width of the PROM 302 is assumed to be 8 bits. The mode signal MODE is input to the external terminal 301, and when active (“1”), it instructs to read and write PROM302 data from outside the integrated circuit, and when inactive (“0”), it instructs to read and write PROM302 data from inside the integrated circuit. This is a signal that tells you to read or write.

リード信号RDは外部端子303より人力され、アクテ
ィブ(“0”)のときF R0M302に対するデータ
読み出しを指示する。
The read signal RD is input from the external terminal 303, and when active (“0”), instructs data reading from the F_R0M302.

リード信号CRDはCPU304より出力されアクティ
ブ(“0”)のときPROM302に対するデータ読み
出しを指示する。
The read signal CRD is output from the CPU 304 and instructs to read data from the PROM 302 when active (“0”).

セレクター305(以下、5ELRと称す)はモード信
号MODEが1″の時はリード信号RDを、モード信号
MODEが“0”の時はリード信号CHDを選択し、F
 R0M302へリード信号として入力する。
The selector 305 (hereinafter referred to as 5ELR) selects the read signal RD when the mode signal MODE is 1", selects the read signal CHD when the mode signal MODE is "0", and selects the read signal CHD when the mode signal MODE is "0".
Input to R0M302 as a read signal.

ライト信号PROGはPROM302に対するデータ読
み出しを指示する信号で外部端子306から入力される
The write signal PROG is a signal that instructs the PROM 302 to read data and is input from the external terminal 306.

ライト信号CPROGはCPU304より出力され、P
ROM302に対するデータ読み出しを指示する信号で
ある。
The write signal CPROG is output from the CPU 304 and P
This is a signal that instructs data reading from the ROM 302.

セレクター307(以下、5ELWと称す)はモード信
号MODEが“1”の時はライト信号PROGを、モー
ド信号MODEが“0”′の時はライト信号CPROG
を選択し、PROM302へライト信号として人力する
The selector 307 (hereinafter referred to as 5ELW) outputs the write signal PROG when the mode signal MODE is "1", and outputs the write signal CPROG when the mode signal MODE is "0"'.
is selected and input manually as a write signal to the PROM 302.

リフレッシュ信号REFは外部端子308より入力され
、PROM302のデータの再書き込みを指示する信号
で、アクティブ(“’1”)のとき再書き込みを示しC
PU304にデータ再書き込みを指示する。
The refresh signal REF is input from the external terminal 308 and is a signal that instructs rewriting of data in the PROM 302. When active (“'1”), it indicates rewriting.
Instructs the PU 304 to rewrite data.

CPU304は外部端子308より入力されたリフレッ
シュ信号REFにより、集積回路内部にPROM302
のデータの再書き込みを指示するリフレッシュ信号CR
EF (アクティブ(“1″))を出力する。
The CPU 304 refreshes the PROM 302 inside the integrated circuit by the refresh signal REF input from the external terminal 308.
A refresh signal CR instructs to rewrite the data of
Outputs EF (active (“1”)).

アドレス信号はアドレス端子群309より、アドレスバ
ッファ310に人力される。アドレスバッファ310は
モード信号MODEが“l”の時動作する。
The address signal is input from the address terminal group 309 to the address buffer 310 . Address buffer 310 operates when mode signal MODE is "L".

プログラムカウンタ311(以下、PCと称す)はCP
U304より出力されるPC制御信号によって制御され
アドレス信号を出力する。
The program counter 311 (hereinafter referred to as PC) is a CP
It is controlled by the PC control signal output from U304 and outputs an address signal.

マルチプレクサ−312(以下、MPXAと称す)はモ
ード信号MODEが“1″の時はアドレスバッファ31
0の出力をモード信号MODEが“0”の時はPC31
1の出力を選択しPROM302ヘアドレス信号として
人力する。
The multiplexer 312 (hereinafter referred to as MPXA) uses the address buffer 31 when the mode signal MODE is "1".
When the mode signal MODE is “0”, the PC31 outputs 0.
1 is selected and input manually as the PROM 302 head address signal.

データ信号はデータ端子群313からデータバッファ3
14に入力されている。データバッファ314はモード
信号MODEが“1”の時動作しデータバスに接続され
ている。データバスはCPU304にも接続されている
The data signal is transmitted from the data terminal group 313 to the data buffer 3.
14 is input. The data buffer 314 operates when the mode signal MODE is "1" and is connected to the data bus. The data bus is also connected to CPU 304.

レジスタ315(以下、REGと称す)はPROM30
2のデータ信号を入力とし、リフレッシュ信号REFが
“1”で、リード信号RDが0”のときデータ信号をラ
ッチし、リフレッシュ信号REFが“1”でライト信号
PROGが“0”の時データ信号を出力する。
Register 315 (hereinafter referred to as REG) is PROM30
2 data signal is input, the data signal is latched when the refresh signal REF is "1" and the read signal RD is "0", and the data signal is latched when the refresh signal REF is "1" and the write signal PROG is "0". Output.

マルチプレクサ−316(以下、MPXDと称す)はデ
ータバスとREG315の出力信号とを入力とし、リフ
レッシュ信号CREFが“0”の時データバスにPRO
M302のデータ信号を入出力し、リフレッシュ信号C
REFが“1”の時REG315の出力信号をPROM
302へデータ信号として人力する。
A multiplexer 316 (hereinafter referred to as MPXD) inputs the data bus and the output signal of REG315, and when the refresh signal CREF is "0", PRO is sent to the data bus.
Input/output M302 data signal and refresh signal C
When REF is “1”, the output signal of REG315 is PROM
302 as a data signal.

PROM302へのデータ信号の集積回路外部からの書
き込みについて述べる。集積回路外部からの書き込み動
作なので、モード信号MODEは“1パを、リフレッシ
ュ信号REFは“0”を入力する。
Writing of data signals to PROM 302 from outside the integrated circuit will be described. Since this is a write operation from outside the integrated circuit, the mode signal MODE inputs "1" and the refresh signal REF inputs "0".

5ELW307は外部端子より入力されたライト信号P
ROGを、F R0M302へライト信号として入力す
る。
5ELW307 is the write signal P input from the external terminal.
Input ROG as a write signal to F R0M302.

CPU304より出力されるリフレッシュ信号CREF
は“0”である。
Refresh signal CREF output from CPU 304
is “0”.

アドレス信号をアドレス端子群309へ入力すると、モ
ード信号MODEが“1”で、アドレスバッファ310
が動作し、MPXA312はアドレスバッファ310か
らのアドレス信号をPROM302へ入力する。
When the address signal is input to the address terminal group 309, the mode signal MODE is "1" and the address buffer 310
operates, and MPXA 312 inputs the address signal from address buffer 310 to PROM 302.

データ信号をデータ端子群313へ入力すると、モード
信号MODEが“1”で、データバッファ314が動作
し、MPXD316はデータバッファ314からのデー
タ信号をPROM302へ人力する。
When a data signal is input to the data terminal group 313, the mode signal MODE is "1", the data buffer 314 operates, and the MPXD 316 inputs the data signal from the data buffer 314 to the PROM 302.

ここでライト信号PROGを0”にすると、データ信号
がP R0M302に記憶される。
Here, when the write signal PROG is set to 0'', the data signal is stored in the PROM302.

F R0M302へのデータ信号の集積回路外部からの
読み出し動作について述べる。外部からの読み出し動作
はPROM302に記憶されたデータが正しいかどうか
確認するために必要である。
The operation of reading data signals from outside the integrated circuit to the FR0M302 will be described. An external read operation is necessary to confirm whether the data stored in PROM 302 is correct.

集積回路外部からの読み出し動作なので、モード信号M
ODEは“1″を、リフレッシュ信号REFは“0”を
人力する。
Since this is a read operation from outside the integrated circuit, the mode signal M
ODE is manually set to "1", and refresh signal REF is set to "0".

5ELR305は外部端子より入力されたリード信号R
Dを、PROM302へリード信号として入力する。
5ELR305 is the read signal R input from the external terminal.
D is input to the PROM 302 as a read signal.

CPU304より出力されるリフレッシュ信号CREF
は“0”である。アドレス信号をアドレス端子群309
へ人力すると、モード信号MODEが“1′′で、アド
レスバッファ310が動作し、MPXA312はアドレ
スバッファ310からのアドレス信号をPROM302
へ入力する。
Refresh signal CREF output from CPU 304
is “0”. Address signal to address terminal group 309
When the mode signal MODE is "1'', the address buffer 310 operates, and the MPXA 312 transfers the address signal from the address buffer 310 to the PROM 302.
Enter.

ここで、リード信号RDを“′0”にすると、データ信
号がF R0M302より出力される。モード信号MO
DEが“1”で、データバッファ314が動作し、MP
XD316はPROM302からのデータ信号をデータ
端子群313へ出力する。
Here, when the read signal RD is set to "'0", a data signal is output from the FR0M302. Mode signal MO
When DE is “1”, the data buffer 314 operates and MP
The XD 316 outputs the data signal from the PROM 302 to the data terminal group 313.

次に、再書き込み動作について述べる。Next, the rewriting operation will be described.

再書き込み動作はリフレッシュ信号REFが“O”にな
って開始される。このとき集積回路外部からアドレス信
号、データ信号、リード信号、ライト信号を入力する必
要がないのでモード信号MODEは“0”としておく。
The rewrite operation is started when the refresh signal REF becomes "O". At this time, since there is no need to input address signals, data signals, read signals, and write signals from outside the integrated circuit, the mode signal MODE is set to "0".

モード信号MODEは′40”なので5ELR305は
リード信号CRDをPROM302へリード信号として
、5ELW307はライト信号CPROGをPROM3
02へライト信号として入力する。またアドレスバッフ
ァ310.データバッファ314は動作しない。
Since the mode signal MODE is '40', 5ELR305 uses read signal CRD as a read signal to PROM302, and 5ELW307 uses write signal CPROG as a read signal to PROM302.
02 as a write signal. Also, the address buffer 310. Data buffer 314 does not operate.

CPU304はリフレッシュ信号REFが“1”なので
、CPU304はリフレッシュ信号CREFを“1”ニ
スる。MPXD316はPROM302のデータ信号出
力をREG315に入力する。
Since the refresh signal REF of the CPU 304 is "1", the CPU 304 varnishes the refresh signal CREF with "1". MPXD316 inputs the data signal output of PROM302 to REG315.

次にCPU304はPC制御信号をアクティブにする。Next, CPU 304 activates the PC control signal.

PC311はPC制御信号によりPROM302の先頭
アドレスをセットし出力する。
The PC 311 sets and outputs the starting address of the PROM 302 using a PC control signal.

CPU304がさらにリード信号CHDを“0”にする
とF R0M302がPC311より出力されたアドレ
ス信号に対応するデータ信号を出力する。
When the CPU 304 further sets the read signal CHD to "0", the FR0M 302 outputs a data signal corresponding to the address signal output from the PC 311.

REG315はリフレッシュ信号CREFが“1” リ
ード信1cRDが“0”のタイミングでF R0M30
2からのデータ信号をラッチする。
REG315 is F R0M30 when the refresh signal CREF is “1” and the read signal 1cRD is “0”.
Latch the data signal from 2.

ここでCPU304はリード信号CHDを“1”にしP
ROM302のデータ信号読み出しは終了する。
Here, the CPU 304 sets the read signal CHD to "1" and P
Reading of data signals from the ROM 302 ends.

次に、CPU304はライト信号CPROGを“O”に
する。REG315は記憶したデータ進行を出力する。
Next, the CPU 304 sets the write signal CPROG to "O". REG 315 outputs the stored data progress.

データ信号はMPXD316を介してF R0M302
に入力される。PROM302はライト信号CPROG
が“0”なのでREG315より出力されたデータ信号
を書き込む。
Data signal is passed through MPXD316 to F R0M302
is input. PROM302 has a write signal CPROG
Since is "0", the data signal output from REG315 is written.

このときのアドレス信号はPROM302よりデータ信
号を読出したときのアドレスのままなので、REG31
5より書き込んだときのデータも読み出し時と同じアド
レスに記憶され、一つのアドレスについて再書き込みが
完了する。書き込みが完了した時点でCPU304はラ
イト信号CPROG“1”にする。
Since the address signal at this time is the same as the address when the data signal was read from PROM302, REG31
The data written from 5 is also stored at the same address as when read, and rewriting is completed for one address. When writing is completed, the CPU 304 sets the write signal CPROG to "1".

PC311はこの後、PROM302全体の再書き込み
が終了するまで次のアドレスを示すためにインクリメン
トし、CPU304は上述した再書き込み動作と同様に
信号を繰り返し発生し、PROM302全体の再書き込
み動作が完了する。
Thereafter, the PC 311 increments to indicate the next address until the rewriting of the entire PROM 302 is completed, and the CPU 304 repeatedly generates a signal similar to the rewriting operation described above, and the rewriting operation of the entire PROM 302 is completed.

PROM302のデータをCPU304が読出す場合は
、モード信号MODEを“0” リフレッシュ信号RE
Fを“0”を入力する。CPU304は読出したいアド
レスをPC311にセットし、リード信号CHDを“0
”にすることでPROM302からのデータ信号がデー
タバス上に出力され、データバスよりデータ信号が得ら
れる。
When the CPU 304 reads data from the PROM 302, the mode signal MODE is set to “0” and the refresh signal RE is set to “0”.
Enter "0" for F. The CPU 304 sets the address to be read in the PC 311 and sets the read signal CHD to “0”.
”, the data signal from the PROM 302 is output onto the data bus, and the data signal is obtained from the data bus.

尚、本実施例ではリフレッシュ信号REFを外部から人
力している例であるが、例えば集積回路にタイマーを内
蔵し、定期的に内部よりリフレッシュ信号REFを発生
させてもよく上記実施例と同様の効果が得られる。
Although this embodiment is an example in which the refresh signal REF is manually generated from the outside, it is also possible to have a timer built into the integrated circuit and periodically generate the refresh signal REF internally. Effects can be obtained.

第4図に第二の発明の実施例に係るFROMのブロック
図を示す。点線内部が集積回路内部を示している。
FIG. 4 shows a block diagram of a FROM according to an embodiment of the second invention. The area inside the dotted line indicates the inside of the integrated circuit.

本実施例ではFROMから読出したデータ信号1ビツト
の誤りが生じた場合に、誤りを検出し訂正することがで
きるエラー訂正回路412を用いている。エラーを訂正
するためにはデータ信号に加えてエラーを訂正するため
の信号が必要である。
This embodiment uses an error correction circuit 412 that can detect and correct the error when a 1-bit error occurs in the data signal read from the FROM. In order to correct an error, a signal for correcting the error is required in addition to the data signal.

本実施例ではデータ信号を8ビツト、エラーを訂正する
ための信号を4ビツトとしている。
In this embodiment, the data signal is 8 bits, and the error correction signal is 4 bits.

従って、本実施例のPROM401はデータ幅が12ビ
ツトとなる。アドレス信号はアドレス端子群402に入
力され、アドレスバッファ403を介してPROM40
1に入力されている。
Therefore, the PROM 401 of this embodiment has a data width of 12 bits. The address signal is input to the address terminal group 402, and is passed through the address buffer 403 to the PROM 40.
1 is entered.

ライト信号PROGはアクティブ(“O”)のとき、P
ROM401に対するデータ書き込みを指示する信号で
外部端子404を介してPROM401に人力されてい
る。
When the write signal PROG is active (“O”), P
A signal instructing data writing to the ROM 401 is inputted to the PROM 401 via an external terminal 404 .

リード信号RDはアクティブ(“0″)のとき、PRO
M401に対するデータ読み出しを指示する信号で、外
部端子405を介してPROM401に入力される。
When read signal RD is active (“0”), PRO
This signal instructs M401 to read data, and is input to PROM 401 via external terminal 405.

リフレッシュ信号REFはPROM401のデータの再
書き込みを指示する信号で、アクティブ(“1”)のと
き再書き込みを示し、外部端子406より入力される。
The refresh signal REF is a signal that instructs rewriting of data in the PROM 401, and when active (“1”) indicates rewriting, and is input from the external terminal 406.

データ信号はデータ端子群407から入出力される0本
実施例ではデータ信号のビット幅を8ビツトとする。
The data signal is input/output from the data terminal group 407. In this embodiment, the bit width of the data signal is 8 bits.

データ人出力バッファ40°8はデータ端子群407に
接続され、リード信号RDが“0”の時出力バッファと
してデータ信号を出力し、ライト信号PROGが“0”
の鋳入カバッファとして動作しデータ信号を入力する。
The data output buffer 40°8 is connected to the data terminal group 407, and outputs a data signal as an output buffer when the read signal RD is "0", and the write signal PROG is "0".
It operates as a casting buffer and inputs data signals.

マルチプレクサ−(以下、MPXと称す)409はデー
タ人出力バッファ408とエラー訂正回路412の出力
信号を人力とし、信号REFが“0”′の時、人出力バ
ッファ408の出力信号を、信号REFが“1”の時、
エラー訂正回路412の出力信号を出力する。
A multiplexer (hereinafter referred to as MPX) 409 inputs the output signals of the data output buffer 408 and the error correction circuit 412, and when the signal REF is "0"', the output signal of the output buffer 408 is input to the output signal of the output buffer 408 and the error correction circuit 412. When “1”,
The output signal of the error correction circuit 412 is output.

検査信号生成回路412はPROM401に書き込まれ
たデータ信号(8ビツト幅)に1ビツトの誤りが発生し
た場合、データ信号を訂正するために必要で、データ信
号から鋏り訂正のため4ビツトの信号(以下、検査信号
と称す)を生成する回路で、データ信号(8ビツト)を
入力とし検査信号(4ビツト)を出力とする。
The test signal generation circuit 412 is necessary to correct the data signal when a 1-bit error occurs in the data signal (8-bit width) written in the PROM 401, and generates a 4-bit signal from the data signal for correction. This circuit generates a test signal (hereinafter referred to as a test signal), which receives a data signal (8 bits) as input and outputs a test signal (4 bits).

PROM401!Zは上位8ビツトはMPX409より
出力されたデータ信号を、下位4ビツトは検査信号生成
回路410より出力された検査信号を入力する。
PROM401! The upper 8 bits of Z input the data signal output from the MPX 409, and the lower 4 bits input the test signal output from the test signal generation circuit 410.

PROM401の上位8ビツトの出力信号はデータ人出
力バッフ7408に入力される。
The output signal of the upper 8 bits of PROM 401 is input to data output buffer 7408.

レジスタ(以下、REGと称す)411は12ビツトの
データ幅で、PROM401の上位8ビツトと下位4ビ
ツトとの出力信号を入力とし、リフレッシュ信号REF
が“l”で、リード信号RDが“O”の時FROM40
1の出力信号をラッチし、リフレッシュ信号REFが“
1”でライト信号WRが“0”の時ラッチした信号を出
力する。
The register (hereinafter referred to as REG) 411 has a data width of 12 bits, receives the output signals of the upper 8 bits and lower 4 bits of the PROM 401, and receives the refresh signal REF.
is “L” and the read signal RD is “O”, FROM40
1 output signal is latched, and the refresh signal REF is “
1" and the latched signal is output when the write signal WR is "0".

エラー訂正回路412はREG411の出力を入力とし
、PROM401に書込まれたデータに1ビツトの誤り
が発生した場合に検査信号を使用して誤りを訂正したデ
ータ信号を出力する。
The error correction circuit 412 receives the output of the REG 411 as an input, and when a 1-bit error occurs in the data written in the PROM 401, outputs a data signal in which the error is corrected using a check signal.

第5図は第4図に示した検査信号生成回路410の詳細
な回路図で、DO〜D7で示されたデータ信号(8ビツ
ト)を入力し、CO〜C3で示された検査信号を出力す
る。
FIG. 5 is a detailed circuit diagram of the test signal generation circuit 410 shown in FIG. 4, which inputs data signals (8 bits) indicated by DO to D7 and outputs test signals indicated by CO to C3. do.

データ信号Do−07から検査信号C0−C5を生成す
る論理式を示す。ここで“+”はmod2の加算(つま
り、排他的論理和)である。
A logical formula for generating test signals C0-C5 from data signal Do-07 is shown. Here, "+" is mod 2 addition (that is, exclusive OR).

C0=DO+03+04   +D6+D7・・φ・・
・(1)C1=[lO+D1      +04+[1
5+()?C2=   D1+D2     D4+0
5+D6C3=     02+D3     D5+
06+07第+03+07第5504で示した排他的論
理和ゲー)XORで実現していて、検査信号COを出力
するX0R501は(1)式に示した通り、データ信号
Do、D3.D4.D6.D7を入力としている。検査
信号01〜C3を出力するX0R502〜504も図示
のようにそれぞれ5つづつのデータ信号を入力としてい
る。
C0=DO+03+04 +D6+D7...φ...
・(1) C1=[lO+D1 +04+[1
5+()? C2= D1+D2 D4+0
5+D6C3= 02+D3 D5+
The X0R501, which is realized by XOR (exclusive OR game shown in 06+07th +03+07th 5504) and outputs the check signal CO, receives the data signals Do, D3 . D4. D6. D7 is used as input. The X0Rs 502 to 504 that output the test signals 01 to C3 each receive five data signals as shown in the figure.

第6図は第4図に示したエラー訂正回路412の詳細な
回路図で、PROM401の出力をREG411で保持
したデータ信号DO〜D7と、検査信号CO〜C3とを
人力としDO〜D7のうちに1ビツトの誤りが発生した
場合、それを訂正し図中DCO〜DC?で示す訂正され
た信号を出力する。もちろん誤りが発生していない場合
、データ信号DO〜D7がそのまま訂正された信号DC
O〜DC7に出力される。
FIG. 6 is a detailed circuit diagram of the error correction circuit 412 shown in FIG. If a 1-bit error occurs, it is corrected and DCO to DC? Outputs the corrected signal shown by . Of course, if no error has occurred, the data signals DO to D7 are the corrected signal DC.
It is output to O~DC7.

601〜604で示された排他的論理和ゲートXORは
、以下に示す(2)式にしたがってデータ信号DO〜D
7.検査信号CO〜C3を入力している。
Exclusive OR gates XOR indicated by 601 to 604 output data signals DO to D according to equation (2) shown below.
7. Inspection signals CO to C3 are input.

これら排他的論理和ゲー)XOR601〜604は誤り
が発生したデータ信号のビットを示すコードを出力する
These exclusive OR games (XORs 601 to 604) output a code indicating the bit of the data signal in which an error has occurred.

X0R801=[)O[)3+()4   D6+()
?+CO・・・・・・(2)XOR602=DO+DI
      D4+D5    D7+ClX0R60
3=   D1+D2    D4+D5+D6   
 C2X0R604=     02+D3   +0
5+06+D7+C3次に示す表1は、X0R601〜
X0R604の出力がデータ信号DO〜D7に対して、
どのビットが誤っているかを示す対応表である。
X0R801=[)O[)3+()4 D6+()
? +CO・・・(2)XOR602=DO+DI
D4+D5 D7+ClX0R60
3= D1+D2 D4+D5+D6
C2X0R604= 02+D3 +0
5+06+D7+C3 Table 1 shown below shows X0R601~
The output of X0R604 corresponds to data signals DO to D7,
This is a correspondence table showing which bit is incorrect.

(以下、余白) 表I  X0R601〜X0R604(7)出力と誤り
ビットとの対応 第6図では、605〜612で示されたANDゲートが
XORゲート601〜604の信号を表1に従いデコー
ドしている。ANDゲート605〜ANDゲート612
は誤りビットDO〜D7に対応しており誤りが発生した
場合、各誤りビットに対応した各ANDゲートがアクテ
ィブになる。
(The following is a blank space) Table I X0R601 to X0R604 (7) Correspondence between output and error bit In FIG. . AND gate 605 to AND gate 612
correspond to error bits DO to D7, and when an error occurs, each AND gate corresponding to each error bit becomes active.

例えば、DOビットに誤りが発生すると、xORビット
601〜604の出力は“1100”となり、ANDゲ
ート605がアクティブ(“1”)となり、DOビット
に誤りが発生したことがわがる。
For example, when an error occurs in the DO bit, the outputs of the xOR bits 601 to 604 become "1100", and the AND gate 605 becomes active ("1"), indicating that an error has occurred in the DO bit.

誤りビットを反転してやれば、正しいくエラーの訂正さ
れた)信号が得られる。
By inverting the erroneous bits, a correct error-corrected signal can be obtained.

第6図において613で示されたXORゲートはデータ
信号のDoビットと、ANDゲート605の出力を入力
としている。DOビットに誤りが発生するとANDゲー
ト605が“1″となり、XORゲート613の出力は
DOビットの反転となり、誤りが訂正されたデータ信号
のDCOビットが得られる。
The XOR gate indicated by 613 in FIG. 6 receives the Do bit of the data signal and the output of the AND gate 605 as inputs. When an error occurs in the DO bit, the AND gate 605 becomes "1", the output of the XOR gate 613 becomes the inversion of the DO bit, and the DCO bit of the data signal with the error corrected is obtained.

614〜620で示されたXORゲートはXORゲート
613と同様にデータ信号のビットD1〜D7とAND
ゲート607〜612の出力とを入力とし誤りが訂正さ
れたデータ信号のDCI〜DC7を出力する。
Similar to the XOR gate 613, the XOR gates 614 to 620 are ANDed with bits D1 to D7 of the data signal.
It inputs the outputs of gates 607 to 612 and outputs error-corrected data signals DCI to DC7.

次に、第4図を参照しながらPROM401へのデータ
信号の書き込みについて説明する。
Next, writing of data signals into the PROM 401 will be explained with reference to FIG.

リフレッシュ信号REFを“0”にしアドレス端子群4
02からアドレス信号を入力する。アドレス信号はアド
レスバッファ403を通してPROM401に入力され
、PROM401(7)7ドレスを指定する。
Set refresh signal REF to “0” and address terminal group 4
An address signal is input from 02. The address signal is input to PROM 401 through address buffer 403 and designates PROM 401(7)7 address.

ライト信号PROGを“0”にし、データ端子群407
からデータ信号を入力すると、データ人出力バッフ74
08、MPX409を通しテPROM401の上位8ビ
ツトにデータ信号が入力され、指定されたアドレスにデ
ータ信号が書き込める。データ信号は検査信号生成回路
410にも入力され、検査信号生成回路410は検査信
号を出力する。PROM401の下位4ビツトには検査
信号が入力され指定されたアドレスに検査信号が書き込
める。
Set the write signal PROG to “0” and set the data terminal group 407
When a data signal is input from the data signal output buffer 74
08, a data signal is input to the upper 8 bits of the PROM 401 through the MPX 409, and the data signal can be written to the specified address. The data signal is also input to the test signal generation circuit 410, and the test signal generation circuit 410 outputs the test signal. A test signal is input to the lower four bits of the PROM 401, and the test signal can be written to a designated address.

ここでMPX409はリフレッシュ信号REFが“0”
なのでデータ人出力バッフ7408の出力をPROM4
01及び検査信号生成回路410に入力している。
Here, the refresh signal REF of MPX409 is “0”
Therefore, the output of data person output buffer 7408 is transferred to PROM4.
01 and is input to the test signal generation circuit 410.

PROM401からのデータ信号の読み出しはリフレッ
シュ信号REFを“0”にし、アドレス端子群402か
らアドレス信号を入力する。アドレス信号はアドレスバ
ッファ403を通してPROM401に入力されPRO
M401のアドレスを指定する。
To read a data signal from the PROM 401, the refresh signal REF is set to "0" and an address signal is input from the address terminal group 402. The address signal is input to PROM 401 through address buffer 403 and PRO
Specify the address of M401.

リード信号RDを“0”にすると指定されたアドレスの
データ信号がPROM401の上位8ビツトから出力さ
れる。
When the read signal RD is set to "0", the data signal of the designated address is output from the upper 8 bits of the PROM 401.

データ信号はデータ人出力バッフ7408を通して、デ
ータ信号端子群40?より出力される。
The data signal is passed through the data output buffer 7408 to the data signal terminal group 40? It is output from

次に、FROM40!へデータを再書込する場合につい
て第2図のタイミング図を参照しながら説明する。
Next, FROM40! The case of rewriting data to the memory will be explained with reference to the timing diagram of FIG.

リフレッシュ信号REFは再書き込みを始めるとき“1
”にする。リフレッシュ信号REFが“1”なのでMP
X409はエラー訂正回路412の出力をPROM40
1及び検査信号生成回路410のデータ信号として人力
する。
The refresh signal REF becomes “1” when starting rewriting.
”. Since the refresh signal REF is “1”, MP
X409 outputs the output of the error correction circuit 412 to the PROM40.
1 and as a data signal for the test signal generation circuit 410.

次にPROM401のデータを再書き込みしたいアドレ
スを示すアドレス信号をアドレス端子群402へ入力す
る。第2図ではAOで示している。
Next, an address signal indicating the address at which data in the PROM 401 is to be rewritten is inputted to the address terminal group 402. In FIG. 2, it is indicated by AO.

さらにリード信号RDを“0”にするとPROM401
はアドレス信号AOに対応するデータ信号と検査信号と
を出力する。
Furthermore, when the read signal RD is set to “0”, the PROM401
outputs a data signal and a test signal corresponding to the address signal AO.

REG411はリフレッシュ信号REFが“1”リード
信号RDが“O”のタイミングでPROM401からの
上位8ビツトのデータ信号及び下位4ビツトの検査信号
をラッチする。ラッチされたデータ信号及び検査信号を
第2図では■0で示している。
The REG 411 latches the upper 8-bit data signal and the lower 4-bit test signal from the PROM 401 at the timing when the refresh signal REF is "1" and the read signal RD is "O". The latched data signal and test signal are indicated by ■0 in FIG.

リード信号RDを“1”にするとPROM401のデー
タ読み出しは終了する。
When the read signal RD is set to "1", data reading from the PROM 401 is completed.

ライト信号PROGを“0”にすることでREG411
はデータ信号及び検査信号IOを出力する。
By setting the write signal PROG to “0”, the REG411
outputs a data signal and an inspection signal IO.

データ信号及び検査信号はエラー訂正回路412に入力
され、データ信号に誤りがあれば訂正されたデータ信号
を、データ信号に誤りがなければPROM401から出
力されたデータ信号をそのまま出力する。
The data signal and the check signal are input to the error correction circuit 412, and if there is an error in the data signal, the corrected data signal is output, and if there is no error in the data signal, the data signal output from the PROM 401 is output as is.

訂正されたデータ信号MPX409を介してPROM4
01の上位8ビツトと検査信号生成回路410に入力さ
れる。検査信号生成回路410は検査信号を出力し、P
ROM401の下位4ビツトに入力される。
PROM4 via corrected data signal MPX409
The upper 8 bits of 01 are input to the test signal generation circuit 410. The test signal generation circuit 410 outputs a test signal and P
It is input to the lower 4 bits of the ROM 401.

PROM401はライト信号PROGが“O”なのでデ
ータ信号及び検査信号IOを記憶する。
Since the write signal PROG is "O", the PROM 401 stores the data signal and the test signal IO.

このときのアドレス信号はPROM401よりデータ信
号を読出したときのアドレス信号のままなので、エラー
訂正回路412より書き込んだときのデータも読み出し
時と同じアドレスに記憶され一つのアドレスについて再
書き込みが完了する。
Since the address signal at this time remains the same as the address signal used when the data signal was read from the PROM 401, the data written from the error correction circuit 412 is also stored at the same address as when read, and rewriting for one address is completed.

書き込みが完了した時点でライト信号PROGを“l”
にする。
When writing is completed, set the write signal PROG to “L”
Make it.

PROM401の次のアドレスを再書き込みする場合に
は、同様な信号を入力すればよい。第2図においては、
次のアドレス信号A1、REG411のデータ信号及び
検査信号を■1で示している。
When rewriting the next address in PROM 401, a similar signal may be input. In Figure 2,
The next address signal A1, data signal and test signal of REG411 are indicated by 1.

[発明の効果] 以上説明したように、従来高温下及び長時間経過後にお
いてはPROMデータの保持がなされない場合が想定さ
れるが、本発明によれば再書き込みを指示する信号によ
り、PROM内に書き込まれたデータを再び書き込むが
可能で、かつ再書き込みを指示する信号の周期を変える
ことが可能であるので、FROMのセルに蓄えられる電
荷を一定の量以上に保てることが可能になり、FROM
の使用環境を拡大することができる。
[Effects of the Invention] As explained above, conventionally, it is assumed that PROM data is not retained under high temperatures or after a long period of time, but according to the present invention, data in the PROM is not retained by a signal instructing rewriting. It is possible to rewrite the data written in the FROM cell, and it is also possible to change the period of the signal instructing rewriting, so it is possible to maintain the charge stored in the FROM cell above a certain amount. FROM
The environment in which it can be used can be expanded.

エラー訂正回路を内蔵した−ものでは、PROM内に書
込まれたデータにエラーが発生しても、エラー訂正回路
によって訂正して正しいデータを再び書き込むことが可
能なのでさらに高い信頼性を得ることができる。
With a built-in error correction circuit, even if an error occurs in the data written in the PROM, the error correction circuit can correct it and rewrite the correct data, resulting in even higher reliability. can.

また、PROM内蔵のマイクロコンピュータではCPU
の制御により自動的にPROMデータの再書き込みがで
きる。従って高温下及び長時間経過後使用するセットで
は従来より簡便にPROM内蔵のマイクロコンピュータ
を組み込むことができる。
In addition, in microcomputers with built-in PROM, the CPU
The PROM data can be rewritten automatically under control. Therefore, a microcomputer with a built-in PROM can be more easily incorporated into a set that is to be used at high temperatures or after a long period of time.

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

第1図は本願の第一の発明に対応する第1実施例に係る
FROMのブロック図、第2図はFROMの動作タイミ
ング図、第3図は本願の第一の発明に対応する第2実施
例に係るPROM内蔵型マイクロコンピュータのブロッ
ク図、第4図は本願の第二の発明に対応する実施例に係
るエラー訂正回路内蔵型FROMのブロック図、第5図
は検査信号生成回路の回路図、第6図はエラー訂正回路
の回路図、第7図(A)はPROMのメモリートランジ
スタの構成を示す断面図、第7図(B)はFROMのメ
モリートランジスタの制御ゲート電圧VGとドレイン電
流IDの特性を示すグラフ、第8図は従来のPROMの
ブロック図である。 101.309,801・・・・アドレス端子群、10
2.310゜ 403.802・・・・・・・アドレスバッファ、  
304・・・・・・・・・CPU、103,302. 
                 305.307−
−−−−−t!L、クター(SELR。 401.803−−−−−−−PROM、      
                 5ELW)、10
4゜ 301゜ 308゜ 804゜ 105、 108゜ 303、 306゜ 402、 404〜407゜ 805・・・・・・・・・・外部端子、314 ・ 410 番 412 ◆ ・プログラムカウンタ(P C)、 ・データバッファ、 ・検査信号生成回路、 ・エラー訂正回路、 106.313゜ 408.806・・・・・・・・・データ端子群、10
7゜ 807・・・・・データ人出力バッファ、109.31
5゜ 411・・・・・・・・・・レジスタ(RE G)、1
10.312゜ 316.409・・・マルチプレクサ−(MPX。 MPXA、MPXD)、 501〜504゜ 601〜604゜ 613〜620・・・・・XOR回路、605〜612
 ・ 701 ψ 瞭 ・ ・ ・ 702・ 争 ・ ・ ・ 703 ・ ・ ・ φ Φ 704 ・ 舎 φ 働 ・ 705 ・ ・ φ φ φ ・ ・ANDゲート、 ・・P型基板、 ・ ・ソース、 ・・ドレイン、 ・・ゲート酸化膜、 ・、・浮遊ゲート、 706・・・・・・・・・制御ゲート、707.708
・・・・制御ゲート電圧VGとドレイン電流IDの特性
、 RD、CRD・ ・ ・・ ・ ・ ・・リード信号、
PROG、CPROG・・・・・ライト信号、MODE
・・・・ ・・・・・・モード信号、REF、CREF
・・・・・・リフレッシュ信号。
FIG. 1 is a block diagram of a FROM according to a first embodiment corresponding to the first invention of the present application, FIG. 2 is an operation timing diagram of the FROM, and FIG. 3 is a block diagram of a FROM according to a first embodiment corresponding to the first invention of the present application. A block diagram of a microcomputer with a built-in PROM according to an example, FIG. 4 is a block diagram of a FROM with a built-in error correction circuit according to an embodiment corresponding to the second invention of the present application, and FIG. 5 is a circuit diagram of a test signal generation circuit. , Fig. 6 is a circuit diagram of the error correction circuit, Fig. 7 (A) is a cross-sectional view showing the configuration of the PROM memory transistor, and Fig. 7 (B) is the control gate voltage VG and drain current ID of the FROM memory transistor. FIG. 8 is a block diagram of a conventional PROM. 101.309,801...address terminal group, 10
2.310゜403.802・・・・・・Address buffer,
304...CPU, 103,302.
305.307-
------t! L, ctor (SELR. 401.803--------PROM,
5ELW), 10
4゜301゜308゜804゜105, 108゜303, 306゜402, 404~407゜805...External terminal, 314 410 No. 412 ◆ ・Program counter (PC),・Data buffer, ・Test signal generation circuit, ・Error correction circuit, 106.313゜408.806... Data terminal group, 10
7゜807...Data output buffer, 109.31
5゜411・・・・・・Register (REG), 1
10.312゜316.409...Multiplexer (MPX. MPXA, MPXD), 501~504゜601~604゜613~620...XOR circuit, 605~612
・ 701 ψ clarity ・ ・ ・ 702・ Dispute ・ ・ ・ 703 ・ ・ φ φ 704 ・ Sha φ Work ・ 705 ・ φ φ φ ・ ・AND gate, ・・P type substrate, ・ ・source, ・・drain,・・Gate oxide film, ・・・Floating gate, 706・・・・・・・Control gate, 707.708
... Characteristics of control gate voltage VG and drain current ID, RD, CRD... Read signal,
PROG, CPROG...Write signal, MODE
・・・・・・・・・Mode signal, REF, CREF
...Refresh signal.

Claims (2)

【特許請求の範囲】[Claims]  (1)電気的にデータを書き込める不揮発性メモリセ
ルからなるメモリ部を含む集積回路において、データの
書き込みまたは読み出しのためアドレスを指定するアド
レス指示回路と、該アドレス指示回路により指定された
不揮発性メモリセルから読出されたデータを保持する保
持回路と、制御信号に応答してアドレス指示回路により
指定された不揮発性メモリセルに上記保持回路に保持さ
れたデータまたは外部データを供給する切り換え回路と
を備えたことを特徴とする集積回路。
(1) In an integrated circuit that includes a memory section consisting of nonvolatile memory cells into which data can be electrically written, an address instruction circuit that specifies an address for writing or reading data, and a nonvolatile memory specified by the address instruction circuit. A holding circuit that holds data read from a cell, and a switching circuit that supplies the data held in the holding circuit or external data to a nonvolatile memory cell specified by an address instruction circuit in response to a control signal. An integrated circuit characterized by:
(2)電気的にデータを書き込める不揮発性メモリセル
からなるメモリ部を含む集積回路において、データの書
き込みまたは読み出しのためアドレスを指定するアドレ
ス指示回路と、不揮発性メモリセルへの書き込みデータ
からデータ訂正のための検査信号データを生成して該書
き込みデータと共に同一の不揮発性メモリセルへ書き込
む検査信号生成回路と、アドレス指示回路により指定さ
れた不揮発性メモリセルから読出された書き込みデータ
及び検査信号データを保持する保持回路と、保持回路に
保持された書き込みデータが前記不揮発性メモリセルへ
の書き込み時のデータと異なっている場合にこれを検査
信号データに基づいて訂正する訂正回路と、制御信号に
応答してアドレス指示回路により指定された不揮発性メ
モリセルに訂正回路からの出力データまたは外部データ
を供給する切り換え回路とを備えたことを特徴とする集
積回路。
(2) In an integrated circuit that includes a memory section consisting of non-volatile memory cells into which data can be electrically written, an address instruction circuit that specifies an address for writing or reading data, and a data correction circuit from the data written to the non-volatile memory cells. A test signal generation circuit that generates test signal data for and writes it into the same nonvolatile memory cell together with the write data, and a test signal generation circuit that generates test signal data and writes the write data and test signal data read from the nonvolatile memory cell specified by the address instruction circuit. a holding circuit that holds the data; a correction circuit that corrects the write data held in the holding circuit based on test signal data when it is different from the data written to the nonvolatile memory cell; and a correction circuit that responds to the control signal. and a switching circuit that supplies output data from a correction circuit or external data to a nonvolatile memory cell designated by an address instruction circuit.
JP1060309A 1988-12-27 1989-03-13 Integrated circuit Pending JPH02257497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1060309A JPH02257497A (en) 1988-12-27 1989-03-13 Integrated circuit

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP63-331715 1988-12-27
JP33171588 1988-12-27
JP1060309A JPH02257497A (en) 1988-12-27 1989-03-13 Integrated circuit

Publications (1)

Publication Number Publication Date
JPH02257497A true JPH02257497A (en) 1990-10-18

Family

ID=26401377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1060309A Pending JPH02257497A (en) 1988-12-27 1989-03-13 Integrated circuit

Country Status (1)

Country Link
JP (1) JPH02257497A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5375094A (en) * 1992-06-19 1994-12-20 Kabushiki Kaisha Toshiba Nonvolatile semiconductor memory system with a plurality of erase blocks
US8395323B2 (en) 2007-05-15 2013-03-12 Koninklijke Philips Electronics N.V. Reliable lighting system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58130498A (en) * 1982-01-29 1983-08-03 Citizen Watch Co Ltd Semiconductor nonvolatile storage device
JPS63308800A (en) * 1987-06-10 1988-12-16 Hitachi Ltd Storage device
JPS6489099A (en) * 1987-09-30 1989-04-03 Toshiba Corp Restorage device
JPH01205792A (en) * 1988-02-12 1989-08-18 Yokogawa Electric Corp Content protecting device for eeprom

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58130498A (en) * 1982-01-29 1983-08-03 Citizen Watch Co Ltd Semiconductor nonvolatile storage device
JPS63308800A (en) * 1987-06-10 1988-12-16 Hitachi Ltd Storage device
JPS6489099A (en) * 1987-09-30 1989-04-03 Toshiba Corp Restorage device
JPH01205792A (en) * 1988-02-12 1989-08-18 Yokogawa Electric Corp Content protecting device for eeprom

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5375094A (en) * 1992-06-19 1994-12-20 Kabushiki Kaisha Toshiba Nonvolatile semiconductor memory system with a plurality of erase blocks
US8395323B2 (en) 2007-05-15 2013-03-12 Koninklijke Philips Electronics N.V. Reliable lighting system

Similar Documents

Publication Publication Date Title
US4901320A (en) Self-correcting semiconductor memory device and microcomputer incorporating the same
US5561627A (en) Nonvolatile semiconductor memory device and data processor
KR950000273B1 (en) Non-volatile semiconductor memory device and optimal write method
JP4652319B2 (en) Nonvolatile semiconductor memory device having program and erase verification function
JP2585348B2 (en) Nonvolatile semiconductor memory device
JPH09180477A (en) Non-volatile semiconductor memory device and its reading/programming method
KR960005370B1 (en) Method for erasing and verifying nonvolatile semiconductor memory device
JP2000305861A (en) Storage device and memory card
JP2645417B2 (en) Non-volatile memory device
JP2004071012A (en) Semiconductor memory device
JPH03108196A (en) Electrically erasable writable nonvolatile semiconductor storage device
JPS63175300A (en) Semiconductor integrated circuit device
US10013208B2 (en) Method for writing in an EEPROM memory and corresponding memory
TWI608489B (en) Non-volatile semiconductor memory device and its test method
JP2835107B2 (en) Error correction circuit for nonvolatile semiconductor memory device and error correction method thereof
JP2019220242A (en) Non-volatile storage device, microcomputer, and electronic apparatus
JPH02257497A (en) Integrated circuit
JPH02214156A (en) Nonvolatile semiconductor device
US7342844B2 (en) Power on sequence for a flash memory device
JPH10320985A (en) Non-volatile semiconductor memory device
US6842371B2 (en) Permanent master block lock in a memory device
JP2004199833A (en) Control method of nonvolatile semiconductor storage device, and nonvolatile semiconductor storage device
JP3370804B2 (en) Semiconductor memory device
JPH0963286A (en) Data rewriting circuit
JP2004055098A (en) Memory system of nonvolatile memory