JPH0667985A - Semiconductor device - Google Patents

Semiconductor device

Info

Publication number
JPH0667985A
JPH0667985A JP4238860A JP23886092A JPH0667985A JP H0667985 A JPH0667985 A JP H0667985A JP 4238860 A JP4238860 A JP 4238860A JP 23886092 A JP23886092 A JP 23886092A JP H0667985 A JPH0667985 A JP H0667985A
Authority
JP
Japan
Prior art keywords
code
memory
protect
time
output
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
JP4238860A
Other languages
Japanese (ja)
Inventor
Koji Ariki
康志 有木
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 JP4238860A priority Critical patent/JPH0667985A/en
Publication of JPH0667985A publication Critical patent/JPH0667985A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To improve a defense function against the unfair reading of a memory in a semiconductor device. CONSTITUTION:The device is provided with a protector 3 having a previously-set code and outputting a protection release signal when the code and a protection release code is coincident and a timer 7 starting time measurement by the input of the protect release code. When a time measured by a timer 7 comes to a set time, an AND gate 8 is prohibited from outputting information from a memory 2 outside without regard to the judging result of coincidence/ noncoincidence by the protector 3.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、入力されたプロテク
ト解除コードが設定コードに一致するとき、メモリ内の
情報を出力可能にする半導体装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor device capable of outputting information in a memory when an input protection release code matches a set code.

【0002】[0002]

【従来の技術】図2は従来の半導体装置を示すブロック
図であり、図において、1は半導体装置、2はROM,
EPROM,EEPROMなどのメモリ、3は予め設定
されたコードを有するプロテクト装置、4は半導体スイ
ッチで、プロテクト装置3からのプロテクト解除信号に
よりゲートが開制御される。5a,5bは信号の入力ポ
ートおよび出力ポート、6a,6b,6c,6dは信号
線である。
2. Description of the Related Art FIG. 2 is a block diagram showing a conventional semiconductor device, in which 1 is a semiconductor device, 2 is a ROM,
A memory such as EPROM or EEPROM, 3 is a protect device having a preset code, 4 is a semiconductor switch, and a gate is open-controlled by a protect release signal from the protect device 3. Reference numerals 5a and 5b are signal input ports and output ports, and 6a, 6b, 6c and 6d are signal lines.

【0003】次に動作について説明する。半導体装置1
は通常はシングルチップで動作しているが、モードを変
更することにより、外部からのアクセスも可能になる。
すなわち、外部からメモリ2の情報を読み出す場合に
は、入力ポート5aより信号線6aを介してプロテクト
解除コードをプロテクト装置3に入力し、これが予め設
定されたコードと合致すれば、信号線6b上の信号がア
クティブになる。
Next, the operation will be described. Semiconductor device 1
Normally operates on a single chip, but by changing the mode, external access is also possible.
That is, when the information in the memory 2 is read from the outside, the protect release code is input from the input port 5a to the protect device 3 through the signal line 6a, and if this code matches the preset code, the signal on the signal line 6b is reached. Signal becomes active.

【0004】このため、半導体スイッチ4が開かれて、
メモリ2の内容が信号線6c,6dを介して出力ポート
5bより出力される。もし、上記プロテクトが解除され
なければ、半導体スイッチ4は閉じたままで、信号線6
cから信号線6dへのメモリ2内の信号は出力が阻止さ
れ、外部へメモリ2の内容が出力されることはない。
Therefore, the semiconductor switch 4 is opened,
The contents of the memory 2 are output from the output port 5b via the signal lines 6c and 6d. If the protection is not released, the semiconductor switch 4 remains closed and the signal line 6
The output of the signal in the memory 2 from c to the signal line 6d is blocked, and the contents of the memory 2 are not output to the outside.

【0005】[0005]

