JPH05241966A - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH05241966A
JPH05241966A JP4045566A JP4556692A JPH05241966A JP H05241966 A JPH05241966 A JP H05241966A JP 4045566 A JP4045566 A JP 4045566A JP 4556692 A JP4556692 A JP 4556692A JP H05241966 A JPH05241966 A JP H05241966A
Authority
JP
Japan
Prior art keywords
write
memory
identification
area
central processing
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
JP4045566A
Other languages
Japanese (ja)
Inventor
Minoru Machida
稔 町田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP4045566A priority Critical patent/JPH05241966A/en
Publication of JPH05241966A publication Critical patent/JPH05241966A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To report the occurrence of abnormality by detecting the fact that write on an area on which the write of a RAM is inhibited is going to be performed due to the occurrence of malfunction, etc., by inhibiting the write in hardware manner and to prevent a program area from being destroyed. CONSTITUTION:This controller is comprised by providing a memory means 2 by which the holding of data stored by receiving power supply setting a built-in battery as a power source 11 is backed up, an identification means 7 to identify the presence/absence of access enable signal for a prescribed block out of plural separated blocks in block unit in the memory means 2, write means 6-1, 6-2, and 6-3 by which the write on the memory means 2 is controlled based on the identification result of the identification means 7, and a means 8 which reports the fact that the write is instructed while the identification means 7 displays access inhibition to a central processing means 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、内蔵された電池を電源
として電力供給を受けることにより、記憶したデータの
保持がバックアップされるメモリ手段を有するメモリ制
御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control device having memory means for backing up the retention of stored data by receiving power from a built-in battery as a power source.

【0002】[0002]

【従来の技術】従来、ホストコンピュータの中央処理装
置(CPU)と接続してデータの伝送を行う携帯型の電
子機器として、ハンディーターミナルが、商品の在庫管
理などに用いられている。
2. Description of the Related Art Conventionally, a handy terminal has been used as a portable electronic device that is connected to a central processing unit (CPU) of a host computer to transmit data and is used for inventory management of products.

【0003】図4は、従来のハンディーターミナルの実
施例であり、1は中央処理装置(CPU)でありマイク
ロプロセッサなどが該当する。2はRAM(ランダムア
クセスメモリ)であり、バックアップ用の電源11によ
って記憶内容が保持されるように構成されている。中央
処理装置1とRAM2の間はアドレスバス3とデータバ
ス4と読み出し制御線(RD)5と書き込み制御線(W
T)6で接続されている。メモリ2のアクセスはアドレ
スバス3で表示されるアドレスのメモリエリアに対し
て、読み出し又は書き込み制御線5又は6で示される動
作がデータバス4を介して実行される。つまり、正常動
作によらず、誤動作に起因する異常動作によって書き込
み制御線5に書き込みを実行すべき指示が出力されれ
ば、その時のアドレスバスで指定されたアドレスの内容
はデータバス2の内容に書き換えられてしまうことにな
る。
FIG. 4 shows an example of a conventional handy terminal. Reference numeral 1 is a central processing unit (CPU), which corresponds to a microprocessor or the like. Reference numeral 2 denotes a RAM (random access memory), which is configured such that the stored contents are held by the backup power supply 11. An address bus 3, a data bus 4, a read control line (RD) 5 and a write control line (W) are provided between the central processing unit 1 and the RAM 2.
T) 6 are connected. The memory 2 is accessed by executing the operation indicated by the read or write control line 5 or 6 via the data bus 4 with respect to the memory area of the address displayed by the address bus 3. In other words, if an instruction to execute writing is output to the write control line 5 due to an abnormal operation caused by a malfunction, not by a normal operation, the contents of the address designated by the address bus at that time will be the contents of the data bus 2. It will be rewritten.

【0004】[0004]

