JPH0528049A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH0528049A
JPH0528049A JP3178613A JP17861391A JPH0528049A JP H0528049 A JPH0528049 A JP H0528049A JP 3178613 A JP3178613 A JP 3178613A JP 17861391 A JP17861391 A JP 17861391A JP H0528049 A JPH0528049 A JP H0528049A
Authority
JP
Japan
Prior art keywords
rom
instruction
address
program counter
counter value
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
JP3178613A
Other languages
Japanese (ja)
Inventor
Norio Masui
規雄 桝井
Shigeo Mizugaki
重生 水垣
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3178613A priority Critical patent/JPH0528049A/en
Publication of JPH0528049A publication Critical patent/JPH0528049A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent the reading of the entire program and data in a built-in ROM even under a memory expansion mode. CONSTITUTION:This microcomputer is provided with a built-in ROM consecutive reference detection circuit 12 detecting whether or not the consecutive reference for a built-in flash EEPROM 3 by the only instruction of the same program counter value based on a program counter value from a program counter 10, an instruction code from an instruction register 11, and an internal address bus 5 in a CPU 2. When the built-in ROM consecutive reference detection circuit 12 detects more than the prescribed number of consecutive reference for the built-in ROM, it outputs a signal actuating this to a deletion circuit 13 of the built-in flash EEPROM 3, and deletes the contents of the built-in flash EEPROM 3 by the deletion circuit 13.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は内蔵ROM の他に外部メモ
リを備え、内蔵ROM 及び外部メモリを共にプログラムメ
モリとして使用可能なメモリ拡張モードを備えたマイク
ロコンピュータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer having a built-in ROM and an external memory, and having a memory expansion mode in which both the built-in ROM and the external memory can be used as a program memory.

【0002】[0002]

【従来の技術】メモリ容量を増大するため内蔵ROM の外
に外部メモリを備え、メモリ拡張モードに設定すること
でこれら双方をプログムメモリとして使用可能としたマ
イクロコンピュータが知られている。
2. Description of the Related Art A microcomputer is known in which an external memory is provided in addition to a built-in ROM in order to increase the memory capacity, and both of them can be used as a program memory by setting a memory expansion mode.

【0003】図4は従来におけるメモリ拡張モードを備
えた電気的一括消去型のフラッシュEEPROM内蔵マイクロ
コンピュータを示すブロック図であり、図中1はマイク
ロコンピュータ、6は外部メモリ、7は外部デバイスを
示している。マイクロコンピュータ1はCPU2,内蔵フラ
ッシュEEPROM3 を備えており、夫々内部データバス4、
内部アドレスバス5を通じて相互に接続されると共に、
外部データバス8、外部アドレスバス9を通じて外部メ
モリ6,外部デバイス7とも接続されている。
FIG. 4 is a block diagram showing a conventional electric batch erasing type flash EEPROM built-in microcomputer having a memory expansion mode. In FIG. 4, 1 is a microcomputer, 6 is an external memory, and 7 is an external device. ing. The microcomputer 1 includes a CPU 2 and a built-in flash EEPROM 3, and an internal data bus 4 and
Connected to each other through the internal address bus 5,
The external memory 6 and the external device 7 are also connected through the external data bus 8 and the external address bus 9.

【0004】このような従来のROM 内蔵マイクロコンピ
ュータの動作を説明する。CPU2は書き込みモード、読み
出しモード及びマイコンモードの3つの動作モードの設
定が可能となっている。書き込みモードでは外部デバイ
ス7の制御によってCPU2の機能を停止し、外部アドレス
バス9および内部アドレスバス5を通じて指定されたア
ドレスに該当する内蔵フラッシュEEPROM3 のメモリ領域
に外部データバス8、内部データバス4を通じて与えら
れたデータが書き込まれるようになっている。
The operation of such a conventional microcomputer with a built-in ROM will be described. The CPU 2 can set three operation modes, a write mode, a read mode and a microcomputer mode. In the write mode, the function of the CPU2 is stopped by the control of the external device 7 and the external data bus 8 and the internal data bus 4 are passed to the memory area of the built-in flash EEPROM3 corresponding to the address designated through the external address bus 9 and the internal address bus 5. The given data is to be written.

【0005】また読み出しモードは内蔵フラッシュEEPR
OM3 に書込まれているデータを検証するためのモードで
あり、同じく外部デバイス7の制御によってCPU2の機能
を停止し、外部アドレスバス9,内部アドレスバス5を
通じて指定されたアドレスに該当する内蔵フラッシュEE
PROM3 のメモリ領域から内部データバス4,外部データ
バス8を通じてデータが外部に読み出せるようになって
いる。
The read mode is the built-in flash EEPR.
This is a mode for verifying the data written in OM3. Similarly, the function of CPU2 is stopped by the control of external device 7, and the built-in flash corresponding to the address specified through external address bus 9 and internal address bus 5. EE
Data can be read out from the memory area of PROM3 through the internal data bus 4 and the external data bus 8.

【0006】更にマイコンモードはマイクロコンピュー
タ1に通常の動作を行わせるためのモードであり、マイ
クロコンピュータ1が内蔵フラッシュEEPROM3 に格納さ
れているプログラムを実行するようになっている。とこ
ろでマイクロコンピュータにおいては、読み出しモード
は第3者に対して非公開とされ、またマイコンモードに
おいて外部デバイス7から外部アドレスバス9,内部ア
ドレスバス5を通じてアドレスを与えても内蔵フラッシ
ュEEPROM3の格納内容を秘密にするため、データの読み
出しが出来ないように設計されている。
Further, the microcomputer mode is a mode for causing the microcomputer 1 to perform a normal operation, and the microcomputer 1 executes the program stored in the built-in flash EEPROM 3. By the way, in the microcomputer, the read mode is not disclosed to a third party, and even if an address is given from the external device 7 through the external address bus 9 and the internal address bus 5 in the microcomputer mode, the contents stored in the built-in flash EEPROM 3 are stored. For confidentiality, it is designed so that data cannot be read.

