JPH1063579A - One-chip microcomputer - Google Patents

One-chip microcomputer

Info

Publication number
JPH1063579A
JPH1063579A JP8223540A JP22354096A JPH1063579A JP H1063579 A JPH1063579 A JP H1063579A JP 8223540 A JP8223540 A JP 8223540A JP 22354096 A JP22354096 A JP 22354096A JP H1063579 A JPH1063579 A JP H1063579A
Authority
JP
Japan
Prior art keywords
rom
read
permission
storing
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.)
Withdrawn
Application number
JP8223540A
Other languages
Japanese (ja)
Inventor
Kazunori Kumakura
和則 熊倉
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP8223540A priority Critical patent/JPH1063579A/en
Publication of JPH1063579A publication Critical patent/JPH1063579A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PROBLEM TO BE SOLVED: To inexpensively realize a protecting function for protecting the secrecy of ROM(read only memory) data in a one-chip microcomputer only by adding necessary minimum circuit. SOLUTION: The one-chip microcomputer with an interruption control circuit and ROM 12 is provided with a second flag register 212 storing a second permission flag controlling the permission/prohibition of the passage of the interruption request signal of ROM reading and a second gate circuit 222 controlling the permission/prohibition of the passage of the interruption request signal of ROM reading based on the second permission signal. Then, when a priority deciding and vector address generating circuit 23 judges the priority order of the interruption request signal of ROM read from the second gate circuit 222 to be higher than that of present processing and the vector table address of the interruption request of ROM reading is generated, CPU 10 controls the interruption processing of the starting of ROM reading to be executed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、1チップマイクロ
コンピュータ(1チップマイコン)に係り、特にROM
データの不正読み出しを防止するためのデータ保護回路
(セキュリティ回路)に関するもので、例えばマイクロ
コントローラに使用される。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a one-chip microcomputer (one-chip microcomputer), and more particularly to a ROM.
It relates to a data protection circuit (security circuit) for preventing unauthorized reading of data, and is used, for example, in a microcontroller.

【0002】[0002]

【従来の技術】1チップマイコンは、CPU(中央処理
装置)とシステムプログラムデータなどを格納するRO
M(読み出し専用メモリ)とが同一チップ上に形成され
ており、ROMデータの不正読み出し(デッドコピーな
ど)を防止してROMデータの機密を保護するためのR
OMデータ保護回路が内蔵されることが多い。
2. Description of the Related Art A one-chip microcomputer includes a CPU (Central Processing Unit) and an RO for storing system program data and the like.
M (read-only memory) are formed on the same chip, and R for preventing unauthorized reading (dead copy, etc.) of ROM data and protecting the confidentiality of ROM data.
An OM data protection circuit is often built in.

【0003】図4は、従来の1チップマイコンにおける
一般的な構成を示す。10はマイコンシステムの全体的
な制御を行うCPU、11はバスライン、12はシステ
ムプログラムデータなどを格納するROM、13はデー
タ記憶用のデータメモリ(RAMなどの揮発性メモリや
EEPROMなどの不揮発性メモリ)、15は入出力制
御回路、16は入出力ポート、17はROMデータ保護
回路である。
FIG. 4 shows a general configuration of a conventional one-chip microcomputer. Reference numeral 10 denotes a CPU for overall control of the microcomputer system, 11 denotes a bus line, 12 denotes a ROM for storing system program data and the like, and 13 denotes a data memory for storing data (a volatile memory such as a RAM and a nonvolatile memory such as an EEPROM). Memory), 15 is an input / output control circuit, 16 is an input / output port, and 17 is a ROM data protection circuit.

【0004】従来のROMデータ保護回路17は、命令
コードの変換、メモリアクセスの制限、ROM読み出し
データの変換、アドレスの変換、プログラムの変換など
のうちの少なくとも1つの機能を採用している。
The conventional ROM data protection circuit 17 employs at least one of the following functions: instruction code conversion, memory access restriction, ROM read data conversion, address conversion, program conversion, and the like.

【0005】前記ROMデータ保護のための命令コード
の変換技術に関しては、命令コードを暗号化しておき、
図5に示すように、内部データバス51からの暗号化命
令コードを命令レジスタ52に格納した後に復号レジス
タ53で通常の命令コードに戻し、これを命令デコード
回路54でデコードした出力によりROM12の読み出
しを制御する方法が知られている。
[0005] Regarding the technique of converting instruction codes for ROM data protection, the instruction codes are encrypted beforehand.
As shown in FIG. 5, after the encrypted instruction code from the internal data bus 51 is stored in the instruction register 52, it is returned to the normal instruction code in the decryption register 53, and is read out from the ROM 12 by the output decoded by the instruction decode circuit 54. Is known.

