JPH09311818A - Information processing method, device therefor, memory selecting method for the device, and circuit therefor - Google Patents

Information processing method, device therefor, memory selecting method for the device, and circuit therefor

Info

Publication number
JPH09311818A
JPH09311818A JP12838096A JP12838096A JPH09311818A JP H09311818 A JPH09311818 A JP H09311818A JP 12838096 A JP12838096 A JP 12838096A JP 12838096 A JP12838096 A JP 12838096A JP H09311818 A JPH09311818 A JP H09311818A
Authority
JP
Japan
Prior art keywords
memory
information processing
signal
cpu
selecting
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.)
Withdrawn
Application number
JP12838096A
Other languages
Japanese (ja)
Inventor
Akira Kuribayashi
明 栗林
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 JP12838096A priority Critical patent/JPH09311818A/en
Publication of JPH09311818A publication Critical patent/JPH09311818A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an information processing method and a device therefor, a memory selecting method and circuit for the device which automatically switch a memory even at the time of loading plural memories whose address areas overlap, and execute a program stored in the memory. SOLUTION: At the time of supplying a power, when MPU 1 outputs a selection signal 9 at a high level and MPU 1 accesses the overlapped address area in mask ROM 4 and EPROM 5, a gate array (GA) 2 enables a chip selecting signal CS1 for selecting mask ROM 4. On the other hand, when the selecting signal 9 is at a low level and this overlapped address area is accessed, GA2 enables and outputs a chip select signal CS0 so as to select EPROM 5.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、CPUによりアク
セスされ、少なくとも一部が重複するアドレス空間に配
置された複数のメモリを有する情報処理方法及び装置及
び該装置におけるメモリ選択方法及びその回路に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing method and apparatus having a plurality of memories which are accessed by a CPU and are arranged in address spaces at least partially overlapping with each other, a memory selecting method in the apparatus and a circuit thereof. Is.

【0002】[0002]

【従来の技術】従来のメモリに記憶された制御プログラ
ムに従って動作する制御装置、例えばホストコンピュー
タからの印刷情報に従って印刷動作を行う記録装置で
は、記録装置全体の動作を制御する制御プログラムを記
憶したマスクROM又はEPROMと、そのROMに記
憶された制御プログラムに従って記録装置全体の動作を
制御するマイクロプロセッサ(MPU)を有し、MPU
は、そのマスクROMまたはEPROMに記憶されてい
る制御プログラムを読み出して、その制御プログラムを
解釈し、その内容に従って記録装置全体の制御動作を行
っている。通常、これらの記憶装置において、マスクR
OMまたはEPROMに記憶された記録装置の制御を行
う制御プログラムは1種類である。
2. Description of the Related Art In a conventional control device that operates according to a control program stored in a memory, for example, a printing device that performs a printing operation in accordance with print information from a host computer, a mask that stores a control program that controls the operation of the entire printing device. It has a ROM or EPROM and a microprocessor (MPU) for controlling the operation of the entire recording apparatus according to a control program stored in the ROM.
Reads the control program stored in the mask ROM or EPROM, interprets the control program, and controls the entire printing apparatus according to the contents. Usually, in these storage devices, the mask R
There is one type of control program for controlling the recording device stored in the OM or EPROM.

【0003】このような記録装置において、異なる制御
プログラムを記憶した複数のマスクROM又はEPRO
Mを有する記録装置も存在する。この場合、マスクRO
M又はEPROMを実装した制御基板上に、実際に使用
する制御プログラムを記憶したマスクROMまたはEP
ROMを選択するスイッチ等の選択手段が設けられてい
る。そして、電源投入前、又は工場出荷時に、このスイ
ッチ等により実際に使用するマスクROM又はEPRO
Mが選択されており、電源投入時、MPUはそのスイッ
チ等により選択されているメモリから制御プログラムを
読み出して記録装置の制御を行っている。
In such a recording apparatus, a plurality of mask ROMs or EPROs storing different control programs are stored.
There are also recording devices with M. In this case, the mask RO
Mask ROM or EP in which the control program actually used is stored on the control board on which M or EPROM is mounted
A selection unit such as a switch for selecting the ROM is provided. The mask ROM or EPRO that is actually used by this switch or the like before the power is turned on or at the time of factory shipment.
M is selected, and when the power is turned on, the MPU reads the control program from the memory selected by the switch and controls the recording apparatus.

【0004】[0004]

【発明が解決しようとする課題】このように従来の記録
装置等の制御装置では、それぞれ異なる制御プログラム
を記憶した複数のメモリを装着でき、それぞれのメモリ
のアドレス領域が重複する場合には、予め使用するメモ
リを選択しておかなければならない。そのためにプログ
ラムを記憶しているメモリを選択するための選択手段を
設けなければならず、このような手段を設けることはコ
ストアップにつながる。また、制御プログラムのバージ
ョンアップ等の変更により、新しいプログラムを格納し
ているマスクROM等が追加される場合は、使用するプ
ログラムを記憶しているメモリを選択する選択手段によ
り、一々その選択するメモリを指定しなければならない
という煩わしさがあった。
As described above, in a conventional control device such as a recording device, a plurality of memories each storing a different control program can be mounted, and when the address areas of the respective memories overlap, it is necessary to previously You must select the memory to use. Therefore, it is necessary to provide a selection means for selecting the memory storing the program, and the provision of such means leads to an increase in cost. When a mask ROM or the like storing a new program is added due to a change such as a version upgrade of the control program, the memory for selecting the memory storing the program to be used is selected one by one. There was the trouble of having to specify.