【発明が解決しようとする課題】このようにハンディー
ターミナル等のメモリの制御は、専らソウトウェア制御
によりプログラム領域等の書き換え禁止エリアと、デー
タ領域等の書き換えが許されているエリアとの識別を行
って誤書き換え禁止エリアへの書き込みを禁止して来
た。しかし、このような制御方式においては、外来雑音
などを原因とする機器の誤動作等によって生じるプログ
ラム領域への書き込みは防止出来ないという欠点があっ
た。そしてプログラム領域が一旦書き換えられると、プ
ログラムを再ロードしなければ以後の正常動作は得られ
なくなるという問題点を有していた。
As described above, in controlling the memory of a handy terminal or the like, the software control exclusively discriminates between the rewritable area such as the program area and the rewritable area such as the data area. Therefore, writing to the write-protected area has been prohibited. However, such a control method has a drawback in that writing to the program area caused by malfunction of the device due to external noise or the like cannot be prevented. Then, once the program area is rewritten, there is a problem that the normal operation thereafter cannot be obtained unless the program is reloaded.

【0005】また、前述した外来雑音には例えば静電気
放電等によって引き起こされるものもあり、雑音は何時
発生するかを予期することが極めて困難なものである。
Some of the external noises described above are caused by, for example, electrostatic discharge, and it is extremely difficult to predict when the noise will occur.

【0006】[0006]

【課題を解決するための手段】本発明は、内蔵された電
池を電源として電力供給を受けることにより記憶したデ
ータの保持がバックアップされる構成のメモリ手段を用
いてメモリ領域を所定のアドレスを単位として各ブロッ
クに区分する。
SUMMARY OF THE INVENTION According to the present invention, a memory means is configured to backup stored data by receiving power from an internal battery as a power source. Is divided into blocks.

【0007】そして区分されたブロックのサイズ毎に、
該メモリに対応させて書き込み許可のビットを識別する
識別用のフリップフロップを設ける。そしてアドレスバ
スに現わされるメモリのアドレス情報と識別用フリップ
フロップの状態とをハードウェアの回路で突き合わせる
ことにより、誤動作の発生で書き込みが禁止されたエリ
アへの書き込みが行なわれようとした時は、該書き込み
禁止エリアへの書き込み制御信号をゲートによって禁止
する。更にその禁止と共に、中央処理装置へ異常動作の
発生を通知するようにしたものである。
Then, for each size of the divided blocks,
An identification flip-flop for identifying the write enable bit is provided corresponding to the memory. Then, by comparing the address information of the memory appearing on the address bus with the state of the identification flip-flop by the hardware circuit, it is attempted to write to the area where the writing is prohibited due to the malfunction. At this time, the write control signal to the write prohibited area is prohibited by the gate. In addition to the prohibition, the central processing unit is notified of the occurrence of abnormal operation.

【0008】[0008]

【作用】本発明では、ソフトウェアによる制御のみでは
防止することが不可能な前述のプログラム領域などの書
き換えが、本来は禁止されているエリアへの書き込みが
行なわれようとした時にはハードウェア的にこれを検出
し、中央処理手段(CPU)に異常の発生を通知する事
によって機器の異常動作によるプログラム領域の破壊を
防止する作用がある。
According to the present invention, the above-mentioned rewriting of the program area, which cannot be prevented only by the control by software, is not performed by hardware when writing to an area which is originally prohibited. Is detected and the central processing means (CPU) is notified of the occurrence of an abnormality, thereby preventing the destruction of the program area due to the abnormal operation of the device.

【0009】[0009]

【実施例】図1は本発明の実施例であり、図4と同一の
符号で示されるものは共通なものである。図1におい
て、RAMはそれぞれエリアA,B,Cに対応する2−
1,2−2,2−3のように3つのエリアに区分され、
アドレスバス3とデータバス4と読み出し制御線5とは
共通に結線されている。ここで読み出し制御線5にアク
セスの許可の有無を反映させない理由は、たとえ読み出
しが実行されたとしても保持しているメモリの内容に影
響を及ぼさないからである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an embodiment of the present invention, and the same reference numerals as those in FIG. 4 are common. In FIG. 1, RAM corresponds to areas A, B and C, respectively 2-
It is divided into three areas like 1, 2, 2 and 2-3,
The address bus 3, the data bus 4, and the read control line 5 are commonly connected. The reason why the presence / absence of access permission is not reflected in the read control line 5 is that it does not affect the contents of the held memory even if the read is executed.