【0006】一方、前記ROMデータ保護のためのメモ
リアクセスの制限技術に関しては、予め入出力ポート1
6からデータメモリ13にデータを読み込み、さらに違
うデータを入出力ポート16から読み込み、これらの2
つのデータを演算させ、図6に示すように、予めコード
記憶回路61に記憶しているコードと前記演算結果とを
一致検出回路62で比較し、両者が一致した時のみRO
M12の読み出しを可能とする方法が知られている。
On the other hand, with respect to the technique of restricting memory access for ROM data protection, an input / output port 1
6 is read into the data memory 13, and further different data is read from the input / output port 16.
The two data are calculated and, as shown in FIG. 6, the code stored in the code storage circuit 61 and the calculation result are compared by the match detection circuit 62.
A method that enables reading of M12 is known.

【0007】しかし、上記したようにROMデータ保護
のための特別な回路(暗号化回路、復号化回路、コード
記憶回路、一致検出回路など)を必要とするので、1チ
ップマイコンのハードウェアの構成が複雑になるととも
にチップ面積の増大をまねき、チップコストが上昇す
る。
However, as described above, a special circuit (encryption circuit, decryption circuit, code storage circuit, coincidence detection circuit, etc.) for ROM data protection is required, so that the hardware configuration of the one-chip microcomputer is required. And the chip area is increased, which leads to an increase in chip cost.

【0008】一方、前記ROM読み出しデータの変換技
術に関しては、例えばROMの指定アドレスをスキャン
させた時にROMのある特定のアドレスが指定される
と、このアドレス以降の読み出しデータに対して、
(1)読み出しデータの出力を禁止する、(2)読み出
しデータをアドレス信号自身で修飾することにより誤デ
ータに変換して出力する、(3)読み出しデータを任意
の規則性を有する半固定の誤データに変換して出力す
る、(4)読み出しデータを反転することにより誤デー
タに変換して出力する、(5)読み出しデータとランダ
ムデータ発生回路の出力データとを演算回路で演算処理
することにより誤データに変換して出力する方法が知ら
れている。
On the other hand, with respect to the ROM read data conversion technique, for example, when a specified address of the ROM is specified when a specified address of the ROM is scanned, the read data after this address is read.
(1) prohibit the output of read data; (2) convert read data into erroneous data by modifying it with the address signal itself; and (3) semi-fixed erroneous read data having any regularity. (4) Converting the read data into erroneous data by inverting the read data and outputting it; (5) Performing arithmetic processing on the read data and the output data of the random data generating circuit by an arithmetic circuit A method of converting the data into erroneous data and outputting the converted data is known.

【0009】しかし、上記(1)の方式は、不正読み出
しを試みる者にとって、読み出しデータの出力禁止が開
始する特定アドレスの判定が容易である。また、前記
(2)乃至(4)の方式は、いずれも、特定のアドレス
が指定されることによりこのアドレス以降の読み出しデ
ータを誤まらせるものであるが、誤データの出力が開始
する特定アドレスの判定が比較的容易である。
However, the method (1) makes it easy for a person who attempts unauthorized reading to determine a specific address at which output inhibition of read data starts. In each of the methods (2) to (4), when a specific address is specified, the read data subsequent to this address is erroneously read. It is relatively easy to determine the address.

【0010】上記したように誤データの出力が開始する
特定アドレスの判定が比較的容易であると、この特定ア
ドレスが判定されることによって本来の読み出しデータ
の解析が行われるおそれがある。そこで、ROMの特定
のアドレスをアクセスした場合にROMの内容を破壊す
るように工夫したとしても、ROMの別のサンプルに対
して前記特定のアドレスのアクセスをジャンプすること
により、他のアドレスに対応する読み出しデータが取得
されてしまうおそれがある。しかも、ROMの正規のユ
ーザーが誤って特定のアドレスをアクセスする場合が有
り得ることを考慮すると、上記したようにROMの内容
を破壊することは好ましくない。
As described above, when it is relatively easy to determine the specific address at which the output of erroneous data starts, the original read data may be analyzed by determining the specific address. Therefore, even if a particular address of the ROM is accessed, the contents of the ROM may be destroyed, but by jumping the access of the specific address to another sample of the ROM, it is possible to deal with other addresses. May be obtained. Moreover, considering that a legitimate user of the ROM may access a specific address by mistake, it is not preferable to destroy the contents of the ROM as described above.