【0005】本発明は上記従来例に鑑みてなされたもの
で、アドレス領域が重複する複数のメモリを装着しても
自動的にそのメモリを切り換えて、そのメモリに記憶さ
れているプログラムを実行できる情報処理方法及び装置
及び該装置におけるメモリ選択方法及びその回路を提供
することを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and even if a plurality of memories having overlapping address areas are mounted, the memories can be automatically switched and the programs stored in the memories can be executed. An object of the present invention is to provide an information processing method and device, a memory selection method in the device, and a circuit thereof.

【0006】また本発明の他の目的は、実装されている
メモリのアドレス領域と重複するアドレス領域に新たに
メモリが装着されても、自動的にそのメモリを判断し
て、そのメモリに記憶されているプログラムを選択実行
できる情報処理方法及び装置及び該装置におけるメモリ
選択方法及びその回路を提供することにある。
Another object of the present invention is to automatically determine the memory even if a new memory is mounted in an address area overlapping the address area of the mounted memory and store the memory in the memory. An information processing method and apparatus capable of selectively executing a given program, a memory selection method in the apparatus, and a circuit thereof are provided.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に本発明の情報処理装置は以下のような構成を備える。
即ち、CPUによりアクセスされ、少なくとも一部が重
複するアドレス空間に配置された複数のメモリを有する
情報処理装置であって、前記CPUが前記重複するアド
レス空間をアクセスする際に、前記CPUから出力され
る選択信号に応じて前記複数のメモリの内の1つを選択
する選択手段を有し、前記CPUは、前記選択手段によ
り選択されたメモリより読み出したプログラムを実行す
ることを特徴とする。
In order to achieve the above object, an information processing apparatus according to the present invention has the following arrangement.
That is, an information processing apparatus that has a plurality of memories that are accessed by a CPU and that are arranged in an address space that at least partially overlaps, is output from the CPU when the CPU accesses the overlapping address space. It has a selecting means for selecting one of the plurality of memories according to a selection signal, and the CPU executes the program read from the memory selected by the selecting means.

【0008】上記目的を達成するために本発明のメモり
選択回路は以下のような構成を備える。即ち、少なくと
も所定のアドレス領域が重複している第1と第2のメモ
リのいずれかを選択するメモリ選択回路であって、CP
Uよりのアドレス信号をデコードして所定のアドレス領
域がアクセスされたことを検知するデコード手段と、前
記CPUより出力される選択信号に応じて、前記デコー
ド手段によるデコード結果に応じて前記第1と第2のメ
モリのいずれかを選択するための信号を選択した第1或
は第2のメモリに出力するメモリ選択手段とを有する。
In order to achieve the above object, the memory selection circuit of the present invention has the following configuration. That is, a memory selection circuit for selecting one of the first and second memories in which at least a predetermined address area is overlapped,
Decoding means for decoding an address signal from U to detect access to a predetermined address area, and a first signal according to a decoding result by the decoding means according to a selection signal output from the CPU. And a memory selection means for outputting a signal for selecting one of the second memories to the selected first or second memory.

【0009】上記目的を達成するために本発明のメモリ
選択方法は以下のような工程を備える。即ち、少なくと
も所定のアドレス領域が重複している第1と第2のメモ
リのいずれかを選択するメモリ選択方法であって、CP
Uよりのアドレス信号をデコードして所定のアドレス領
域がアクセスされたことを検知する検知工程と、前記C
PUより出力される選択信号に応じて、前記検知工程に
おける検知結果に応じて前記第1と第2のメモリのいず
れかを選択するための信号を、当該選択した第1或は第
2のメモリに出力する工程とを有する。
In order to achieve the above object, the memory selection method of the present invention includes the following steps. That is, it is a memory selection method for selecting one of the first and second memories in which at least a predetermined address area is overlapped,
A detection step of decoding an address signal from U to detect access to a predetermined address area;
In response to a selection signal output from the PU, a signal for selecting one of the first and second memories according to the detection result in the detection step is set to the selected first or second memory. And the step of outputting to.