【0007】[0007]

【発明が解決しようとする課題】ところで上述した如
き、メモリ拡張モードを備える場合においては、例えば
外部メモリ6における所定のアドレス該当領域に保持し
てある転送命令をCPU2が実行する際、転送元アドレスと
して内蔵フラッシュEEPROM3 のアドレスを指定し、また
転送先アドレスとして外部メモリ6のアドレスを指定す
ると、マイコンモードであるにもかかわらず内蔵フラッ
シュEEPROM3 内の格納データを外部メモリ6内に取り出
すことが可能となる。
In the case where the memory expansion mode is provided as described above, for example, when the CPU 2 executes a transfer instruction held in a predetermined address corresponding area in the external memory 6, the transfer source address If the address of the built-in flash EEPROM3 is specified as and the address of the external memory 6 is specified as the transfer destination address, the stored data in the built-in flash EEPROM3 can be taken out to the external memory 6 even in the microcomputer mode. Become.

【0008】また外部メモリ6の所定アドレスに保持し
た転送命令の転送元アドレスとして内蔵フラッシュEEPR
OM3 の先頭アドレスを指定し、転送先アドレスとして外
部メモリ6の所定アドレスを指定し、ループを用いてCP
U2に繰り返し転送命令を更新させ、実行毎に転送元アド
レス及び転送先アドレスを夫々インクリメントすると内
蔵フラッシュEEPROM3 内の全データを外部メモリ6内に
転送することが可能となる。
A built-in flash EEPROM is used as a transfer source address of a transfer instruction held at a predetermined address of the external memory 6.
Specify the start address of OM3, specify the specified address of the external memory 6 as the transfer destination address, and use CP to loop.
It is possible to transfer all the data in the built-in flash EEPROM 3 to the external memory 6 by making U2 repeatedly update the transfer instruction and incrementing the transfer source address and the transfer destination address each time it is executed.

【0009】このようなメモリ拡張モードを備えたフラ
ッシュEEPROM3内蔵マイクロコンピュータでは、読み出
しモードを第3者に対し非公開にしておいても、外部メ
モリに保持したプログラムにより内蔵フラッシュEEPROM
3 のデータをオペランドとして参照することで内蔵フラ
ッシュEEPROM3 の内容を読み出すことが可能となり、秘
密化が難しいという問題があった。
In the microcomputer with the built-in flash EEPROM 3 provided with such a memory expansion mode, even if the read mode is not disclosed to a third party, the built-in flash EEPROM can be read by the program held in the external memory.
There is a problem that the contents of the built-in flash EEPROM3 can be read by referencing the data of 3 as an operand, making it difficult to keep secret.

【0010】本発明はかかる事情に鑑みなされたもので
あって、その目的とするところは内蔵ROM の格納データ
の読み出しを阻止し得るようにしたマイクロコンピュー
タを提供するにある。
The present invention has been made in view of such circumstances, and an object of the present invention is to provide a microcomputer capable of preventing reading of data stored in a built-in ROM.

【0011】[0011]

【課題を解決するための手段】本発明に係るマイクロコ
ンピュータにあっては、電気的に書換え可能なROM と、
CPU により設定されたメモリ拡張モード時にプログラム
メモリとして使用される他のメモリとを備えるマイクロ
コンピュータにおいて、同一プログラムカウンタ値の命
令のみによる前記ROM の連続参照を検出する連続参照検
出回路と、該連続参照検出回路からの検出信号に基づい
て起動され、前記ROM の内容を消去する手段とを具備す
る。第2の本発明に係るマイクロコンピュータにあって
は、CPU からのアドレスがROM 内のアドレスか否かを判
定するアドレス判定部と、CPU からの命令がROM の参照
を伴う命令か否かを判定する命令判定部と、プログラム
カウンタ値を記憶すべく設けられ、アドレス判定部と命
令判定部との出力に基づきCPU がROM の参照を伴う命令
の実行中であって、しかも前記ROM 内のアドレスを出力
したとき既に保持しているプログラムカウンタ値を実行
中の命令のプログラムカウンタ値に更新して保持する第
1のレジスタと、前記第1のレジスタにおける更新前の
プログラムカウンタ値を保持する第2のレジスタと、前
記第1,第2レジスタが保持しているプログラムカウン
タ値を比較する比較器と、該比較器の比較結果に基づ
き、連続参照回数をカウントし、またはリセットを行
い、カウント値が所定値を越えると検出信号をROM の内
容を消去する手段へ出力するカウンタとを具備する。第
3の本発明に係るマイクロコンピュータにあっては、同
一プログラムカウンタ値の命令のみによるROM の連続参
照を検出する連続参照検出回路と、ROMのデータ出力を
検出するセンスアンプ回路と、前記連続参照検出回路が
連続参照であることを検出したとき、前記センスアンプ
回路の動作を停止する手段とを具備する。
In a microcomputer according to the present invention, an electrically rewritable ROM,
In a microcomputer provided with another memory used as a program memory in the memory expansion mode set by the CPU, a continuous reference detection circuit for detecting continuous reference of the ROM only by an instruction of the same program counter value, and the continuous reference It is activated based on a detection signal from a detection circuit and erases the contents of the ROM. In the microcomputer according to the second aspect of the present invention, an address determination unit that determines whether the address from the CPU is an address in the ROM, and determines whether the instruction from the CPU is an instruction that involves the reference of the ROM. Is provided to store the instruction counter and the program counter value, and the CPU is executing the instruction with reference to the ROM based on the output of the address determiner and the instruction determiner, and the address in the ROM A first register that updates and holds the program counter value that is already held when it is output to the program counter value of the instruction that is being executed, and a second register that holds the program counter value before updating in the first register A register, a comparator for comparing the program counter values held by the first and second registers, and the number of continuous reference times is counted based on the comparison result of the comparator. Or a counter for resetting and outputting a detection signal to the means for erasing the contents of the ROM when the count value exceeds a predetermined value. In the microcomputer according to the third aspect of the present invention, a continuous reference detection circuit for detecting continuous reference of ROM only by an instruction of the same program counter value, a sense amplifier circuit for detecting data output of ROM, and the continuous reference. And a means for stopping the operation of the sense amplifier circuit when the detection circuit detects the continuous reference.

