JPH04171552A - Microcomputer containing p-rom - Google Patents

Microcomputer containing p-rom

Info

Publication number
JPH04171552A
JPH04171552A JP2300062A JP30006290A JPH04171552A JP H04171552 A JPH04171552 A JP H04171552A JP 2300062 A JP2300062 A JP 2300062A JP 30006290 A JP30006290 A JP 30006290A JP H04171552 A JPH04171552 A JP H04171552A
Authority
JP
Japan
Prior art keywords
rom
circuit
mode
program
address
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
JP2300062A
Other languages
Japanese (ja)
Inventor
Yoshiaki Makii
牧井 義明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2300062A priority Critical patent/JPH04171552A/en
Publication of JPH04171552A publication Critical patent/JPH04171552A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To protect the program data stored in a P-ROM and to secure the secrecy of software to the outsiders by inhibiting selectively the verifying function of the P-ROM with use of the data stored in a specific memory cell. CONSTITUTION:A P-ROM 1 is set in a program mode and a bus changeover switch A10 is switched. Thus the customer program data are written into the P-ROM 1 via program data input/output port 9. Then the prescribed specific data is written into a specific memory cell 2 of the P-ROM 1. The cell 2 is addressed and read out by an address qualifying circuit 4 only when a P-ROM mode decoder 7 is set in an inhibition state and then decoded by an instruction decoder 6. Thus a latch signal 16 of a latch circuit 11 is obtained. In other words, the circuit 11 holds an inhibition signal as long as the specific data is written in the cell 2. Thus the secrecy of the data stored in the P-ROM 1 can be secured.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、P−ROM内蔵マイクロコンピュータに関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer with a built-in P-ROM.

〔従来の技術〕[Conventional technology]

通常、P−ROMを内蔵したマイクロコンピュータはP
−ROMライタによりプログラムデータの書き込み及び
ベリファイを行なうため、P−ROMプログラムデータ
を格納あるいは格納したプログラムデータの入出力を行
うためのプログラムデータ入出力ポート及びP−ROM
のプログラムモードを設定する為のP−ROMモード設
定ポートを備えている。
Normally, a microcomputer with a built-in P-ROM has a P-ROM.
- Program data input/output port and P-ROM for storing P-ROM program data or inputting/outputting stored program data in order to write and verify program data by a ROM writer
It is equipped with a P-ROM mode setting port for setting the program mode.

第4図は、上述のような機能を備えた従来のP−ROM
内蔵マイクロコンピュータに搭載されたP−ROMとそ
の周辺回路の基本的な構成を模式的に示すブロック図で
ある。同図においてP’−ROM1は、アドレスデコー
ダ3によりアドレッシングされたプログラムデータがバ
ス切り換えスイッチAIOを介して命令デコーダ6並び
にプログラムデータ入出力ポート9に接続されており、
P−ROMのアドレス情報を発生するプログラムカウン
タ5の出力は、アドレスデコーダ3に入力されている。
Figure 4 shows a conventional P-ROM with the above-mentioned functions.
FIG. 2 is a block diagram schematically showing the basic configuration of a P-ROM and its peripheral circuits installed in a built-in microcomputer. In the figure, the P'-ROM 1 has program data addressed by an address decoder 3 connected to an instruction decoder 6 and a program data input/output port 9 via a bus changeover switch AIO.
The output of the program counter 5 which generates P-ROM address information is input to the address decoder 3.

またP−ROMモード設定ポート8は、P−ROMモー
ドデコーダ7に接続され、P−ROMモードデコーダ7
は書き込み信号PGM或はプログラムベリファイ信号V
ER等のP−ROM制御信号を発生させる。
Further, the P-ROM mode setting port 8 is connected to the P-ROM mode decoder 7.
is write signal PGM or program verify signal V
Generates P-ROM control signals such as ER.

このようなマイクロコンピュータに内蔵されたP−RO
M14は、P−ROMモード設定ポート8にデータを入
力することにより、バス切り替えスイッチ10が切り替
わり、プログラムデータ入出力ポート9を介したP−R
OMへのデータ入力または出力を行うことができるよう
に構成されている。
P-RO built into such a microcomputer
By inputting data to the P-ROM mode setting port 8, the M14 switches the bus changeover switch 10, and the M14 inputs data to the P-ROM mode setting port 8.
It is configured to be able to input or output data to the OM.

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

