JPS6386049A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS6386049A
JPS6386049A JP61233630A JP23363086A JPS6386049A JP S6386049 A JPS6386049 A JP S6386049A JP 61233630 A JP61233630 A JP 61233630A JP 23363086 A JP23363086 A JP 23363086A JP S6386049 A JPS6386049 A JP S6386049A
Authority
JP
Japan
Prior art keywords
eeprom
cell
address
specific address
read
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.)
Granted
Application number
JP61233630A
Other languages
Japanese (ja)
Other versions
JPH0697442B2 (en
Inventor
Sadahiro Yasuda
安田 貞宏
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 JP23363086A priority Critical patent/JPH0697442B2/en
Publication of JPS6386049A publication Critical patent/JPS6386049A/en
Publication of JPH0697442B2 publication Critical patent/JPH0697442B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Read Only Memory (AREA)

Abstract

PURPOSE:To secure electrical protection of data written into a read-only memory EEPROM by setting the EEPROM into a specific address space and then controlling an EEPROM excepting for those set in the specific address space by the output of the EEPROM cell. CONSTITUTION:A microcomputer contains an EEPROM 21 mapped into a specific address space, a specific address selection decoder 20, and a control circuit 22 which functions to control an EEPROM cell 1 via the EEPROM 21. The circuit 22 produces a signal to inhibit the operation of an X address decoder 3. Under such conditions, an X address decoder 3 which selects the cell 1 does not function even though the control signals are inputted through terminals 36-38 to perform erasion and write/read actions to the cell 1. Thus these actions are impossible to the cell 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電気的に消去及び書込み可能な読出し専用メモ
リ(EEPROMと称す)を内蔵するマイクロコンピュ
ータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer incorporating an electrically erasable and programmable read-only memory (referred to as EEPROM).

〔従来の技術〕[Conventional technology]

従来のEEPROMを内蔵したマイクロコンピュータの
例を第4図に示す。従来のマイクロコンピュータ(以下
マイコンと称す。)に内蔵されたEEPROMは、EE
PROMセル1.Yアドレスセレクター2−a、書込み
読出し制御回路2−す、Xアドレスデコーダ3.書込み
読出しデータ切換回路4.アドレスラッチ5.アドレス
人力バッファ6、EEPROMデータ入出力バッファ7
゜EEPROM制御バッフy8.EEPROM制御回路
9で構成されている。38はEEPROMセルに書込み
、読出し、消去を制御する信号の入力端子、36はEE
PROMのアドレス入力端子、37はEEPROMデー
タの入出力端子である。
FIG. 4 shows an example of a microcomputer incorporating a conventional EEPROM. The EEPROM built into a conventional microcomputer (hereinafter referred to as a microcomputer) is an EE
PROM cell 1. Y address selector 2-a, write/read control circuit 2-a, X address decoder 3. Write/read data switching circuit 4. Address latch5. Address manual buffer 6, EEPROM data input/output buffer 7
゜EEPROM control buffer y8. It is composed of an EEPROM control circuit 9. 38 is an input terminal for signals that control writing, reading, and erasing in EEPROM cells; 36 is an EE terminal;
PROM address input terminal 37 is an input/output terminal for EEPROM data.

端子38は消去信号、書込み信号または読出し信号のい
ずれかの信号が有効入力である場合、EEPROM制御
回路9がアドレスラッチ5.書込み読出しデータ切換回
路4の入力回路を制御し、中央演算処理装置10(以下
CPUと称す)からのアドレス信号及びデータを無効に
する。また、この時アドレス入力端子36からの信号が
アドレス入力バッファ6およびアドレスラッチを介して
Xアドレスデコーダに入力され、一方、入出力端子37
に接続されるEEPROMデータ入出力バッファ7から
の信号がデータ切換回路を介してYアドレスセレクター
2−a及び書込み読出し制御回路2−bに有効信号とし
て入力され、EEPROMセル1の消去又は書込み、又
は読出しの動作が制御される。
When any one of the erase signal, write signal, or read signal is a valid input to the terminal 38, the EEPROM control circuit 9 outputs the address latch 5. It controls the input circuit of the write/read data switching circuit 4 and invalidates the address signal and data from the central processing unit 10 (hereinafter referred to as CPU). Also, at this time, a 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 input/output terminal 37
A signal from the EEPROM data input/output buffer 7 connected to the EEPROM cell 1 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 is erased or written, or The read operation is controlled.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のEEPROMを内蔵したマイコンは、E
EPROMに格納されているデータの内容にかかわらず
、外部端子より入力される消去又は書込み又は読出し制
御信号及びアドレス信号により消去又は書込み又は読出
しの動作をおこなうことができる。従って従来のマイコ
ンは、CPUの実行を指令する命令や、命令実行時に必
要な定数がEEPROMに記憶されている時であっても
データの有無を確認する手段がないため、マイコンの使
用者がすでに必要な情報を記憶しているEEPROMに
書込み操作、または消去操作をおこなった時、前記EE
PROMに書込まれていた情報が破壊されたり、消去さ
れたりするという欠点を有していた。
The conventional microcontroller with built-in EEPROM mentioned above is E
Regardless of the content of data stored in the EPROM, erasing, writing, or reading operations can be performed by erasing, writing, or reading control signals and address signals input from external terminals. Therefore, with conventional microcontrollers, even when the instructions that command the execution of the CPU and the constants necessary for executing the instructions are stored in the EEPROM, there is no way to check whether the data exists or not. When a write operation or an erase operation is performed on the EEPROM that stores necessary information, the EE
This has the disadvantage that the information written in the PROM may be destroyed or erased.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のマイクロコンピュータは、電気的に消去及び書
込み可能な読出し専用メモリの特定アドレス空間に設け
た書込み可能な読出し専用メモリセルと、該読出し専用
メモリセルに接続される制御ゲート群を備え、前記制御
ゲート群が前記特定アドレス空間を除くアドレス空間に
マツピングされた電気的に消去及び書込み可能な読出し
専用メモリの消去及び書込みを禁止する制御信号を生成
する制御回路とを有することを特徴とする。
The 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 group of control gates connected to the read-only memory cell. The control gate group includes a control circuit that generates a control signal for inhibiting erasing and writing of an electrically erasable and writable read-only memory mapped to an address space other than the specific address space.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明によるマイコンの第1の実施例を示すブ
ロック図である。このマイコンの特徴は、特定アドレス
空間にマツピングされたEEPROM21.特定アドレ
ス選択デコーダ20及びEEPROM21によりE E
 P R’OMを制御するための制御回路22を有して
いることである。第2図に制御回路22の具体的論理回
路を示し、この実施例の動作を説明する。前述した従来
例と同一の手段によりEEPROMセル1ヘデータを書
込んだ後、書込んだデータを保護する場合、外部アドレ
ス入力端子36から特定アドレス信号を入力し、特定ア
ドレス選択デコーダ20により、特定アドレス空間にマ
ツピングされたEEPROMセル51〜54のいずれか
を選択しEEFROM制御端子38から書込信号を入力
することにより従来と同一手段でEEPROMセル51
〜54のいずれかに書込みを行なう。
FIG. 1 is a block diagram showing a first embodiment of a microcomputer according to the present invention. The feature of this microcontroller is that the EEPROM 21.0 is mapped to a specific address space. E E by the specific address selection decoder 20 and EEPROM 21
It has a control circuit 22 for controlling PR'OM. FIG. 2 shows a specific logic circuit of the control circuit 22, and the operation of this embodiment will be explained. After writing data to the EEPROM cell 1 using the same means as in the conventional example described above, if the written data is to be protected, a specific address signal is input from the external address input terminal 36, and the specific address selection decoder 20 selects the specific address. By selecting one of the EEPROM cells 51 to 54 mapped in the space and inputting a write signal from the EEFROM control terminal 38, the EEPROM cell 51 is
Write to any one of 54 to 54.

EEPROMセル51〜54のいずれかに書込んだデー
タは第2図に示す例ではEEPROMセル51〜54の
出力を入力とし排他的論理和回路61.62.63で偶
数パリティ発生回路を構成する制御回路22に入力され
、この制御回路22がXアドレスデコーダ3の動作を禁
止するCST信号を生成する。従って以後、端子36,
37゜38によりE E P ROMセル1への消去、
書込み、読出しを行なう制御信号が入力されてもBEP
ROMセル1を選択するためのXアドレスデコーダ3が
機能しないため、EEPROMセル1への消去、書込み
、読出しを行なうことはできない。
In the example shown in FIG. 2, the data written to any of the EEPROM cells 51 to 54 is controlled by inputting the outputs of the EEPROM cells 51 to 54 and forming an even parity generation circuit using exclusive OR circuits 61, 62, and 63. The control circuit 22 generates a CST signal that inhibits the operation of the X address decoder 3. Therefore, from now on, the terminal 36,
Erase to EEPROM cell 1 by 37°38,
Even if a control signal for writing or reading is input, the BEP
Since the X address decoder 3 for selecting the ROM cell 1 does not function, it is not possible to erase, write, or read the EEPROM cell 1.

また、前述の操作によりEEPROMセル1のデータの
保護機能が働いている時、その保護機能を解除する場合
は、アドレス入力端子36から特定アドレス信号を入力
し、特定アドレス空間にマツピングされたEBPROM
セル51〜54を選択し、端子38からの書込み信号に
より保護機能を実現したEEFROMセル以外のセルに
書込みを行なう。第2図の場合EEPROMセル51〜
54の出力が偶数パリティ回路としての制御回路22に
接続されているため、前記操作により2つのEEPRO
Mセルの出力が「l」、他の2つのEEPROMセルの
出力が「0」になり、Xアドレスデコーダの動作を禁止
するC3T信号が「0」となり、Xアドレスデコーダの
禁止機能が解除される。従って以降、端子3(5,37
,38によりEEPROMセル1への消去、書込み、読
出しの制御が可能となる。これらの一連の動作は特定ア
ドレス空間にマツピングされた(第2図の実施例ではE
EPROMセル51〜54の4ケ)EEPROMセル数
だけの繰返しが有効となる。
In addition, when the data protection function of EEPROM cell 1 is activated by the above-mentioned operation, in order to cancel the protection function, input a specific address signal from the address input terminal 36, and input the specific address signal to the EBPROM cell 1 mapped to the specific address space.
Cells 51 to 54 are selected, and a write signal from terminal 38 is used to write to cells other than the EEFROM cells that have achieved the protection function. In the case of Fig. 2, EEPROM cells 51~
Since the output of 54 is connected to the control circuit 22 as an even parity circuit, the above operation causes two EEPRO
The output of the M cell becomes "l", the outputs of the other two EEPROM cells become "0", the C3T signal that inhibits the operation of the X address decoder becomes "0", and the inhibit function of the X address decoder is released. . Therefore, from now on, terminal 3 (5, 37
, 38 make it possible to control erasing, writing, and reading from the EEPROM cell 1. These series of operations are mapped to a specific address space (in the example shown in Figure 2, E
(4) EPROM cells 51 to 54) Repeating as many times as the number of EEPROM cells is effective.

第3図は本発明の第2の実施例を示す回路図である。第
1の実施例は特定アドレス空間にマツピングされたEE
PROMセルがEEPROMセル1のすべての消去、書
込み、読出しを保護又はその解除を行なったが、第3図
は特定アドレス空間にマツピングされたEEPROMセ
ル51〜54の出力とEEPROM制御端子38により
EEPROMセル1をアクセスする信号との論理出力回
路33へ入力しており、EEPROMセル51〜54の
個々のセル出力がEEPROMセル1のアドレス線を選
択するアドレスデコーダ回路出力X0−xX−の各NO
R回路の出力を禁止する山きをすることを示している。
FIG. 3 is a circuit diagram showing a second embodiment of the present invention. The first embodiment is an EE mapped to a specific address space.
The PROM cell protects or releases all erasing, writing, and reading of the EEPROM cell 1, and in FIG. 1 to the logic output circuit 33, and the individual cell outputs of the EEPROM cells 51 to 54 select the address line of the EEPROM cell 1.
This indicates that the output of the R circuit is prohibited.

第3図をさらに詳しく説明すると、EEPROMセル5
1はEEPROMセル1のアドレス線を選択するアドレ
スデコーダ回路出力Xo、Xlが、EEPROMセル5
2はEEPROMセル1のアドレス線を選択するアドレ
スデコーダ回路出力X2〜Xjが、EEPROMセル5
3はEEPROMセル1のアドレス線を選択するアドレ
スデコーダ回路出力X、41〜X、−4が、EEPRO
Mセル54はEEPROMセル1のアドレス線を選択す
るアドレスデコーダ回路出力X、−3〜X、がアクティ
ブになることを禁止し、従って第1の実施例と同様にE
EPROMセル1のデータの保護を実現することができ
る。
To explain FIG. 3 in more detail, EEPROM cell 5
1 is an address decoder circuit that selects the address line of EEPROM cell 1. The outputs Xo and Xl of EEPROM cell 5
2, address decoder circuit outputs X2 to Xj that select the address line of EEPROM cell 1 are connected to EEPROM cell 5.
3 is an address decoder circuit that selects the address line of EEPROM cell 1. Outputs X, 41 to X, -4 are EEPROM
The M cell 54 prohibits the address decoder circuit outputs X, -3 to X, which select the address line of the EEPROM cell 1, from becoming active, and therefore the E
Protection of data in the EPROM cell 1 can be realized.

なお特定アドレス空間にマツピングされたEEPROM
セル51〜54に端子36〜38がらの制御信号により
そのデータの書込みを行なった場合の説明を行なったが
、端子36〜38のかわりにCPUl0が同等の制御を
EEPROMセル51〜54に対して行なうことができ
ることは明白であり、同様な効果を得ることができる。
Note that EEPROM mapped to a specific address space
We have explained the case where the data is written to the cells 51-54 using the control signals from the terminals 36-38, but instead of the terminals 36-38, the CPU10 performs the same control for the EEPROM cells 51-54. It is obvious that this can be done and a similar effect can be obtained.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、特定アドレス空間にEE
PROM21を設け、そのセルの出力に特定アドレス空
間以外のEEPROMセル1を制御するための回路を設
けることによりEEPROMセル1に書込まれたデータ
を電気的に保護できる効果がある。
As explained above, the present invention provides EE in a specific address space.
By providing the PROM 21 and providing a circuit for controlling the EEPROM cells 1 other than the specific address space at the output of the cell, it is possible to electrically protect the data written in the EEPROM cells 1.

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

第1図は本発明の第1の実施例のブロック図、第2図は
第1図の一部を示す回路図、第3図は本発明の第2の実
施例のブロック図、第4図は従来例のブロック図である
。 1・・・EEPROMセル、2−a・・・Yアドレスセ
レクター、2−b・・・書込み読出し制御回路、3・・
・Xアドレスデコーダ、4・・・書込み読出しデータ切
換回路、5・・・アドレスラッチ、6・・・アドレス入
力バッファ、7・・・EEPROMデータ入出力バッフ
ァ、8・・・EEPROM制御バッファ、9・・・EE
PROM制御回路、10・・・CPU、20・・・特定
アドレス選択デコーダ、21・・・特定アドレス空間に
あるEEPROM、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. 4 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...EEPROM data input/output buffer, 8...EEPROM control buffer, 9.・EE
PROM control circuit, 10... CPU, 20... Specific address selection decoder, 21... EEPROM in specific address space, 22... Control circuit for EEPROM in specific address space, 36... Address input Terminal, 37... EEPROM data input/output terminal, 38.
. . EEPROM control terminals, 51-54 . . . EEPROM cells in a specific address space, 61-63 . . . exclusive OR circuit, CST .

Claims (1)

【特許請求の範囲】[Claims]  電気的に消去及び書込み可能な読出し専用メモリの特
定アドレス空間に設けた書込み可能な読出し専用メモリ
セルと、該読出し専用メモリセルに接続される制御ゲー
ト群を備え、前記制御ゲート群が前記特定アドレス空間
を除くアドレス空間にマッピングされた電気的に消去及
び書込み可能な読出し専用メモリの消去及び書込みを禁
止する制御信号を生成する制御回路とを有することを特
徴とするマイクロコンピュータ。
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, the control gate group being connected to the specific address. 1. A microcomputer comprising: a control circuit that generates a control signal for inhibiting erasing and writing of an electrically erasable and writable read-only memory mapped to an address space other than space.
JP23363086A 1986-09-30 1986-09-30 Micro computer Expired - Lifetime JPH0697442B2 (en)

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 true JPS6386049A (en) 1988-04-16
JPH0697442B2 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5097445A (en) * 1989-03-03 1992-03-17 Mitsubishi Denki Kabushiki Kaisha Semiconductor integrated circuit with selective read and write inhibiting
JPH05307507A (en) * 1991-04-01 1993-11-19 Nec Corp Storage device
JP2008087815A (en) * 2006-09-29 2008-04-17 Yoshino Kogyosho Co Ltd Alignment container

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61101856A (en) * 1984-10-24 1986-05-20 Nec Ic Microcomput Syst Ltd Storage device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61101856A (en) * 1984-10-24 1986-05-20 Nec Ic Microcomput Syst Ltd Storage device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5097445A (en) * 1989-03-03 1992-03-17 Mitsubishi Denki Kabushiki Kaisha Semiconductor integrated circuit with selective read and write inhibiting
JPH05307507A (en) * 1991-04-01 1993-11-19 Nec Corp Storage device
JP2008087815A (en) * 2006-09-29 2008-04-17 Yoshino Kogyosho Co Ltd Alignment container

Also Published As

Publication number Publication date
JPH0697442B2 (en) 1994-11-30

Similar Documents

Publication Publication Date Title
KR940005784B1 (en) Security circuit
US5206938A (en) Ic card with memory area protection based on address line restriction
US5930826A (en) Flash memory protection attribute status bits held in a flash memory array
US6108235A (en) Memory device
KR100479274B1 (en) Semiconductor memory device and information device
JPS6386049A (en) Microcomputer
JP4064703B2 (en) Semiconductor memory device
KR20030011253A (en) Non-volatile semiconductor memory device and information apparatus
JPS61249156A (en) Semiconductor memory device
JPS61278951A (en) Memory information protecting circuit
JPS6325748A (en) Control of electronic circuit and circuit for implementing the same method
JPS6128144B2 (en)
JPH10143434A (en) Semiconductor integrated circuit
JP3028567B2 (en) Microcomputer with built-in EEPROM
JPH01232452A (en) One-chip processor
JPS62257700A (en) Write control system for eeprom
JPH04313891A (en) Ic card
JPS62165253A (en) Lsi incorporated non-volatile memory
JP2613602B2 (en) Programmable controller
JPH07152719A (en) Microcomputer
JPH0434185B2 (en)
JPS63266562A (en) Semiconductor integrated circuit
JPS6226738B2 (en)
US20040170073A1 (en) Semiconductor storage unit
JPH0453098A (en) Semiconductor non-volatile memory device