【0012】[0012]

【作用】本発明にあっては、ROM 及び他のメモリをプロ
グラムメモリとして使用するメモリ拡張モード時に連続
参照検出回路が同一プログラムカウンタ値の命令のみに
よる連続参照を検出すると消去手段が起動されてROM の
内容を消去し、その読み出しを阻止する。また本発明に
あっては、アドレス判定部,命令判定部がROM のアドレ
スか否か、ROM の参照を伴う命令か否かを判定し、ROM
のアドレスであり、しかもROM の参照を伴う命令である
場合にはROM の参照を伴う命令を実行する都度、第1の
レジスタに保持しているプログラムカウンタ値を更新
し、これを第2のレジスタに保持されている先のプログ
ラムカウンタ値と比較器にて比較し、比較器の比較結果
に基づきカウンタが参照回数のカウントを行い、連続参
照検出を行うこととなる。更に第3の発明にあっては、
連続参照検出回路が連続参照を検出すると、センスアン
プ回路の動作が停止されてそれ以上の連続参照が不能と
なる。
According to the present invention, in the memory expansion mode in which the ROM and other memories are used as the program memory, when the continuous reference detection circuit detects the continuous reference only by the instruction of the same program counter value, the erasing means is activated and the ROM is activated. Erase the contents of and prevent its reading. Further, according to the present invention, the address determination unit and the instruction determination unit determine whether or not the address of the ROM and whether or not the instruction involves the reference of the ROM,
When the instruction that is the address of the ROM and that also refers to the ROM is executed, the program counter value held in the first register is updated every time the instruction that refers to the ROM is executed, and this is updated to the second register. The comparator compares the previous program counter value held in the counter with the comparator, and the counter counts the reference count based on the comparison result of the comparator, and the continuous reference detection is performed. Furthermore, in the third invention,
When the continuous reference detection circuit detects the continuous reference, the operation of the sense amplifier circuit is stopped and further continuous reference is disabled.

【0013】[0013]

【実施例】以下本発明をその実施例を示す図面に基づき
具体的に説明する。 (実施例1)図1は本発明に係るマイクロコンピュータ
のブロック図であり、図中1はマイクロコンピュータ、
2はCPU 、3は電気的一括消去型のフラッシュEEPROM、
12は内蔵ROM 連続参照検出回路を示している。これらCP
U2,フラッシュEEPROM3 及び内蔵ROM 連続参照検出回路
12は相互に直接的に接続されると共に、内部アドレスバ
ス5,内部データバス4を通じて相互に接続されてい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically described below with reference to the drawings showing the embodiments. (Embodiment 1) FIG. 1 is a block diagram of a microcomputer according to the present invention, in which 1 is a microcomputer,
2 is a CPU, 3 is a flash EEPROM of electrical batch erase type,
Reference numeral 12 shows a built-in ROM continuous reference detection circuit. These CP
U2, Flash EEPROM3 and built-in ROM continuous reference detection circuit
12 are directly connected to each other, and are also connected to each other through an internal address bus 5 and an internal data bus 4.

【0014】CPU2はプログラムカウンタ10、命令レジス
タ11を備えており、プログラムカウンタ10からはプログ
ラムカウンタ値が、また命令レジスタ11からは命令コー
ドが夫々内蔵ROM 連続参照検出回路12へ出力されるよう
になっている。内蔵ROM 連続参照検出回路12は入力され
たプログラムカウンタ値及び命令コードと、アドレスバ
ス5を通じて入力された指定アドレスとに基づいて、所
定の条件が成立したとき検出信号をフラッシュEEPROM3
の消去回路13へ出力するようになっている。フラッシュ
EEPROM3 の消去回路13に検出信号が入力されると、消去
回路13が起動し、フラッシュEEPROM3 の格納内容を消去
し、それ以上の格納内容の読み出しを阻止するようにな
っている。
The CPU 2 has a program counter 10 and an instruction register 11. The program counter 10 outputs the program counter value, and the instruction register 11 outputs the instruction code to the internal ROM continuous reference detection circuit 12. Has become. The built-in ROM continuous reference detection circuit 12 outputs a detection signal to the flash EEPROM 3 when a predetermined condition is satisfied, based on the input program counter value and instruction code, and the specified address input through the address bus 5.
Is output to the erasing circuit 13. flash
When a detection signal is input to the erasing circuit 13 of the EEPROM 3, the erasing circuit 13 is activated to erase the stored contents of the flash EEPROM 3 and prevent further reading of the stored contents.

【0015】図2は内蔵ROM 連続参照検出回路12の具体
的構成を示すブロック図であり、図中21は内部アドレス
バス5からのアドレスが入力されるアドレス判定部、22
は命令レジスタ11から命令コードが入力される命令コー
ド判定部を示している。アドレス判定部21は内部アドレ
スバス5を通じて取り込んだアドレスが内蔵フラッシュ
EEPROM3 内のアドレスか否かを判定し、また命令コード
判定部22はCPU2が実行中の命令コードを命令レジスタ11
から取り込み、その命令コードがフラッシュEEPROM3 内
の格納データの参照を伴う命令であるか否かを判定し、
夫々に対応した信号をアンドゲート23へ出力するように
なっている。
FIG. 2 is a block diagram showing a specific structure of the internal ROM continuous reference detecting circuit 12, in which 21 is an address judging section to which an address from the internal address bus 5 is inputted, 22.
Indicates an instruction code judging section to which an instruction code is inputted from the instruction register 11. The address determination unit 21 uses the built-in flash for the address fetched through the internal address bus 5.
The instruction code determination unit 22 determines whether the address is in the EEPROM3, and the instruction code determination unit 22 determines the instruction code being executed by the CPU2 in the instruction register 11
, And determine whether the instruction code is an instruction that involves referencing the stored data in flash EEPROM3,
A signal corresponding to each is output to the AND gate 23.