【0011】[0011]

【発明が解決しようとする課題】上記したように従来の
1チップマイコンのROMデータ保護回路は、暗号化回
路、復号化回路、コード記憶回路、一致検出回路などの
特別な回路を必要とするので、ハードウェアの構成が複
雑になるとともにチップ面積の増大をまねき、チップコ
ストが上昇するという問題があった。
As described above, the conventional one-chip microcomputer ROM data protection circuit requires special circuits such as an encryption circuit, a decryption circuit, a code storage circuit, and a coincidence detection circuit. However, there has been a problem that the configuration of the hardware becomes complicated and the chip area is increased, thereby increasing the chip cost.

【0012】本発明は上記の問題点を解決すべくなされ
たもので、ROMデータの機密を保護するためのデータ
保護回路を必要最小限の回路を追加することのみで回路
の素子数を増やすことなく、安価に実現し得る1チップ
・マイクロコンピュータを提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and it is an object of the present invention to increase the number of circuit elements by simply adding a minimum necessary circuit for a data protection circuit for protecting the confidentiality of ROM data. It is another object of the present invention to provide a one-chip microcomputer which can be realized at low cost.

【0013】[0013]

【課題を解決するための手段】本発明の1チップ・マイ
クロコンピュータは、システムプログラムを格納したR
OMと、ROM読み出し以外の複数の割り込み要求信号
の通過の可否をそれぞれ個別に制御する第2の許可フラ
グを格納する複数の第1のフラグ格納手段と、前記第1
のフラグ格納手段に格納されている第1の許可フラグに
基づいて前記ROM読み出し以外の割り込み要求信号の
通過の可否を制御する複数の第1のゲート回路と、RO
M読み出しの割り込み要求信号の通過の可否を制御する
第2の許可フラグを格納する第2のフラグ格納手段と、
前記第2のフラグ格納手段に格納されている第2の許可
フラグに基づいて前記ROM読み出しの割り込み要求信
号の通過の可否を制御する第2のゲート回路と、前記第
1のゲート回路および複数の第2のゲート回路からそれ
ぞれ出力する割り込み許可信号が入力し、この割り込み
許可信号の優先順位を決定し、優先順位の高い割り込み
要因のベクターテーブルアドレスを生成する優先順位決
定・ベクターアドレス生成回路と、前記優先順位決定・
ベクターアドレス生成回路から供給される前記ベクター
テーブルアドレスに応じて指定されるROM読み出し起
動処理あるいはその他の割り込み処理を制御する割り込
み制御手段とを具備することを特徴とする。
According to the present invention, there is provided a one-chip microcomputer having an R chip storing a system program.
OM; a plurality of first flag storage means for storing second permission flags for individually controlling whether or not a plurality of interrupt request signals other than ROM reading are allowed to pass;
A plurality of first gate circuits for controlling whether or not an interrupt request signal other than the ROM read is allowed to pass based on the first permission flag stored in the flag storage means;
Second flag storage means for storing a second permission flag for controlling whether or not an M-read interrupt request signal passes;
A second gate circuit for controlling whether or not the ROM read interrupt request signal is allowed to pass based on a second permission flag stored in the second flag storage means; A priority determining / vector address generating circuit for receiving an interrupt enable signal output from each of the second gate circuits, determining a priority of the interrupt enable signal, and generating a vector table address of a high-priority interrupt factor; Priority determination
An interrupt control means for controlling a ROM read start process or another interrupt process specified according to the vector table address supplied from the vector address generation circuit is provided.