【0010】上記目的を達成するために本発明の情報処
理方法は以下のような工程を備える。即ち、CPUによ
りアクセスされ、少なくとも一部が重複するアドレス領
域に配置された第1と第2のメモリを実装可能な情報処
理装置における情報処理方法であって、初期動作時、前
記CPUより選択信号を所定のレベルで出力するように
指示する工程と、前記所定のレベルの選択信号が出力さ
れている状態で前記第1のメモリよりプログラムを読み
出して実行する実行工程と、前記実行工程において、前
記選択信号の信号レベルを変更する工程と、前記信号レ
ベルが変更された状態で前記第2のメモリの所定アドレ
スにアクセスして前記第2のメモリの良否を判断する判
断工程と、前記判断工程において、良と判断されると前
記第2のメモリに記憶されているプログラムを実行する
工程とを有する。
In order to achieve the above object, the information processing method of the present invention includes the following steps. That is, an information processing method in an information processing apparatus which can be mounted by a first memory and a second memory which are accessed by a CPU and which are arranged in address areas at least partially overlapping with each other. Is output at a predetermined level, an execution step of reading and executing a program from the first memory in a state where the selection signal of the predetermined level is output, and the execution step, A step of changing the signal level of the selection signal; a step of judging whether the second memory is good or bad by accessing a predetermined address of the second memory while the signal level is changed; , And if the program is judged to be good, the program stored in the second memory is executed.

【0011】[0011]

【発明の実施の形態】以下、添付図面を参照して本発明
の好適な実施の形態を詳しく説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0012】図1は、本発明の実施の形態の記録装置の
制御回路の構成を示すブロック図である。尚、この実施
の形態では記録装置の場合で説明するが、本発明はこれ
に限定されるものでなく、記録装置以外の、例えばパー
ソナル・コンピュータ等の各種情報処理機器において実
施されても良い。
FIG. 1 is a block diagram showing the configuration of a control circuit of a recording apparatus according to an embodiment of the present invention. Although a recording apparatus is described in this embodiment, the present invention is not limited to this, and may be implemented in various information processing devices other than the recording apparatus, such as a personal computer.

【0013】図1において、1はMPUで、本実施の形
態の記録装置の制御プログラムに基づいて、各部への制
御信号及び制御指示を与えて装置全体の動作を制御して
いる。2はゲートアレイIC(GA)で、MPU1の指
示により各部の制御動作を行うロジック回路を備えてい
る。3はDRAMで、MPU1の制御の下に各種データ
の書き込み及び読み出しを行っている。4はマスクRO
Mで、この記録装置の動作を制御するための制御プログ
ラム及び制御データ、更にはプリントに使用されるフォ
ントデータ等を記憶している。5はEPROMで、マス
クROM4とは別に、MPU1により実行される制御プ
ログラム及び制御データを記憶している。6はEPRO
M5を記録装置に取付けるためのICソケットである。
尚、その他、本実施の形態の記録装置に必要な部分は省
略してある。
In FIG. 1, reference numeral 1 denotes an MPU, which controls the operation of the entire apparatus by giving control signals and control instructions to each section based on the control program of the recording apparatus of this embodiment. Reference numeral 2 denotes a gate array IC (GA), which is provided with a logic circuit that controls each part according to an instruction from the MPU 1. Reference numeral 3 denotes a DRAM, which writes and reads various data under the control of the MPU 1. 4 is a mask RO
M stores a control program and control data for controlling the operation of the recording apparatus, and further, font data used for printing. Reference numeral 5 denotes an EPROM, which stores a control program and control data executed by the MPU 1 in addition to the mask ROM 4. 6 is EPRO
This is an IC socket for mounting the M5 on a recording device.
In addition, other parts necessary for the recording apparatus according to the present embodiment are omitted.

【0014】前述したMPU1,GA2,DRAM3,
マスクROM4,EPROM5等の各ユニットは、それ
ぞれデータバス、アドレスバスを介してMPU1と接続
されており、このデータバスを介して各ユニット間でデ
ータの授受を行うことができる。
The above-mentioned MPU1, GA2, DRAM3,
Each unit such as the mask ROM 4 and EPROM 5 is connected to the MPU 1 via a data bus and an address bus, and data can be exchanged between the units via this data bus.

【0015】尚、EPROM5のアドレス領域は、マス
クROM4のプログラム及び制御データを記憶している
アドレス領域と重複しており、その重複しているアドレ
ス空間では、GA2から出力されるチップセレクト信号
CS0(7),CS1(8)により、マスクROM4又
はEPROM5の何れか一方だけが選択される。
The address area of the EPROM 5 overlaps with the address area of the mask ROM 4 for storing the program and control data. In the overlapping address space, the chip select signal CS0 ( 7) and CS1 (8) select only one of the mask ROM 4 and the EPROM 5.

【0016】GA2は、MPU1がマスクROM4又は
EPROM5の制御プログラムをアクセスするために制
御プログラムのアドレスをアドレスバスに出力すると、
そのアドレスをデコードしてマスクROM4又はEPR
OM5のいずれかを有効にするチップセレクト信号(C
S0,CS1)を出力する。前述のように、MPU1か
らみたマスクROM4とEPROM5のアドレス領域は
同一であるため、マスクROM4用のチップセレクト信
号CS1(8)を出力するか、EPROM5用チップセ
レクト信号CS0(7)を出力するかは、MPU1の出
力ポート(P0)からの選択信号9に基づいて決定され
る。
When the MPU 1 outputs the control program address to the address bus in order for the MPU 1 to access the control program stored in the mask ROM 4 or EPROM 5, the GA 2 outputs the address.
Decode the address to mask ROM 4 or EPR
Chip select signal (C
S0, CS1) is output. As described above, since the mask ROM 4 and the EPROM 5 have the same address area as seen from the MPU 1, whether the mask ROM 4 chip select signal CS1 (8) is output or the EPROM 5 chip select signal CS0 (7) is output. Is determined based on the selection signal 9 from the output port (P0) of MPU1.

