JPH02148152A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH02148152A
JPH02148152A JP63302856A JP30285688A JPH02148152A JP H02148152 A JPH02148152 A JP H02148152A JP 63302856 A JP63302856 A JP 63302856A JP 30285688 A JP30285688 A JP 30285688A JP H02148152 A JPH02148152 A JP H02148152A
Authority
JP
Japan
Prior art keywords
rom
data bus
output
signal
program
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
JP63302856A
Other languages
Japanese (ja)
Inventor
Tatsuya Kamei
達也 亀井
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 JP63302856A priority Critical patent/JPH02148152A/en
Publication of JPH02148152A publication Critical patent/JPH02148152A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To prevent the third person from decoding internal secret information by disconnecting a ROM from a data bus by a data bus buffer at the time of program execution of an external circuit or the like. CONSTITUTION:While an external circuit 6 executes a program, a ROM output invalidating signal is outputted from a ROM output validating circuit 7 to a data bus buffer 8, and the data bus buffer 8 disconnects a ROM 3 from a data bus DB by this signal. As the result, the program in the ROM 3 cannot be read out by the external circuit 6. Thus, secret of the program in the ROM 3 is protected.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、CPUと、それぞれが前記CPUに対してア
ドレスバスとデータバスとを介して接続されたROMお
よびRAMと、前記CPUに対してアドレスバスを介し
て接続されているとともに、前記ROMとRAMとを選
択する選択信号を出力するアドレスデコーダとを有する
マイクロコンピュータに係り、詳しくはマイクロコンピ
ュータに内蔵されている前記ROMに書き込まれている
プログラムを外部から読み出されてしまうことを防止す
ることに関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention provides a CPU, a ROM and a RAM each connected to the CPU via an address bus and a data bus, and a The microcomputer is connected via an address bus and has an address decoder that outputs a selection signal for selecting between the ROM and the RAM, and more specifically, the address decoder is connected to the ROM and the RAM, and is written in the ROM built in the microcomputer. This relates to preventing programs from being read from outside.

(従来の技術) 第2図は読み出し専用メモリとしてプログラムが古き込
まれているROMを有するマイクロコンピユータと、そ
のマイクロコンピュータに、接続された外部回路との回
路構成図である。
(Prior Art) FIG. 2 is a circuit configuration diagram of a microcomputer having a ROM as a read-only memory in which an old program is stored, and an external circuit connected to the microcomputer.

第2図において、lはマイクロコンピュータであって、
このマイクロコンピュータlはCPU2と、CPU2に
対するプログラムメモリとしてそのCPU2の動作を規
定するプログラムが書き込まれているROM3と、CP
U2の作業用メモリとしてのRAM4と、ROM3また
はRAM4の一方を選択するための選択信号を出力する
アドレスデコーダ5とから構成されている。
In FIG. 2, l is a microcomputer,
This microcomputer 1 includes a CPU 2, a ROM 3 in which a program defining the operation of the CPU 2 is written as a program memory for the CPU 2, and a ROM 3 that serves as a program memory for the CPU 2.
It is composed of a RAM 4 as a working memory of U2, and an address decoder 5 that outputs a selection signal for selecting either ROM 3 or RAM 4.

そのため、ROM3とRAM4とはそれぞれCPU2に
対してアドレスバスABとデータバスDBとを介して、
またアドレスデコーダ5はCPLJ2に対してアドレス
バスABを介して、さらにアドレスデコーダ5はROM
3とRAM4とに対して選択信号線SLを介してそれぞ
れ接続されている。
Therefore, ROM3 and RAM4 are connected to CPU2 via address bus AB and data bus DB, respectively.
Further, the address decoder 5 is connected to the CPLJ2 via the address bus AB, and the address decoder 5 is connected to the ROM.
3 and RAM 4 via selection signal lines SL.

このような構成を有するマイクロコンピュータ1のアド
レスバスABとデータバスDBには外部回路6が接続さ
れている。
An external circuit 6 is connected to the address bus AB and data bus DB of the microcomputer 1 having such a configuration.

