JPH05324306A - Electronic equipment - Google Patents

Electronic equipment

Info

Publication number
JPH05324306A
JPH05324306A JP14809492A JP14809492A JPH05324306A JP H05324306 A JPH05324306 A JP H05324306A JP 14809492 A JP14809492 A JP 14809492A JP 14809492 A JP14809492 A JP 14809492A JP H05324306 A JPH05324306 A JP H05324306A
Authority
JP
Japan
Prior art keywords
rom
additional
switching
area
original
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
JP14809492A
Other languages
Japanese (ja)
Inventor
Akihiro Nozawa
明弘 野沢
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.)
Star Micronics Co Ltd
Original Assignee
Star Micronics Co Ltd
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 Star Micronics Co Ltd filed Critical Star Micronics Co Ltd
Priority to JP14809492A priority Critical patent/JPH05324306A/en
Publication of JPH05324306A publication Critical patent/JPH05324306A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To switch the arbitrary memory area of an original ROM to the one of an additional ROM by using switch information representing which memory area of the original ROM should be switched to the one of the additional ROM. CONSTITUTION:A ROM area switching device is comprised of a microprocessor unit 5, a latch circuit 7, a ROM selection logic circuit 9, and an address switching logic circuit 11, and the original ROM 1 and the additional ROM 3 are packaged on it. An identification code (switch information) to discriminate an area rewritten to the one of the additional ROM 3 is written on the additional ROM 3 in advance. In other words, the identification code representing which memory area of the ROM 1 is switched to the one of the additional ROM 3 is inputted by the ROM selection logic circuit 9. Thence, the arbitrary memory area of the ROM 1 is switched to the memory area of the additional ROM 3 by the ROM selection logic circuit 9 and the address switching logic circuit 11 based on an inputted identification code.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、実装している固定記憶
素子の任意の記憶領域を、別に実装する追加固定記憶素
子に切換えることができる電子機器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device capable of switching an arbitrary storage area of a mounted fixed storage element to an additional fixed storage element mounted separately.

【0002】[0002]

【従来の技術】電子機器、例えば、マイクロプロセッサ
応用機器においては、マスクROM化された固定記憶素
子としてのオリジナルROMが実装されている。このオ
リジナルROMには所定のプログラムが記憶されている
が、そのプログラムにバグ(プログラム中の不良箇所)
が発覚することがある。尚、マスクROM化というの
は、工場において予めデータを書き込んで書換え不能な
固定記憶素子とすることを意味している。このような場
合には、オリジナルROMを正常なプログラムを記憶し
た追加固定記憶素子としての追加ROMに置き換えるこ
とが行なわれている。
2. Description of the Related Art In an electronic device, for example, a microprocessor application device, an original ROM as a fixed storage element in the form of a mask ROM is mounted. A certain program is stored in this original ROM, but there is a bug (defective point in the program) in that program.
May be discovered. The mask ROM means that data is written in advance in a factory to make a non-rewritable fixed storage element. In such a case, the original ROM is replaced with an additional ROM as an additional fixed storage element that stores a normal program.

【0003】[0003]

【発明が解決しようとする課題】上記従来の構成による
と次のような問題があった。すなわち、オリジナルRO
Mの容量が比較的小さい場合には新しいマスクROM等
に置き換えてもコスト的な問題は僅かであるが、オリジ
ナルROMの容量が大きくなった場合には新規にマスク
ROMをおこすための費用が大きくかかるため、コスト
が上昇してしまうという問題があった。これに対して
は、オリジナルROMの記憶領域(アドレス空間)を複
数個のブロックに分割し、そのブロックを単独又は複数
個組み合わせたものを追加ROMに置き換えることが考
えられる。すなわち、バグが発覚した部分を含む任意の
記憶領域(ブロック)のみを切換え、その他の正常な部
分についてはそのまま使用するというものである。しか
しながら、従来の電子機器にあってはそのような切換は
不可能であった。
According to the above conventional structure, there are the following problems. That is, the original RO
If the capacity of M is relatively small, there is little cost problem even if it is replaced with a new mask ROM, but if the capacity of the original ROM becomes large, the cost for newly making a mask ROM is large. Therefore, there is a problem that the cost increases. On the other hand, it is conceivable to divide the storage area (address space) of the original ROM into a plurality of blocks and replace the blocks individually or in combination with the additional ROM. That is, only an arbitrary storage area (block) including a portion in which a bug is found is switched, and other normal portions are used as they are. However, such switching is impossible in the conventional electronic equipment.

【0004】本発明はこのような点に基づいてなされた
ものでその目的とするところは、オリジナルROMの任
意の記憶領域を追加ROMに切換えることを可能にする
電子機器を提供することにある。
The present invention has been made on the basis of such a point, and an object of the present invention is to provide an electronic device capable of switching an arbitrary storage area of an original ROM to an additional ROM.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するべく
本願発明による電子機器は、固定記憶素子を実装すると
ともに追加固定記憶素子を実装可能な電子機器におい
て、上記固定記憶素子のどの記憶領域を上記追加固定記
憶素子に切換えるかを示す切換情報を入力する切換情報
入力手段と、上記切換情報入力手段によって入力された
切換情報に基づいて固定記憶素子の任意の記憶領域を追
加固定記憶素子に切換える記憶領域切換手段と、を具備
したことを特徴とするものである。その際、追加固定記
憶素子に予め切換情報を記憶しておき、これを切換情報
読込手段によって読み出すようにすることが考えられ
る。又、切換情報を入力するスイッチを設け、該スイッ
チを介して切換情報を入力することが考えられる。
In order to achieve the above object, an electronic device according to the present invention is an electronic device in which a fixed storage element is mounted and an additional fixed storage element can be mounted. Switching information input means for inputting switching information indicating whether to switch to the additional fixed storage element, and any storage area of the fixed storage element is switched to the additional fixed storage element based on the switching information input by the switching information input means. And storage area switching means. At that time, it is conceivable to store the switching information in the additional fixed storage element in advance and read it by the switching information reading means. Further, it is possible to provide a switch for inputting the switching information and input the switching information via the switch.