【0014】また、本発明の1チップ・マイクロコンピ
ュータは、システムプログラムを格納したROMと、R
OM読み出し以外の複数の割り込み要求信号の通過の可
否をそれぞれ個別に制御する第2の許可フラグを格納す
る複数の第1のフラグ格納手段と、前記第1のフラグ格
納手段に格納されている第1の許可フラグに基づいて前
記ROM読み出し以外の割り込み要求信号の通過の可否
を制御する複数の第1のゲート回路と、前記複数の第2
のゲート回路からそれぞれ出力する割り込み許可信号が
入力し、この割り込み許可信号の優先順位を決定し、優
先順位の高い割り込み要因のベクターテーブルアドレス
を生成する優先順位決定・ベクターアドレス生成回路
と、前記優先順位決定・ベクターアドレス生成回路から
供給される前記ベクターテーブルアドレスに応じて指定
される割り込み処理を制御する割り込み制御手段と、R
OM読み出しの割り込み要求信号の通過の可否を制御す
る非公開の第2の許可フラグを格納する第2のフラグ格
納手段と、前記第2のフラグ格納手段に格納されている
第2の許可フラグに基づいて前記ROM読み出しの割り
込み要求信号の通過の可否を制御する第2のゲート回路
と、前記第2のゲート回路から入力する割り込み要求信
号を受けて前記ROMの読み出し処理を行うROM読み
出し回路とを具備することを特徴とする。
Further, the one-chip microcomputer of the present invention comprises a ROM storing a system program, and a ROM.
A plurality of first flag storage means for storing second permission flags for individually controlling whether or not a plurality of interrupt request signals other than the OM read are allowed to pass, and a plurality of first flag storage means stored in the first flag storage means. A plurality of first gate circuits for controlling whether or not an interrupt request signal other than the ROM read is allowed to pass based on the first permission flag;
A priority determining / vector address generating circuit for determining the priority of the interrupt enabling signal and generating a vector table address of an interrupt factor having a higher priority; Interrupt control means for controlling interrupt processing specified according to the vector table address supplied from the order determination / vector address generation circuit;
A second flag storage unit for storing a secret second permission flag for controlling whether or not an OM read interrupt request signal passes; and a second permission flag stored in the second flag storage unit. A second gate circuit for controlling whether or not the ROM read interrupt request signal passes based on the ROM read circuit; and a ROM read circuit for receiving the interrupt request signal input from the second gate circuit and reading the ROM. It is characterized by having.

【0015】[0015]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を詳細に説明する。図1は、本発明の第1の実
施の形態に係るデータ保護回路を有する1チップ・マイ
コンを示している。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows a one-chip microcomputer having a data protection circuit according to the first embodiment of the present invention.

【0016】図1において、10はマイコンシステムの
全体的な制御を行うCPU、11はバスライン、12は
システムプログラムデータなどを格納するROM、13
はデータ記憶用のデータメモリ(RAMなどの揮発性メ
モリやEEPROMなどの不揮発性メモリ)、15は入
出力制御回路、16は入出力ポートである。
In FIG. 1, reference numeral 10 denotes a CPU for overall control of the microcomputer system, 11 denotes a bus line, 12 denotes a ROM for storing system program data and the like, 13
Is a data memory for storing data (volatile memory such as RAM or nonvolatile memory such as EEPROM), 15 is an input / output control circuit, and 16 is an input / output port.

【0017】211は、ROM読み出し以外の複数の割
り込み要求信号の通過の可否をそれぞれ個別に制御する
第1の許可フラグ(1〜数ビットのデータ)を格納する
複数の第1のフラグ格納手段(例えばレジスタ回路)で
ある。
Reference numeral 211 denotes a plurality of first flag storage means (first flag storage means) for storing first permission flags (1 to several bits of data) for individually controlling whether or not a plurality of interrupt request signals other than ROM reading are allowed to pass. For example, a register circuit).

【0018】221は、前記第1のフラグ格納手段に格
納されている第1の許可フラグに基づいて前記ROM読
み出し以外の割り込み要求信号の通過の可否を制御する
複数の第1のゲート回路である。
Reference numeral 221 denotes a plurality of first gate circuits for controlling whether or not an interrupt request signal other than the ROM read is allowed to pass based on a first permission flag stored in the first flag storage means. .

【0019】212は、ROM読み出しの割り込み要求
信号の通過の可否を制御する非公開の第2の許可フラグ
(1〜数ビットのデータ)を格納する第2のフラグ格納
手段(例えばレジスタ回路)である。
Reference numeral 212 denotes second flag storage means (for example, a register circuit) for storing a secret second permission flag (1 to several bits of data) for controlling whether or not a ROM read interrupt request signal can pass. is there.