上述のように、従来のこの種のマイクロコンピュータで
は、モードを切り換えることによってP−ROMに格納
されるデータの入出力を容易に行うことができる。しか
しながら、このように取り扱い上の便宜を図った為に、
P−ROMライタを使用して動作モードをベリファイモ
ードに設定することによって、第3者がP−ROMに格
納したプログラムデータを容易に読みだすことができる
。従って、P−ROMに格納されたデータに対する機密
保護が不完全であるという問題がある。
As described above, in this type of conventional microcomputer, data stored in the P-ROM can be easily input/output by switching the mode. However, due to this convenience in handling,
By setting the operation mode to verify mode using the P-ROM writer, a third party can easily read the program data stored in the P-ROM. Therefore, there is a problem in that security protection for data stored in the P-ROM is incomplete.

本発明の目的は、P’−ROMに格納されたデータの機
密保全なP’−ROM内蔵マイクロコンピュータを提供
することにある。
An object of the present invention is to provide a microcomputer with a built-in P'-ROM that maintains the confidentiality of data stored in the P'-ROM.

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

本発明のP−ROM内蔵マイクロコンピュータは、P−
ROM回路と、前記P’−ROM回路への書き込み及び
ベリファイ処理を行うためのプログラムデータ入出力ポ
ートと、前記P−ROM回路のプログラムモードを設定
する為のP−ROMモード設定ポートとを備えたP−R
OM内蔵マイクロコンピュータにおいて、前記P−RO
Mモード設定ポートから入力されたデータに応答してP
−ROMモード制御信号を出力するP−ROMモードデ
コーダと、前記P’−ROMモードデコーダ出力信号の
うちインヒビット信号を記憶するラッチ回路と、前記P
−ROM回路のアドレッシングを行うアドレス生成手段
と、前記アドレス生成手段出力信号を入力し前記ラッチ
回路出力信号によりP−ROMアドレス信号の修飾を行
うアドレス修飾回路と、前記P−ROM回路の特定アド
レスに割り付けられて前記ラッチ回路の制御を行う所定
メモリセルとを有することを特徴とする。
The P-ROM built-in microcomputer of the present invention has a P-ROM built-in microcomputer.
A ROM circuit, a program data input/output port for writing to the P'-ROM circuit and verify processing, and a P-ROM mode setting port for setting a program mode of the P-ROM circuit. P-R
In the microcomputer with built-in OM, the P-RO
P in response to data input from the M mode setting port
- a P-ROM mode decoder that outputs a ROM mode control signal; a latch circuit that stores an inhibit signal among the P'-ROM mode decoder output signals;
- an address generation means for addressing the ROM circuit; an address modification circuit for inputting the address generation means output signal and modifying the P-ROM address signal by the latch circuit output signal; and a predetermined memory cell allocated to control the latch circuit.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。第1図
は、本発明に係るP−ROM内蔵マイクロコンピュータ
のP−ROMおよびその周辺回路の具体的な構成例を示
すブロック図である。
Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram showing a specific example of the configuration of a P-ROM and its peripheral circuits in a microcomputer with a built-in P-ROM according to the present invention.

まず構成について説明する。第1図においてP−ROM
1は特定なメモリセル部2を有し、アドレスデコーダ3
によりアドレッシングされたプログラムデータはバス切
り換えスイッチAIOを介して命令デコーダ6及びプロ
グラムデータ入出力ポートに接続されている。
First, the configuration will be explained. In Figure 1, P-ROM
1 has a specific memory cell section 2 and an address decoder 3.
The program data addressed by is connected to the instruction decoder 6 and the program data input/output port via the bus changeover switch AIO.