【0006】[0006]

【作用】まず、切換情報入力手段によって固定記憶素子
のどの記憶領域を追加固定記憶素子に切換えるかを示す
切換情報を入力する。次に、記憶領域切換手段によって
切換情報入力手段により入力した切換情報に基づいて固
定記憶素子の任意の記憶領域を追加固定記憶素子に切換
える。上記切換情報入力手段により切換情報を入力する
方法としては、まず、追加固定記憶素子に予め切換情報
を記憶させておき、これをソフト的手段である切換情報
読込手段によって読み出すようにすることが考えられ
る。又、ハード的手段としてのスイッチを設け該スイッ
チを介して切換情報を入力することが考えられる。この
場合には、追加固定記憶素子に切換情報を予め記憶させ
ておく必要はない。
First, switching information indicating which storage area of the fixed storage element is switched to the additional fixed storage element is input by the switching information input means. Next, the storage area switching means switches an arbitrary storage area of the fixed storage element to the additional fixed storage element based on the switching information input by the switching information input means. As a method of inputting the switching information by the switching information input means, first, it is considered that the switching information is previously stored in the additional fixed storage element and is read by the switching information reading means which is a software means. Be done. Further, it is conceivable to provide a switch as a hardware means and input the switching information through the switch. In this case, it is not necessary to store the switching information in the additional fixed storage element in advance.

【0007】[0007]

【実施例】以下、図1乃至図7を参照して本発明の第1
実施例を説明する。まず、図1に固定記憶素子としての
オリジナルROM1のメモリーマップを示す。オリジナ
ルROM1の記憶領域は、「0000H乃至3FFFF
H」のアドレス空間より構成されている。又、オリジナ
ルROM1にはROM切換設定処理プログラム領域があ
って、このROM切換設定処理プログラム領域にROM
切換設定処理プログラムが記憶されている。又、この実
施例の場合には、追加ROM3の領域を複数個のブロッ
クに分割して、それぞれのブロックをその容量に相当す
るオリジナルROM1内の複数個の領域に切換えるもの
である。尚、この実施例では説明を容易にするために、
64Kbyteの追加ROM3を、32Kbyteずつ
2個の記憶領域に分割し、その内の1個のブロックAを
オリジナルROM1内の記憶領域「18000H乃至1
FFFFH」に置き換えるとともに、他のブロックBを
任意の記憶領域「40000H乃至47FFFH」に追
加するものとする。又、説明上、オリジナルROM1の
記憶領域を32Kbyte毎に区分けして各ブロックを
領域(1) 乃至(10)で示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The first embodiment of the present invention will be described below with reference to FIGS.
An example will be described. First, FIG. 1 shows a memory map of the original ROM 1 as a fixed storage element. The storage area of the original ROM 1 is "0000H to 3FFFF.
The address space of "H". Further, the original ROM 1 has a ROM switching setting processing program area, and the ROM switching setting processing program area is the ROM.
A switching setting processing program is stored. Further, in the case of this embodiment, the area of the additional ROM 3 is divided into a plurality of blocks, and each block is switched to a plurality of areas in the original ROM 1 corresponding to its capacity. In this embodiment, in order to facilitate the explanation,
The additional ROM 3 of 64 Kbytes is divided into two storage areas of 32 Kbytes each, and one block A among them is divided into storage areas "18000H to 18000H in the original ROM 1".
It is assumed that the other block B is added to any storage area “40000H to 47FFFH” while being replaced with “FFFFH”. Further, for the sake of explanation, the storage area of the original ROM 1 is divided into 32 Kbytes, and each block is shown by areas (1) to (10).

【0008】上記ROM領域の切換を実現するのが、図
2のブロック図に示すROM領域切換装置である。上記
ROM領域切換装置は、マイクロプロセッサユニット
(MPU)5と、ラッチ回路7と、ROM選択論理回路
9と、アドレス切換論理回路11等から構成されてい
る。又、既に述べたオリジナルROM1と追加ROM3
とが実装されている。上記追加ROM3には、該追加R
OM3に置き換えられるべき領域を判別できるような識
別コード(切換情報)が予め書き込まれている。この識
別コードは、例えば、8bitデータでいえば「FF
H」を除くコードであることが好ましい。これは、EP
ROMは一般的に未書込時においては「FFH」になっ
ており、未書込ROMの誤挿入での誤動作を防ぐためで
ある。又、追加ROM3が実装されないときには、回路
の浮遊容量等によって不定の値が読み込まれるので、こ
れらの値と同一とならない識別コードとすることが望ま
しい。本実施例においては、バスラインを高抵抗を介し
てプルアップさせ、追加ROM3が実装されないとき
「FFH」となるようにしている。
The ROM area switching device shown in the block diagram of FIG. 2 realizes the switching of the ROM area. The ROM area switching device comprises a microprocessor unit (MPU) 5, a latch circuit 7, a ROM selection logic circuit 9, an address switching logic circuit 11 and the like. Also, the original ROM 1 and additional ROM 3 already mentioned
And have been implemented. The additional ROM 3 has the additional R
An identification code (switching information) that can identify the area to be replaced with the OM3 is written in advance. This identification code is, for example, “FF
It is preferably a code excluding "H". This is EP
The ROM is generally "FFH" when unwritten, and this is to prevent malfunction due to incorrect insertion of the unwritten ROM. Further, when the additional ROM 3 is not mounted, an indeterminate value is read due to the stray capacitance of the circuit, etc. Therefore, it is desirable to use an identification code that is not the same as these values. In the present embodiment, the bus line is pulled up via the high resistance so that it becomes "FFH" when the additional ROM 3 is not mounted.

