JPH04205486A - Microcomputer with built-in prom - Google Patents

Microcomputer with built-in prom

Info

Publication number
JPH04205486A
JPH04205486A JP2337494A JP33749490A JPH04205486A JP H04205486 A JPH04205486 A JP H04205486A JP 2337494 A JP2337494 A JP 2337494A JP 33749490 A JP33749490 A JP 33749490A JP H04205486 A JPH04205486 A JP H04205486A
Authority
JP
Japan
Prior art keywords
prom
data
address
offset value
microcomputer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2337494A
Other languages
Japanese (ja)
Other versions
JPH0812655B2 (en
Inventor
Ryohei Higuchi
良平 樋口
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 JP2337494A priority Critical patent/JPH0812655B2/en
Publication of JPH04205486A publication Critical patent/JPH04205486A/en
Publication of JPH0812655B2 publication Critical patent/JPH0812655B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To prevent the contents of a PROM from being read out by a third person by providing this microcomputer(MC) containing the PROM with an offset value adding means for adding an offset value to an address applied from the outside of the MC and setting up the added value as the address of the PROM. CONSTITUTION:In the case of writing/reading data in/from the PROM 2 of the MC 9, an offset value should be written in an offset register 6 at first. The writing/reading of data in/from the PROM 2 after writing the offset value in the register 6 is executed similarly to a convensional MC with a built-in PROM, but differently from the convensional PC, a value obtained by adding the offset value stored in the register 6 to an address inputted from the external by an adder 7 is added to the PROM 2 built in the MC. Consequently it is difficult for a third person to correctly read out data written in the PROM 2 and the PROM data can be protected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、守秘性に優れたFROM内蔵マイコンに関
するものでるる。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a FROM-embedded microcomputer with excellent confidentiality.

〔従来の技術〕[Conventional technology]

第8図は、従来のFROM内賦マイコンの構成図で、L
Iejl1者が特定のfiijl(ROMライタ等)t
″用いて書き込み可能で電源が供給されなくても情報t
−保持できるグログラ!プルROM (以下、FROM
と称す)を備えて−る・ 藁8図ICb”V+て、lRj下記に示すtl 〜11
$1と、図示して−な一データ処理や制御などを行うマ
イコンコアと周辺回路から構成されるF ROM′内斌
マイコン、(!1はFROM、−m+HP ROMlt
lに沓き込まれるかまたは読みだされるデータのアドレ
スを4えるためのアドレス入力パス、141はF RO
M 、!Iに書き込lれるかまたは読みだされるデータ
を人出力するデータ入出力バス、 、MlはFROMへ
のデータの書き込み倉制御する薔き込み制4Ii911
!である。
Figure 8 is a configuration diagram of a conventional FROM internal microcontroller.
Iejl1 person uses a specific fiijl (ROM writer, etc.)
” can be used to store information even when power is not supplied.
-Glogura that can be held! Pull ROM (hereinafter referred to as FROM
ICb"V+, lRj tl shown below ~11
$1 and the F ROM' internal microcomputer, which consists of a microcomputer core and peripheral circuits that perform data processing and control, (!1 is FROM, -m+HP ROMlt
141 is an address input path for incrementing the address of data to be read or written to
M,! A data input/output bus outputs the data written to or read from I, and Ml is a 4Ii911 bus that controls the writing of data to FROM.
! It is.

FROM内蔵マイコンでは、一般の演算や制a1に行う
通常動作の他に、 puOM+t+に:f−pt書き込
むFROM書き込みモード(以下、書き込みモードと祢
丁)と、4き込まれたデータを読みだすFROM読みだ
しモードC以下、読みだしモードと祢丁)f!−有して
いる(両モードをFROMモードと総称する)。沓き込
みモードによってFROM41に11き込まれたデータ
は、読みだしモードによって絖みだすことにより書き込
まれたデータが正しいかどうか検証することができる。
In addition to normal operations for general calculations and control a1, a microcomputer with built-in FROM has a FROM write mode (hereinafter referred to as "write mode") in which f-pt is written to puOM+t+, and a FROM mode in which to read the written data. Readout mode C and below, readout mode and Necho) f! - (both modes are collectively referred to as FROM mode). The data written into the FROM 41 in the write mode can be read out in the read mode to verify whether the written data is correct.

) ROM ’!+へのデータの書き込み動作について
貌明丁り。初めに1図に示さない手段によって壷き込み
モードにする。次に、アドレス入力パス13)にアドレ
スを、データ入出力パス+411Cデータr4え、4F
き込み信号制御線16)に書き込み信号?与えると、ア
ドレス入カッ(ス13)で与えたアドレスにデータ入出
力パス・41で与えたデータが憂き込まれる。
) ROM'! I'm pretty sure about the operation of writing data to +. First, enter the pot loading mode by means not shown in Figure 1. Next, add the address to the address input path 13), add the address to the data input/output path +411C data r4, and add the address to the 4F
Is there a write signal on the write signal control line 16)? When it is given, the data given by the data input/output path 41 is stored in the address given by the address input pass 13.