【0017】いまEPROM5の有効アドレス領域を8
000H(Hは16進数を示す)から3FFFFHまで
とし、マスクROM4の有効アドレス領域を8000H
から3FFFFFHまでとする。いま、GA2から出力
されるチップセレクト信号CS0(7),CS1(8)
は、MPU1からGA2に入力されるチップセレクト選
択信号9(CSSEL)に応じて、次のように決定され
る。
Now, the effective address area of the EPROM 5 is set to 8
000H (H indicates a hexadecimal number) to 3FFFFH, and the effective address area of the mask ROM 4 is 8000H.
To 3FFFFFH. Now, chip select signals CS0 (7) and CS1 (8) output from GA2
Is determined as follows according to the chip select selection signal 9 (CSSEL) input from MPU1 to GA2.

【0018】即ち、選択信号9(CSSEL)がロウレ
ベルのときは、MPU1がアドレス8000Hから3F
FFFHまでをアクセスするときに、信号CS0(7)
をエネーブルにしてEPROM5を選択し、MPU1が
アドレス40000Hから3FFFFFHまでをアクセ
スする時は、チップセレクト信号CS1(8)をエネー
ブルにしてマスクROM4を選択する。また、選択信号
9(CSSEL)がハイレベルのときは、MPU1がア
ドレス8000Hから3FFFFHまでをアクセスする
時はチップセレクト信号CS1(8)をエネーブルにし
てマスクROM4を選択し、チップセレクト信号CS0
(7)をエネーブルにしない。このようにMPU1から
GA2に入力される信号9のレベルに応じて、マスクR
OM4又はEPROM5のいずれかが選択される。
That is, when the selection signal 9 (CSSEL) is at the low level, the MPU 1 operates from the address 8000H to 3F.
When accessing up to FFFH, signal CS0 (7)
Is enabled to select the EPROM 5, and when the MPU 1 accesses addresses 40000H to 3FFFFFH, the chip select signal CS1 (8) is enabled to select the mask ROM 4. When the selection signal 9 (CSSEL) is at a high level, when the MPU 1 accesses addresses 8000H to 3FFFFH, the chip select signal CS1 (8) is enabled to select the mask ROM 4, and the chip select signal CS0 is selected.
Do not enable (7). In this way, according to the level of the signal 9 input from the MPU 1 to the GA 2, the mask R
Either OM4 or EPROM5 is selected.

【0019】図1に示すように、GA2のCSSEL端
子はMPU1の出力ポートP0と接続されており、MP
U1の出力ポートP0の出力状態(信号レベル)に応じ
てマスクROM4又はEPROM5のいずれかが選択さ
れる。尚、MPU1のリセット後のイニシャル状態で
は、この出力ポートP0にはハイレベルの信号が出力さ
れるため、リセット後、MPU1がアドレス8000H
から3FFFFHまでをアクセスする時には必ずチップ
セレクト信号CS1(8)がエネーブルになってマスク
ROM4だけがアクセスされることになる。
As shown in FIG. 1, the CSSEL terminal of GA2 is connected to the output port P0 of MPU1.
Either the mask ROM 4 or the EPROM 5 is selected according to the output state (signal level) of the output port P0 of U1. In the initial state after the MPU1 is reset, a high level signal is output to the output port P0. Therefore, after the reset, the MPU1 has the address 8000H.
3 to 3FFFFH, the chip select signal CS1 (8) is always enabled and only the mask ROM 4 is accessed.

【0020】次に、図2のフローチャートを参照して、
本実施の形態の記録装置のMPU1による制御動作につ
いて説明する。
Next, referring to the flowchart of FIG.
A control operation by the MPU 1 of the recording apparatus according to the present embodiment will be described.

【0021】まずステップS1で記録装置に電源が投入
され、リセットが解除されるとMPU1の出力ポートP
0にはハイレベルの信号が出力されているため、MPU
1はマスクROM4のアドレス8000H〜3FFFF
Hに記憶されているプログラムエリアにアクセスして、
そこに記憶されている制御プログラムを読み出し、MP
U1及びGA2の初期設定を行う(ステップS2)。そ
の後ステップS3に進み、マスクROM4及びDRAM
3のチェックを行う。これらマスクROM4,DRAM
3のチェックの結果、異常がない場合はステップS4に
進み、マスクROM4に記憶されているEPROM判定
プログラムをDRAM3に転送する。
First, in step S1, when the recording apparatus is powered on and the reset is released, the output port P of the MPU 1 is released.
Since a high level signal is output to 0, the MPU
1 is the address of the mask ROM 4 8000H to 3FFFF
Access the program area stored in H,
The control program stored there is read and MP
U1 and GA2 are initialized (step S2). After that, the process proceeds to step S3, and the mask ROM 4 and the DRAM
Check 3 above. These mask ROM4, DRAM
As a result of the check of No. 3, if there is no abnormality, the process proceeds to step S4, and the EPROM determination program stored in the mask ROM 4 is transferred to the DRAM 3.