P’−ROMのアドレス情報を発生するプログラムカウ
ンタ5の出力はアドレス修飾回路4に入力され、アドレ
ス修飾回路4の出力は前記アドレスデコーダ3に入力さ
れる。一方、P−ROMのプログラムモードを設定する
為のP−ROMモード設定ポート8は、P−ROMモー
ドデコーダ7に接続され、P−ROMモードデコーダ7
は書き込み信号PGM或はプラグラムベリファイ信号V
ER等のP−ROM制御信号を発生させる。NOR回路
12に書き込み信号PGM及びプログラムベリファイ信
号VERを入力し、プログラム禁止信号であるプログラ
ムインヒビット信号INHを発生させる。またNOR回
路12の出力はラッチ回路11に入力され、その出力は
アドレス修飾回路に入力される。
The output of the program counter 5 that generates address information of the P'-ROM is input to an address modification circuit 4, and the output of the address modification circuit 4 is input to the address decoder 3. On the other hand, the P-ROM mode setting port 8 for setting the program mode of the P-ROM is connected to the P-ROM mode decoder 7.
is the write signal PGM or program verify signal V
Generates P-ROM control signals such as ER. A write signal PGM and a program verify signal VER are input to the NOR circuit 12, and a program inhibit signal INH, which is a program inhibit signal, is generated. Further, the output of the NOR circuit 12 is input to the latch circuit 11, and the output thereof is input to the address modification circuit.

また、命令デコーダ6の出力するコントロール信号の内
、特定のひとつをラッチ回路11のラッチ制御信号とす
る。なお、アドレス修飾回路4はプログラムカウンタ5
の出力とラッチ回路11の出力の論理和信号を出力する
Also, one specific one of the control signals output from the instruction decoder 6 is used as a latch control signal for the latch circuit 11. Note that the address modification circuit 4 is a program counter 5.
A logical OR signal of the output of the latch circuit 11 and the latch circuit 11 is output.

次にP−ROM内蔵マイクロコンピュータをP−ROM
ライタ装置にてベリファイする場合の手順を説明する。
Next, the P-ROM built-in microcomputer is
The procedure for verifying with the writer device will be explained.

第2図はP−ROM内蔵マイクロコンピュータをP−R
OMライタ装置にてベリファイする場合の通常の流れを
示す。まず初めに、プログラムカウンタを初期化する為
、0クリアモードを設定する。その後P−ROMモード
信号の誤発生を防ぐためのプログラム・インヒビットモ
ードを経由してプログラム・ベリファイモードとする。
Figure 2 shows the microcomputer with built-in P-ROM.
The normal flow when verifying with the OM writer device is shown. First, in order to initialize the program counter, set the 0 clear mode. Thereafter, the program enters the program verify mode via the program inhibit mode to prevent erroneous generation of the P-ROM mode signal.

このモードにてプログラムカウンタをひとつずつインク
リメントしていくことにより、顧客P−ROM領域すべ
てのプログラムデータのチエツクが完了する。その後プ
ログラム・インヒビットモード、P−ROMアドレOク
リアモードを経由してベリファイ動作が完了する。
By incrementing the program counter one by one in this mode, checking of the program data in all the customer P-ROM areas is completed. Thereafter, the verify operation is completed via the program inhibit mode and the P-ROM address O clear mode.

次に実際の動作を説明する。まずP−ROMモードをプ
ログラムモードとし、バス切り換えスイッチAIOを切
り換えることにより、顧客プログラムデータをプログラ
ムデータ入出力ポート9を介してP−ROMIに書き込
む。書き込まれたプログラムの評価終了後、P−ROM
l内の特定メモリセル2に予め定められた特定データを
書き込む、なおこの特定メモリセル2はP’−ROMモ
ードデコーダ7がインヒビット状態の時のみアドレス修
飾回路4によりアドレッシングされ読み出される。この
読み出されたデータは命令デコーダ6によりデコードさ
れラッチ回Nllのラッチ信号17となる。
Next, the actual operation will be explained. First, the P-ROM mode is set to the program mode, and by switching the bus changeover switch AIO, customer program data is written into the P-ROMI via the program data input/output port 9. After evaluating the written program, the P-ROM
Predetermined specific data is written into a specific memory cell 2 within 1. Note that this specific memory cell 2 is addressed and read by the address modification circuit 4 only when the P'-ROM mode decoder 7 is in the inhibited state. This read data is decoded by the instruction decoder 6 and becomes a latch signal 17 of latch times Nll.