動作においては、よく知られているようにマイクロコン
ピュータ1に内蔵されているCPU2は、ROM3に書
き込まれているプログラムに従って動作するとともに、
RAM4はそのプログラム実行時にCPU2の作業用メ
モリとして使用されるととしに、外部回路6は、例えば
人出力ボートとか、外部メモリといったマイクロコンピ
ュータ1で不足している諸機能実行用として用いられる
In operation, as is well known, the CPU 2 built into the microcomputer 1 operates according to the program written in the ROM 3, and
The RAM 4 is used as a working memory for the CPU 2 when executing the program, and the external circuit 6 is used to execute various functions lacking in the microcomputer 1, such as a human output board and an external memory.

(発明が解決しようとする課題) 上記構成においては、データバスDBとアドレスバスA
Bとを介してr(0M3と外部回路6とが接続されてい
ることから、外部回路6に書き込まれているプログラム
に従ってROM3を何等の制限をうけることなく使用す
ることができるので、そのROM3のプログラム内容は
自由に読み出されて解読されてしまう構造となっている
。したがって、上記構成ではROM3のプログラム内容
を第三者に対して守秘することがむつかしいという不都
合があった。
(Problem to be Solved by the Invention) In the above configuration, the data bus DB and the address bus A
Since r(0M3 and external circuit 6 are connected through The program contents are structured so that they can be freely read and decoded.Therefore, the above configuration has the disadvantage that it is difficult to keep the program contents of the ROM 3 confidential from a third party.

本発明は、上記課題に鑑みてなされたらのであって、マ
イクロコンピュータのROMのプログラム内容を守秘す
ることができるようにすることを目的としている。
The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to make it possible to keep the program contents of a ROM of a microcomputer confidential.

(課題を解決するための手段) このような目的を達成するために、本発明のマイクロコ
ンピュータにおいては、CPUと、それぞれが前記CP
Uに対してアドレスバスとデータバスとを介して接続さ
れたROMおよびRAMと、前記CP U l:対して
アドレスバスを介して接続されているとともに、前記R
OMとRAMとを選択する選択信号を出力するアドレス
デコーダとを有するマイクロコンピュータにおいて、前
記CPUから命令フェッチ信号が入力され、かつ前記ア
ドレスデコーダから前記ROMを選択する選択信号が人
力されたときにはROM出力有効信号を、またそれ以外
のときにはROM出力無効信号をそれぞれ出力するRO
M出力有効化回路と、前記データバスと前記ROMとの
間に接続されて、前記ROM出力有効化回路から前記R
OM出力有効信号が与えられたときには前記ROMを前
記データバスに接続し、前記ROM出力無効信号が与え
られたときには前記ROMを前記データバスから切り離
す動作をするデータバスバッファとを具備したことを特
徴としている。
(Means for Solving the Problems) In order to achieve such an object, the microcomputer of the present invention includes a CPU, each of which has a
The ROM and RAM are connected to the CPU U via an address bus and a data bus, and the CPU is connected to the CPU U via an address bus, and the R
In a microcomputer having an address decoder that outputs a selection signal for selecting between OM and RAM, when an instruction fetch signal is input from the CPU and a selection signal for selecting the ROM is manually input from the address decoder, the ROM is output. RO that outputs a valid signal and a ROM output invalid signal at other times.
an M output enabling circuit connected between the data bus and the ROM, the R
A data bus buffer that connects the ROM to the data bus when an OM output valid signal is applied and disconnects the ROM from the data bus when the ROM output invalid signal is applied. It is said that

(作用) 上記構成において、ROM出力有効化回路からは前記C
PUから命令フェッチ信号が入力され、かつ前記アドレ
スデコーダから前記プログラムメモリを選択する選択信
号が入力されたときにはROM出力有効信号を、またそ
れ以外のときにはROM出力無効信号をそれぞれ出力さ
れる。
(Function) In the above configuration, the ROM output enabling circuit outputs the C
When an instruction fetch signal is input from the PU and a selection signal for selecting the program memory is input from the address decoder, a ROM output valid signal is output, and at other times, a ROM output invalid signal is output.

データバスバッファは、前記ROM出力有効化回路から
前記ROM出力有効信号が与えられたときには前記RO
Mを前記データバスに接続し、前記ROM出力無効信号
が与えられたときには前記rtOMを前記データバスか
ら切り離す動作をする。
When the data bus buffer receives the ROM output enable signal from the ROM output enable circuit, the data bus buffer
M is connected to the data bus, and when the ROM output invalidation signal is applied, the rtOM is disconnected from the data bus.

したがって、前記CPUと前記ROMとに対してアドレ
スバスとデータバスとを介して接続されている外部回路
でもって、それに書き込まれているプログラムに従って
ROMのプログラムを読み出そうとしても、この場合は
前記ROMは前記ROM出力無効信号に応答動作する前
記データバスバッファによりデータバスから切り離され
ているので、そのROMのプログラムの読み出しを行う
ことはできず、その結果、そのI’(OMのプログラム
の機密の保護を図ることが可能となる。
Therefore, even if an external circuit connected to the CPU and the ROM via an address bus and a data bus attempts to read out the program in the ROM according to the program written therein, in this case, the Since the ROM is separated from the data bus by the data bus buffer which operates in response to the ROM output invalidation signal, the program in the ROM cannot be read out, and as a result, the I' (the secret of the OM program) cannot be read. It becomes possible to protect the

(実施例) 以下、本発明の実施例を図面を参照して詳細に説明する
。第1図は本発明の実施例に係るマイクロコンピュータ
と、それに接続される外部回路との回路図であり、第2
図に示された従来例と同一ないしは相当する部分には同
一の符号を付すとともに、その同一の符号に係る部分に
ついての説明は名称を列記するにとどめてその詳細な説
明を省略する。
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings. FIG. 1 is a circuit diagram of a microcomputer according to an embodiment of the present invention and an external circuit connected thereto;
The same reference numerals are given to the parts that are the same as or corresponding to those of the conventional example shown in the drawings, and detailed explanations of the parts corresponding to the same reference numerals will be omitted except for listing their names.

すなわち、第1図において、■はマイクロコンピュータ
、2はCPU、3はROM14はRAM15はアドレス
デコーダ、6は外部回路、ABはアドレスバス、DBは
データバス、SLは選択信号線である。
That is, in FIG. 1, 2 is a microcomputer, 2 is a CPU, 3 is a ROM 14, a RAM 15 is an address decoder, 6 is an external circuit, AB is an address bus, DB is a data bus, and SL is a selection signal line.

本実施例において、従来例と異なる構成は次の通りであ
る。
The configuration of this embodiment differs from the conventional example as follows.

すなわち、本実施例においては、マイクロコンピュータ
1内部に、CPU2から信号線SLIを介して命令フェ
ッチ信号か人力され、かつアドレスデコーダ5から信号
線SL2を介してROM3を選択する選択信号が入力さ
れたときにはROM出力有効信号を、またそれ以外のと
きにはROM出力無効信号をそれぞれ出力するROM出
力有効化回路7と、データバスDBとROM3とノ間ニ
接続されて、ROM出力有効化回路7からROM出力有
効信号が与えられたときにはROM3をデータバスDB
に接続し、前記ROM出力無効信号が与えられたときに
はROM3をデータバスD Bから切り離す動作をする
データバスバッファ8とを設けたことに特徴を有してい
る。
That is, in this embodiment, an instruction fetch signal is manually input from the CPU 2 to the microcomputer 1 via the signal line SLI, and a selection signal for selecting the ROM 3 is input from the address decoder 5 via the signal line SL2. A ROM output enabling circuit 7, which outputs a ROM output enable signal at times and a ROM output disable signal at other times, is connected between the data bus DB and the ROM3, and the ROM output from the ROM output enable circuit 7 is connected between the data bus DB and the ROM3. When a valid signal is given, ROM3 is transferred to data bus DB.
The data bus buffer 8 is connected to the data bus DB and operates to disconnect the ROM 3 from the data bus DB when the ROM output invalidation signal is applied.

したがって、上記構成を有する本実施例のマイクロコン
ピュータによれば、ROM出力有効化回路7に対してア
ドレスデコーダ5からROM3を選択する選択信号が、
また、CPU2から命令フェッチ信号がそれぞれ入力さ
れると、データバスバッファ8は、そのROM出力有効
化回路7からのROM出力有効信号に応答動作してRO
M3をデータバスDBに接続するので、ROM3のプロ
グラムに基づいてCPU2はJlN[fの動作を実行す
ることができる。また、外部回路6のプログラム実行中
は、ROM出力有効化回路7からデータバスバッファ8
に対してはROM出力無効信号が出力され、これにより
、データバスバッファ8はROM3をデータバスDBか
ら切り離す。その結果、外部回路6でらって、FtOM
3のプログラムの読み出しを行うことはできない。
Therefore, according to the microcomputer of this embodiment having the above configuration, the selection signal for selecting the ROM 3 from the address decoder 5 to the ROM output enabling circuit 7 is
Further, when each instruction fetch signal is input from the CPU 2, the data bus buffer 8 operates in response to the ROM output enable signal from the ROM output enable circuit 7, and the RO
Since M3 is connected to the data bus DB, the CPU 2 can execute the operation JIN[f based on the program in the ROM3. Also, while the external circuit 6 is executing a program, the data bus buffer 8 is
A ROM output invalidation signal is output to the data bus DB, whereby the data bus buffer 8 disconnects the ROM 3 from the data bus DB. As a result, using the external circuit 6, FtOM
Program 3 cannot be read.

なお、本実施例においては、ROM3のプログラム読み
出しについてのみ制限を設けたが、他のメモリとか人出
力ボート等に対しても同様にしてその読み出しとか書き
込みを禁止することも可能である。
In this embodiment, only the reading of the program from the ROM 3 is restricted, but it is also possible to prohibit the reading and writing of other memories, human output boards, etc. in the same way.

(発明の効果) 以上説明したことから明らかなように本発明によれば、
外部回路がプログラム実行中のような場合ではデータバ
スバッファによりROMとデータバスとが切り離される
ので、その外部回路によりROMのプログラムの読み出
しを行うことはできず、その結果、第三者による当該マ
イクロコンピュータの内部機密情報の解読などを有効に
防止することができる。
(Effects of the Invention) As is clear from the above explanation, according to the present invention,
When an external circuit is executing a program, the ROM and data bus are separated by the data bus buffer, so the program in the ROM cannot be read by the external circuit, and as a result, a third party can read the program from the ROM. It is possible to effectively prevent decoding of internal confidential information of a computer.

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

第1図は本発明の一実施例に係るマイクロコンピュータ
と、これに接続される外部回路との回路図、第25!J
は第1図に対応する従来例の回路図である。 ■・・・マイクロコンピュータ、2・・・CPU、3R
OM、4・・・RAM、5・・・アドレスデコーダ、6
・・外部回路、7・・・ROM出力有効化回路、8・・
データバスバッファ、DB・・・データバス、AB・・
データバス、S L−・・選択信号線、SLI、SL2
信号線。 図中、同一符号は同一ないしは相当部分を示す。
FIG. 1 is a circuit diagram of a microcomputer according to an embodiment of the present invention and an external circuit connected thereto, No. 25! J
1 is a circuit diagram of a conventional example corresponding to FIG. ■...Microcomputer, 2...CPU, 3R
OM, 4...RAM, 5...Address decoder, 6
...External circuit, 7...ROM output enable circuit, 8...
Data bus buffer, DB...Data bus, AB...
Data bus, SL-...Selection signal line, SLI, SL2
Signal line. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] (1)CPUと、それぞれが前記CPUに対してアドレ
スバスとデータバスとを介して接続されたROMおよび
RAMと、前記CPUに対してアドレスバスを介して接
続されているとともに、前記ROMと前記RAMとを選
択する選択信号を出力するアドレスデコーダとを有する
マイクロコンピュータにおいて、 前記CPUから命令フェッチ信号が入力され、かつ前記
アドレスデコーダから前記ROMを選択する選択信号が
入力されたときにはROM出力有効信号を、またそれ以
外のときにはROM出力無効信号をそれぞれ出力するR
OM出力有効化回路と、 前記データバスと前記ROMとの間に接続されて、前記
ROM出力有効化回路から前記ROM出力有効信号が与
えられたときには前記ROMを前記データバスに接続し
、前記ROM出力無効信号が与えられたときには前記R
OMを前記データバスから切り離す動作をするデータバ
スバッファとを具備したことを特徴とするマイクロコン
ピュータ。
(1) a CPU, a ROM and a RAM each connected to the CPU via an address bus and a data bus; and a ROM and a RAM connected to the CPU via an address bus; In a microcomputer having an address decoder that outputs a selection signal for selecting the RAM, when an instruction fetch signal is input from the CPU and a selection signal for selecting the ROM is input from the address decoder, a ROM output valid signal is output. and R outputs a ROM output invalid signal at other times.
an OM output enabling circuit connected between the data bus and the ROM to connect the ROM to the data bus when the ROM output enable signal is applied from the ROM output enabling circuit; When the output invalidation signal is given, the R
A microcomputer comprising: a data bus buffer that operates to disconnect an OM from the data bus.
JP63302856A 1988-11-29 1988-11-29 Microcomputer Pending JPH02148152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63302856A JPH02148152A (en) 1988-11-29 1988-11-29 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63302856A JPH02148152A (en) 1988-11-29 1988-11-29 Microcomputer

Publications (1)

Publication Number Publication Date
JPH02148152A true JPH02148152A (en) 1990-06-07

Family

ID=17913921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63302856A Pending JPH02148152A (en) 1988-11-29 1988-11-29 Microcomputer

Country Status (1)

Country Link
JP (1) JPH02148152A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04148257A (en) * 1990-10-12 1992-05-21 Internatl Business Mach Corp <Ibm> Information processor
US6101586A (en) * 1997-02-14 2000-08-08 Nec Corporation Memory access control circuit
JP2009223611A (en) * 2008-03-17 2009-10-01 Konami Digital Entertainment Co Ltd Information processing apparatus, information processing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04148257A (en) * 1990-10-12 1992-05-21 Internatl Business Mach Corp <Ibm> Information processor
US6101586A (en) * 1997-02-14 2000-08-08 Nec Corporation Memory access control circuit
JP2009223611A (en) * 2008-03-17 2009-10-01 Konami Digital Entertainment Co Ltd Information processing apparatus, information processing method, and program

Similar Documents

Publication Publication Date Title
KR100970040B1 (en) A security terminal and a computer-readable storage medium having execution-only routines used for the security key protection method and the security key protection method
KR19980071365A (en) Memory access control circuit
US20090150645A1 (en) Data processing apparatus and address space protection method
JPH01296361A (en) Memory card
KR100505106B1 (en) Smart card with enhanced security
JPS63206852A (en) Single chip lsi
JPH02148152A (en) Microcomputer
JPH09114743A (en) Single chip microcomputer
JP3234959B2 (en) Microcomputer and card incorporating the same
JPH02128266A (en) Register with protective function
JPH0475137A (en) data processing equipment
JPH01123342A (en) Writing protecting circuit for memory
JPH01232452A (en) One-chip processor
JP3039479B2 (en) Extended BIOS protection system
JPH0573427A (en) Semiconductor integrated circuit
JPS63266533A (en) data processing equipment
JPH02138635A (en) Protecting circuit for program data secrecy of microcomputer containing eprom
KR900010178Y1 (en) RAM output protection circuit
JPS62236034A (en) microcomputer
JPS60246450A (en) Memory protecting device
JPH0348954A (en) Key storage control system
JPS59128638A (en) Protecting method of memory
JPH05250267A (en) Write protect for one-chip cpu
JPS60243763A (en) Dual port memory control circuit
JPH01261760A (en) computer equipment