【0022】このEPROM判定プログラムのDRAM
3への転送処理が終了するとステップS5に進み、MP
U1は動作プログラムの実行アドレスをEPROM判定
プログラムの転送先アドレスに設定し、これ以降、DR
AM3に記憶されているEPROM判定プログラムを読
み出して実行する。
DRAM of this EPROM determination program
When the transfer process to 3 is completed, the process proceeds to step S5, where MP
U1 sets the execution address of the operation program to the transfer destination address of the EPROM determination program, and thereafter, DR
The EPROM determination program stored in AM3 is read and executed.

【0023】次にステップS6に進み、MPU1は出力
ポートP0の出力をロウレベルに設定して選択信号9の
信号レベルをロウレベルにし、EPROM5を選択する
ためのチップセレクト信号CS0(7)がエネーブルに
なるように設定する。次にステップS7に進み、予めE
PROM5の任意のアドレスにEPROM判定用データ
が記憶されているかを調べるために、そのアドレスをリ
ードする。そしてステップS8に進み、その読み出した
データが判定データと一致するかどうかを判断し、判定
データと一致した場合はICソケット6を介してEPR
OM5が実装されていると判断してステップS9に進
む。ステップS9では、MPU1はEPROM5のその
他のアドレスから正常にデータがリードされるかどうか
チェックし、異常がない場合はステップS11に進み、
プログラムの読み出しアドレスを通常動作のアドレスに
戻し、ステップS12以降で通常動作を実行する。
Next, in step S6, the MPU 1 sets the output of the output port P0 to low level to set the signal level of the selection signal 9 to low level, and the chip select signal CS0 (7) for selecting the EPROM 5 is enabled. To set. Next, in step S7, E
To check whether the EPROM determination data is stored at an arbitrary address of the PROM 5, that address is read. Then, in step S8, it is determined whether the read data matches the judgment data. If the read data matches the judgment data, the EPR is performed via the IC socket 6.
It is determined that the OM5 is installed, and the process proceeds to step S9. In step S9, the MPU 1 checks whether the data is normally read from the other addresses of the EPROM 5, and if there is no abnormality, the process proceeds to step S11.
The read address of the program is returned to the address of the normal operation, and the normal operation is executed after step S12.

【0024】一方、ステップS8で、EPROM5の所
定のアドレスから読み出したデータがEPROM判定用
データと一致しない場合は、EPROM5が装着されて
いないと判断してステップS10に進む。そして出力ポ
ートP0の出力信号レベルをハイレベルに設定して、マ
スクROM4へのアクセスを可能にする。そしてステッ
プS11に進み、プログラムの読み出しアドレスを通常
動作のアドレスに戻し、ステップS12で通常動作を実
行する。
On the other hand, if the data read from the predetermined address of the EPROM 5 does not match the EPROM determination data in step S8, it is determined that the EPROM 5 is not mounted and the process proceeds to step S10. Then, the output signal level of the output port P0 is set to a high level to enable access to the mask ROM 4. Then, the process proceeds to step S11, the read address of the program is returned to the address of the normal operation, and the normal operation is executed in step S12.

【0025】図3は、本実施の形態のGA2の回路構成
例を示すブロック図である。
FIG. 3 is a block diagram showing an example of the circuit configuration of the GA2 of this embodiment.

【0026】図において、31はデコーダで、アドレス
バスのアドレス信号A18,A17,A16,A15を入力し、
その4ビットデータに相当する信号をハイレベルにして
出力している。選択信号9は、前述したようにMPU1
の出力ポートPOから出力されるマスクROM4かEP
ROM5のいずれかを選択するための信号である。い
ま、この選択信号9の信号レベルがハイレベルで、アド
レスバスにアドレス8000H〜3FFFFHが出力さ
れると、AND回路32が開かれてチップ選択信号CS
1がエネーブルになる。逆に選択信号9のレベルがロウ
レベルの時は、AND回路33が開かれてチップ選択信
号CS0がエネーブルになる。
In the figure, 31 is a decoder for inputting address signals A18, A17, A16, A15 of the address bus,
A signal corresponding to the 4-bit data is output at a high level. The selection signal 9 is the MPU 1 as described above.
ROM 4 or EP output from the output port PO of
This is a signal for selecting one of the ROMs 5. When the signal level of the selection signal 9 is high and the addresses 8000H to 3FFFFH are output to the address bus, the AND circuit 32 is opened and the chip selection signal CS
1 is enabled. Conversely, when the level of the selection signal 9 is low, the AND circuit 33 is opened and the chip selection signal CS0 is enabled.