【発明が解決しようとする課題】従来の半導体装置は以
上のように構成されているので、仮に、複数回のパスワ
ードを連続的に入力した場合には、偶然に予め設定され
たコードと合致し、プロテクト装置3によるプロテクト
解除が可能になる場合があり、メモリ2内の情報が外部
へ出力されてしまうなどの問題点があった。
Since the conventional semiconductor device is configured as described above, if a password is continuously input a plurality of times, it will accidentally match a preset code. In some cases, the protection device 3 may be able to release the protection, and the information in the memory 2 may be output to the outside.

【0006】この発明は上記のような問題点を解消する
ためになされたもので、もし、誤ったプロテクト解除コ
ード入力があった場合に、一定時間以内に正しいプロテ
クト解除コードの入力がなければ、メモリ内の情報を外
部へ出力することを禁止できる半導体装置を得ることを
目的とする。
The present invention has been made in order to solve the above problems, and if an incorrect protect release code is input, if the correct protect release code is not input within a certain time, An object of the present invention is to obtain a semiconductor device that can prohibit the output of information in the memory to the outside.

【0007】[0007]

【課題を解決するための手段】この発明に係る半導体装
置は、情報を記憶しているメモリと、予め設定されたコ
ードを持ち、該コードと外部から入力されたプロテクト
解除コードとが合致したとき、プロテクト解除信号を出
力するプロテクト装置と、上記プロテクト解除コードの
入力によって時間測定を開始する時間測定装置とを備
え、該時間測定装置により測定された時間が設定時間を
経過すると、上記プロテクト装置による上記合致および
不合致の判定結果に拘らず、アンドゲートに、上記メモ
リからの情報の外部への出力を禁止させるようにしたも
のである。
A semiconductor device according to the present invention has a memory storing information and a preset code, and when the code matches a protection release code input from the outside. A protect device for outputting a protect release signal and a time measuring device for starting time measurement by inputting the protect release code, and when the time measured by the time measuring device exceeds a set time, the protect device operates. The AND gate is prohibited from outputting the information from the memory to the outside regardless of the determination result of the match or the mismatch.

【0008】[0008]

【作用】この発明における半導体装置は、プロテクト解
除コードの入力後所定時間を経過すると、アンドゲート
によって、プロテクト装置の出力いかんに拘らず、メモ
リからの情報の出力を阻止する。
In the semiconductor device according to the present invention, when a predetermined time elapses after the protection release code is input, the AND gate prevents the output of information from the memory regardless of the output of the protection device.

【0009】[0009]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図について説明
する。図1において、符号1〜6については、図2に示
したものと同様であるため、その重複する説明を省略す
る。7は予め設定された時間を測定する時間測定装置と
してのタイマで、信号線6aへの外部入力によりセット
され、信号線6bへのプロテクト装置3の出力信号によ
りリセットされる。
Example 1. An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, reference numerals 1 to 6 are the same as those shown in FIG. 2, and thus their duplicated description will be omitted. Reference numeral 7 is a timer as a time measuring device for measuring a preset time, which is set by an external input to the signal line 6a and reset by the output signal of the protector 3 to the signal line 6b.

【0010】また、上記時間測定を終了した場合は、タ
イマ7の出力信号は信号線6eにおいて“L”→“H”
に立ち上がる。8はアンドゲートで、タイマ7の出力信
号の立ち上がりにより、プロテクト3の出力信号の出力
を禁止し、信号線6f上の信号が“L”の状態に固定さ
れるようにしてある。
When the time measurement is completed, the output signal of the timer 7 is "L" → "H" on the signal line 6e.
Stand up. An AND gate 8 inhibits the output of the output signal of the protect 3 by the rising of the output signal of the timer 7, and fixes the signal on the signal line 6f to the "L" state.