【0010】本実施例では、3ビットのフリップフロッ
プとアドレス情報のデコーダ及びゲート群で構成され、
メモリへの書き込みアクセスの許可/禁止を識別させる
識別手段と、メモリへの書き込み制御を行う機能ブロッ
クとして書き込み制御識別回路7を有する。この回路7
にはフリップフロップの状態設定を行うための入力とし
てデータバス4が接続されている。また、メモリエリア
のどの番地がアクセスされようとしているかを検出する
ための、デコーダ入力としてアドレスバス3が接続され
ている。更に他の入力として、中央処理装置1からクロ
ック信号線9と、書き込み制御用のWT信号を入力する
制御線6とが接続されている。書き込み制御識別回路7
の出力として本実施例では、RAMのエリアA(2−
1)への書き込み制御線6−1と、RAMのエリアB
(2−2)への書き込み制御線6−2と、RAMのエリ
アC(2−3)への書き込み制御線6−3が設けられて
いる。また中央処理装置1へ異常動作通知用のINT信
号を出力するために、異常動作通知信号線8が接続され
ている。
In this embodiment, a 3-bit flip-flop, an address information decoder and a gate group are provided,
It has an identification unit for identifying permission / prohibition of write access to the memory, and a write control identification circuit 7 as a functional block for performing write control on the memory. This circuit 7
A data bus 4 is connected as an input for setting the state of the flip-flop. An address bus 3 is connected as a decoder input for detecting which address of the memory area is about to be accessed. As another input, the clock signal line 9 from the central processing unit 1 and the control line 6 for inputting the WT signal for write control are connected. Write control identification circuit 7
In the present embodiment, the area A (2-
Write control line 6-1 to 1) and RAM area B
A write control line 6-2 to (2-2) and a write control line 6-3 to the area C (2-3) of the RAM are provided. An abnormal operation notification signal line 8 is connected to output an INT signal for notifying the abnormal operation to the central processing unit 1.

【0011】図2は図1に示した書き込み制御識別回路
7の具体的構成を示すブロック図である。図2において
符号71,72,73は3ビットのフリップフロップで
あり、中央処理装置1に接続されたデータバス4とクロ
ック信号線9から入力を受けて中央処理装置1の指示に
応じて任意の状態に設定される。
FIG. 2 is a block diagram showing a specific structure of the write control identification circuit 7 shown in FIG. In FIG. 2, reference numerals 71, 72 and 73 are 3-bit flip-flops, which receive inputs from the data bus 4 connected to the central processing unit 1 and the clock signal line 9 and which are arbitrary according to instructions from the central processing unit 1. Set to state.