【0027】またOR回路36,37は、アドレス信号
A21,A20,A19,A18のいずれかがオン“1”になる
と、即ち、MPU1がアドレス40000H以上をアク
セスする時にチップ選択信号CS1をエネーブルにして
マスクROM4を選択するための回路である。尚、3
4,35はインバータ回路である。
Further, the OR circuits 36 and 37 enable the chip selection signal CS1 when any of the address signals A21, A20, A19 and A18 is turned on "1", that is, when the MPU1 accesses the address 40000H or higher. This is a circuit for selecting the mask ROM 4. Incidentally, 3
Reference numerals 4 and 35 are inverter circuits.

【0028】なお、本発明は、複数の機器(例えばホス
トコンピュータ、インタフェイス機器、リーダ、プリン
タなど)から構成されるシステムに適用しても、一つの
機器からなる装置(例えば、複写機、ファクシミリ装置
など)に適用してもよい。
Even if the present invention is applied to a system composed of a plurality of devices (for example, host computer, interface device, reader, printer, etc.), a device composed of one device (for example, copying machine, facsimile). Device).

【0029】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても達成される。
Another object of the present invention is to supply a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or apparatus, and to supply a computer (or CPU) of the system or apparatus.
Or MPU) reads and executes the program code stored in the storage medium.

【0030】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0031】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク、ハードディス
ク、光ディスク、光磁気ディスク、CD−ROM、CD
−R、磁気テープ、不揮発性のメモリカード、ROMな
どを用いることができる。
A storage medium for supplying the program code is, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD.
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0032】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれる。
Further, by executing the program code read by the computer, not only the functions of the above-described embodiment are realized, but also the OS (operating system) running on the computer based on the instruction of the program code. ) And the like perform some or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0033】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施の形態の機能が実現される
場合も含まれる。
Further, after the program code read from the storage medium is written in the memory provided in the function expansion board inserted into the computer or the function expansion unit connected to the computer, based on the instruction of the program code, This also includes a case where a CPU or the like included in the function expansion board or the function expansion unit performs some or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0034】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、図4のメモリマップ例に示す各モジュールを
記憶媒体に格納することになる。即ち、少なくとも「指
示工程モジュール」「第1実行工程モジュール」「判断
工程モジュール」および「第2実行工程モジュール」の
各モジュールのプログラムコードを記憶媒体に格納すれ
ばよい。
When the present invention is applied to the above-mentioned storage medium, the storage medium stores the program code corresponding to the above-mentioned flow chart. Briefly, in the memory map example of FIG. Each module shown will be stored in the storage medium. That is, at least the program code of each module of the “instruction process module”, the “first execution process module”, the “determination process module”, and the “second execution process module” may be stored in the storage medium.

【0035】以上説明したように本実施の形態によれ
ば、同一アドレスに異なる制御プログラムを複数有する
ことが可能な記録装置において、後から制御プログラム
を有するROMを自動的に選択することが可能になる。
そのため、記録装置の制御プログラムをバージョンアッ
プしたような場合、最新プログラムを記憶したROMを
自動認識するため、バージョンアッププログラムを選択
するように設定を行うという煩わしさがない。また、メ
モリの選択の設定のし忘れによる、追加ROMの制御プ
ログラムでの動作が行われないという事態を確実に防止
できるという効果がある。
As described above, according to the present embodiment, it is possible to automatically select a ROM having a control program later in a recording apparatus capable of having a plurality of different control programs at the same address. Become.
Therefore, when the control program of the recording apparatus is upgraded, the ROM storing the latest program is automatically recognized, and there is no need to make a setting to select the upgrade program. Further, there is an effect that it is possible to surely prevent the situation where the operation by the control program of the additional ROM is not performed due to forgetting to set the memory selection.

【0036】[0036]

【発明の効果】以上説明したように本発明によれば、ア
ドレス領域が重複する複数のメモリを装着しても自動的
にそのメモリを切り換えて、そのメモリに記憶されてい
るプログラムを実行できるという効果がある。
As described above, according to the present invention, even if a plurality of memories having overlapping address areas are mounted, the memories can be automatically switched and the program stored in the memories can be executed. effective.

【0037】また本発明によれば、実装されているメモ
リのアドレス領域と重複するアドレス領域に新たにメモ
リが装着されても、自動的にそのメモリを判断して、そ
のメモリに記憶されているプログラムを選択実行できる
という効果がある。
Further, according to the present invention, even if a new memory is mounted in an address area overlapping the address area of the mounted memory, the memory is automatically judged and stored in the memory. The effect is that a program can be selectively executed.

【0038】[0038]

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

【図1】本発明の実施の形態の記録装置の制御部の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a control unit of a recording apparatus according to an embodiment of the present invention.

【図2】本実施の形態の記録装置における動作を示すフ
ローチャートである。
FIG. 2 is a flowchart showing the operation of the recording apparatus according to the present embodiment.

【図3】本実施の形態のゲートアレイ(GA)の構成を
示す回路ブロック図である。
FIG. 3 is a circuit block diagram showing a configuration of a gate array (GA) of the present embodiment.

【図4】本実施の形態の記録装置における制御プログラ
ムを記憶する記憶媒体のメモリマップ図である。
FIG. 4 is a memory map diagram of a storage medium that stores a control program in the recording apparatus according to the present embodiment.