【0009】又、この実施例の場合には、図2に示した
ROM選択論理回路9とアドレス切換論理回路11が、
例えば、図3に示すような構成になっている。まず、比
較回路13、15があり、これら比較回路13、15に
は、デコーダ17、19より信号S17、S19がそれ
ぞれ入力される。上記デコーダ17、19には図2に示
すラッチ回路7の出力であるROM選択制御信号35を
介して、追加ROM3に記憶されている識別コードに基
づく3bitデータがそれぞれ入力される。上記3bi
tデータとは図4に示すようなものである。すなわち、
図1に示したメモリーマップにおいて、オリジナルRO
M1の記憶領域を32Kbyteずつ区分けすると、既
に述べたように、領域(1) 乃至(10)に区分けされる。そ
れぞれの領域(1) 乃至(10)は3bitのデータにより特
定されるようになっていて、本実施例の場合には、領域
(4) に追加ROM3のブロックAを置き換えるために、
領域(4) を特定するための3bitデータ「011」が
デコータ17に入力される。デコーダ17からはその3
bitデータに対応する信号S17が出力される。この
場合には、図4に示すように、上記信号S17は
「Y3 」だけが論理「0」の信号となる。
In the case of this embodiment, the ROM selection logic circuit 9 and the address switching logic circuit 11 shown in FIG.
For example, the configuration is as shown in FIG. First, there are comparison circuits 13 and 15, and signals S17 and S19 are input from the decoders 17 and 19 to the comparison circuits 13 and 15, respectively. 3 bits data based on the identification code stored in the additional ROM 3 is input to the decoders 17 and 19 via the ROM selection control signal 35 which is the output of the latch circuit 7 shown in FIG. 3bi above
The t data is as shown in FIG. That is,
In the memory map shown in Fig. 1, the original RO
When the storage area of M1 is divided into 32 Kbytes, it is divided into the areas (1) to (10) as described above. Each of the areas (1) to (10) is specified by 3-bit data. In the case of this embodiment, the areas
In order to replace the block A of the additional ROM3 in (4),
The 3-bit data “011” for specifying the area (4) is input to the decoder 17. 3 from the decoder 17
A signal S17 corresponding to the bit data is output. In this case, as shown in FIG. 4, the signal S17 only "Y 3" is the signal of the logic "0".

【0010】又、デコーダ19にも同様の3bitデー
タが入力され、本実施例の場合には、図1に示すよう
に、領域(9) に追加ROM3のブロックBを追加するこ
とになるので、領域(9) を特定する3bitデータ「1
11」がデコーダ19に入力される。デコーダ17から
はその3bitデータに対応する信号S19が出力され
る。この場合には、図4に示すように、上記信号S19
は「Y7 」だけが論理「0」の信号となる。
The same 3-bit data is also input to the decoder 19, and in the case of this embodiment, the block B of the additional ROM 3 is added to the area (9) as shown in FIG. 3-bit data "1" that specifies the area (9)
11 ”is input to the decoder 19. A signal S19 corresponding to the 3-bit data is output from the decoder 17. In this case, as shown in FIG.
"Y 7 " is a signal of logic "0".

【0011】一方、上記比較回路13、15には、デコ
ータ21を介して信号S21が入力される。上記デコー
ダ21には図2に示すシステム制御用アドレスバス37
より、A15乃至A18までの4bitデータが入力され、
オリジナルROM1の記憶領域(1) 乃至(10)を特定する
信号が入力されるようになっている。尚、その他のアド
レス信号A0 乃至A14はそのまま追加ROM3に入力さ
れる。そして、比較回路13においてはデコーダ17側
からの信号S17とデコーダ21側からの信号S21が
比較され、一致した場合には論理「1」の信号S13が
出力され、後段に配置されたアンドゲート14を介して
論理回路23に信号が達し、それによって、追加ROM
3を選択する。同様に、比較回路15でもデコーダ19
側からの信号S19とデコーダ21側からの信号S21
が比較され、一致した場合には論理「1」の信号S15
が出力され、それによって、アンドゲート16を介して
論理回路23に信号が達し、追加ROM3を選択する。
尚、上記アンドゲート14、16は、上述した一致信号
の伝播を許容若しくは禁止するためのゲートであり、出
力コントロール信号S29によって制御される。
On the other hand, the signal S21 is input to the comparison circuits 13 and 15 via the decoder 21. The decoder 21 has a system control address bus 37 shown in FIG.
From this, 4 bit data from A 15 to A 18 is input,
A signal for specifying the storage areas (1) to (10) of the original ROM 1 is input. The other address signals A 0 to A 14 are directly input to the additional ROM 3. Then, in the comparison circuit 13, the signal S17 from the decoder 17 side and the signal S21 from the decoder 21 side are compared, and if they match, a signal S13 of logic "1" is output, and the AND gate 14 arranged in the subsequent stage. A signal arrives at the logic circuit 23 via the
Select 3. Similarly, the comparison circuit 15 also has a decoder 19
Side signal S19 and decoder 21 side signal S21
Are compared, and if they match, the signal S15 of logic "1"
Is output, whereby a signal reaches the logic circuit 23 via the AND gate 16 and selects the additional ROM 3.
The AND gates 14 and 16 are gates for permitting or prohibiting the propagation of the above-mentioned coincidence signal, and are controlled by the output control signal S29.