【0012】中央処理装置1からデータバス4の入力D
0に“1”、入力D1に“1”、入力D2に“0”の信号
がそれぞれが与えられたとき、クロック信号線9から入
力したクロックが与えられると、フリップフロップ71
と72の出力Qには状態“1”が設定され、フリップフ
ロップ73の出力Qには状態“0”が設定される。各フ
リップフロップ71,72,73の出力Qはアンドゲー
ト74,75,76の一方の入力端にそれぞれ接続され
ており、アンドゲート74,75,76の他方の入力端
には書き込み制御線6が接続されている。アンドゲート
74〜76の出力は書き込み制御線6−1から6−3ま
でに対応しており、区分されたメモリブロックであるR
AMのエリアA〜C(2−1から2−3まで)に対応さ
せてそれぞれの書き込み制御信号となるように構成され
ている。このため、フリップフロップの出力Qが“1”
の状態になって接続されているメモリブロックのみに書
き込み許可の制御信号が伝達されることになる。つま
り、前述の状態では図1のRAMのエリアA(2−1)
とエリアB(2−2)のみが書き込みを許されたことに
なる。そして、RAMのエリアC(2−3)は図2のア
ンドゲート76によって書き込み制御線(6−3)が禁
止状態となっているので、誤動作によって該アドレスに
対する書き込みをするような状態が図1の中央処理装置
1から与えられたとしても、書き込みからプロテクトさ
れる。図2に示すインバータ77と78、及びアンドゲ
ート79,80,81で構成される論理回路は、アドレ
スデコーダと区分されたメモリのブロック単位を示す信
号であるフリップフロップの出力Qの一致を取るための
ものである。この例ではフリップフロップ73の出力Q
のみが状態“1”であり、誤動作によってRAMエリア
C(2−3)に対する書き込みがなされた場合にアンド
ゲート81の出力が“1”となり、オアゲート82とア
ンドゲート83を介してINT信号を異常動作通知信号
線8から出力し、図1の中央処理装置1に対して異常動
作が生じた事を通知する。
Input D of the data bus 4 from the central processing unit 1
"1" 0, "1" to the input D 1, when a signal of "0" to the input D 2 are given, respectively, when the clock input from the clock signal line 9 is provided, the flip-flop 71
A state "1" is set to the output Q of the flip flops 72 and 72, and a state "0" is set to the output Q of the flip-flop 73. The outputs Q of the flip-flops 71, 72, 73 are connected to one input ends of AND gates 74, 75, 76, respectively, and the write control line 6 is connected to the other input end of the AND gates 74, 75, 76. It is connected. The outputs of the AND gates 74 to 76 correspond to the write control lines 6-1 to 6-3, and are the divided memory blocks R.
The write control signals are configured to correspond to the areas A to C (2-1 to 2-3) of AM. Therefore, the output Q of the flip-flop is "1".
In this state, the write enable control signal is transmitted only to the connected memory block. That is, in the above-mentioned state, the area A (2-1) of the RAM in FIG.
Thus, only area B (2-2) is allowed to write. Since the write control line (6-3) in the area C (2-3) of the RAM is prohibited by the AND gate 76 in FIG. 2, a state where data is written to the address due to a malfunction is shown in FIG. Even if given from the central processing unit 1, the data is protected from writing. The logic circuit composed of the inverters 77 and 78 and AND gates 79, 80 and 81 shown in FIG. 2 is designed to match the output Q of the flip-flop which is a signal indicating a block unit of the memory divided from the address decoder. belongs to. In this example, the output Q of the flip-flop 73
Only the state is "1", and the output from the AND gate 81 becomes "1" when writing is performed to the RAM area C (2-3) due to a malfunction, and the INT signal becomes abnormal via the OR gate 82 and the AND gate 83. It is output from the operation notification signal line 8 to notify the central processing unit 1 of FIG. 1 that an abnormal operation has occurred.

【0013】図3は区分されたメモリブロック(RAM
のエリアA,B,C)とアドレス情報(An,An-1)の
関連を示したものである。
FIG. 3 shows a divided memory block (RAM).
Area A, B, C) and address information (A n , A n-1 ) are shown.

【0014】[0014]

【発明の効果】以上説明したように本発明のメモリ制御
装置ではメモリをブロック単位に区分し、書き込みを許
す部分と禁止する部分を識別する手段を設けることによ
り、誤動作の発生で禁止された領域に対する書き込み動
作が生じた時には、メモリをプロテクトすると共に、異
常動作が発生した事実を中央処理装置に通知することの
出来るメモリ制御装置を実現することが出来る。
As described above, in the memory control device of the present invention, the memory is divided into blocks, and the means for distinguishing between the write-allowed portion and the write-inhibited portion is provided, whereby the area prohibited due to the occurrence of malfunction occurs. It is possible to realize a memory control device capable of protecting the memory when a write operation to the memory occurs and notifying the central processing unit of the fact that the abnormal operation has occurred.

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

【図1】本発明のメモリ制御装置の回路ブロック図であ
る。
FIG. 1 is a circuit block diagram of a memory control device of the present invention.