F ROM 、Ilからのデータの読みだし前作につい
て説明する。初めに1図に示さない手段によって読みだ
しモードにする。次に、アドレス入力パス・ill!/
cアドレス【与えると、アドレス入力パス431で与え
たアドレスに書き込まれているデータがデータ入出力パ
ス+41 vc比出力れる。
The previous work on reading data from F ROM and Il will be explained. First, read mode is set by means not shown in Figure 1. Next, address input path ill! /
c address [When given, the data written to the address given by the address input path 431 is outputted by the data input/output path +41 vc ratio.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のPROM内戚マイコンは、J:)、上のように構
成されて−るので、誉き込んだデータの検証等を行うた
めVc誓き込んであるデータ音デバイス外部に出力する
ことができるので、PROMライタ等を用いて粥三者が
容易[FROMの内容t−却ることができ守秘性(デー
タの株護〕の確保が6鐘であるとい行問題点があった。
Since the conventional PROM internal microcontroller is configured as shown above, it is possible to output the data to the outside of the sound device via Vc in order to verify the stored data. Therefore, using a PROM writer or the like, the contents of the FROM can be easily disclosed and confidentiality (data protection) can be ensured, which is a problem.

この発明に上記のような間m頃?解消下るためになされ
たもので、第三名がPROMQノ内容を読み出すのを防
止するようにしたPROM内戚マイコンを得ることを目
的とする。
Is this invention something like the above? This was done to solve the problem, and the purpose is to obtain a PROM-related microcomputer that prevents a third party from reading the contents of the PROMQ.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るFR0M内蔵マイコンは、FROMへの
データの書き込みと欣みだしを行う時、FROM内戚マ
イコン外部から与えられるアドレスにオフセット1直倉
加算して、それ1kFROMのアドレスとするオフセッ
トl′l71LI算手段を設けたものでおる。
When the FR0M built-in microcomputer according to the present invention writes and reads data to the FROM, it adds an offset of 1 to the address given from the outside of the FROM internal microcomputer, and sets the offset l'l71LI to the 1kFROM address. It is equipped with a calculation method.

〔作用〕[Effect]

この発明におけるPROM内戚マイコンは、オフセット
M71D:!!i手段によって、FROMデータはFR
OM内蔵マイコン外部から与えらnるアドレスにオフセ
ット値だけ/フトした位置にマツピングされるので、オ
フセット値を知らな一第三者がROMデータを正しく読
みだすことt困II&にする。
The PROM relative microcontroller in this invention has an offset M71D:! ! By i means, FROM data is FR
Since the ROM data is mapped to a position shifted by the offset value to the address given from outside the microcomputer with the built-in OM, it is difficult for a third party who does not know the offset value to read the ROM data correctly.

〔英m例〕[English example]

第1図に、この発明の一実施例r示すPROMP31E
マイコンを示している。第1図において、2(〜6+k
l促米例に従来る奄のと同様のため説明を省略する。、
61はオフセラ)fEt株持するオフセットレジスタ、
7)ニアドレス人力(3)に与えられるアドレスと、オ
フセットレジスタtel ic 11持されたオフセッ
ト値を加鼻するための加算器、+81に#ll算fi 
、61 ノlii力でFROM、!lK7ドVZt与え
0ための内部アドレス入力パスである。
FIG. 1 shows a PROMP31E that is an embodiment of the present invention.
Shows a microcomputer. In Figure 1, 2(~6+k
The explanation is omitted because it is the same as that of Amano, which follows the rice promotion example. ,
61 is an offset register that holds fEt (Offsera),
7) An adder for adding the address given to the near address (3) and the offset value held in the offset register tel ic 11, #ll calculation fi to +81
, 61 FROM, with nolii power! This is an internal address input path for lK7 and VZt.

ts+ri上記!1〜(8)と、9示して暦ないデータ
処理、制御などを行うマイコンニアと絢辺回路から構成
されるPROM内戚マイコンを示す。
ts+ri above! 1 to (8) and 9 indicate microcomputers related to PROM, which are composed of a microcomputer and an Ayabe circuit that perform data processing, control, etc.

このP ROM p’3 JE ?イコyでrt、FR
OM:!1に与えられるアドレス(内部アドレス入力バ
ス(8)で与えられるアドレス)は、アドレス入力バス
・31で与えられたアドレスとオフセットレジスタ16
)で保持されて−るオフセット値1km算器(7)で7
1D算したものとなる。
This PROM p'3 JE? Iko y rt, FR
OM:! The address given to 1 (the address given by the internal address input bus (8)) is the address given by the address input bus 31 and the offset register 16.
) is the offset value 1km calculator (7), which is 7.
It is calculated by 1D.