【0012】又、論理回路25が配置されていて、この
論理回路25には上記デコーダ21からの信号S21の
一部(Y8 とY9 )が入力される。論理回路25はこれ
らの信号の内何れか一方が論理「0」の場合に論理
「1」の信号S25をアンド回路27に出力する。尚、
論理回路25の入・出力の関係を図5に示し、その内、
入力が「00」という態様は有り得ない。上記アンド回
路27には、それとは別に出力コントロール信号S29
が反転回路31を介して入力され、それら両信号が共に
論理「1」になったとき、後述する論理回路23に論理
「1」の信号S27を出力する。すなわち、ステップの
初期の状態で、取敢えず、追加ROM3をオリジナルR
OM1の追加の領域(9) 、(10)に追加して、そこに記憶
されている識別コードを読み出す必要があり、そのとき
に、上記論理回路25とアンド回路27が機能して追加
ROM3を選択するものである。
A logic circuit 25 is arranged, and a part (Y 8 and Y 9 ) of the signal S21 from the decoder 21 is input to the logic circuit 25. The logic circuit 25 outputs a signal S25 of logic “1” to the AND circuit 27 when one of these signals is logic “0”. still,
The input / output relationship of the logic circuit 25 is shown in FIG.
There is no possibility that the input is “00”. The AND circuit 27 has a separate output control signal S29.
Is inputted via the inverting circuit 31 and both signals become logic "1", a signal S27 of logic "1" is outputted to the logic circuit 23 described later. In other words, in the initial state of the step, the additional ROM 3 is original R
It is necessary to add to the additional areas (9) and (10) of the OM1 and read the identification code stored therein, and at that time, the logic circuit 25 and the AND circuit 27 function to make the additional ROM 3 operate. It is something to choose.

【0013】上記論理回路23は、アンドゲート14、
アンドゲート16、アンド回路27の内少なくとも何れ
か1個の出力信号が論理「1」になったときに、論理
「0」の信号S23を出力するものである。論理回路2
3より論理「0」の信号S23が出力されると、追加R
OM3のチップセレクト信号がオンされることになり、
オリジナルROM1のチップセレクト信号は、反転回路
33の作用によってオフとなり、結局、追加ROM3が
選択されることになる。つまり、アンドゲート14、ア
ンドゲート16、アンド回路27からの信号が論理
「1」になるということは、記憶領域の置き換え又は追
加、初期時における記憶領域の追加が行なわれることに
なり、その場合には、追加ROM3が選択される必要が
あるからである。
The logic circuit 23 includes an AND gate 14,
When at least one of the output signals of the AND gate 16 and the AND circuit 27 becomes the logic "1", the signal S23 of the logic "0" is output. Logic circuit 2
When the signal S23 of logic "0" is output from 3, the additional R
The chip select signal of OM3 will be turned on,
The chip select signal of the original ROM 1 is turned off by the action of the inverting circuit 33, and eventually the additional ROM 3 is selected. That is, the fact that the signals from the AND gate 14, AND gate 16, and AND circuit 27 become logic "1" means that the storage area is replaced or added, or the storage area is added at the initial stage. This is because the additional ROM 3 needs to be selected.

【0014】又、論理回路51が配置されていて、この
論理回路51には出力コントロール信号S29とデコー
ダ21からの信号S21の一部(Y9 )が入力される。
これら両信号がともに論理「0」のときには、論理
「1」の信号S51がオア回路53に入力される。この
オア回路53には上記信号とは別に、アンドゲート16
からの信号S16も入力される。オア回路53はこれら
両信号の何れかが論理「1」になったときに追加ROM
3のアドレス信号A15を論理「0」にする。つまり、そ
れによって、追加ROM3のブロックBを選択すること
になる。
A logic circuit 51 is arranged, and the output control signal S29 and a part (Y 9 ) of the signal S21 from the decoder 21 are input to the logic circuit 51.
When both of these signals are logic "0", the signal S51 of logic "1" is input to the OR circuit 53. In addition to the above signals, the OR gate 53 has an AND gate 16
The signal S16 from is also input. The OR circuit 53 is an additional ROM when either of these signals becomes a logic "1".
The address signal A 15 of 3 is set to logic "0". That is, by this, the block B of the additional ROM 3 is selected.

【0015】以上の構成を基にその作用を説明する。
尚、この実施例では電子機器としてプリンタを例にとっ
て説明している。まず、図6のフローチャートに示すよ
うに、スタートすると、初期設定(シーケンスS1)に
入る。このシーケンス1では「RAMクリアー」、「R
OMの領域設定」、「I/Oポート等の初期設定」等が
行なわれる。これらの初期設定が終了すると、印刷デー
タの有無が判別される(シーケンスS2)。印刷データ
が有る場合にはそのまま印刷に移行する(シーケンスS
3)。又、印刷データがない場合には印刷データの有無
の判別が繰り返し行なわれることになる。
The operation will be described based on the above configuration.
In this embodiment, a printer is used as an example of the electronic device for description. First, as shown in the flowchart of FIG. 6, when starting, the initial setting (sequence S1) starts. In this sequence 1, "RAM clear", "R
OM area setting "," initial setting of I / O port and the like "and the like are performed. When these initial settings are completed, the presence or absence of print data is determined (sequence S2). When there is print data, the process shifts to printing as it is (sequence S).
3). If there is no print data, the presence / absence of print data is repeatedly determined.