【0011】次に動作について説明する。半導体装置1
は、通常、シングルチップで動作しているが、モードを
変更することにより、外部からのアクセスも可能にな
る。いま、外部よりメモリ2の情報を読み出す場合に
は、入力ポート5aよりプロテクト解除コードを入力
し、メモリ2の内容を出力ポート5bより出力する。
Next, the operation will be described. Semiconductor device 1
Normally operates on a single chip, but can be accessed from the outside by changing the mode. Now, when reading the information of the memory 2 from the outside, the protect release code is input from the input port 5a and the content of the memory 2 is output from the output port 5b.

【0012】すなわち、上記入力ポート5aからプロテ
クト解除コードが入力されると、タイマ7は時間測定を
開始する。もし、このプロテクト解除コードが予め設定
されたコードと合致していれば、プロテクト装置3の出
力信号は“H”になり、このときタイマ7の出力レベル
は未だ“L”であるため半導体スイッチ4が開かれ、信
号線6b,6cを介して出力ポート5bへメモリ2の内
容が出力される。また、この時、プロテクト装置3の出
力によりタイマ7はリセットされる。
That is, when the protection release code is input from the input port 5a, the timer 7 starts time measurement. If this protection release code matches the preset code, the output signal of the protection device 3 becomes "H", and the output level of the timer 7 is still "L" at this time, so the semiconductor switch 4 Is opened, and the contents of the memory 2 are output to the output port 5b via the signal lines 6b and 6c. At this time, the timer 7 is reset by the output of the protection device 3.

【0013】一方、入力ポート5aから誤入力があった
場合には、再度、この入力ポート5aからのプロテクト
解除コードの入力が要求されるが、タイマ7は時間測定
を実行し続け、ある一定の時間が経過すると、タイマ7
の出力が“H”に立ち上がり、それ以後、プロテクト解
除コードが上記の予め設定されたコードに合致して、プ
ロテクト装置3の出力信号が“H”になっても、半導体
スイッチ4は閉じたままとなり、従ってメモリ2内の情
報は外部へ出力されることはない。
On the other hand, if there is an erroneous input from the input port 5a, the input of the protect release code from the input port 5a is again required, but the timer 7 continues to measure the time and keeps a certain value. When time passes, timer 7
Output rises to "H", and thereafter, even if the protection release code matches the preset code and the output signal of the protection device 3 becomes "H", the semiconductor switch 4 remains closed. Therefore, the information in the memory 2 is not output to the outside.

【0014】実施例2.なお、上記の実施例では時間測
定装置としてタイマ7を用いた場合について説明した
が、容量と抵抗からなる積分回路を用いてもよく、上記
実施例と同様の効果を奏する。
Example 2. In the above embodiment, the case where the timer 7 is used as the time measuring device has been described, but an integrating circuit composed of a capacitor and a resistor may be used, and the same effect as that of the above embodiment can be obtained.

【0015】[0015]

【発明の効果】以上のように、この発明によれば、情報
を記憶しているメモリと、予め設定されたコードを持
ち、該コードと外部から入力されたプロテクト解除コー
ドとが合致したとき、プロテクト解除信号を出力するプ
ロテクト装置と、上記プロテクト解除コードの入力によ
って時間測定を開始する時間測定装置とを備え、該時間
測定装置により測定された時間が設定時間を経過する
と、上記プロテクト装置による上記合致および不合致の
判定結果に拘らず、アンドゲートに、上記メモリからの
情報の外部への出力を禁止させるように構成したので、
上記メモリ内の情報を、プロテクトの不正解除によって
出力されるのをさらに確実に防止でき、これを簡単な回
路構成でローコストに実現できるものが得られる効果が
ある。
As described above, according to the present invention, when a memory for storing information and a preset code are provided and the code and the protect release code inputted from the outside are matched, A protect device for outputting a protect release signal and a time measuring device for starting time measurement by inputting the protect release code are provided, and when the time measured by the time measuring device exceeds a set time, the protect device operates as described above. Since the AND gate is configured to prohibit the output of the information from the memory to the outside regardless of the determination result of the match and the mismatch,
There is an effect that it is possible to more reliably prevent the information in the memory from being output by unauthorized release of protection, and to realize this with a simple circuit configuration at low cost.

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