次Vc#I作について説明する。PROM内戚マイコン
(9)のF ROM 、Ilに対するデータの誓き込み
と絖みだしを行う時に、初めにオフセットレジスタ、I
lにオフセット値を書き込む必要がある。
The next Vc#I work will be explained. When loading and unloading data to the FROM and Il of the PROM internal microcontroller (9), the offset register and Il are first set.
It is necessary to write an offset value to l.

オフセットレジスタ161ヘオフセツト1直と書き込ん
だ後のFROM2+[対するデータの書き込みと読みだ
しの操作は、従来のPROM内戚マイコンと全く同様で
あるが、OE来と異なり、本発明によるPROM内戚マ
イコンにおいてFROM、21に与えられるアドレスは
、前述のように、外m′D−ら入力されるアドレスにオ
フセットレジスタ16)に保持されているオフセット値
を加算器・7)で加えたものとなる。従って、同一のR
OM0Mブータラ、15I−のアドレスをアドレス入力
バスに与えて本発明と従来のPROM内戚マイコンに誉
き込んだ場合、ROMデータはfIJs図に示すように
ア“ドレス空間にマツピングされる。fなわち1本発明
によるPROM内戚マイコンのROMデータは、従来の
FROM内戚マイコンのROMデータがオフセット値だ
けシフトした位flllKマツピングされる。
After writing offset 1 direct to the offset register 161, the operation of writing and reading data to FROM2+[ is exactly the same as in the conventional PROM internal microcomputer, but unlike the OE conventional microcomputer, the PROM internal microcomputer according to the present invention performs the following operations: As mentioned above, the address given to FROM 21 is obtained by adding the offset value held in offset register 16) to the address input from outside m'D- by adder 7). Therefore, the same R
When the address of the OM0M booter 15I- is given to the address input bus to be read into the present invention and the conventional PROM internal microcontroller, the ROM data is mapped into the address space as shown in the fIJs diagram. First, the ROM data of the PROM-related microcomputer according to the present invention is mapped to the extent that the ROM data of the conventional FROM-related microcomputer is shifted by an offset value.