【0016】次に、上記初期設定の内「ROMの領域設
定」について、図7のフローチャートを参照して説明す
る。処理がスタートされると、まず、追加ROM3の識
別コードの読み出しが行なわれる(シーケンスS4)。
尚、この識別コードの読み出しの前提として、図1中破
線で示すように、追加ROM3をオリジナルROM1の
記憶領域「40000H乃至4FFFFH」(追加領
域)に配置させる必要がある。これは、図2に示すRO
M論理選択回路9によって上記追加領域のときに追加R
OM3をチップセレクトすることにより実現される。
Next, the "ROM area setting" among the above-mentioned initial settings will be described with reference to the flowchart of FIG. When the process is started, first, the identification code of the additional ROM 3 is read (sequence S4).
As a precondition for reading this identification code, it is necessary to arrange the additional ROM 3 in the storage area “40000H to 4FFFFH” (additional area) of the original ROM 1 as shown by the broken line in FIG. This is the RO shown in FIG.
When the above-mentioned additional area is added by the M logic selection circuit 9, the additional
It is realized by chip-selecting OM3.

【0017】次に、読出データが「FFH」でないかど
うかによって追加ROM3の有無を判別して(シーケン
スS5)、追加ROM3がない場合には記憶領域を「0
0000H乃至3FFFFH、出力コントロール信号S
29を「0」」に設定して(シーケンスS6)、終了す
る。このような例としては、例えば、追加ROM3が実
装されていないような場合があり、その場合には、上記
したように「FFH」が読み出される。又、データの書
込みが未だ行なわれていない追加ROM3が装着された
場合にも「FFH」が読み出されて、実質的には非実装
の扱いとされる。次に、追加ROM3はメモリーの追加
か置き換えかを判断する(シーケンスS7)。すなわ
ち、ブロックA、B共に追加か否かを判別して(シーケ
ンスS8)、ブロックA、B共に追加である場合には記
憶領域を「00000H乃至4FFFFH、出力コント
ロール信号S29を「0」」に設定して(シーケンスS
9)、終了する。これに対して、ブロックA、B共に追
加でない場合には、ブロックBのみ追加か否かを判別す
る(シーケンスS10)。ブロックBのみ追加の場合に
は、ラッチ回路7にチップセレクト選択制御データを出
力して(シーケンスS11)、メモリー領域を「000
00H乃至47FFFH、出力コントロール信号S29
を「0」」に設定して(シーケンスS12)、終了す
る。これに対して、ブロックBのみ追加でない場合、換
言すればブロックA、B共に置き換えの場合には、ラッ
チ回路7にチップセレクト選択制御データを出力して
(シーケンスS13)、メモリー領域を「00000H
乃至3FFFFH、出力コントロール信号S29を
「0」」に設定して(シーケンスS14)、終了する。
Next, the presence or absence of the additional ROM 3 is determined depending on whether the read data is not "FFH" (sequence S5). If there is no additional ROM 3, the storage area is set to "0".
0000H to 3FFFFH, output control signal S
29 is set to "0" (sequence S6), and the process ends. As such an example, for example, there is a case where the additional ROM 3 is not mounted, and in that case, “FFH” is read as described above. Further, even when the additional ROM 3 for which data writing has not been performed is mounted, "FFH" is read out, and it is substantially treated as non-mounting. Next, the additional ROM 3 determines whether to add or replace the memory (sequence S7). That is, it is determined whether or not both blocks A and B are added (sequence S8), and when both blocks A and B are added, the storage area is set to "00000H to 4FFFFH" and the output control signal S29 is set to "0". Then (Sequence S
9) and ends. On the other hand, if neither block A nor B is added, it is determined whether only block B is added (sequence S10). When only block B is added, the chip select selection control data is output to the latch circuit 7 (sequence S11) and the memory area is set to "000".
00H to 47FFFH, output control signal S29
Is set to "0" (sequence S12), and the process ends. On the other hand, when only the block B is not added, in other words, when both the blocks A and B are replaced, the chip select selection control data is output to the latch circuit 7 (sequence S13) and the memory area is set to "00000H".
Through 3FFFFH, the output control signal S29 is set to "0" (sequence S14), and the process ends.

【0018】上記作用を比較回路13、15の作用とし
て説明すると、まず、比較回路13の作用によって、記
憶領域「18000H乃至20000H」のときに、追
加ROM3のチップセレクト信号がオンされて追加RO
M3が選択される。又、比較回路15の作用によって、
記憶領域「40000H乃至48000H」のときに、
追加ROM3のチップセレクト信号がオンされて追加R
OM3が選択される。そして、それに伴ってアドレスの
切換が行なわれていく。尚、このように、追加ROM3
を複数個のブロックに分割していく場合、その分割数が
増大していくと、それに伴って、図3に示す比較回路の
数も増大していくことになる。
The above operation will be described as an operation of the comparison circuits 13 and 15. First, due to the operation of the comparison circuit 13, the chip select signal of the additional ROM 3 is turned on in the storage area "18000H to 20000H".
M3 is selected. Also, by the action of the comparison circuit 15,
When the storage area is "40000H to 48000H",
When the chip select signal of the additional ROM3 is turned on, additional R
OM3 is selected. Then, the addresses are switched accordingly. In addition, in this way, additional ROM3
When dividing into a plurality of blocks, as the number of divisions increases, the number of comparison circuits shown in FIG. 3 also increases accordingly.