【図2】図1に示した書き込み制御識別回路のブロック
図である。
2 is a block diagram of a write control identification circuit shown in FIG. 1. FIG.

【図3】メモリをブロック単位とした実アドレスとの相
関を表わす図である。
FIG. 3 is a diagram showing a correlation with a real address in which a memory is a block unit.

【図4】従来のメモリ制御装置の回路ブロック図であ
る。
FIG. 4 is a circuit block diagram of a conventional memory control device.

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

1 中央処理装置 2 RAM(メモリ) 3 データバス 4 アドレスバス 5 読み出し制御線 6 書き込み制御線 7 書き込み制御識別回路 8 異常動作通知信号線 1 Central Processing Unit 2 RAM (Memory) 3 Data Bus 4 Address Bus 5 Read Control Line 6 Write Control Line 7 Write Control Identification Circuit 8 Abnormal Operation Notification Signal Line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 内蔵された電池を電源として電力供給を
受ける事により記憶したデータの保持がバックアップさ
れるメモリ手段と、前記メモリ手段の複数に区分された
ブロック単位で所定のブロックに対するアクセス許可の
有無を識別するための識別手段と、前記識別手段の識別
結果に基づき前記メモリ手段への書き込みが制御される
書き込み手段と、前記識別手段がアクセス禁止を表示し
ている時に書き込みが指示された場合は中央処理手段に
その事実を通知する手段とを有する事を特徴とするメモ
リ制御装置。
1. A memory means for backing up the retention of stored data by receiving power supply from a built-in battery as a power source, and access permission to a predetermined block in block units divided into a plurality of the memory means. Identification means for identifying the presence / absence, writing means for controlling writing to the memory means based on the identification result of the identification means, and a case where writing is instructed while the identification means displays access prohibition And a means for notifying the central processing means of the fact.
JP4045566A 1992-03-03 1992-03-03 Memory controller Pending JPH05241966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4045566A JPH05241966A (en) 1992-03-03 1992-03-03 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4045566A JPH05241966A (en) 1992-03-03 1992-03-03 Memory controller

Publications (1)

Publication Number Publication Date
JPH05241966A true JPH05241966A (en) 1993-09-21

Family

ID=12722903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4045566A Pending JPH05241966A (en) 1992-03-03 1992-03-03 Memory controller

Country Status (1)

Country Link
JP (1) JPH05241966A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08194645A (en) * 1995-01-20 1996-07-30 Nec Software Ltd Access control system for virtual address spatial text part

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08194645A (en) * 1995-01-20 1996-07-30 Nec Software Ltd Access control system for virtual address spatial text part

Similar Documents

Publication Publication Date Title
US5056009A (en) IC memory card incorporating software copy protection
US6453417B1 (en) Microcontroller with secure signature extraction
US4298934A (en) Programmable memory protection logic for microprocessor systems
US6920566B2 (en) Secure system firmware by disabling read access to firmware ROM
US6114960A (en) Method and apparatus for an integrated security device providing for automatic disablement
US7054121B2 (en) Protection circuit for preventing unauthorized access to the memory device of a processor
JPH05241966A (en) Memory controller
US20190212930A1 (en) Data storage chip and data access method
JPS59231800A (en) Preventing device for foul writing to main memory
JPS6329859A (en) Memory protection circuit
JPH01123342A (en) Writing protecting circuit for memory
JPS62160554A (en) Device for preventing wrong access to memory
KR20020054519A (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
JPH01180656A (en) Memory protecting device
JPH02282847A (en) Memory protection system for personal computer
JPS63250753A (en) Memory access checking system
JPH0954710A (en) Ic card
JPH0336650A (en) Memory protecting system
JP2002215458A (en) Operating method and configuration for controlling access attribute of memory storage page
JPH04160583A (en) Single-chip microcomputer
JPH01287761A (en) Semiconductor storage device
JPS6270956A (en) Memory protecting device
JPH02224138A (en) Restarting system for information processor
JPH03176728A (en) Memory card
JPS61228544A (en) Write protection system