【0020】222は、前記第2のフラグ格納手段に格
納されている第2の許可フラグに基づいて前記ROM読
み出しの割り込み要求信号の通過の可否を制御する第2
のゲート回路である。
A second control unit 222 controls whether or not the ROM read interrupt request signal can pass based on the second permission flag stored in the second flag storage means.
Gate circuit.

【0021】23は、前記第1のゲート回路および複数
の第2のゲート回路からそれぞれ出力する割り込み許可
信号が入力し、この割り込み許可信号の優先順位を決定
し、優先順位の高い割り込み要因のベクターテーブルア
ドレスを生成する優先順位決定・ベクターアドレス生成
回路である。
An interrupt enable signal 23 is output from each of the first gate circuit and the plurality of second gate circuits. The interrupt enable signal 23 determines the priority of the interrupt enable signal. This is a priority determination / vector address generation circuit that generates a table address.

【0022】前記CPU10は、前記ROMのプログラ
ムのうちで優先順位決定・ベクターアドレス生成回路2
3から供給されるベクターテーブルアドレスにより指定
される位置の処理内容(ROM読み出し起動処理あるい
はその他の各種の割り込み処理)に応じて現在のメイン
タスクに対する割り込み処理を行うように制御する割り
込み制御機能を含むシステム全体の制御機能を有する。
The CPU 10 includes a priority determination / vector address generation circuit 2 in the ROM program.
An interrupt control function for controlling the interrupt processing for the current main task in accordance with the processing content (ROM read start processing or other various interrupt processing) at the position specified by the vector table address supplied from 3 It has a control function of the whole system.

【0023】この場合、ROMの格納プログラムとし
て、図2に示すように、ROM読み出しのベクターテー
ブルアドレスのジャンプ先(割り込みサービスタスクの
プログラム中)にROM読み出しの起動プログラムを内
蔵しておくことにより、機密性を高めることができる。
In this case, as shown in FIG. 2, a ROM read start program is incorporated in the jump destination of the ROM read vector table address (in the interrupt service task program) as a ROM storage program. Confidentiality can be increased.

【0024】図1の1チップ・マイコンにおいて、優先
順位決定・ベクターアドレス生成回路23は、第2のフ
ラグレジスタ212および第2のゲート回路222から
出力するROM読み出しの割り込み許可信号を受け付け
ると、ROM読み出しの割り込み許可信号の優先順位が
現在の処理よりもを高いと判定されてROM読み出しの
割り込み要求のベクターテーブルアドレスを生成する。
これにより、CPU10はROM読み出し起動処理を行
う。
In the one-chip microcomputer of FIG. 1, when the priority determination / vector address generation circuit 23 receives the ROM read interrupt enable signal output from the second flag register 212 and the second gate circuit 222, The priority of the read interrupt enable signal is determined to be higher than the current processing, and the vector table address of the ROM read interrupt request is generated.
As a result, the CPU 10 performs a ROM read start process.

【0025】この際、前記第2のフラグレジスタ212
に格納されているROM読み出しの割り込み要求信号の
通過の可否を制御する第2の許可フラグは、1チップ・
マイコンの設計者等、特定のユーザー以外の第3者に対
しては非公開であるので、第3者によるROMデータの
不正読み出しを防止してROMデータの機密を保護する
ことが可能である。
At this time, the second flag register 212
The second permission flag which controls whether or not the ROM read interrupt request signal stored in the ROM is allowed to pass is one chip.
Since it is not disclosed to a third party other than a specific user, such as a microcomputer designer, it is possible to prevent unauthorized reading of the ROM data by the third party and protect the confidentiality of the ROM data.

【0026】上記した構成の1チップ・マイコンによれ
ば、通常使用されている割り込み制御回路部でROM読
み出しの割り込み許可信号を生成させ、割り込み制御回
路部にデータ保護機能を持たせているので、新しく特別
な回路を開発、設計することなく、第2のフラグレジス
タ212および第2のゲート回路222のような必要最
小限の回路を追加するのみで、安価にROMデータ保護
機能を実現することができる。
According to the one-chip microcomputer having the above-described configuration, a normally used interrupt control circuit generates an interrupt enable signal for ROM reading, and the interrupt control circuit has a data protection function. A ROM data protection function can be realized inexpensively by adding only necessary minimum circuits such as the second flag register 212 and the second gate circuit 222 without developing and designing a new special circuit. it can.