【0016】アドレス判定部21はアドレスがフラッシュ
EEPROM3 内のアドレスか否かを判定した結果、フラッシ
ュEEPROM3 内のアドレスである場合には、例えば信号
「1」を、またそれ以外の場合は信号「0」を出力し、
一方命令コード判定部22は命令コードがフラッシュEEPR
OM3 の格納データの参照を伴う命令か否かを判定した結
果、例えば参照を伴う命令である場合は信号「1」を、
またそれ以外の場合は信号「0」を出力するようになっ
ている。これによって、アドレスが内蔵フラッシュEEPR
OM3 内のアドレスであり、また命令コードがフラッシュ
EEPROM3 の格納データの参照を伴う命令である場合に
は、アンドゲート23から比較器24及び第1のスイッチ26
へ信号が出力される。
The address determination unit 21 has an address flash
As a result of determining whether the address is in the EEPROM3, if the address is in the flash EEPROM3, for example, a signal "1" is output, and otherwise, a signal "0" is output,
On the other hand, the instruction code determination unit 22 has an instruction code of flash EEPROM.
As a result of determining whether the instruction involves referring to the data stored in OM3, for example, if the instruction involves referencing, signal "1"
In other cases, the signal "0" is output. This ensures that the address
Address in OM3, and instruction code flash
If the instruction involves referring to the data stored in the EEPROM 3, the AND gate 23 to the comparator 24 and the first switch 26
Signal is output to.

【0017】比較器24はアンドゲート23からの信号(比
較開始信号) が入力されると第1のレジスタ27、第2の
レジスタ29から夫々に保持されているプログラムカウン
タ値が入力され、比較を開始するようになっている。比
較器24は第1のレジスタ27から入力されたCPU2が実行中
の命令のプログラムカウンタ値と第2のレジスタ29から
入力されたCPU2が前回に実行したプログラムカウンタ値
とを比較し、比較が終了すると第2のスイッチ28へ信号
(比較終了信号)を出力すると共に、比較の結果が一致
するときはカウンタ25に対してカウントアップ信号を、
また不一致の場合にはカウンタ25に対してリセット信号
を夫々出力するようになっている。
When the signal (comparison start signal) from the AND gate 23 is input to the comparator 24, the program counter values held therein are input from the first register 27 and the second register 29, respectively, and the comparison is performed. It is supposed to start. The comparator 24 compares the program counter value of the instruction being executed by the CPU 2 input from the first register 27 with the program counter value previously executed by the CPU 2 input from the second register 29, and the comparison is completed. Then, a signal (comparison end signal) is output to the second switch 28, and when the results of comparison match, a count-up signal to the counter 25,
When they do not match, a reset signal is output to the counter 25, respectively.

【0018】第1のスイッチ26はアンドゲート23からの
信号が入力される都度オンし、CPU2が現に実行中の命令
のプログラムカウンタ値を第1のレジスタ27へ入力さ
せ、既に保持しているプログラムカウント値と置換し、
また第2のスイッチ28は比較器24から比較終了信号が入
力される都度オンし、第1のレジスタ27に保持されてい
るプログラムカウンタ値を第2のレジスタ29へ入力させ
るようになっている。これによって第1のレジスタ27に
は第1のスイッチ26を通じて入力されたCPU2が現に実行
中の命令のプログラムカウンタ値が保持され、また第2
のレジスタ29にはCPU2が前回に実行した命令のプログラ
ムカウンタ値が保持されるようになっている。
The first switch 26 is turned on each time a signal from the AND gate 23 is input, and the CPU 2 causes the program counter value of the instruction currently being executed by the CPU 2 to be input to the first register 27, and the program already held therein. Replace with the count value,
The second switch 28 is turned on each time a comparison end signal is input from the comparator 24, and the program counter value held in the first register 27 is input to the second register 29. As a result, the first register 27 holds the program counter value of the instruction currently being executed by the CPU 2 input through the first switch 26, and the second register
The register 29 holds the program counter value of the instruction previously executed by the CPU 2.

【0019】次に本発明に係るマイクロコンピュータの
動作について説明する。内蔵ROM 連続参照検出回路12
は、内部アドレスバス5を通じてアドレスを、また命令
レジスタ11から命令コードを、更にプログラムカウンタ
10からプログラムカウンタ値を夫々取り込む。アドレス
はアドレス判定部21において内蔵フラッシュEEPROM3 内
のアドレスか否かを、また命令コードは命令コード判定
部22において内蔵フラッシュEEPROM3 内のデータに参照
を伴う命令か否かを判定する。アドレスが内蔵フラッシ
ュEEPROM3 内のアドレスであり、また命令コードが内蔵
フラッシュEEPROM3 内のデータ参照を伴う命令である場
合には、アンドゲート23から所定の信号が比較器24, 第
1のスイッチ26へ出力される。
Next, the operation of the microcomputer according to the present invention will be described. Built-in ROM continuous reference detection circuit 12
Is an address through the internal address bus 5, an instruction code from the instruction register 11, and a program counter.
The program counter value is fetched from 10 respectively. The address determination unit 21 determines whether or not the address is an address in the built-in flash EEPROM 3, and the instruction code determination unit 22 determines whether or not the instruction is an instruction accompanied by reference to the data in the built-in flash EEPROM 3. When the address is an address in the built-in flash EEPROM3 and the instruction code is an instruction accompanied by data reference in the built-in flash EEPROM3, a predetermined signal is output from the AND gate 23 to the comparator 24 and the first switch 26. To be done.