【符号の説明】 1 マイクロプロセッサ(MPU) 2 ゲートアレイ(GA) 3 DRAMメモリ 4 マスクROM 5 EPROM 6 ICソケット 31 デコーダ[Explanation of Codes] 1 Microprocessor (MPU) 2 Gate Array (GA) 3 DRAM Memory 4 Mask ROM 5 EPROM 6 IC Socket 31 Decoder

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 CPUによりアクセスされ、少なくとも
一部が重複するアドレス空間に配置された複数のメモリ
を有する情報処理装置であって、 前記CPUが前記重複するアドレス空間をアクセスする
際に、前記CPUから出力される選択信号に応じて前記
複数のメモリの内の1つを選択する選択手段を有し、 前記CPUは、前記選択手段により選択されたメモリよ
り読み出したプログラムを実行することを特徴とする情
報処理装置。
1. An information processing apparatus having a plurality of memories which are accessed by a CPU and are arranged in at least a part of an overlapping address space, wherein the CPU has a function of accessing the overlapping address space. A selection unit that selects one of the plurality of memories according to a selection signal output from the CPU, and the CPU executes the program read from the memory selected by the selection unit. Information processing device.
【請求項2】 前記複数のメモリは、第1のプログラム
を記憶した第1のメモリと、前記第1のメモリのアドレ
ス空間と重複するアドレス空間に配置され、第2のプロ
グラムを記憶した第2のメモリを含むことを特徴とする
請求項1に記載の情報処理装置。
2. The plurality of memories are arranged in a first memory storing a first program and an address space overlapping the address space of the first memory, and a second memory storing a second program. The information processing apparatus according to claim 1, further comprising:
【請求項3】 前記第2のメモリは、前記情報処理装置
に着脱自在に装着されることを特徴とする請求項2に記
載の情報処理装置。
3. The information processing apparatus according to claim 2, wherein the second memory is detachably attached to the information processing apparatus.
【請求項4】 前記第2のメモリが装着されているか否
かを判断する判断手段を更に有することを特徴とする請
求項2又は3に記載の情報処理装置。
4. The information processing apparatus according to claim 2, further comprising a determination unit that determines whether or not the second memory is mounted.
【請求項5】 前記判断手段は、前記第2のメモリの所
定アドレスに記憶されているデータに基づいて前記第2
のメモリの装着の有無を判断することを特徴とする請求
項4に記載の情報処理装置。
5. The determination means is configured to determine the second memory based on data stored at a predetermined address of the second memory.
The information processing apparatus according to claim 4, wherein it is determined whether or not the memory is attached.
【請求項6】 前記CPUは前記判断手段である前記第
1のメモリに記憶されているプログラムをRAMに転送
し前記RAM上で当該プログラムを実行することを特徴
とする請求項4に記載の情報処理装置。
6. The information according to claim 4, wherein the CPU transfers a program stored in the first memory, which is the determining means, to a RAM and executes the program on the RAM. Processing equipment.
【請求項7】 少なくとも所定のアドレス領域が重複し
ている第1と第2のメモリのいずれかを選択するメモリ
選択回路であって、 CPUよりのアドレス信号をデコードして所定のアドレ
ス領域がアクセスされたことを検知するデコード手段
と、 前記CPUより出力される選択信号に応じて、前記デコ
ード手段によるデコード結果に応じて前記第1と第2の
メモリのいずれかを選択するための信号を選択した第1
或は第2のメモリに出力するメモリ選択手段と、を有す
ることを特徴とするメモリ選択回路。
7. A memory selection circuit for selecting one of a first memory and a second memory in which at least a predetermined address area is overlapped, wherein the predetermined address area is accessed by decoding an address signal from a CPU. A signal for selecting either the first memory or the second memory according to a decoding result by the decoding means, according to a selection signal output from the CPU Done first
Or a memory selecting means for outputting to the second memory.
【請求項8】 前記所定のアドレス領域以外では前記第
1或は第2のメモリの内、予め定められているメモリを
選択する手段を更に有することを特徴とする請求項7に
記載のメモリ選択回路。
8. The memory selection according to claim 7, further comprising means for selecting a predetermined memory from among the first or second memories other than the predetermined address area. circuit.
【請求項9】 少なくとも所定のアドレス領域が重複し
ている第1と第2のメモリのいずれかを選択するメモリ
選択方法であって、 CPUよりのアドレス信号をデコードして所定のアドレ
ス領域がアクセスされたことを検知する検知工程と、 前記CPUより出力される選択信号に応じて、前記検知
工程における検知結果に応じて前記第1と第2のメモリ
のいずれかを選択するための信号を、当該選択した第1
或は第2のメモリに出力する工程と、を有することを特
徴とするメモリ選択方法。
9. A memory selection method for selecting one of a first memory and a second memory in which at least a predetermined address area is overlapped, wherein the predetermined address area is accessed by decoding an address signal from a CPU. And a signal for selecting one of the first and second memories according to the detection result in the detection step, according to a detection step of detecting that The first selected
Or a step of outputting to a second memory.
【請求項10】 前記所定のアドレス領域以外では前記
第1或は第2のメモリの内、予め定められているメモリ
を選択する工程を更に有することを特徴とする請求項9
に記載のメモリ選択方法。
10. The method according to claim 9, further comprising the step of selecting a predetermined memory from among the first or second memories other than the predetermined address area.
Memory selection method described in.
【請求項11】 CPUによりアクセスされ、少なくと
も一部が重複するアドレス領域に配置された第1と第2
のメモリを実装可能な情報処理装置における情報処理方
法であって、 初期動作時、前記CPUより選択信号を所定のレベルで
出力するように指示する指示工程と、 前記所定のレベルの選択信号が出力されている状態で前
記第1のメモリよりプログラムを読み出して実行する第
1実行工程と、 前記実行工程において、前記選択信号の信号レベルを変
更する変更工程と、 前記信号レベルが変更された状態で前記第2のメモリの
所定アドレスにアクセスして前記第2のメモリの良否を
判断する判断工程と、 前記判断工程において、良と判断されると前記第2のメ
モリに記憶されているプログラムを実行する第2実行工
程と、を有することを特徴とする情報処理方法。
11. A first and a second which are accessed by a CPU and are arranged in address areas at least partially overlapping with each other.
An information processing method in an information processing apparatus capable of mounting the memory, comprising an instruction step of instructing the CPU to output a selection signal at a predetermined level during an initial operation, and outputting the selection signal at the predetermined level. A first execution step of reading a program from the first memory and executing the program in the state of being performed, a changing step of changing the signal level of the selection signal in the execution step, and a state of changing the signal level in the state A judgment step of judging whether the second memory is good or bad by accessing a predetermined address of the second memory; and executing a program stored in the second memory when the judgment step judges that the second memory is good. And a second executing step for performing the information processing method.
JP12838096A 1996-05-23 1996-05-23 Information processing method, device therefor, memory selecting method for the device, and circuit therefor Withdrawn JPH09311818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12838096A JPH09311818A (en) 1996-05-23 1996-05-23 Information processing method, device therefor, memory selecting method for the device, and circuit therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12838096A JPH09311818A (en) 1996-05-23 1996-05-23 Information processing method, device therefor, memory selecting method for the device, and circuit therefor