【0027】従って、設計コストの増大やハードウェア
の構成の複雑化をまねくことなく、チップ面積の増大や
チップコストの上昇を最小限に抑制することができる。
図3は、本発明の第2の実施の形態に係るデータ保護回
路を有する1チップ・マイコンを示している。
Therefore, it is possible to minimize the increase in the chip area and the increase in the chip cost without increasing the design cost and complicating the hardware configuration.
FIG. 3 shows a one-chip microcomputer having a data protection circuit according to a second embodiment of the present invention.

【0028】図3に示す1チップ・マイコンは、図1に
示した1チップ・マイコンと比べて、(1)第2のゲー
ト回路222から出力する割り込み要求信号が、優先順
位決定・ベクターアドレス生成回路23に入力すること
なく、ROM12の読み出し処理を行うためのROM読
み出し回路30に入力する点、(2)CPU10の割り
込み処理機能は、ROMの格納プログラムのうちで優先
順位決定・ベクターアドレス生成回路23から供給され
るベクターテーブルアドレスにより指定される位置の処
理内容(ROM読み出し起動処理を含まない各種の割り
込み処理)に応じて現在のメインタスクに対する割り込
み処理を行う点が異なり、その他は同じであるので図1
中と同一符号を付している。
The one-chip microcomputer shown in FIG. 3 is different from the one-chip microcomputer shown in FIG. 1 in that (1) the interrupt request signal output from the second gate circuit 222 determines the priority and generates the vector address. The input to the ROM readout circuit 30 for performing the readout process of the ROM 12 without inputting to the circuit 23. (2) The interrupt processing function of the CPU 10 is provided with a priority determination / vector address generation circuit among the ROM storage programs. The difference is that interrupt processing for the current main task is performed in accordance with the processing content (various interrupt processing not including ROM read start processing) at the position specified by the vector table address supplied from 23, and the other is the same. So Figure 1
The same reference numerals as in the figure are used.

【0029】図3の1チップ・マイコンにおいても、第
2のフラグ格納手段および第2のゲート回路によりRO
M読み出しの割り込み要求信号を受け付けると、ROM
読み出し回路によりROMの読み出し処理を行うので、
図1の1チップ・マイコンと同様の効果が得られる。
In the one-chip microcomputer of FIG. 3, the RO is also controlled by the second flag storage means and the second gate circuit.
When an interrupt request signal for reading M is received, the ROM
Since the read circuit performs read processing of the ROM,
The same effect as the one-chip microcomputer of FIG. 1 can be obtained.

【0030】[0030]

【発明の効果】上述したように本発明の1チップ・マイ
クロコンピュータによれば、ROMデータの機密を保護
するためのデータ保護機能を必要最小限の回路を追加す
ることのみで、設計コストの増大やハードウェアの構成
の複雑化をまねくことなく、チップ面積の増大やチップ
コストの上昇を最小限に抑制し、安価に実現することが
できる。
As described above, according to the one-chip microcomputer of the present invention, the design cost is increased only by adding a minimum necessary circuit for a data protection function for protecting the confidentiality of ROM data. Without increasing the complexity of the hardware configuration, the increase in chip area and the increase in chip cost can be suppressed to a minimum, and the cost can be reduced.

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

【図1】本発明の第1の実施の形態に係るデータ保護回
路を有する1チップ・マイコンを示すブロック図。
FIG. 1 is a block diagram showing a one-chip microcomputer having a data protection circuit according to a first embodiment of the present invention.

【図2】図1中のROMの格納プログラムの一部を示す
フローチャート。
FIG. 2 is a flowchart showing a part of a program stored in a ROM in FIG. 1;

【図3】本発明の第2の実施の形態に係るデータ保護回
路を有する1チップ・マイコンを示すブロック図。
FIG. 3 is a block diagram showing a one-chip microcomputer having a data protection circuit according to a second embodiment of the present invention.

【図4】従来のROMデータ保護回路を有する1チップ
・マイコンを示すブロック図。
FIG. 4 is a block diagram showing a one-chip microcomputer having a conventional ROM data protection circuit.

【図5】図4中のROMデータ保護回路の従来の一例を
示すブロック図。
FIG. 5 is a block diagram showing an example of a conventional ROM data protection circuit in FIG. 4;

【図6】図4中のROMデータ保護回路の従来の他の例
を示すブロック図。
FIG. 6 is a block diagram showing another conventional example of the ROM data protection circuit in FIG. 4;

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