【0020】第1のスイッチ26がオンし、CPU2が実行中
の命令のプログラムカウント値が第1レジスタ23へ記憶
される。比較器24は第1のレジスタ27、第2のレジスタ
29から夫々今回のプログラムカウント値、前回のプログ
ラムカウント値を取り込み、これを比較して一致すれば
カウンタ25へカウントアップ信号を、また不一致の場合
はリセット信号を出力する。そして比較が終了すると比
較器24から第2のスイッチ28へ比較終了信号が出力され
る。比較終了信号は比較器24における比較が終了した時
点で「1」、またそれ以外では「0」を出力するように
なっている。第2のスイッチ28は信号「1」のときオン
し、「0」のときオフとなり、比較が終了した時点で第
2のスイッチ28はオンし、第1のレジスタ27に記憶され
ている値が第2のレジスタ29へ記憶されることとなる。
The first switch 26 is turned on, and the program count value of the instruction being executed by the CPU 2 is stored in the first register 23. Comparator 24 is the first register 27, the second register
The current program count value and the previous program count value are fetched from 29, respectively, and compared with each other. If they match, a count-up signal is output to the counter 25, and if they do not match, a reset signal is output. When the comparison is completed, the comparator 24 outputs the comparison end signal to the second switch 28. The comparison end signal outputs "1" when the comparison by the comparator 24 is completed, and outputs "0" otherwise. The second switch 28 is turned on when the signal is "1" and turned off when the signal is "0", and when the comparison is completed, the second switch 28 is turned on and the value stored in the first register 27 is It will be stored in the second register 29.

【0021】カウンタ25はカウントアップ信号によって
カウント値をインクリメントし、また、リセット信号に
よってリセットされる。そしてカウント値が所定値を越
えると、換言すれば桁あふれすると検出信号を内蔵フラ
ッシュEEPROM3 の消去回路13へ出力し、消去回路13を起
動して内蔵フラッシュEEPROM3 の全内容を消去する。例
えばカウンタ25が8ビットカウンタである場合は、CPU2
が同一プログラムカウンタ値の命令について内蔵フラッ
シュEEPROM3 を256 回連続参照すると内蔵フラッシュEE
PROM3 の全内容が消去されることとなる。
The counter 25 increments the count value by the count-up signal and is reset by the reset signal. When the count value exceeds a predetermined value, in other words, when a digit overflows, a detection signal is output to the erasing circuit 13 of the built-in flash EEPROM 3, and the erasing circuit 13 is activated to erase the entire contents of the built-in flash EEPROM 3. For example, if the counter 25 is an 8-bit counter, CPU2
For the instruction with the same program counter value, if the built-in flash EEPROM3 is referred to 256 times continuously, the built-in flash EE
All contents of PROM3 will be erased.

【0022】(実施例2)図3は本発明の他の実施例を
示すブロック図であり、この実施例2では内蔵ROM 連続
参照検出回路12からの検出信号は、内蔵フラッシュEEPR
OM3 に格納されているデータ出力を検出し内部データバ
ス4へ出力するセンスアンプ回路33へ入力されるように
なっている。他の構成は図1,図2に示す場合と実質的
に同じであり、対応する部分には同じ番号が付してあ
る。
(Embodiment 2) FIG. 3 is a block diagram showing another embodiment of the present invention. In Embodiment 2, the detection signal from the internal ROM continuous reference detection circuit 12 is the internal flash EEPR.
The data output stored in OM3 is detected and input to the sense amplifier circuit 33 which outputs it to the internal data bus 4. Other configurations are substantially the same as those shown in FIGS. 1 and 2, and corresponding parts are designated by the same reference numerals.

【0023】このように実施例2にあっては、前述の如
く同一プログラムカウンタ値の命令で内蔵フラッシュEE
PROM3 を所定回数連続的に参照したことを内蔵ROM 連続
参照検出回路12が検出した場合、センスアンプ回路33の
動作が停止し、以後内蔵フラッシュEEPROM3 からの正し
いデータの読み出しが出来ない状態となる。上記実施例
2は内蔵フラッシュEEPROM3 について説明したがこれ以
外のマスクROM,EPROM 等全てのROM に適用し得ることは
いうまでもない。
As described above, in the second embodiment, the built-in flash EE is issued by the instruction of the same program counter value as described above.
When the built-in ROM continuous reference detection circuit 12 detects that the PROM3 has been continuously referred to a predetermined number of times, the operation of the sense amplifier circuit 33 is stopped, and thereafter, the correct data cannot be read from the built-in flash EEPROM3. In the second embodiment, the built-in flash EEPROM3 has been described, but it goes without saying that it can be applied to all the ROMs such as the mask ROM and EPROM.

【0024】[0024]

【発明の効果】以上の如く本発明に依れば、メモリ拡張
モードの設定が可能な構成であっても、内蔵ROM に格納
されている全プログラム,データの読み出しを阻止出
来、プログラム,データの守秘性が向上する等本発明は
優れた効果を奏するものである。
As described above, according to the present invention, even if the memory expansion mode can be set, the reading of all programs and data stored in the built-in ROM can be prevented, and the program and data can be saved. The present invention has excellent effects such as improved confidentiality.

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

【図1】本発明に係るマイクロコンピュータを示すブロ
ック図である。
FIG. 1 is a block diagram showing a microcomputer according to the present invention.

【図2】本発明に用いる内蔵ROM 連続参照検出回路のブ
ロック図である。
FIG. 2 is a block diagram of a built-in ROM continuous reference detection circuit used in the present invention.

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

【図4】従来のROM 内蔵マイクロコンピュータを示すブ
ロック図である。
FIG. 4 is a block diagram showing a conventional microcomputer with a built-in ROM.

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

2 CPU 3 内蔵フラッシュEEPROM 4 内部データバス 5 内部アドレスバス 10 プログラムカウンタ 11 命令レジスタ 12 内蔵ROM 連続参照検出回路 13 消去回路 21 アドレス判定部 22 命令コード判定部 23 アンドゲート 24 比較器 25 カウンタ 26 第1のスイッチ 27 第1のレジスタ 28 第2のスイッチ 29 第2のレジスタ 33 センスアンプ回路 2 CPU 3 Built-in flash EEPROM 4 Internal data bus 5 Internal address bus 10 Program counter 11 Instruction register 12 Built-in ROM continuous reference detection circuit 13 Erase circuit 21 Address judgment section 22 Instruction code judgment section 23 AND GATE 24 comparator 25 counter 26 First switch 27 First register 28 Second switch 29 Second register 33 Sense amplifier circuit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年2月7日[Submission date] February 7, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】請求項2[Name of item to be corrected] Claim 2

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0011[Correction target item name] 0011

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0011】[0011]