【0019】以上本実施例によると次のような効果を奏
することができる。まず、オリジナルROM1の記憶領
域の切換をROM毎行なうのではなく、オリジナルRO
M1の記憶領域を複数個のブロックに分割し、そのブロ
ック単位で行なうことが可能になった。よって、オリジ
ナルROM1の容量が大きい場合であっても、比較的低
コストで記憶領域の切換を行なうことができる。又、記
憶領域の切換をスイッチ、切換コネクタ、ジャンパー線
等のハード的手段によって行なうのではなく、ソフト的
な手段により行なうようにしているので、煩雑な作業を
要することがないとともに、接続ミスや接点不良という
こともなく、信頼性を大幅に向上させることができる。
又、ROMの記憶領域の切換が容易になったことによ
り、ある仕様のマイクロプロセッサ応用機器を別の仕様
に変更することも簡単に行なうことができるという利点
もある。又、追加ROM3を複数個のブロックに分割し
て、ブロック単位で記憶領域を切換えることができるよ
うになった。
According to this embodiment, the following effects can be obtained. First, the storage area of the original ROM 1 is not switched for each ROM, but the original RO
It is possible to divide the storage area of M1 into a plurality of blocks and perform the processing in block units. Therefore, even when the capacity of the original ROM 1 is large, the storage area can be switched at a relatively low cost. Further, since the storage area is switched by a software means rather than a hardware means such as a switch, a switching connector, a jumper wire, etc., no complicated work is required and a connection error or There is no contact failure, and the reliability can be greatly improved.
Further, since the switching of the storage area of the ROM is facilitated, it is possible to easily change the microprocessor application device having a certain specification to another specification. Further, the additional ROM 3 is divided into a plurality of blocks, and the storage area can be switched in block units.

【0020】尚、オリジナルROMのどの記憶領域を追
加ROM3に切換えるかは任意であり、例えば、図8に
示すように、オリジナルROM1の記憶領域(2) 、(3)
を追加ROM3に切換えるようにしてもよい。その他、
追加ROM3に記憶させておく切換情報の内容は任意に
設定すればよい。
Which storage area of the original ROM is switched to the additional ROM 3 is arbitrary. For example, as shown in FIG. 8, the storage areas (2) and (3) of the original ROM 1 are changed.
May be switched to the additional ROM 3. Other,
The content of the switching information stored in the additional ROM 3 may be set arbitrarily.

【0021】次に、図9を参照して本発明の第2実施例
を説明する。この実施例の場合には、前記第1実施例に
おけラッチ回路7の代わりにディップ(DIP、デュア
ル・インライン・パッケージ)スイッチ8を装着して、
ハード的手段により記憶領域の切換を行なうものであ
る。つまり、上記ディップスイッチ8を介して、切換情
報を入力して、ROM選択論理回路9及びアドレス切換
論理回路11を機能させるものである。この場合には、
追加ROM3に切換情報を予め記憶させておく必要はな
い。よって、若干の作業は必要になってはくるが、前記
第1実施例の場合と略同様の効果を奏することができ
る。
Next, a second embodiment of the present invention will be described with reference to FIG. In the case of this embodiment, a dip (DIP, dual in-line package) switch 8 is mounted instead of the latch circuit 7 in the first embodiment,
The storage area is switched by a hardware means. That is, the switching information is input through the DIP switch 8 to cause the ROM selection logic circuit 9 and the address switching logic circuit 11 to function. In this case,
It is not necessary to store the switching information in the additional ROM 3 in advance. Therefore, although some work is required, it is possible to obtain substantially the same effects as in the case of the first embodiment.

【0022】次に、図10及び図11を参照して第3実
施例を説明する。前記第1及び第2実施例の場合には、
オリジナルROM1の記憶領域内に、ROM切換プログ
ラム領域を設け、このROM切換プログラム領域内にR
OM切換プログラムを記憶しておくものであった。この
場合には、そのROM切換プログラム領域が切換不可能
な領域になっていた。これに対して、本実施例の場合に
は、追加ROM3の記憶領域内にROM切換プログラム
領域を設けて、そこにROM切換プログラムを記憶させ
ておくとともに、それごと切換えていくものである。
Next, a third embodiment will be described with reference to FIGS. In the case of the first and second embodiments,
A ROM switching program area is provided in the storage area of the original ROM 1, and R is stored in this ROM switching program area.
The OM switching program is stored. In this case, the ROM switching program area is a non-switchable area. On the other hand, in the case of the present embodiment, the ROM switching program area is provided in the storage area of the additional ROM 3 to store the ROM switching program therein, and the ROM switching program is switched accordingly.

【0023】まず、図10に示すように、追加ROM3
の記憶領域をブロックAとブロックBに分割し、ブロッ
クBにROM切換プログラム領域を設けてそこにROM
切換プログラムを記憶させておく。これを前記第3実施
例の場合と同様に、ブロック毎に切換えていくものであ
る。以下その切換手順を図11のフローチャートを参照
して説明する。まず、処理がスタートされると、識別コ
ードの有無が判別される(シーケンスS12)。識別コ
ードがない場合にはそのまま終了する。識別コードが有
る場合には、メモリーの置き換えか否かが判別される
(シーケンスS13)。メモリーの置き換えではない場
合にはそのまま終了する。これに対して、メモリーの置
き換えの場合には、ROM切換プログラム領域が含まれ
るか否かが判別される(シーケンスS14、S15)。
First, as shown in FIG. 10, the additional ROM 3
Memory area is divided into a block A and a block B, and a ROM switching program area is provided in the block B to store the ROM therein.
Store the switching program. This is switched for each block as in the case of the third embodiment. The switching procedure will be described below with reference to the flowchart of FIG. First, when the process is started, the presence or absence of the identification code is determined (sequence S12). If there is no identification code, the process ends. If the identification code is present, it is determined whether or not the memory is replaced (sequence S13). When it is not the replacement of the memory, the process ends as it is. On the other hand, when the memory is replaced, it is determined whether or not the ROM switching program area is included (sequences S14 and S15).

