JPH0697442B2 - Micro computer - Google Patents
Micro computerInfo
- Publication number
- JPH0697442B2 JPH0697442B2 JP23363086A JP23363086A JPH0697442B2 JP H0697442 B2 JPH0697442 B2 JP H0697442B2 JP 23363086 A JP23363086 A JP 23363086A JP 23363086 A JP23363086 A JP 23363086A JP H0697442 B2 JPH0697442 B2 JP H0697442B2
- Authority
- JP
- Japan
- Prior art keywords
- eeprom
- read
- circuit
- memory
- address
- 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 - Lifetime
Links
- 230000006870 function Effects 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000002401 inhibitory effect Effects 0.000 description 3
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000005764 inhibitory process Effects 0.000 description 1
Landscapes
- Storage Device Security (AREA)
- Read Only Memory (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電気的に消去及び書込み可能な読出し専用メモ
リ(EEPROMと称す)を内蔵するマイクロコンピュータに
関する。The present invention relates to a microcomputer having an electrically erasable and writable read-only memory (referred to as EEPROM).
従来のEEPROMを内蔵したマイクロコンピュータの例を第
4図に示す。従来のマイクロコンピュータ(以下マイコ
ンと称す。)に内蔵されたEEPROMは、EEPROMセル1,Yア
ドレスセレクター2−a,書込み読出し制御回路2−b,X
アドレスデコーダ3,書込み読出しデータ切換回路4,アド
レスラッチ5,アドレス入力バッファ6、EEPROMデータ入
出力バッファ7,EEPROM制御バッファ8,EEPROM制御回路9
で構成されている。38はEEPROMセルに書込み,読出し,
消去を制御する信号の入力端子、36はEEPROMのアドレス
入力端子、37はEEPROMデータの入出力端子である。FIG. 4 shows an example of a conventional microcomputer having a built-in EEPROM. The EEPROM contained in a conventional microcomputer (hereinafter referred to as a microcomputer) is composed of an EEPROM cell 1, a Y address selector 2-a, a write / read control circuit 2-b, X.
Address decoder 3, write / read data switching circuit 4, address latch 5, address input buffer 6, EEPROM data input / output buffer 7, EEPROM control buffer 8, EEPROM control circuit 9
It is composed of. 38 writes to and reads from EEPROM cells,
An erasing control signal input terminal, 36 is an EEPROM address input terminal, and 37 is an EEPROM data input / output terminal.
端子38は消去信号,書込み信号または読出し信号のいず
れかの信号が有効入力である場合、EEPROM制御回路9が
アドレスラッチ5,書込み読出しデータ切換回路4の入力
回路を制御し、中央演算処理装置10(以下CPUと称す)
からのアドレス信号及びデータを無効にする。また、こ
の時アドレス入力端子36からの信号がアドレス入力バッ
ファ6およびアドレスラッチを介してXアドレスデコー
ダに入力され、一方、入出力端子37に接続されるEEPROM
データ入出力バッファ7からの信号がデータ切換回路を
介してYアドレスセレクター2−a及び書込み読出し制
御回路2−bに有効信号として入力され、EEPROMセル1
の消去又は書込み、又は読出しの動作が制御される。When any of the erase signal, the write signal or the read signal is valid input to the terminal 38, the EEPROM control circuit 9 controls the input circuit of the address latch 5 and the write / read data switching circuit 4, and the central processing unit 10 (Hereinafter referred to as CPU)
Invalidate the address signal and data from. Further, at this time, the signal from the address input terminal 36 is input to the X address decoder via the address input buffer 6 and the address latch, while the EEPROM connected to the input / output terminal 37.
The signal from the data input / output buffer 7 is input as a valid signal to the Y address selector 2-a and the write / read control circuit 2-b via the data switching circuit, and the EEPROM cell 1
The erasing, writing, or reading operation is controlled.
上述した従来のEEPROMを内蔵したマイコンは、EEPROMに
格納されているデータの内容にかかわらず、外部端子よ
り入力される消去又は書込み又は読出し制御信号及びア
ドレス信号により消去又は書込み又は読出しの動作をお
こなうことができる。従って従来のマイコンは、CPUの
実行を指令する命令や、命令実行時に必要な定数がEEPR
OMに記憶されている時であってもデータの有無を確認す
る手段がないため、マイコンの使用者がすでに必要な情
報を記憶しているEEPROMに書込み操作、または消去操作
をおこなった時、前記EEPROMに書込まれていた情報が破
壊されたり、消去されたりするという欠点を有してい
た。The above-mentioned conventional microcomputer with built-in EEPROM performs erase, write or read operation by the erase or write or read control signal and address signal input from the external terminal, regardless of the contents of the data stored in the EEPROM. be able to. Therefore, in the conventional microcomputer, the instruction that commands the execution of the CPU and the constants necessary for executing the instruction are EEPR
Since there is no means to confirm the existence of data even when it is stored in the OM, when the microcomputer user writes or erases in the EEPROM which already stores the necessary information, It has a drawback that the information written in the EEPROM is destroyed or erased.
本発明のマイクロコンピュータは、電気的に消去及び書
込み可能な読出し専用メモリの特定アドレス空間に設け
た書込み可能な読出し専用メモリセルと、該読出し専用
メモリセルに接続される制御ゲート群を備え、前記制御
ゲート群が前記特定アドレス空間を除くアドレス空間に
マッピングされた電気的に消去及び書込み可能な読出し
専用メモリの消去及び書込みを禁止する回路、および、
該消去及び書込みを禁止する制御を解除する回路を有す
る制御回路とを具備することを特徴とする。A microcomputer of the present invention includes a writable read-only memory cell provided in a specific address space of an electrically erasable and writable read-only memory, and a control gate group connected to the read-only memory cell, A circuit for inhibiting erasing and programming of an electrically erasable and writable read-only memory whose control gate group is mapped in an address space other than the specific address space, and
And a control circuit having a circuit for releasing the control for prohibiting the erasing and writing.
次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.
第1図は本発明によるマイコンの第1の実施例を示すブ
ロック図である。このマイコンの特徴は、特定アドレス
空間にマッピングされたEEPROM21,特定アドレス選択デ
コーダ20及びEEPROM21によりEEPROMを制御するため制御
回路22を有していることである。第2図に制御回路22の
具体的論理回路を示し、この実施例の動作を説明する。
前述した従来例と同一の手段によりEEPROMセル1ヘデー
タを書込んだ後、書込んだデータを保護する場合、外部
アドレス入力端子36から第1の特定アドレス信号を入力
し、特定アドレス選択デコーダ20により、特定アドレス
空間にマッピングされたEEPROMセル51〜54のいずれかを
選択したEEPROM制御端子38から書込信号を入力すること
により従来と同一手段でEEPROMセル51〜54のいずれかに
書込みを行なう。FIG. 1 is a block diagram showing a first embodiment of the microcomputer according to the present invention. The characteristic of this microcomputer is that it has an EEPROM 21 mapped in a specific address space, a specific address selection decoder 20 and a control circuit 22 for controlling the EEPROM by the EEPROM 21. FIG. 2 shows a concrete logic circuit of the control circuit 22, and the operation of this embodiment will be described.
After the data is written to the EEPROM cell 1 by the same means as the conventional example described above, when the written data is protected, the first specific address signal is input from the external address input terminal 36 and the specific address selection decoder 20 is used. By inputting a write signal from the EEPROM control terminal 38 that selects one of the EEPROM cells 51 to 54 mapped in a specific address space, writing is performed to any of the EEPROM cells 51 to 54 by the same means as in the conventional case.
EEPROMセル51〜54のいずれかに書込んだデータは第2図
に示す例ではEEPROMセル51〜54の出力を入力とし排他的
論理和回路61,62,63で偶数パリティ発生回路を構成する
制御回路22に入力され、この制御回路22がXアドレスデ
コーダ3の動作を禁止するCST信号を生成する。従って
以後、端子36,37,38によりEEPROMセル1への消去,書込
み,読出しを行なう制御信号が入力されてもEEPROMセル
1を選択するためのXアドレスデコーダ3が機能しない
ため、EEPROMセル1への消去,書込み,読出しを行なう
ことはできない。In the example shown in FIG. 2, the data written in any of the EEPROM cells 51 to 54 receives the output of the EEPROM cells 51 to 54 as an input, and the exclusive OR circuits 61, 62 and 63 constitute an even parity generation circuit. The control circuit 22 inputs the signal to the circuit 22 and generates the CST signal for inhibiting the operation of the X address decoder 3. Therefore, after that, even if a control signal for erasing, writing, or reading to / from the EEPROM cell 1 is input through the terminals 36, 37, 38, the X address decoder 3 for selecting the EEPROM cell 1 does not function. Cannot be erased, written, or read.
また、前述の操作によりEEPROMセル1のデータの保護機
能が働いている時、その保護機能を解除する場合は、ア
ドレス入力端子36から第2の特定アドレス信号を入力
し、特定アドレス空間にマッピングされたEEPROMセル51
〜54を選択し、端子38からの書込み信号により保護機能
を実現したEEPROMセル以外のセルに書込みを行なう。第
2図の場合EEPROMセル51〜54の出力が偶数パリティ回路
としての制御回路22に接続されているため、前記操作に
より2つのEEPROMセルの出力が「1」,他の2つのEEPR
OMセルの出力が「0」になり、Xアドレスデコーダの動
作を禁止するCST信号が「0」となり、Xアドレスデコ
ーダの禁止機能が解除される。従って以降、端子36,37,
38によりEEPROMセル1への消去,書込み,読出しの制御
が可能となる。これらの一連の動作は特定アドレス空間
にマッピングされた(第2図の実施例ではEEPROMセル51
〜54の4ケ)EEPROMセル数だけの繰返しが有効となる。Further, when the protection function of the data of the EEPROM cell 1 is activated by the above-mentioned operation, when canceling the protection function, the second specific address signal is input from the address input terminal 36 and mapped in the specific address space. EEPROM cell 51
54 to 54 are selected, and the write signal from the terminal 38 is used to write data in cells other than the EEPROM cell that realizes the protection function. In the case of FIG. 2, since the outputs of the EEPROM cells 51 to 54 are connected to the control circuit 22 as an even parity circuit, the outputs of the two EEPROM cells are "1" and the other two EEPROMs by the above operation.
The output of the OM cell becomes "0", the CST signal for inhibiting the operation of the X address decoder becomes "0", and the inhibition function of the X address decoder is released. Therefore, from now on, terminals 36, 37,
38 makes it possible to control erasing, writing and reading to the EEPROM cell 1. These series of operations are mapped to a specific address space (EEPROM cell 51 in the embodiment of FIG. 2).
It is effective to repeat as many as 54 to 54) EEPROM cells.
第3図は本発明の第2の実施例を示す回路図である。第
1の実施例は特定アドレス空間にマッピングされたEEPR
OMがEEPROMセル1のすべての消去,書込み,読出しを保
護又はその解除を行なったが、第3図は特定アドレス空
間にマッピングされEEPROMセル51〜54の出力とEEPROM制
御端子38によりEEPROMセル1をアクセスするEEPROM外部
アクセスモード信号の論理出力を得る論理出力回路33へ
入力しており、EEPROMセル51〜54の個々のセル出力がEE
PROMセル1のアドレス線を選択するアドレスデコーダ回
路出力X0〜Xmの各NOR回路の出力を禁止する働きをする
ことを示している。FIG. 3 is a circuit diagram showing a second embodiment of the present invention. The first embodiment is an EEPR mapped in a specific address space.
The OM protected or erased all erase, write, and read of the EEPROM cell 1, but FIG. 3 shows that the EEPROM cell 1 is mapped by the outputs of the EEPROM cells 51 to 54 and the EEPROM control terminal 38 in FIG. It is input to the logic output circuit 33 that obtains the logic output of the EEPROM external access mode signal to be accessed, and the individual cell outputs of the EEPROM cells 51 to 54 are EE.
It shows that the output of each NOR circuit of the address decoder circuit outputs X 0 to Xm for selecting the address line of the PROM cell 1 is prohibited.
第3図をさらに詳しく説明すると、EEPROMセル51はEEPR
OMセル1のアドレス線を選択するアドレスデコーダ回路
出力X0,X1が、EEPROMセル52はEEPROMセル1のアドレス
線を選択するアドレスデコーダ回路出力X2〜Xlが、EEPR
OMセル53はEEPROMセル1のアドレス線を選択するアドレ
スデコーダ回路出力Xl+1〜Xm-4が、EEPROMセル54はEEPR
OMセル1のアドレス線を選択するアドレスデコーダ回路
出力Xm-3〜Xmがアクティブになることを禁止し、従って
第1の実施例と同様にEEPROMセル1のデータの保護を実
現することができる。Explaining FIG. 3 in more detail, the EEPROM cell 51 is the EEPROM
The address decoder circuit outputs X 0 and X 1 for selecting the address line of the OM cell 1 and the EEPROM cell 52 the address decoder circuit outputs X 2 to Xl for selecting the address line of the EEPROM cell 1 are EEPROM.
The OM cell 53 has the address decoder circuit outputs Xl +1 to Xm -4 for selecting the address line of the EEPROM cell 1, and the EEPROM cell 54 has the EEPR.
It is possible to prevent the address decoder circuit outputs Xm -3 to Xm that select the address line of the OM cell 1 from becoming active, so that the data protection of the EEPROM cell 1 can be realized as in the first embodiment.
なお特定アドレス空間にマッピングされたEEPROMセル51
〜54に端子36〜38からの制御信号によりそのデータの書
込みを行なった場合の説明を行なったが、EEPROMの読出
し/書込みを外部端子から制御信号を入力して行なうの
でなく、命令によりCPUが生成する読出し/書込み信号
により、CPUから入出力されるデータを読出したり書込
んだりすることも可能であり。端子36〜38のかわりにCP
U10が同等の制御をEEPROMセル51〜54に対して行なうこ
とができることは明白であり、同様な効果を得ることが
できる。Note that the EEPROM cell 51 mapped to a specific address space
I explained the case where the data was written to ~ 54 by the control signal from terminals 36 to 38, but the CPU does not read / write the EEPROM by inputting the control signal from the external terminal, It is also possible to read or write the data input / output from the CPU by the read / write signal generated. CP instead of terminals 36-38
Obviously, U10 can provide similar control to EEPROM cells 51-54, and similar effects can be obtained.
以上説明したように本発明は、特定アドレス空間にEEPR
OM21を設け、そのセルの出力に特定アドレス空間以外の
EEPROMセル1を制御するための回路を設けることにより
EEPROMセル1に書込まれたデータを電気的に保護できる
効果がある。As described above, according to the present invention, the EEPR is stored in the specific address space.
OM21 is provided, and the output of that cell is
By providing a circuit to control the EEPROM cell 1
There is an effect that the data written in the EEPROM cell 1 can be electrically protected.
第1図は本発明の第1の実施例のブロック図、第2図は
第1図の一部を示す回路図、第3図は本発明の第2の実
施例のブロック図、第4図は従来例のブロック図であ
る。 1……EEPROMセル、2−a……Yアドレスセレクター、
2−b……書込み読出し制御回路、3……Xアドレスデ
コーダ、4……書込み読出しデータ切換回路、5……ア
ドレスラッチ、6……アドレス入力バッファ、7……EE
PROMデータ入出力バッファ、8……EEPROM制御バッフ
ァ、9……EEPROM制御回路、10……CPU、20……特定ア
ドレス選択デコーダ、21……特定アドレス空間にあるEE
PROM、22……特定アドレス空間にあるEEPROMの制御回
路、36……アドレス入力端子、37……EEPROMデータの入
出力端子、38……EEPROM制御端子、51〜54……特定アド
レス空間にあるEEPROMセル、61〜63……排他的論理和回
路、CST……Xアドレスデコーダの出力を禁止する信
号。FIG. 1 is a block diagram of a first embodiment of the present invention, FIG. 2 is a circuit diagram showing a part of FIG. 1, FIG. 3 is a block diagram of a second embodiment of the present invention, and FIG. Is a block diagram of a conventional example. 1 ... EEPROM cell, 2-a ... Y address selector,
2-b ... Write / read control circuit, 3 ... X address decoder, 4 ... Write / read data switching circuit, 5 ... Address latch, 6 ... Address input buffer, 7 ... EE
PROM data input / output buffer, 8 ... EEPROM control buffer, 9 ... EEPROM control circuit, 10 ... CPU, 20 ... Specific address selection decoder, 21 ... EE in specific address space
PROM, 22 ... EEPROM control circuit in specific address space, 36 ... address input terminal, 37 ... EEPROM data input / output terminal, 38 ... EEPROM control terminal, 51 to 54 ... EEPROM in specific address space Cell, 61 to 63 ... Exclusive OR circuit, CST ... Signal to prohibit output of X address decoder.
Claims (1)
内蔵する中央演算処理装置がアクセス可能な電気的に消
去及び書込可能な第1の読み出し専用メモリと、該第1
の読み出し専用メモリに接続されるアドレスデコーダ・
セレクタ回路と、前記第1の読み出し専用メモリとアド
レス空間の異なる電気的に書込可能な第2の読み出し専
用メモリと、該第2の読み出し専用メモリの出力データ
が入力され、前記アドレスデコーダ・セレクタ回路の選
択機能を停止する手段及び、選択機能の停止を解除する
手段を有する制御回路を備え、該制御回路が、前記第2
の読み出し専用メモリに書込まれたデータのパリティ演
算の結果により、前記アドレスデコーダ・セレクタ回路
の選択機能を停止する手段または選択機能の停止を解除
する手段のどちらかの制御を行う論理を有し、前記アド
レスデコーダ・セレクタ回路の選択機能を停止する手段
によって前記第1の読み出し専用メモリへのデータの消
去/書込の禁止を、前記アドレスデコーダ・セレクタ回
路の選択機能の停止を解除する手段によって前記第1の
読み出し専用メモリのデータの消去/書込の禁止の解除
を可能とすることを特徴とするマイクロコンピュータ。1. Addressing is possible directly from an external terminal,
An electrically erasable and writable first read-only memory accessible by a built-in central processing unit;
Address decoder connected to the read-only memory of
A selector circuit, an electrically writable second read-only memory having an address space different from that of the first read-only memory, and output data of the second read-only memory are inputted to the address decoder / selector. A control circuit having means for stopping the selection function of the circuit and means for canceling the stop of the selection function is provided, and the control circuit comprises the second circuit.
Has a logic for controlling either the means for stopping the selection function of the address decoder / selector circuit or the means for canceling the stop of the selection function according to the result of the parity operation of the data written in the read-only memory. , Prohibiting the erasing / writing of data in the first read-only memory by means for stopping the selection function of the address decoder / selector circuit, and releasing the stop of the selection function of the address decoder / selector circuit. A microcomputer capable of canceling prohibition of erasing / writing of data in the first read-only memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23363086A JPH0697442B2 (en) | 1986-09-30 | 1986-09-30 | Micro computer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23363086A JPH0697442B2 (en) | 1986-09-30 | 1986-09-30 | Micro computer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6386049A JPS6386049A (en) | 1988-04-16 |
| JPH0697442B2 true JPH0697442B2 (en) | 1994-11-30 |
Family
ID=16958053
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23363086A Expired - Lifetime JPH0697442B2 (en) | 1986-09-30 | 1986-09-30 | Micro computer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0697442B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0812646B2 (en) * | 1989-03-03 | 1996-02-07 | 三菱電機株式会社 | Semiconductor integrated circuit |
| JPH05307507A (en) * | 1991-04-01 | 1993-11-19 | Nec Corp | Storage device |
| JP4932416B2 (en) * | 2006-09-29 | 2012-05-16 | 株式会社吉野工業所 | Alignment container |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61101856A (en) * | 1984-10-24 | 1986-05-20 | Nec Ic Microcomput Syst Ltd | Storage device |
-
1986
- 1986-09-30 JP JP23363086A patent/JPH0697442B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6386049A (en) | 1988-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3884839B2 (en) | Semiconductor memory device | |
| EP0420994B1 (en) | Memory cartridge | |
| US6229731B1 (en) | Nonvolatile semiconductor memory device with security function and protect function | |
| US5991849A (en) | Rewriting protection of a size varying first region of a reprogrammable non-volatile memory | |
| US5749088A (en) | Memory card with erasure blocks and circuitry for selectively protecting the blocks from memory operations | |
| US7580281B2 (en) | Flash memory device with write protection | |
| US5890191A (en) | Method and apparatus for providing erasing and programming protection for electrically erasable programmable read only memory | |
| US7249231B2 (en) | Semiconductor memory with access protection scheme | |
| JPH11110293A (en) | Non-volatile memory control circuit | |
| US6868505B2 (en) | Memory exchange | |
| US6108235A (en) | Memory device | |
| US5987581A (en) | Configurable address line inverter for remapping memory | |
| US7565477B2 (en) | Semiconductor device and method of controlling the same | |
| US20070133280A1 (en) | Semiconductor integrated circuit apparatus and electronic system | |
| US6532529B1 (en) | Microcomputer including flash memory overwritable during operation and operating method thereof | |
| EP0374733B1 (en) | Single-chip microcomputer including EPROM therein | |
| JP2842442B2 (en) | Microcomputer, nonvolatile semiconductor memory device, and method for writing and erasing the same | |
| JPH0697442B2 (en) | Micro computer | |
| RU2169951C2 (en) | Semiconductor memory device | |
| JP3028567B2 (en) | Microcomputer with built-in EEPROM | |
| JPH10143434A (en) | Semiconductor integrated circuit | |
| JPH04313891A (en) | Ic card | |
| JPH0434185B2 (en) | ||
| JPS6012660B2 (en) | memory device | |
| JP3824295B2 (en) | Nonvolatile semiconductor memory device |