【課題を解決するための手段】本発明に係るマイクロコ
ンピュータにあっては、電気的に書換え可能なROM と、
CPU により設定されたメモリ拡張モード時にプログラム
メモリとして使用される他のメモリとを備えるマイクロ
コンピュータにおいて、同一プログラムカウンタ値の命
令のみによる前記ROM の連続参照を検出する連続参照検
出回路と、該連続参照検出回路からの検出信号に基づい
て起動され、前記ROM の内容を消去する手段とを具備す
る。第2の本発明に係るマイクロコンピュータにあって
は、CPU からのアドレスがROM 内のアドレスか否かを判
定するアドレス判定部と、CPU からの命令がメモリの
照を伴う命令か否かを判定する命令判定部と、プログラ
ムカウンタ値を記憶すべく設けられ、アドレス判定部と
命令判定部との出力に基づきCPU がメモリの参照を伴う
命令の実行中であって、しかも前記ROM 内のアドレスを
出力したとき既に保持しているプログラムカウンタ値を
実行中の命令のプログラムカウンタ値に更新して保持す
る第1のレジスタと、前記第1のレジスタにおける更新
前のプログラムカウンタ値を保持する第2のレジスタ
と、前記第1,第2レジスタが保持しているプログラム
カウンタ値を比較する比較器と、該比較器の比較結果に
基づき、連続参照回数をカウントし、またはリセットを
行い、カウント値が所定値を越えると検出信号をROM の
内容を消去する手段へ出力するカウンタとを具備する。
第3の本発明に係るマイクロコンピュータにあっては、
同一プログラムカウンタ値の命令のみによるROM の連続
参照を検出する連続参照検出回路と、ROM のデータ出力
を検出するセンスアンプ回路と、前記連続参照検出回路
が連続参照であることを検出したとき、前記センスアン
プ回路の動作を停止する手段とを具備する。
In a microcomputer according to the present invention, an electrically rewritable ROM,
In a microcomputer provided with another memory used as a program memory in the memory expansion mode set by the CPU, a continuous reference detection circuit for detecting continuous reference of the ROM only by an instruction of the same program counter value, and the continuous reference It is activated based on a detection signal from a detection circuit and erases the contents of the ROM. In the microcomputer according to the second aspect of the present invention, an address determination unit that determines whether the address from the CPU is an address in the ROM, and the instruction from the CPU involves the reference of the memory. An instruction determination unit for determining whether or not a program counter value is stored, and the CPU is executing an instruction involving memory reference based on the output of the address determination unit and the instruction determination unit. A first register that updates and holds the program counter value that is already held when the address in the ROM is output to the program counter value of the instruction that is being executed, and a program counter value before updating in the first register Based on the comparison result of the comparator, which compares the second register held by the second register and the program counter value held by the first and second registers, the continuous reference count is counted. A counter for outputting a detection signal to the means for erasing the contents of the ROM when the count value exceeds a predetermined value.
In the microcomputer according to the third aspect of the present invention,
If the continuous reference detection circuit that detects the continuous reference of the ROM only by the instruction of the same program counter value, the sense amplifier circuit that detects the data output of the ROM, and the continuous reference detection circuit detects the continuous reference, Means for stopping the operation of the sense amplifier circuit.

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0012[Correction target item name] 0012

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0012】[0012]

【作用】本発明にあっては、ROM 及び他のメモリをプロ
グラムメモリとして使用するメモリ拡張モード時に連続
参照検出回路が同一プログラムカウンタ値の命令のみに
よるROM の連続参照を検出すると消去手段が起動されて
ROM の内容を消去し、その読み出しを阻止する。また本
発明にあっては、アドレス判定部,命令判定部がROM の
アドレスか否か、メモリの参照を伴う命令か否かを判定
し、ROM のアドレスであり、しかもメモリの参照を伴う
命令である場合にはROM の参照を伴う命令を実行する都
度、第1のレジスタに保持しているプログラムカウンタ
値を更新し、これを第2のレジスタに保持されている先
のプログラムカウンタ値と比較器にて比較し、比較器の
比較結果に基づきカウンタが参照回数のカウントを行
い、連続参照検出を行うこととなる。更に第3の発明に
あっては、連続参照検出回路が連続参照を検出すると、
センスアンプ回路の動作が停止されてそれ以上の連続参
照が不能となる。
According to the present invention, the erasing means is activated when the continuous reference detection circuit detects the continuous reference of the ROM only by the instruction of the same program counter value in the memory expansion mode in which the ROM and other memories are used as the program memory. hand
Erases the contents of ROM and blocks its reading. In the present invention also address determination unit, whether the address of the instruction judgment unit ROM, determines whether the instruction or not with reference to the memory, the address of the ROM, moreover instruction involving memory references In some cases, the program counter value held in the first register is updated each time an instruction involving ROM reference is executed, and this value is compared with the previous program counter value held in the second register. Then, the counter counts the reference number based on the comparison result of the comparator, and the continuous reference detection is performed. Further, in the third invention, when the continuous reference detection circuit detects a continuous reference,
The operation of the sense amplifier circuit is stopped and further continuous reference becomes impossible.

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0015[Name of item to be corrected] 0015

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0015】図2は内蔵ROM 連続参照検出回路12の具体
的構成を示すブロック図であり、図中21は内部アドレス
バス5からのアドレスが入力されるアドレス判定部、22
は命令レジスタ11から命令コードが入力される命令コー
ド判定部を示している。アドレス判定部21は内部アドレ
スバス5を通じて取り込んだアドレスが内蔵フラッシュ
EEPROM3 内のアドレスか否かを判定し、また命令コード
判定部22はCPU2が実行中の命令コードを命令レジスタ11
から取り込み、その命令コードがメモリ参照を伴う命令
であるか否かを判定し、夫々に対応した信号をアンドゲ
ート23へ出力するようになっている。
FIG. 2 is a block diagram showing a specific structure of the internal ROM continuous reference detecting circuit 12, in which 21 is an address judging section to which an address from the internal address bus 5 is inputted, 22.
Indicates an instruction code judging section to which an instruction code is inputted from the instruction register 11. The address determination unit 21 uses the built-in flash for the address fetched through the internal address bus 5.
The instruction code determination unit 22 determines whether the address is in the EEPROM3, and the instruction code determination unit 22 determines the instruction code being executed by the CPU2 in the instruction register 11
Are read from the AND gate 23, and it is determined whether or not the instruction code is an instruction accompanied by a memory reference , and a signal corresponding to each is output to the AND gate 23.