【0024】ROM切換プログラム領域が含まれる場合
には、図2に示すように、記憶素子7からの出力である
ROM選択制御信号35を制御するとともに、ROM選
択論理回路9の出力であるアドレス切換制御信号43を
制御して、記憶領域「08000H乃至0FFFFH」
を追加ROM3のブロッBに置き換える(シーケンスS
16)。上記置き換えが終了した時点で、記憶領域「0
8000H乃至0FFFFH」内のROM切換プログラ
ムにジャンプする(シーケンスS17)。後は、このR
OM切換プログラムに沿って処理が進行していき、記憶
領域「00000H乃至0FFFFH」を追加ROM3
のブロックAに置き換える(シーケンスS18)。一
方、シーケンスS15において、ROM切換プログラム
領域が含まれていない場合にはシーケンスS19に移行
し、識別コードで指示された領域の置き換えが行なわれ
て終了する。
When the ROM switching program area is included, as shown in FIG. 2, the ROM selection control signal 35 output from the storage element 7 is controlled and the address switching output from the ROM selection logic circuit 9 is performed. By controlling the control signal 43, the storage area "08000H to 0FFFFH"
Is replaced with the block B of the additional ROM 3 (sequence S
16). When the replacement is completed, the storage area "0
Jump to the ROM switching program in "8000H to 0FFFFH" (sequence S17). After that, this R
The process proceeds according to the OM switching program, and the storage area “00000H to 0FFFFH” is added to the ROM 3
To block A (sequence S18). On the other hand, if the ROM switching program area is not included in the sequence S15, the process proceeds to the sequence S19, the area designated by the identification code is replaced, and the processing ends.

【0025】よって、この実施例の場合にも前記第1及
び第2の実施例の場合と同様の効果を奏することができ
る。尚、この実施例において、最初に置き換えられるブ
ロックBにROM切換プログラム領域を設ける必要があ
ることは勿論である。
Therefore, also in the case of this embodiment, the same effect as in the case of the first and second embodiments can be obtained. In this embodiment, it is needless to say that it is necessary to provide the ROM switching program area in the block B to be replaced first.

【0026】尚、本発明は前記各実施例に限定されるも
のではない。まず、前記各実施例で示したオリジナルR
OM1、追加ROM3の容量は全て一例であって、任意
の容量の場合に同様に適用できる。叉、電子機器の一例
としてプリンタを例にとって説明したが、それ以外の各
種の電子機器に適用可能である。又、追加ROM3を複
数個のブロックに分割して切換える場合に、その分割
数、各ブロックの容量の大きさ等についても任意であ
る。
The present invention is not limited to the above embodiments. First, the original R shown in each of the above embodiments
The capacities of the OM1 and the additional ROM 3 are all examples, and can be similarly applied to arbitrary capacities. Further, although the printer has been described as an example of the electronic device, the invention can be applied to various other electronic devices. In addition, when the additional ROM 3 is divided into a plurality of blocks and is switched, the number of divisions, the capacity of each block, and the like are also arbitrary.

【0027】[0027]

【発明の効果】以上詳述したように本発明による電子機
器によると、固定記憶素子の任意の記憶領域を追加固定
記憶素子と切換えることができるので、固定記憶素子の
容量が大きい場合でも、比較的低コストで記憶領域の切
換を行なうことができるようになった。
As described in detail above, according to the electronic device of the present invention, an arbitrary storage area of the fixed storage element can be switched to the additional fixed storage element. Therefore, even if the fixed storage element has a large capacity, a comparison is made. It has become possible to switch storage areas at an extremely low cost.

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

【図1】本発明の第1実施例を示す図でオリジナルRO
Mのメモリーマップを示す図である。
FIG. 1 is a diagram showing an original RO according to a first embodiment of the present invention.
It is a figure which shows the memory map of M.

【図2】本発明の第1実施例を示す図でROM領域切換
装置の構成を示すブロック図である。
FIG. 2 is a block diagram showing the configuration of a ROM area switching device according to the first embodiment of the present invention.

【図3】本発明の第1実施例を示す図でROM領域切換
装置の構成の一部を示す図である。
FIG. 3 is a diagram showing a first embodiment of the present invention and is a diagram showing a part of a configuration of a ROM area switching device.

【図4】本発明の第1実施例を示す図で図7に示すデコ
ーダ17、19に入力される3bitデータと記憶領域
との関係を説明するための図である。
FIG. 4 is a diagram showing the first embodiment of the present invention and is a diagram for explaining the relationship between 3-bit data input to the decoders 17 and 19 shown in FIG. 7 and a storage area.

【図5】本発明の第1実施例を示す図で論理回路25の
入出力を説明するための図である。
FIG. 5 is a diagram for explaining the input / output of the logic circuit 25 in the diagram showing the first embodiment of the present invention.

【図6】本発明の第1実施例を示す図で作用を示すフロ
ーチャートである。
FIG. 6 is a flow chart showing the operation of the first embodiment of the present invention.

【図7】本発明の第1実施例を示す図で作用を示すフロ
ーチャートである。
FIG. 7 is a flow chart showing the operation of the first embodiment of the present invention.