オフセットレジスタ1g1に設定し九オフセット厘を1
.電源を落すとその内容が失われるから。
Set offset register 1g1 and set 9 offsets to 1
.. If the power is turned off, the contents will be lost.

波に、上記において薔き込んだROMデータを読みだす
ときは、読みだf前に、ROMデータ誓き込み時&fし
たオフセット[t−オフセットレジスタ181 tic
再び書き込まないと、正しいデータを読み出せないこと
になる。
When reading the ROM data written above, before reading the ROM data, set the offset [t-offset register 181 tic
If you do not write it again, you will not be able to read the correct data.

促って、上記オフセット値を却らな6人が薔き込!fi
たROMデータを正しく絖みだすことは困難であり、R
OMIC@き込1れたデータの保護に効果を奏する。
After prompting, 6 people decided to use the above offset value! fi
It is difficult to create the correct ROM data, and R
It is effective in protecting data stored in OMIC@.

最麦ニ、オフセットレジスタ(6)へのオフセット値の
設定方法を説明する。
Next, the method of setting the offset value to the offset register (6) will be explained.

オフセットレジスタに1本FROM内順マイコンのアド
レス空間の特定のアドレスにマツピングしている。オフ
セットレジスタへの書キ込みは、FROMへの書今込み
と同様、書き込みモードで行う。PROMff1斌マイ
コンを書き込みモードに設定した恢、アドレス入力バス
31Vcオフセツトレジスタ(6)のアドレス會、デー
タ入出力バス141 Kオフセット値を与え、データ書
き込みl1tlIa線・61にデータ11き込み信号を
与えるとオフセットレジスタ16)にオフセット値が誉
き込まれる。また、オフセットレジスタ161へのオフ
セット値の薔き込みは、上記した万云以外でも。
One offset register is mapped to a specific address in the address space of the microcomputer in the FROM. Writing to the offset register is performed in write mode, similar to writing to FROM. When the PROMff1 microcontroller is set to the write mode, the address input bus 31Vc offset register (6) is given the K offset value to the data input/output bus 141, and the data 11 write signal is given to the data write l1tlIa line 61. The offset value is written into the offset register 16). Also, the offset value can be written into the offset register 161 in ways other than those described above.

例えばオフセット[をポート入力によってオフセットレ
ジスタ161 K設定するような方法でもこの発明は効
果に奏する。
For example, the present invention is also effective in a method in which offset [ is set in the offset register 161K by port input.

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

以上のようにの発明によれば、オフセット値加算手段を
備えたので、処三者θ・FROMに誉き込筐れたデータ
を正しく読み出すことt−困難にし、ROMデータを保
護するという効果が侍られる。
According to the invention as described above, since the offset value addition means is provided, it is difficult to correctly read out the data stored in the processor θ/FROM, and the ROM data is protected. Attended.

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

第1図はこの発明の一実施例を示すFROM内蔵マイコ
ンを示す構成図、第2図は本発明と従来のFROM内蔵
マイコンにおけるROMデータのマツピングの比較を示
す図、@8図は従来のPROM内蔵iイコンを示す構成
図である。 図において、1.!lはP ROM 、 1lli7 
トL/ス入カバス、141はデータ入出力バス、+6)
は制御線、181 t’1 万7 セットレジスタ、+
71t:を加算器、lll+#′i内部アドレス入力バ
ス、191dPROM内蔵マイコンである。 尚、各図中、同一符号に同一、または相当部分子示す。
Fig. 1 is a block diagram showing a microcomputer with a built-in FROM that is an embodiment of the present invention, Fig. 2 is a diagram showing a comparison of ROM data mapping between the present invention and a conventional microcomputer with a built-in FROM, and Fig. 8 is a diagram showing a conventional PROM. FIG. 3 is a configuration diagram showing a built-in i icon. In the figure, 1. ! l is PROM, 1lli7
141 is a data input/output bus, +6)
is the control line, 181 t'10,007 set register, +
71t: is an adder, Ill+#'i internal address input bus, and a microcomputer with a built-in 191dPROM. In each figure, the same or corresponding parts are indicated by the same reference numerals.