【手続補正5】[Procedure Amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0016[Correction target item name] 0016

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0016】アドレス判定部21はアドレスがフラッシュ
EEPROM3 内のアドレスか否かを判定した結果、フラッシ
ュEEPROM3 内のアドレスである場合には、例えば信号
「1」を、またそれ以外の場合は信号「0」を出力し、
一方命令コード判定部22は命令コードがメモリ参照を伴
う命令か否かを判定した結果、例えば参照を伴う命令で
ある場合は信号「1」を、またそれ以外の場合は信号
「0」を出力するようになっている。これによって、ア
ドレスが内蔵フラッシュEEPROM3 内のアドレスであり、
また命令コードがメモリ参照を伴う命令である場合に
は、アンドゲート23から比較器24及び第1のスイッチ26
へ信号が出力される。
The address determination unit 21 has an address flash
As a result of determining whether the address is in the EEPROM3, if the address is in the flash EEPROM3, for example, a signal "1" is output, and otherwise, a signal "0" is output,
On the other hand, the instruction code determination unit 22 outputs a signal "1" if the instruction code is an instruction accompanied by a memory reference and outputs a signal "1" if the instruction is an instruction accompanied by a reference, and outputs a signal "0" otherwise. It is supposed to do. This ensures that the address is in the internal flash EEPROM3,
If the instruction code is an instruction accompanied by a memory reference , the AND gate 23 to the comparator 24 and the first switch 26
Signal is output to.

【手続補正6】[Procedure correction 6]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0019[Correction target item name] 0019

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0019】次に本発明に係るマイクロコンピュータの
動作について説明する。内蔵ROM 連続参照検出回路12
は、内部アドレスバス5を通じてアドレスを、また命令
レジスタ11から命令コードを、更にプログラムカウンタ
10からプログラムカウンタ値を夫々取り込む。アドレス
はアドレス判定部21において内蔵フラッシュEEPROM3 内
のアドレスか否かを、また命令コードは命令コード判定
部22においてメモリ参照を伴う命令か否かを判定する。
アドレスが内蔵フラッシュEEPROM3内のアドレスであ
り、また命令コードがメモリ参照を伴う命令である場合
には、アンドゲート23から所定の信号が比較器24, 第1
のスイッチ26へ出力される。
Next, the operation of the microcomputer according to the present invention will be described. Built-in ROM continuous reference detection circuit 12
Is an address through the internal address bus 5, an instruction code from the instruction register 11, and a program counter.
The program counter value is fetched from 10 respectively. The address determination unit 21 determines whether or not the address is an address in the built-in flash EEPROM 3, and the instruction code determination unit 22 determines whether or not the instruction code is an instruction involving memory reference .
When the address is the address in the built-in flash EEPROM 3 and the instruction code is an instruction accompanied by a memory reference , a predetermined signal from the AND gate 23 gives a predetermined signal to the comparator 24, the first
Output to the switch 26 of.

【手続補正7】[Procedure Amendment 7]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0020[Correction target item name] 0020

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0020】第1のスイッチ26がオンし、CPU2が実行中
の命令のプログラムカウンタ値が第1レジスタ23へ記憶
される。比較器24は第1のレジスタ27、第2のレジスタ
29から夫々今回のプログラムカウンタ値、前回のプログ
ラムカウンタ値を取り込み、これを比較して一致すれば
カウンタ25へカウントアップ信号を、また不一致の場合
はリセット信号を出力する。そして比較が終了すると比
較器24から第2のスイッチ28へ比較終了信号が出力され
る。比較終了信号は比較器24における比較が終了した時
点で「1」、またそれ以外では「0」を出力するように
なっている。第2のスイッチ28は信号「1」のときオン
し、「0」のときオフとなり、比較が終了した時点で第
2のスイッチ28はオンし、第1のレジスタ27に記憶され
ている値が第2のレジスタ29へ記憶されることとなる。
The first switch 26 is turned on, and the program counter value of the instruction being executed by the CPU 2 is stored in the first register 23. Comparator 24 is the first register 27, the second register
Each current program counter value from the 29, the last of the programming
The ram counter value is fetched and compared, and if they match, a count-up signal is output to the counter 25, and if they do not match, a reset signal is output. When the comparison is completed, the comparator 24 outputs the comparison end signal to the second switch 28. The comparison end signal outputs "1" when the comparison by the comparator 24 is completed, and outputs "0" otherwise. The second switch 28 is turned on when the signal is "1" and turned off when the signal is "0", and when the comparison is completed, the second switch 28 is turned on and the value stored in the first register 27 is It will be stored in the second register 29.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G11C 16/06 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI technical display location G11C 16/06

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 電気的に書換え可能なROM と、CPU によ
り設定されたメモリ拡張モード時にプログラムメモリと
して使用される他のメモリとを備えるマイクロコンピュ
ータにおいて、 同一プログラムカウンタ値の命令のみによる前記ROM の
連続参照を検出する連続参照検出回路と、該連続参照検
出回路からの検出信号に基づいて起動され、前記ROM の
内容を消去する手段とを具備することを特徴とするマイ
クロコンピュータ。
1. A microcomputer comprising an electrically rewritable ROM and another memory used as a program memory in a memory expansion mode set by a CPU, wherein the ROM is provided only by an instruction of the same program counter value. A microcomputer comprising: a continuous reference detection circuit for detecting a continuous reference; and a means which is activated on the basis of a detection signal from the continuous reference detection circuit and erases the contents of the ROM.
【請求項2】 CPU からのアドレスがROM 内のアドレス
か否かを判定するアドレス判定部と、CPU からの命令が
ROM の参照を伴う命令か否かを判定する命令判定部と、
プログラムカウンタ値を記憶すべく設けられ、アドレス
判定部と命令判定部との出力に基づき、CPU がROM の参
照を伴う命令の実行中であって、しかも前記ROM内のア
ドレスを出力したとき、既に保持しているプログラムカ
ウンタ値を実行中の命令のプログラムカウンタ値に更新
する第1のレジスタと、前記第1のレジスタにおける更
新前のプログラムカウンタ値を保持する第2のレジスタ
と、 前記第1,第2レジスタが保持しているプログラムカウ
ンタ値を比較する比較器と、 該比較器の比較結果に基づき連続参照回数をカウント
し、またはリセットを行いカウント値が所定値を越える
と検出信号をROM の内容を消去する手段へ出力するカウ
ンタとを具備することを特徴とする請求項1記載のマイ
クロコンピュータ。
2. An address determination unit for determining whether or not an address from the CPU is an address in the ROM, and an instruction from the CPU
An instruction determination unit that determines whether or not the instruction involves referring to ROM,
It is provided to store the program counter value, and when the CPU is executing an instruction with reference to ROM based on the output of the address determination unit and the instruction determination unit, and when the address in the ROM is output, A first register for updating the held program counter value to the program counter value of the instruction being executed; a second register for holding the unupdated program counter value in the first register; A comparator that compares the program counter value held in the second register with the comparator, that counts the number of consecutive references based on the comparison result of the comparator, or resets and outputs a detection signal to the ROM when the count value exceeds a predetermined value. 2. The microcomputer according to claim 1, further comprising a counter for outputting the contents to a means for erasing the contents.
【請求項3】 R0M と、他のメモリと、これらR0M 及び
他のメモリを共にプログラムメモリとして使用する拡張
モードの設定が可能なCPUとを備えるマイクロコンピュ
ータにおいて、 同一プログラムカウンタ値の命令のみによるROM の連続
参照を検出する連続参照検出回路と、ROM のデータ出力
を検出するセンスアンプ回路と、前記連続参照検出回路
が連続参照であることを検出したとき、前記センスアン
プ回路の動作を停止する手段とを具備することを特徴と
するマイクロコンピュータ。
3. A microcomputer provided with R0M, another memory, and a CPU capable of setting an extended mode in which both R0M and the other memory are used as a program memory, ROM having only the same program counter value instruction. Continuous reference detection circuit for detecting the continuous reference of, a sense amplifier circuit for detecting the data output of the ROM, and means for stopping the operation of the sense amplifier circuit when the continuous reference detection circuit detects the continuous reference. A microcomputer comprising:
JP3178613A 1991-07-19 1991-07-19 Microcomputer Pending JPH0528049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3178613A JPH0528049A (en) 1991-07-19 1991-07-19 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3178613A JPH0528049A (en) 1991-07-19 1991-07-19 Microcomputer

Publications (1)

Publication Number Publication Date
JPH0528049A true JPH0528049A (en) 1993-02-05

Family

ID=16051511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3178613A Pending JPH0528049A (en) 1991-07-19 1991-07-19 Microcomputer

Country Status (1)

Country Link
JP (1) JPH0528049A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114742A (en) * 1995-10-16 1997-05-02 Nec Corp Semiconductor integrated circuit
US6743033B2 (en) 2001-11-20 2004-06-01 Fujitsu Limited Contactor for semiconductor device and contact method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09114742A (en) * 1995-10-16 1997-05-02 Nec Corp Semiconductor integrated circuit
US6743033B2 (en) 2001-11-20 2004-06-01 Fujitsu Limited Contactor for semiconductor device and contact method

Similar Documents

Publication Publication Date Title
US6101586A (en) Memory access control circuit
US7992009B2 (en) Device and method capable of verifying program operation of non-volatile memory and method card including the same
US6715106B1 (en) Bios corruption detection system and method
JPH08202626A (en) Memory controller
US6237120B1 (en) Program patching of a ROM
JP2001014871A (en) Non-volatile semiconductor storage
JP2003015929A (en) Control method for nonvolatile memory
JPH1050078A (en) Erasing method and program protecting method and device for electrically erasable and programmable read only memory
US7096351B2 (en) Single-chip microcomputer and boot region switching method thereof
JP2727527B2 (en) Method and circuit for protecting nonvolatile memory area
KR970066888A (en) Microcomputers Using Nonvolatile Memory
US5799144A (en) Microcomputer for resolving problems found in a program stored in a ROM
KR100310486B1 (en) Microcumputer
JPH0528049A (en) Microcomputer
GB2402767A (en) Non-volatile memory using error checking and correction techniques
JP2003015958A (en) Write-protect method
JP2002073418A (en) Micro processor
JP3335620B2 (en) Microcomputer device
JPH11175399A (en) Method and device for discriminating register read from memory read of flash memory
JPH05134928A (en) Memory device
US20080077730A1 (en) Access control method for a memory, memory controller for controlling access to the memory, and data processing apparatus
KR19990078265A (en) Microcomputer
JP4848126B2 (en) Microcomputer, data protection method for nonvolatile memory in microcomputer
JPH11184833A (en) Discrimination method for write termination of microcomputer
KR20020029921A (en) Method and apparatus for modifying microinstructions in a static memory device