即ち、本動作によりプログラム・インヒビットモードの
際、所定メモリセル2に特定データが書き込すれていれ
ば、このデータに従ってラッチ回路11がインヒビット
信号を保留する為、これ以降はP−ROMモードが切り
替わってもアドレス修飾回路4によりアドレスが固定さ
れることとなる。従って、実質的にベリファイ動作が不
可能となる。
That is, if specific data is written to a predetermined memory cell 2 in the program inhibit mode by this operation, the latch circuit 11 suspends the inhibit signal according to this data, so that the P-ROM mode is switched from then on. However, the address is fixed by the address modification circuit 4. Therefore, verify operation becomes virtually impossible.

第3図は、本発明に係るP−ROM内蔵マイクロコンピ
ュータの他の実施例の構造を示すブロック図である。本
実施例のマイクロコンピュータに内蔵されたP−ROM
は、P−ROMのアドレスを外部より入力するアドレス
データ入力ポート18、及びプログラムカウンタ5とア
ドレスデータ入力ポート18との切り換えスイッチBを
除けば、第1図に示した実施例と同じ構成を有している
FIG. 3 is a block diagram showing the structure of another embodiment of the P-ROM built-in microcomputer according to the present invention. P-ROM built into the microcomputer of this embodiment
has the same configuration as the embodiment shown in FIG. 1, except for the address data input port 18 for inputting the P-ROM address from the outside, and the changeover switch B between the program counter 5 and the address data input port 18. are doing.

本実施例では、P−ROM書き込みモード又はベリファ
イモード時、バス切り換えスイッチB17によりプログ
ラムカウンタが切り放され、P−ROMのプログラムア
ドレスは外部よりアドレスデータ入力ポート18を介し
て挿入されるマイコンの場合である。基本的な動作は第
1の実施例と同様である。
In this embodiment, in the P-ROM write mode or verify mode, the program counter is turned off by the bus changeover switch B17, and the program address of the P-ROM is inserted from the outside through the address data input port 18. It is. The basic operation is the same as the first embodiment.

即ち、インヒビブトモード時に特定メモリセル部2に格
納されたデータを参照しその状態によりインヒビット信
号を保留することでアドレスデータを固定し、実質的に
以降のベリファイを禁止することが可能となる。
That is, in the inhibit mode, by referring to the data stored in the specific memory cell unit 2 and suspending the inhibit signal depending on the state, it is possible to fix the address data and virtually prohibit subsequent verification. .

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

以上説明したように、本発明に係るP’−ROM内蔵マ
イクロコンピュータは、特定のメモリセルに格納された
データにより、選択的にP−ROMベリファイ機能を禁
止することができる。従って、P−ROM内に格納され
たプログラムデータの保護が可能となり、第3者に対し
てソフトウェアの機密を保全することができる。
As described above, the P'-ROM built-in microcomputer according to the present invention can selectively inhibit the P-ROM verify function based on data stored in a specific memory cell. Therefore, the program data stored in the P-ROM can be protected, and the confidentiality of the software can be maintained from third parties.

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

第1図は本発明の一実施例を示すブロック図、第2図は
P−ROMライタによるプログラムベリファイの具体的
なフローを゛示す図、第3図は本発明の他の実施例を示
すブロック図、第4図は従来例を示すブロック図である
。 1・・・P−ROM、2・・・特定メモリセル部、3・
・・アドレスデコーダ、4・・・アドレス修飾回路、5
・・・プログラムカウンタ、6・・・インストラクショ
ン・デコーダ、7・・P−ROMモードデコーダ、8・
・P−ROMモード設定ポート、9・・・プログラムデ
ータ入出力ポート、10・・・バス切り換えスイッチA
、11・・・ラッチ回路、12・・・NOR回路、1B
、14.15・・・OR回路、16・・・ラッチ制御信
号、17・・・バス切り換えスイッチB、18・・・ア
ドレスデータ入力ポート。
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a diagram showing a specific flow of program verification by a P-ROM writer, and FIG. 3 is a block diagram showing another embodiment of the present invention. FIG. 4 is a block diagram showing a conventional example. 1...P-ROM, 2...Specific memory cell section, 3.
...Address decoder, 4...Address modification circuit, 5
...Program counter, 6.Instruction decoder, 7..P-ROM mode decoder, 8.
・P-ROM mode setting port, 9...Program data input/output port, 10...Bus selection switch A
, 11...Latch circuit, 12...NOR circuit, 1B
, 14.15...OR circuit, 16...Latch control signal, 17...Bus changeover switch B, 18...Address data input port.