Claims (1)

【特許請求の範囲】[Claims] PROMへのデータの書き込みと読みだしを行う時、P
ROM内蔵マイコン外部から与えられるアドレスにオフ
セット値を加算して、それをPROMのアドレスとする
オフセット値加算手段を備えたことを特徴とするPRO
M内蔵マイコン。
When writing and reading data to PROM, P
A PRO characterized in that it is equipped with an offset value addition means that adds an offset value to an address given from the outside of a microcomputer with a built-in ROM, and uses the offset value as an address of the PROM.
M built-in microcomputer.
JP2337494A 1990-11-30 1990-11-30 Microcomputer with built-in PROM Expired - Lifetime JPH0812655B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2337494A JPH0812655B2 (en) 1990-11-30 1990-11-30 Microcomputer with built-in PROM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2337494A JPH0812655B2 (en) 1990-11-30 1990-11-30 Microcomputer with built-in PROM

Publications (2)

Publication Number Publication Date
JPH04205486A true JPH04205486A (en) 1992-07-27
JPH0812655B2 JPH0812655B2 (en) 1996-02-07

Family

ID=18309181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2337494A Expired - Lifetime JPH0812655B2 (en) 1990-11-30 1990-11-30 Microcomputer with built-in PROM

Country Status (1)

Country Link
JP (1) JPH0812655B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6081663A (en) * 1983-10-11 1985-05-09 Nec Corp Microcomputer
JPS6083158A (en) * 1983-10-14 1985-05-11 Toshiba Corp One chip microcomputer
JPS60128547A (en) * 1983-12-16 1985-07-09 Nec Corp One chip microcomputer
JPS61273799A (en) * 1985-05-29 1986-12-04 Toshiba Corp One-chip microcomputer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6081663A (en) * 1983-10-11 1985-05-09 Nec Corp Microcomputer
JPS6083158A (en) * 1983-10-14 1985-05-11 Toshiba Corp One chip microcomputer
JPS60128547A (en) * 1983-12-16 1985-07-09 Nec Corp One chip microcomputer
JPS61273799A (en) * 1985-05-29 1986-12-04 Toshiba Corp One-chip microcomputer

Also Published As

Publication number Publication date
JPH0812655B2 (en) 1996-02-07

Similar Documents

Publication Publication Date Title
JPH04205486A (en) Microcomputer with built-in prom
JP2978278B2 (en) Terminal function setting circuit
JPS6022774B2 (en) Input/output terminal control method
JPH04237346A (en) Microprocessor system
JP2968636B2 (en) Microcomputer
JPS60121582A (en) Semiconductor information storage device
JPH04304540A (en) Semiconductor memory circuit
JPS62139035A (en) Buffer memory control circuit
JPS62184554A (en) Memory protection circuit
JPS62248047A (en) Processor
JPH04160458A (en) DMA controller peripheral circuit
JPH0484244A (en) Storage circuit
JPS629583A (en) Semiconductor memory
JPH04218846A (en) Store buffer
JPH0775002B2 (en) Microcomputer development equipment
JPH03191487A (en) Single chip microcomputer
JPS60217560A (en) disk device
JPS6134795A (en) Read only memory
JPS5914316A (en) Protecting controller
JPS63273291A (en) Magnetic disk device
JPS6180337A (en) Electronic computer
JPH025186A (en) Data transfer device
JPH10275113A (en) Storage device
JPS5819965A (en) Recording device
JPH03254965A (en) Memory bank switching device of printer