Publications (1)

Publication Number Publication Date
JPH09311818A true JPH09311818A (en) 1997-12-02

Family

ID=14983393

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12838096A Withdrawn JPH09311818A (en) 1996-05-23 1996-05-23 Information processing method, device therefor, memory selecting method for the device, and circuit therefor

Country Status (1)

Country Link
JP (1) JPH09311818A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999052029A1 (en) * 1998-04-01 1999-10-14 Omron Corporation Data processor and image processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999052029A1 (en) * 1998-04-01 1999-10-14 Omron Corporation Data processor and image processor
US6851002B1 (en) 1998-04-01 2005-02-01 Omron Corporation Processing device with parallel mounting regions for component exchange

Similar Documents

Publication Publication Date Title
US4663707A (en) Multilevel bootstrap apparatus
EP0468625B1 (en) Personal computer system with protected storage for interface and system utility programs
US6073206A (en) Method for flashing ESCD and variables into a ROM
US5987536A (en) Computer system having flash memory bios which can be accessed while protected mode operating system is running
EP0464987A2 (en) Method and apparatus for initialisation of computer system features
KR20010006749A (en) Storing system-level mass storage configuration data in non-volatile memory on each mass storage device to allow for reboot/power-on reconfiguration of all installed mass storage devices to the same configuration as last use
KR100280637B1 (en) Computer system capable of data update of fixed flash ROM and its control method
JP3519954B2 (en) Chip enable signal generation circuit and memory device
JPH0764770A (en) Microcontroller apparatus provided with remotely writable eprom and writing method
JP3310990B2 (en) Electronics
US5809330A (en) Conflict free PC in which only the I/O address of internal device is change when it is determined that the I/O address is overlap by expansion device
US6795915B2 (en) Computer system and method for setting up information on an operating system thereof
US6321332B1 (en) Flexible control of access to basic input/output system memory
US6216225B1 (en) PC system having flash-ROM controlling device and method for protecting BIOS stored in flash-ROM
US5168562A (en) Method and apparatus for determining the allowable data path width of a device in a computer system to avoid interference with other devices
JPH09311818A (en) Information processing method, device therefor, memory selecting method for the device, and circuit therefor
US5754852A (en) Apparatus for combining cellular telephone ring signals and PSTN ring signals
JPH06208460A (en) Microprogram memory control system
JPH1145206A (en) Electronic device, memory starting method, and record medium recording memory starting program
WO1996038790A1 (en) A system and method for patching microcode during the debugging of a processor
JPH08137622A (en) Disk device and write read method for same
JP2000029679A (en) Personal computer using flash memory as bios-rom
JPH0756847A (en) Portable computer
JPH11328089A (en) Id information write circuit in device for pci bus interface
JP4817760B2 (en) Information processing apparatus and system clock frequency setting method thereof

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030805