【図1】この発明の一実施例による半導体装置を示すブ
ロック図である。
FIG. 1 is a block diagram showing a semiconductor device according to an embodiment of the present invention.

【図2】従来の半導体装置を示すブロック図である。FIG. 2 is a block diagram showing a conventional semiconductor device.

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

2 メモリ 3 プロテクト装置 7 タイマ(時間測定装置) 8 アンドゲート 2 memory 3 protect device 7 timer (time measuring device) 8 and gate

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 情報を記憶しているメモリと、予め設定
されたコードを持ち、該コードと外部から入力されたプ
ロテクト解除コードとが合致したとき、プロテクト解除
信号を出力するプロテクト装置と、上記プロテクト解除
コードの入力によって時間測定を開始する時間測定装置
と、該時間測定装置により測定された時間が設定時間を
経過すると、上記プロテクト装置による上記合致および
不合致の判定結果に拘らず、上記メモリからの情報の外
部への出力を禁止するアンドゲートとを備えた半導体装
置。
1. A protect device having a memory for storing information, a preset code, and which outputs a protect release signal when the code matches a protect release code inputted from the outside, A time measuring device that starts time measurement by inputting a protection release code, and when the time measured by the time measuring device has passed a set time, the memory is irrelevant regardless of the result of the match or non-match determination by the protect device. A semiconductor device including an AND gate that prohibits output of information from the outside to the outside.
JP4238860A 1992-08-17 1992-08-17 Semiconductor device Pending JPH0667985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4238860A JPH0667985A (en) 1992-08-17 1992-08-17 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4238860A JPH0667985A (en) 1992-08-17 1992-08-17 Semiconductor device

Publications (1)

Publication Number Publication Date
JPH0667985A true JPH0667985A (en) 1994-03-11

Family

ID=17036339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4238860A Pending JPH0667985A (en) 1992-08-17 1992-08-17 Semiconductor device

Country Status (1)

Country Link
JP (1) JPH0667985A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014021946A (en) * 2012-07-24 2014-02-03 Casio Comput Co Ltd System lsi and program erasure method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014021946A (en) * 2012-07-24 2014-02-03 Casio Comput Co Ltd System lsi and program erasure method
US9372639B2 (en) 2012-07-24 2016-06-21 Casio Computer Co., Ltd. System LSI capable of erasing internally stored program and program erasing method

Similar Documents

Publication Publication Date Title
KR940005784B1 (en) Security circuit
US5465349A (en) System for monitoring abnormal integrated circuit operating conditions and causing selective microprocessor interrupts
US4523271A (en) Software protection method and apparatus
US5237616A (en) Secure computer system having privileged and unprivileged memories
US9111097B2 (en) Secure execution architecture
KR970059943A (en) Communication
JPS6237419B2 (en)
JPH06500189A (en) How to protect integrated circuits from unauthorized use
JPH0628264A (en) Semiconductor storage device and its access method
KR0146067B1 (en) Rom data protective method and apparatus
KR960012024A (en) Nonvolatile semiconductor memory
JPH0667985A (en) Semiconductor device
JP2000148594A (en) Read protection circuit for rom data
US6222398B1 (en) Voltage detecting circuit
KR940009845A (en) Security circuit
JPH02138635A (en) Protecting circuit for program data secrecy of microcomputer containing eprom
JPS62194592A (en) Ic card
JPS63279341A (en) Memory integrated circuit
JPH03257557A (en) Microcomputer
JPS60245057A (en) One-chip microcomputer
JPH09146845A (en) Privacy protection mechanism for nonvolatile semiconductor memory
JPH0373013B2 (en)
JPH0744463A (en) One-chip microcomputer incorporating eeprom
JPH04205239A (en) One chip microcomputer
JPS58200345A (en) One-chip microcomputer