Claims (1)

【特許請求の範囲】[Claims] P−ROM回路と、前記P−ROM回路への書き込み及
びベリファイ処理を行うためのプログラムデータ入出力
ポートと、前記P−ROM回路のプログラムモードを設
定する為のP−ROMモード設定ポートとを備えたP−
ROM内蔵マイクロコンピュータにおいて、前記P−R
OMモード設定ポートから入力されたデータに応答して
P−ROMモード制御信号を出力するP−ROMモード
デコーダと、前記P−ROMモードデコーダ出力信号の
うちインヒビット信号を記憶するラッチ回路と、前記P
−ROM回路のアドレッシングを行うアドレス生成手段
と、前記アドレス生成手段出力信号を入力し前記ラッチ
回路出力信号によりP−ROMアドレス信号の修飾を行
うアドレス修飾回路と、前記P−ROM回路の特定アド
レスに割り付けられて前記ラッチ回路の制御を行う所定
メモリセルとを有することを特徴とするP−ROM内蔵
マイクロコンピュータ。
A P-ROM circuit, a program data input/output port for writing and verifying the P-ROM circuit, and a P-ROM mode setting port for setting the program mode of the P-ROM circuit. TaP-
In the microcomputer with a built-in ROM, the P-R
a P-ROM mode decoder that outputs a P-ROM mode control signal in response to data input from an OM mode setting port; a latch circuit that stores an inhibit signal among the P-ROM mode decoder output signals;
- an address generation means for addressing the ROM circuit; an address modification circuit for inputting the address generation means output signal and modifying the P-ROM address signal by the latch circuit output signal; A microcomputer with a built-in P-ROM, comprising a predetermined memory cell allocated to control the latch circuit.
JP2300062A 1990-11-06 1990-11-06 Microcomputer containing p-rom Pending JPH04171552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2300062A JPH04171552A (en) 1990-11-06 1990-11-06 Microcomputer containing p-rom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2300062A JPH04171552A (en) 1990-11-06 1990-11-06 Microcomputer containing p-rom

Publications (1)

Publication Number Publication Date
JPH04171552A true JPH04171552A (en) 1992-06-18

Family

ID=17880240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2300062A Pending JPH04171552A (en) 1990-11-06 1990-11-06 Microcomputer containing p-rom

Country Status (1)

Country Link
JP (1) JPH04171552A (en)

Similar Documents

Publication Publication Date Title
US5237616A (en) Secure computer system having privileged and unprivileged memories
JP3461234B2 (en) Data protection circuit
US6088262A (en) Semiconductor device and electronic equipment having a non-volatile memory with a security function
KR940020228A (en) Data storage
US20030120945A1 (en) Program writable IC card and method thereof
JPH04171552A (en) Microcomputer containing p-rom
JP3086052B2 (en) EEPROM
JP2000181802A (en) Semiconductor storage device
JPH0922385A (en) Data security device and method
US5638316A (en) Memory apparatus
JPH04256145A (en) Integrated circuit device
JPH0520204A (en) Semiconductor device
JPH05282472A (en) Microcomputer and card incorporating the same
US20010052079A1 (en) Program writable IC card and method thereof
JPH04367045A (en) Semiconductor storage device
JPH08292915A (en) Integrated circuit device having built-in nonvolatile memory
JPH05324486A (en) Storage device
KR950003384Y1 (en) Software protect apparatus
JPH04304540A (en) Semiconductor memory circuit
JPH04347788A (en) Ic memory card
JPS63279341A (en) Memory integrated circuit
JPH02138635A (en) Protecting circuit for program data secrecy of microcomputer containing eprom
JPH04139552A (en) Memory card
JPH02148242A (en) P-rom built-in microcomputer
JPS62184554A (en) Memory protection circuit