10…CPU、 11…バスライン、 12…ROM、 13…データメモリ、 15…入出力制御回路、 16…入出力ポート、 211…第1のフラグレジスタ、 221…第1のゲート回路、 212…第2のフラグレジスタ、 222…第2のゲート回路、 23…優先順位決定・ベクターアドレス生成回路、 30…ROM読み出し回路。 DESCRIPTION OF SYMBOLS 10 ... CPU, 11 ... Bus line, 12 ... ROM, 13 ... Data memory, 15 ... I / O control circuit, 16 ... I / O port, 211 ... First flag register, 221 ... First gate circuit, 212 ... 2, a flag register 222, a second gate circuit 23, a priority determination / vector address generation circuit 30, a ROM read circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 システムプログラムを格納したROM
と、 ROM読み出し以外の複数の割り込み要求信号の通過の
可否をそれぞれ個別に制御する第2の許可フラグを格納
する複数の第1のフラグ格納手段と、 前記第1のフラグ格納手段に格納されている第1の許可
フラグに基づいて前記ROM読み出し以外の割り込み要
求信号の通過の可否を制御する複数の第1のゲート回路
と、 ROM読み出しの割り込み要求信号の通過の可否を制御
する第2の許可フラグを格納する第2のフラグ格納手段
と、 前記第2のフラグ格納手段に格納されている第2の許可
フラグに基づいて前記ROM読み出しの割り込み要求信
号の通過の可否を制御する第2のゲート回路と、 前記第1のゲート回路および複数の第2のゲート回路か
らそれぞれ入力する割り込み要求信号の優先順位を決定
し、優先順位の高い割り込み要因のベクターテーブルア
ドレスを生成する優先順位決定・ベクターアドレス生成
回路と、 前記優先順位決定・ベクターアドレス生成回路から供給
される前記ベクターテーブルアドレスに応じて指定され
るROM読み出し起動処理あるいはその他の割り込み処
理を制御する割り込み制御手段と、 マイコンシステムの全体的な制御を行うCPUとを具備
することを特徴とする1チップマイクロコンピュータ。
1. A ROM storing a system program
A plurality of first flag storage means for storing second permission flags for individually controlling whether or not a plurality of interrupt request signals other than the ROM read are allowed to pass; and a plurality of first flag storage means for storing the second permission flags. A plurality of first gate circuits for controlling whether or not an interrupt request signal other than the ROM read is allowed to pass based on a first permission flag, and a second permission for controlling whether or not a ROM read interrupt request signal is allowed to pass. A second flag storing means for storing a flag, and a second gate for controlling whether or not the ROM read interrupt request signal can be passed based on a second permission flag stored in the second flag storing means. A priority order of interrupt request signals respectively input from the first gate circuit and the plurality of second gate circuits; A priority determination / vector address generation circuit for generating a vector table address of only the cause; a ROM read start processing or other interrupt designated according to the vector table address supplied from the priority determination / vector address generation circuit A one-chip microcomputer comprising: interrupt control means for controlling processing; and a CPU for controlling the entire microcomputer system.
【請求項2】 請求項1記載の1チップマイクロコンピ
ュータにおいて、 前記第2の許可フラグは、 非公開であることを特徴とする1チップマイクロコンピ
ュータ。
2. The one-chip microcomputer according to claim 1, wherein the second permission flag is not disclosed.
【請求項3】 請求項1記載の1チップマイクロコンピ
ュータにおいて、 前記ROMに格納されたシステムプログラムは、ROM
読み出しのベクターテーブルアドレスのジャンプ先にR
OM読み出しの起動プログラムを内蔵していることを特
徴とする1チップマイクロコンピュータ。
3. The one-chip microcomputer according to claim 1, wherein the system program stored in the ROM is a ROM.
R to jump destination of read vector table address
A one-chip microcomputer having a built-in OM read start program.
【請求項4】 システムプログラムを格納したROM
と、 ROM読み出し以外の複数の割り込み要求信号の通過の
可否をそれぞれ個別に制御する第2の許可フラグを格納
する複数の第1のフラグ格納手段と、 前記第1のフラグ格納手段に格納されている第1の許可
フラグに基づいて前記ROM読み出し以外の割り込み要
求信号の通過の可否を制御する複数の第1のゲート回路
と、 前記複数の第1のゲート回路からそれぞれ入力する割り
込み要求信号の優先順位を決定し、優先順位の高い割り
込み要因のベクターテーブルアドレスを生成する優先順
位決定・ベクターアドレス生成回路と、 前記優先順位決定・ベクターアドレス生成回路から供給
される前記ベクターテーブルアドレスに応じて指定され
る割り込み処理を制御する割り込み制御手段と、 ROM読み出しの割り込み要求信号の通過の可否を制御
する非公開の第2の許可フラグを格納する第2のフラグ
格納手段と、 前記第2のフラグ格納手段に格納されている第2の許可
フラグに基づいて前記ROM読み出しの割り込み要求信
号の通過の可否を制御する第2のゲート回路と、 前記第2のゲート回路から入力する割り込み要求信号を
受けて前記ROMの読み出し処理を行うROM読み出し
回路と、 マイコンシステムの全体的な制御を行うCPUとを具備
することを特徴とする1チップマイクロコンピュータ。
4. A ROM storing a system program.
A plurality of first flag storage means for storing second permission flags for individually controlling whether or not a plurality of interrupt request signals other than the ROM read are allowed to pass; and a plurality of first flag storage means for storing the second permission flags. A plurality of first gate circuits for controlling whether or not an interrupt request signal other than the ROM read is allowed to pass based on the first permission flag, and a priority of an interrupt request signal input from each of the plurality of first gate circuits. A priority determination / vector address generation circuit for determining a priority and generating a vector table address of a high priority interrupt factor; and a priority determination / vector address generation circuit specified in accordance with the vector table address supplied from the priority determination / vector address generation circuit. Interrupt control means for controlling the interrupt processing to be performed, Second flag storage means for storing a non-disclosed second permission flag for controlling rejection, and an interrupt request signal for reading the ROM based on the second permission flag stored in the second flag storage means A second gate circuit for controlling whether or not the signal passes through; a ROM reading circuit for receiving the interrupt request signal input from the second gate circuit to read the ROM; and performing overall control of the microcomputer system A one-chip microcomputer including a CPU.
JP8223540A 1996-08-26 1996-08-26 One-chip microcomputer Withdrawn JPH1063579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8223540A JPH1063579A (en) 1996-08-26 1996-08-26 One-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8223540A JPH1063579A (en) 1996-08-26 1996-08-26 One-chip microcomputer