【図8】本発明の第1実施例を示す図でオリジナルRO
Mのメモリーマップを示す図である。
FIG. 8 is a diagram showing an original RO according to the first embodiment of the present invention.
It is a figure which shows the memory map of M.

【図9】本発明の第2実施例を示す図でROM領域切換
装置の構成の一部を示す図である。
FIG. 9 is a diagram showing a second embodiment of the present invention and is a diagram showing a part of the configuration of the ROM area switching device.

【図10】本発明の第3実施例を示す図でオリジナルR
OMのメモリーマップを示す図である。
FIG. 10 is a diagram showing an original R according to a third embodiment of the present invention.
It is a figure which shows the memory map of OM.

【図11】本発明の第3実施例を示す図で作用を示すフ
ローチャートである。
FIG. 11 is a flow chart showing the operation of the third embodiment of the present invention.

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

1 オリジナルROM(固定記憶素子) 3 追加ROM(追加固定記憶素子) 5 マイクロプロセッサユニット 7 ラッチ回路 8 ディップスイッチ 9 ROM選択論理回路 11 アドレス切換論理回路 1 Original ROM (fixed storage element) 3 Additional ROM (additional fixed storage element) 5 Microprocessor unit 7 Latch circuit 8 DIP switch 9 ROM selection logic circuit 11 Address switching logic circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 固定記憶素子を実装するとともに追加固
定記憶素子を実装可能な電子機器において、上記固定記
憶素子のどの記憶領域を上記追加固定記憶素子に切換え
るかを示す切換情報を入力する切換情報入力手段と、上
記切換情報入力手段によって入力された切換情報に基づ
いて固定記憶素子の任意の記憶領域を追加固定記憶素子
に切換える記憶領域切換手段と、を具備したことを特徴
とする電子機器。
1. In an electronic device in which a fixed storage element is mounted and an additional fixed storage element can be mounted, switching information for inputting switching information indicating which storage area of the fixed storage element is switched to the additional fixed storage element. An electronic device comprising: an input means; and a storage area switching means for switching an arbitrary storage area of a fixed storage element to an additional fixed storage element based on the switching information input by the switching information input means.
【請求項2】 請求項1記載の電子機器において、追加
固定記憶素子には予め切換情報が記憶されていて、これ
を切換情報読込手段によって読み出すようにしたことを
特徴とする電子機器。
2. The electronic device according to claim 1, wherein switching information is stored in advance in the additional fixed storage element, and the switching information is read by the switching information reading means.
【請求項3】 請求項1記載の電子機器において、切換
情報を入力するスイッチを設け、該スイッチを介して切
換情報を入力するようにしたことを特徴とする電子機
器。
3. The electronic device according to claim 1, wherein a switch for inputting switching information is provided, and the switching information is input via the switch.
JP14809492A 1992-05-14 1992-05-14 Electronic equipment Pending JPH05324306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14809492A JPH05324306A (en) 1992-05-14 1992-05-14 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14809492A JPH05324306A (en) 1992-05-14 1992-05-14 Electronic equipment

Publications (1)

Publication Number Publication Date
JPH05324306A true JPH05324306A (en) 1993-12-07

Family

ID=15445110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14809492A Pending JPH05324306A (en) 1992-05-14 1992-05-14 Electronic equipment

Country Status (1)

Country Link
JP (1) JPH05324306A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0333927A (en) * 1989-06-29 1991-02-14 Canon Inc Electronic equipment
JPH0371232A (en) * 1989-08-10 1991-03-27 Sanyo Electric Co Ltd Electronic equipment
JPH03125224A (en) * 1989-10-11 1991-05-28 Seiko Epson Corp Information processor
JPH03176738A (en) * 1989-12-05 1991-07-31 Matsushita Electric Ind Co Ltd Memory control circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0333927A (en) * 1989-06-29 1991-02-14 Canon Inc Electronic equipment
JPH0371232A (en) * 1989-08-10 1991-03-27 Sanyo Electric Co Ltd Electronic equipment
JPH03125224A (en) * 1989-10-11 1991-05-28 Seiko Epson Corp Information processor
JPH03176738A (en) * 1989-12-05 1991-07-31 Matsushita Electric Ind Co Ltd Memory control circuit

Similar Documents

Publication Publication Date Title
US7227782B2 (en) NAND flash memory device capable of improving read speed
US7162563B2 (en) Semiconductor integrated circuit having changeable bus width of external data signal
JPH05324306A (en) Electronic equipment
US5786885A (en) Image processing system
JPH1139212A (en) Microcomputer
US20040141399A1 (en) Method and integrated circuit capable of reading and writing data simultaneously
JPS5842545B2 (en) Memory card block selection method
JP4174272B2 (en) Device controller
JPH0520474A (en) One chip microcomputer
US20090108928A1 (en) Large-scale integrated circuit
JP2007122796A (en) Nonvolatile memory
KR100542339B1 (en) Apparatus for expanding a memory
JP4534288B2 (en) Signal processing system, signal processing circuit, and demodulator
JP3251265B2 (en) Memory output control circuit
JPH05199554A (en) Circuit setting device
JPH026996A (en) Display device
JPH05341969A (en) Rom switching device for microcomputer
JPH0573404A (en) Single chip microcomputer
JPH05347696A (en) Image processing unit
JPH0554665A (en) Memory device and semiconductor device with built-in memory device
JPH07219843A (en) Memory bank switching device
JPH11203874A (en) Memory module with builtin address counter
JPH11110287A (en) Circuit using nonvolatile memory
JPH06348589A (en) Memory controller
JPH05282891A (en) Read only memory