Publications (1)

Publication Number Publication Date
JPH1063579A true JPH1063579A (en) 1998-03-06

Family

ID=16799769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8223540A Withdrawn JPH1063579A (en) 1996-08-26 1996-08-26 One-chip microcomputer

Country Status (1)

Country Link
JP (1) JPH1063579A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040078418A (en) * 2003-03-04 2004-09-10 주식회사 하이닉스반도체 One time programable(OTP) memory device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040078418A (en) * 2003-03-04 2004-09-10 주식회사 하이닉스반도체 One time programable(OTP) memory device

Similar Documents

Publication Publication Date Title
US7874009B2 (en) Data processing device
KR100294829B1 (en) Method and apparatus for protecting flash memory
JP2710754B2 (en) Device to protect chip card keys
KR930008041B1 (en) Microcontroller
RU2188447C2 (en) Electronic data processing device and system
JPH09259045A (en) Security system device for memory card and the memory card
EP1510899B1 (en) Memory management unit
JPH08272625A (en) Device and method for multiprogram execution control
EP1465038B1 (en) Memory security device for flexible software environment
JP2885600B2 (en) Semiconductor integrated circuit
JP2004280801A (en) Processor and compiler apparatus for generating program for the processor
CN107735790B (en) Apparatus and method for transitioning between secure and less secure areas
JPH1063579A (en) One-chip microcomputer
US20090249085A1 (en) Security module and personalization method for such a security module
JP3464738B2 (en) ROM with copy protection function
EP3907633B1 (en) System and method for obfuscating opcode commands in a semiconductor device
JPS5848298A (en) Information processor
JP4098959B2 (en) Digital circuit
JP2624249B2 (en) Processor with imitation prevention function
JP2001125714A (en) Keyboard device and password authenticating method using the same
JPH10240623A (en) Micro computer with read protection function
JP2928026B2 (en) Storage information protection device
JPS61173341A (en) Method and apparatus for protecting safeguard program from illegal use in microcomputer
JPH0836529A (en) Stored information analysis prevention system
JPH09167118A (en) Micro controller

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20031104