JP3033802B2 - Printer device - Google Patents
Printer deviceInfo
- Publication number
- JP3033802B2 JP3033802B2 JP4314400A JP31440092A JP3033802B2 JP 3033802 B2 JP3033802 B2 JP 3033802B2 JP 4314400 A JP4314400 A JP 4314400A JP 31440092 A JP31440092 A JP 31440092A JP 3033802 B2 JP3033802 B2 JP 3033802B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- emc
- rom
- memory
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Executing Machine-Instructions (AREA)
- Stored Programmes (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、接続される上位機器の
種別に応じた印字動作を行うプリンタ装置に係り、特に
エミュレーションカートリッジの差し替えにより多種類
の上位機器に対応可能なプリンタ装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer which performs a printing operation in accordance with the type of a higher-level device to be connected, and more particularly to a printer which can cope with various types of higher-level devices by replacing an emulation cartridge.
【0002】[0002]
【従来の技術】従来、プリンタ装置では多種類のホスト
コンピュータとの接続が可能となっている。これらの多
くは、特定のホストコンピュータと接続するプリンタの
エミュレーションを行うプログラムを複数用意して、着
脱可能なエミュレーションカートリッジ(EMC)とし
て、該EMCの交換により多種類のホストへの対応を可
能としている。また、EMCだけでなくプリンタ装置に
内蔵される制御プログラムにも同様の機能を持たせるこ
とが可能である。2. Description of the Related Art Conventionally, a printer device can be connected to various types of host computers. In many of these, a plurality of programs for emulating a printer connected to a specific host computer are prepared, and as a detachable emulation cartridge (EMC), it is possible to cope with various types of hosts by exchanging the EMC. . Further, it is possible to provide a similar function to the control program <br/> built - in to the printer not only EMC.
【0003】図7は、従来のプリンタ装置における内蔵
ROMプログラムとEMCプログラムの関係を示す図で
あり、図7(a)はEMCが装着されていない場合、図
7(b)はEMCが装着されている場合を示す。FIG. 7 is a diagram showing the relationship between a built-in ROM program and an EMC program in a conventional printer. FIG. 7A shows a case where EMC is not installed, and FIG. 7B shows a case where EMC is installed. Indicates when
【0004】同図に示すように、内蔵ROMプログラム
とEMCプログラムとではリンクが異なる為、内蔵RO
MプログラムからEMCプログラムへ、或いは逆にEM
Cプログラムから内蔵ROMプログラムへ移行する際に
は、各々の固定番地にあるジャンプテーブルを利用する
ことになる。[0006] As shown in FIG. 1, since the link between the built-in ROM program and the EMC program is different, the built-in
From M program to EMC program or vice versa
When shifting from the C program to the built-in ROM program, a jump table at each fixed address is used.
【0005】例えば、図8は、内蔵ROMプログラムか
らEMCプログラムへの前記移行手順を示す図である。
同図に示すように、内蔵ROMの先頭番地に書き込まれ
ている内蔵ROMプログラムへのジャンプ命令60に基
づいて内蔵ROMプログラム61に移行し、該内蔵RO
Mプログラム61からEMCプログラム64への移行要
求がある場合にはプログラム62によりEMCの有無の
判断を行い、EMCがあれば該EMCの固定番地に移行
し、該番地に格納されているジャンプテーブル63を使
用してEMCプログラム64へ移行する。尚、EMCか
ら内蔵ROMへの移行も同様にして行われる。[0005] For example, FIG. 8 is a diagram showing the procedure for shifting from an internal ROM program to an EMC program.
As shown in the figure, the internal ROM program 61 is shifted to the internal ROM program 61 based on a jump instruction 60 to the internal ROM program written at the head address of the internal ROM.
When there is a request for shifting from the M program 61 to the EMC program 64, the program 62 determines whether or not there is EMC. If there is EMC, the program shifts to the fixed address of the EMC and the jump table 63 stored in the address. To the EMC program 64 using. The transfer from the EMC to the built-in ROM is performed in the same manner.
【0006】[0006]
【発明が解決しようとする課題】前述したように、従来
はEMCが装着されていない場合も考えられるので、E
MCプログラムへ移行する要求を受けると、先ずEMC
が存在するか否かを確認しなければならない。また、同
様に内蔵ROMプログラムもない場合も有り得るので、
EMCプログラムから内蔵ROMプログラムへ移行する
場合にも同様の確認が必要となる。As described above, it is conceivable that the EMC is not mounted conventionally,
When receiving a request to shift to the MC program,
Must be checked to see if it exists. Similarly, there may be no built-in ROM program.
Similar confirmation is required when shifting from the EMC program to the internal ROM program.
【0007】また、内蔵ROMプログラム及びEMCプ
ログラムからモジュール単位での入れ換えを可能とすれ
ば、各プログラムは常に全モジュールを持たなくても良
いことになるので、これによりプログラムROMの容量
を削減することができるが、内蔵ROMとEMCの両方
に同じモジュールが存在する場合には、機能改善、或い
は拡張された可能性のある新しいモジュールの方へ移行
しなければならない。If the internal ROM program and the EMC program can be replaced in units of modules, each program does not always need to have all the modules, thereby reducing the capacity of the program ROM. However, if the same module exists in both the built-in ROM and the EMC, it is necessary to move to a new module that may be improved or expanded.
【0008】ここで、内蔵ROMプログラムとEMCプ
ログラムを比較すると、着脱可能なEMCプログラムの
方が新しいモジュールであると考えるのが一般的であ
る。Here, when comparing the built-in ROM program and the EMC program, it is general that the removable EMC program is considered to be a new module.
【0009】従って、内蔵ROMプログラムで動作中、
モジュールを追加する度に、EMCの有無を判断し、E
MCがあればEMCのジャンプテーブルでEMCプログ
ラムへ移行後、目的のモジュールがあるか否かを判断す
る操作が必要となる。Therefore, during operation with the built-in ROM program,
Each time a module is added, the presence or absence of EMC is determined.
If there is an MC, after shifting to the EMC program in the jump table of the EMC, an operation for determining whether or not the target module exists is required.
【0010】本発明は前記問題に鑑みてなされたもの
で、その目的とするところは、複雑な条件命令を使用す
ることなく、異なる命令エリア間のモジュール毎の移行
を可能とすることにある。SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to enable a module-by-module transfer between different instruction areas without using complicated conditional instructions.
【0011】[0011]
【課題を解決するための手段】上記目的を達成するため
に、本発明のプリンタ装置では、接続される上位装置に
対応した印字処理を行う為の複数のモジュールからなる
プログラムを記憶するメモリを複数装備可能に構成され
たプリンタ装置において、アドレスを発生して前記メモ
リをアクセスし前記プログラムを実行する処理手段と、
前記メモリの装備状態を検知する検知手段とを有し、前
記処理手段は、発生する論理アドレスの区分された範囲
を、その装置が装備可能なメモリの最大個数に対応して
別個に複数設定すると共に、前記処理手段の発生するア
ドレスの範囲及び前記検知手段の信号とに応じて指定さ
れたアドレスと物理メモリの接続関係を予め決められた
関係に切り換えるメモリ選択手段とを備え、前記処理手
段がリセット時に前記メモリ選択手段の制御に従ってプ
ログラムの読み出しを開始する記憶位置には、処理を開
始すべきモジュールへのジャンプ命令が記憶されたジャ
ンプテーブルへ処理アドレスを移行させるジャンプ命令
が格納されていることを特徴とする。In order to achieve the above-mentioned object, a printer according to the present invention has a plurality of memories for storing a program comprising a plurality of modules for performing a printing process corresponding to a higher-level device connected thereto. Processing means for generating an address, accessing the memory, and executing the program,
Detecting means for detecting the installed state of the memory, wherein the processing means separately sets a plurality of divided ranges of the generated logical addresses in accordance with the maximum number of memories that can be installed in the device. together, it is specified according to a signal generator for range and the detection means of the address of said processing means
The connection relationship between the specified address and the physical memory is predetermined.
Memory selection means for switching the relationship , wherein a jump instruction to a module to start processing is provided at a storage location where the processing means starts reading a program at the time of reset under the control of the memory selection means. A jump instruction for shifting a processing address to the stored jump table is stored.
【0012】[0012]
【作用】即ち、本発明のプリンタ装置は、接続される上
位装置に対応した印字処理を行う為のプログラムを記憶
するメモリを複数装備可能に構成され、それらのプログ
ラムは複数のモジュールから構成されている。処理手段
は、アドレスを発生してこれらのメモリをアクセスし記
憶されたプログラムを実行するが、メモリをアクセスす
るために発生する論理アドレスの区分された範囲が、そ
の装置が装備可能なメモリの最大個数に対応して別個に
複数設定されている。また、メモリの装備状態を検知す
る検知手段を有し、メモリ選択手段は処理手段の発生す
るアドレスの範囲及び前記検知手段の信号とに応じて指
定されたアドレスと物理メモリの接続関係を予め決めら
れた関係に切り換えアクセス可能に制御する。この様に
して、前記処理手段がリセット時に前記メモリ選択手段
の制御に従ってプログラムの読み出しが開始されメモリ
の記憶位置には処理を開始すべきモジュールへのジャン
プ命令が記憶されたジャンプテーブルへ処理アドレスを
移行させるジャンプ命令が格納されており、処理手段は
自動的に処理を開始すべきモジュールのプログラムを実
行する。In other words, the printer of the present invention can be provided with a plurality of memories for storing a program for performing a printing process corresponding to a higher-level device to be connected, and these programs are composed of a plurality of modules. I have. Processing means executes the access these memory by generating an address stored program, segmented range of logical addresses generated for accessing the memory, its
A plurality of devices are separately set corresponding to the maximum number of memories that can be installed in the device . The memory selection means includes a detection means for detecting a state of the memory , and a memory selection means performs a finger operation in accordance with an address range generated by the processing means and a signal from the detection means.
Determine the connection relationship between the specified address and the physical memory in advance.
Control to switch to the specified relationship . In this way, when the processing means resets the memory selection means
The program reading is started in accordance with the control of the above, and a jump instruction for shifting a processing address to a jump table storing a jump instruction to a module to start processing is stored in a memory location of the memory. The program of the module whose processing is to be started is executed.
【0013】[0013]
【実施例】以下、図面を参照して、本発明の実施例につ
いて説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0014】図1は、本発明の一実施例に係るプリンタ
装置の構成を示す図である。FIG. 1 is a diagram showing the configuration of a printer according to an embodiment of the present invention.
【0015】同図に示すように、本実施例は主として上
位機器としてのホストコンピュータ1と接続されてい
る。As shown in FIG. 1, this embodiment is mainly connected to a host computer 1 as a host device.
【0016】そして、このプリンタ装置2は、更にイン
ターフェイス(I/F)コントローラ3と、プリンタエ
ンジン4、及びこれらI/Fコントローラ3とプリンタ
エンジン4との間を接続するプリンタインターフェイス
5とで構成されている。The printer device 2 further comprises an interface (I / F) controller 3, a printer engine 4, and a printer interface 5 connecting the I / F controller 3 and the printer engine 4. ing.
【0017】さらに、このI/Fコントローラ3は、ホ
ストインターフェイス6と、MPU7、内蔵ROM8、
RAM9、受信バッファ11、イメージデータ発生部1
2、ROMセレクト部13、イメージメモリ14とで構
成されており、EMC10が着脱自在となっている。そ
して、前記プリンタエンジン4は、プリンタ部15と図
示しない印字ヘッド、用紙サイズ検知センサ、各種セン
サ、及び感光体ドラム等の種々の負荷を有している。Further, the I / F controller 3 includes a host interface 6, an MPU 7, a built-in ROM 8,
RAM 9, reception buffer 11, image data generation unit 1
2. It comprises a ROM selection unit 13 and an image memory 14, and the EMC 10 is detachable. The printer engine 4 has a printer unit 15 and various loads such as a print head (not shown), a paper size detection sensor, various sensors, and a photosensitive drum.
【0018】このような構成において、前記ホストイン
ターフェイス6は、例えばセントロニクス準拠等の8ビ
ットパラレルインターフェイスやRS−232C準拠等
のシリアルインターフェイスによって構成され、同一規
格のインターフェイスを持つホストコンピュータ1との
間でデータの送・受信を行う。In such a configuration, the host interface 6 is constituted by, for example, an 8-bit parallel interface conforming to Centronics or a serial interface conforming to RS-232C, and communicates with the host computer 1 having an interface of the same standard. Send and receive data.
【0019】そして、前記MPU7は、内蔵ROM8に
記憶されたコマンド解析やシステム管理のプログラムに
従ってI/Fコントローラ3内の各部の制御を司り、前
記RAM9はMPU7のワークエリアとして使用され
る。The MPU 7 controls each unit in the I / F controller 3 according to a command analysis and system management program stored in the built-in ROM 8, and the RAM 9 is used as a work area of the MPU 7.
【0020】さらに、前記受信バッファ11は、ホスト
インターフェイス6で受信されたホストコンピュータ1
からのコマンドやデータを一時的に蓄積記憶する。そし
て、前記イメージデータ発生部12は、この受信バッフ
ァ11に記憶された文字コードから対応する文字パター
ンデータを発生する為のキャラクタジェネレータ(C
G)ROMとユーザーの設計に応じた文字パターンを記
憶するCGRAM等とで構成されている。Further, the reception buffer 11 stores the host computer 1 received by the host interface 6.
Command and data are temporarily stored. The image data generator 12 generates a character generator (C) for generating corresponding character pattern data from the character code stored in the reception buffer 11.
G) A ROM and a CGRAM for storing a character pattern according to the design of the user.
【0021】そして、前記イメージメモリ14は、1ペ
ージ分のイメージを展開するためのビットマップメモリ
として使用され、印字可能な最大の印字用紙に対応した
記憶容量をもっている。The image memory 14 is used as a bit map memory for developing an image for one page, and has a storage capacity corresponding to the maximum printable printing paper.
【0022】さらに、前記プリンタ部15は、I/Fコ
ントローラ3から送られてきたビデオ信号を印字用紙上
に画像形成するためにプリンタエンジン4全体の状態や
動作を監視や制御をすると共に、前記ビデオ信号を画像
データに変換して、それに基づいて印字ヘッドの制御を
行う。この用紙サイズ検知センサは、例えば印字用紙の
収納された図示しないカセットに設けられた切り欠き等
からカセットのサイズ、つまりは印字用紙のサイズを検
知する。Further, the printer unit 15 monitors and controls the state and operation of the entire printer engine 4 in order to form a video signal sent from the I / F controller 3 on a print sheet, and controls the printer engine 4. The video signal is converted into image data, and the print head is controlled based on the video signal. The paper size detection sensor detects the size of the cassette, that is, the size of the printing paper, from a notch or the like provided in a cassette (not shown) that stores the printing paper.
【0023】そして、この検知された用紙サイズはプリ
ンタ部15からプリンタインターフェイス5を介してI
/Fコントローラ3のMPU4に送られる。The detected paper size is transmitted from the printer unit 15 via the printer interface 5 to the printer.
Sent to the MPU 4 of the / F controller 3.
【0024】さらに、前記プリンタインターフェイス5
は、I/Fコントローラ3から、そのイメージメモリ1
4に展開されたイメージデータをビデオ信号に変換して
プリンタエンジン4に送信し、該プリンタエンジン4か
らその状態監視をするためのステータス信号をI/Fコ
ントローラ3に送信する。Further, the printer interface 5
Is transmitted from the I / F controller 3 to the image memory 1
The image data expanded in 4 is converted into a video signal and transmitted to the printer engine 4, and a status signal for monitoring the state is transmitted from the printer engine 4 to the I / F controller 3.
【0025】図2は、前記内蔵ROM8,EMC10,
MPU7及びROMセレクト部13からなるメモリアク
セス部の接続関係を詳細に示した図である。FIG. 2 shows the internal ROM 8, EMC 10,
FIG. 3 is a diagram showing in detail a connection relationship of a memory access unit including an MPU 7 and a ROM selection unit 13.
【0026】同図に示すように、内蔵ROM8,EMC
10には、それぞれ種類の異なる上位機器に対応して印
字動作を行うための制御プログラムが記憶されている。As shown in FIG.
10 stores a control program for performing a printing operation corresponding to different types of higher-level devices.
【0027】そして、MPU7は、各種上位機器の仕様
に応じて制御を異ならせるため、命令エリア1及び命令
エリア2からなる2つの論理アドレス空間を備えてお
り、前記内蔵ROM8またはEMC10から読み出され
るプログラムに従って印字制御のための処理を実行す
る。The MPU 7 has two logical address spaces consisting of an instruction area 1 and an instruction area 2 in order to make the control different according to the specifications of various host devices. The MPU 7 has a program read from the built-in ROM 8 or the EMC 10. The processing for print control is executed in accordance with.
【0028】さらに、ROMセレクト部13は、上記M
PU7の発生するアドレス値及び上記EMC10の着脱
状態及び内蔵ROM8の有無状態に応じて内蔵ROM8
又はEMC10のいずれかを選択して前記制御プログラ
ムを読み出す。Further, the ROM selecting section 13 stores the M
In accordance with the address value generated by the PU 7, the state of attachment / detachment of the EMC 10, and the presence / absence state of the internal ROM 8,
Alternatively, the control program is read out by selecting one of the EMC10.
【0029】尚、本実施例では、アドレス信号25〜2
を共通とし、MPU7のアクセスアドレスが前記命令エ
リア1、命令エリア2のいずれかを識別するための信号
であるアドレス信号AD26と、「内蔵ROMの有無」
を示す信号及び「EMCの有無」を示す信号に基づいて
内蔵ROM8とEMC10のどちらかのプログラムに基
づいて制御を行うか否かをROMセレクト部13が選択
している。In this embodiment, the address signals 25 to 2 are used.
And an address signal AD26, which is a signal for identifying one of the instruction area 1 and the instruction area 2 as an access address of the MPU 7, and "the presence or absence of a built-in ROM".
The ROM selection unit 13 selects whether to perform control based on a program of the built-in ROM 8 or the EMC 10 based on a signal indicating the presence or absence of EMC.
【0030】次に、図3は、このような選択内容を示す
図である。Next, FIG. 3 is a diagram showing such selection contents.
【0031】同図に示すように、アドレス信号AD26
が“0”の場合には命令エリア1を、アドレス信号AD
26が“1”の場合には命令エリア2を選択する。そし
て、命令エリア1においては図3(a)に示すように、
命令エリア2においては図3(b)に示すように内蔵R
OMとEMCが選択される。As shown in FIG.
Is "0", the instruction area 1 is sent to the address signal AD.
When 26 is "1", the instruction area 2 is selected. Then, in the instruction area 1, as shown in FIG.
In the instruction area 2, as shown in FIG.
OM and EMC are selected.
【0032】例えば、図3(a)において、アドレス信
号AD26による命令エリア1を示す信号“0”と、内
蔵ROM8の「無」を示す信号、及びEMCの「有」を
示す信号が入力された場合には内蔵ROM8を選択する
ものとしているが、実際には内蔵ROM8が存在してい
ないので内蔵ROM8は動作しない。また、アドレス信
号AD26による命令エリア1を示す信号“0”と、E
MC10、内蔵ROM8共に「無」を示す信号が入力さ
れた場合にも内蔵ROM8を選択するが、この場合も同
様に動作しない。For example, in FIG. 3A, a signal "0" indicating the instruction area 1 by the address signal AD26, a signal indicating "absence" in the built-in ROM 8, and a signal indicating "present" in the EMC are input. In this case, the built-in ROM 8 is selected. However, since the built-in ROM 8 does not actually exist, the built-in ROM 8 does not operate. Also, a signal “0” indicating the instruction area 1 by the address signal AD26,
When both the MC 10 and the built-in ROM 8 receive a signal indicating “absence”, the built-in ROM 8 is selected.
【0033】さらに、図3(b)において、アドレス信
号AD26による命令エリア2を示す信号“1”と、内
蔵ROM8の「無」を示す信号、及びEMCの「無」を
示す信号が入力された場合には内蔵ROM8を選択する
ものとしているが、実際には内蔵ROM8もEMC8も
存在していないので動作しない。Further, in FIG. 3B, a signal "1" indicating the instruction area 2 by the address signal AD26, a signal indicating "absence" in the built-in ROM 8, and a signal indicating "absence" in the EMC are input. In this case, the built-in ROM 8 is selected. However, since neither the built-in ROM 8 nor the EMC 8 exists, the internal ROM 8 does not operate.
【0034】本実施例では、以下の方法により、内蔵R
OMが無い場合には、内蔵ROM8を選択した場合でも
EMC10にアクセスするようにしている。In the present embodiment, the built-in R
When there is no OM, the EMC 10 is accessed even when the built-in ROM 8 is selected.
【0035】即ち、前記内蔵ROM8とEMC10は、
ROMセレクト部13により制御され、図4に示される
3種の状態を取り得る。尚、図4ではMPU7のデータ
幅を32ビット、リセット時のプログラムの読み出し開
始アドレスを“0000 0000H”番地からとし、
内蔵ROM8及びEMC10の容量、即ち命令エリア
1、命令エリア2のサイズを各々16MBとしている。That is, the built-in ROM 8 and the EMC 10
It is controlled by the ROM selection unit 13 and can take the three states shown in FIG. In FIG. 4, the data width of the MPU 7 is 32 bits, and the read start address of the program at the time of reset is from "0000 0000H".
The capacities of the built-in ROM 8 and the EMC 10, that is, the size of the instruction area 1 and the instruction area 2 are each 16 MB.
【0036】以下、この図4を参照して、上記MPU7
の論理アドレス空間における上記命令エリア1、命令エ
リア2について説明する。Hereinafter, with reference to FIG.
The instruction area 1 and the instruction area 2 in the logical address space of FIG.
【0037】まず、図4(a)に示すように、内蔵RO
M8とは別にEMC10が装着可能に構成された仕様の
機種の場合には、MPU7にアドレス空間の命令エリア
1に内蔵ROM8、命令エリア2にEMC10を割り当
てる。これにより、MPU7はプログラムをEMC10
の先頭番地から開始し、内蔵ROM8上のプログラムに
基づき動作すると共に、必要があればEMC10の先頭
番地に実行先を移動させ、そのプログラムに基づき動作
することもできる。よって、内蔵ROM8とEMC10
によるダイナミックなダブルエミュレーション、即ち、
複数種の仕様にも対応させることができる。First, as shown in FIG.
In the case of a model having a specification in which the EMC 10 can be mounted separately from the M8, the built-in ROM 8 is assigned to the instruction area 1 of the address space and the EMC 10 is assigned to the instruction area 2 in the MPU 7. As a result, the MPU 7 loads the program into the EMC 10
Starting from the first address, the operation is performed based on the program in the built-in ROM 8, and if necessary, the execution destination can be moved to the first address of the EMC 10 to operate based on the program. Therefore, the built-in ROM 8 and the EMC 10
Dynamic double emulation by
It can correspond to multiple types of specifications.
【0038】そして、図4(b)に示すように、上記E
MC10を備えない仕様の機種の場合には、MPU7の
アドレス空間の命令エリア1、命令エリア2の両方を内
蔵ROM8の物理アドレスに割り当てる。これにより、
MPU7が処理を実行すると内蔵ROM8の先頭番地か
らスタートし、内蔵ROM8のプログラムのみに基づい
て動作する。Then, as shown in FIG.
In the case of a model that does not include the MC 10, both the instruction area 1 and the instruction area 2 in the address space of the MPU 7 are assigned to physical addresses in the internal ROM 8. This allows
When the MPU 7 executes the processing, it starts from the head address of the internal ROM 8 and operates based on only the program of the internal ROM 8.
【0039】さらに、図4(c)に示すように装着され
たEMC10内のプログラムのみに従って動作し、内蔵
ROM8が装着されない仕様の機種の場合も考えられる
が、この様な場合には、MPU7のアドレス空間の命令
エリア1、命令エリア2を共にEMC10の物理アドレ
スに割り当てる。この場合、MPU7は、起動するとE
MC10のプログラのみに基づいて動作することにな
る。これにより、内蔵ROM8とEMC10の組み合わ
せでなくとも、EMC10のみで動作させることができ
る。Further, as shown in FIG. 4 (c), a model which operates according to only the program in the EMC 10 mounted and does not have the built-in ROM 8 can be considered, but in such a case, the MPU 7 Instruction area 1 and instruction area 2 of the address space are both assigned to physical addresses of EMC 10. In this case, when the MPU 7 is activated,
It operates based on only the program of MC10. Thus, the operation can be performed only by the EMC 10 without using the combination of the built-in ROM 8 and the EMC 10.
【0040】このように構成されたメモリアクセス部に
おいて、内蔵ROMに予め記憶されるプログラムとEM
Cに予め記憶されるプログラムには、各々の先頭番地か
ら共通の構造を持つジャンプテーブルが配置される。In the memory access unit thus configured, the program stored in the built-in ROM and the EM
In the program stored in advance in C, a jump table having a common structure from the start address of each is arranged.
【0041】図5は、このジャンプテーブルの構成例を
示す図である。FIG. 5 is a diagram showing a configuration example of the jump table.
【0042】同図に示すように、各ジャンプテーブルに
は、8個のモジュールから構成されているプログラムの
構成に基づいて、8個のモジュールのいずれかをジャン
プ先とするジャンプ命令がそれぞれ記述されている。但
し、このモジュール数はジャンプテーブルの数と対応し
ていれば特にその数には制限されない。As shown in the figure, in each jump table, a jump instruction for jumping to any one of the eight modules is described based on the configuration of a program composed of eight modules. ing. However, the number of modules is not particularly limited as long as it corresponds to the number of jump tables.
【0043】そして、各ジャンプテーブルには、そのプ
ログラムの構成に応じて、プログラムに目的のモジュー
ルが含まれる場合には、そのモジュールをジャンプ先と
するジャンプ命令が記述されており、また、プログラム
に目的のモジュールが含まれない場合には、別命令エリ
アの同じジャンプテーブルをジャンプ先とするジャンプ
命令が記述されている。In each jump table, if a target module is included in the program according to the configuration of the program, a jump instruction to jump to that module is described. If the target module is not included, a jump instruction having the same jump table in another instruction area as a jump destination is described.
【0044】但し、前記ジャンプテーブルの先頭は、M
PU7がリセット時にプログラムの読み出しを開始する
アドレスであり、ここには新しいプログラムのあるエリ
ア、即ち、本例ではEMC10のプログラムが常に最新
であると考えEMC10の配置される命令エリア2の最
初のモジュールへのジャンプテーブル、即ち、図5にお
いては命令エリア2のモジュール1へのジャンプテーブ
ル321へのジャンプ命令が記述されている。However, the head of the jump table is M
This is the address at which the PU 7 starts reading the program at the time of reset. Here, there is an area where a new program is located, that is, the first module of the instruction area 2 in which the EMC 10 is located in the present example because the program of the EMC 10 is always considered to be the latest. 5, a jump instruction to the jump table 321 to the module 1 in the instruction area 2 is described in FIG.
【0045】図6は、このようなジャンプテ−ブルによ
るMPUリセット状態からモジュール1への移行までの
過程を示す図である。FIG. 6 is a diagram showing a process from the MPU reset state to the transition to the module 1 by such a jump table.
【0046】先ず、図6(a)は、内蔵ROM8とEM
C10が共に装着され、且つEMC10のプログラムに
モジュール1がリンクされている場合を示す図である。
この時、EMCプログラム作成時に、モジュール1への
ジャンプテーブル321にリンクされたモジュール1を
ジャンプ先とするジャンプ命令を記述しておく。First, FIG. 6A shows the internal ROM 8 and EM
It is a figure which shows the case where C10 is mounted together and the module 1 is linked to the program of EMC10.
At this time, when the EMC program is created, a jump instruction for jumping to the module 1 linked to the module 1 in the jump table 321 to the module 1 is described.
【0047】そして、MPUリセットにより、“000
0 0000H”番地に移行し、内蔵ROM8のジャン
プテーブル310のジャンプ命令を実行して、命令エリ
ア2のジャンプテーブル321へ移行する。次に、ジャ
ンプテーブル321のジャンプ命令に従ってEMC10
のモジュール1へ移行することになる。Then, "000" is reset by MPU reset.
00000H ", and executes the jump instruction of the jump table 310 of the internal ROM 8 to shift to the jump table 321 of the instruction area 2. Then, according to the jump instruction of the jump table 321, the EMC 10 is executed.
Will be transferred to module 1.
【0048】尚、同図では、内蔵ROM8側にもモジュ
ール1が用意されているが、前記手段により新しいEM
C10側のモジュール1だけをアクセスし、古い内蔵R
OM8側のモジュール1へはアクセスしない。Although the module 1 is also provided on the built-in ROM 8 side in FIG.
Access only module 1 on C10 side,
It does not access the module 1 on the OM8 side.
【0049】図6(b)は、上記図6(a)と同様に、
内蔵ROM8とEMC10が共に装着されているが、E
MC10側のプログラムにモジュール1がリンクされて
いない場合を示す図である。この時、EMCプログラム
作成時に、モジュール1へのジャンプテーブル321に
命令エリア1の同じモジュールへのジャンプテーブル3
11をジャンプ先とするジャンプ命令を記述しておく。FIG. 6B is similar to FIG.
The built-in ROM 8 and the EMC 10 are both installed.
FIG. 4 is a diagram showing a case where module 1 is not linked to a program on the MC 10 side. At this time, when the EMC program is created, the jump table 321 for the same module in the instruction area 1 is stored in the jump table 321 for the module 1.
A jump instruction for jump destination 11 is described.
【0050】そして、MPU7はリセット後、一旦、新
しいプログラムの存在する命令エリア2のモジュール1
へのジャンプテーブル321へ移行し、そのジャンプテ
ーブルから、改めて命令エリア1のモジュール1へのジ
ャンプテーブル311へ移行し、内蔵ROM8のモジュ
ール1を実行する。After the reset, the MPU 7 temporarily resets the module 1 in the instruction area 2 where the new program exists.
To the jump table 321, and from the jump table to the jump table 311 to the module 1 in the instruction area 1 again, the module 1 in the built-in ROM 8 is executed.
【0051】図6(c)は、内蔵ROM8のみでEMC
10が装着されていない場合を示す図である。この時、
スタート番地から命令エリア2のモジュール1へのジャ
ンプテーブル321へジャンプするが、このジャンプテ
ーブル321は内蔵ROM8のプログラムのモジュール
1へのジャンプテーブル311と同じなので、ジャンプ
先として命令エリア1のモジュール1が指定されてお
り、そこへジャンプする。FIG. 6C shows the case where only the built-in ROM 8 is used for EMC.
It is a figure showing the case where 10 is not attached. At this time,
The jump from the start address to the jump table 321 to the module 1 of the instruction area 2 is performed. Since the jump table 321 is the same as the jump table 311 to the module 1 of the program of the internal ROM 8, the module 1 of the instruction area 1 is jumped to. Specified and jump to it.
【0052】また、図6(d)は、内蔵ROM8が無く
てEMC10のみが装着されている場合を示す図であ
る。この時、命令エリア1からもEMC10のプログラ
ムが読み出されるので、スタート番地で命令エリア2の
モジュール1へのジャンプテーブル321へ移行後、E
MC10内のモジュール1へジャンプする。FIG. 6D is a diagram showing a case in which the internal ROM 8 is not provided and only the EMC 10 is mounted. At this time, since the program of the EMC 10 is also read from the instruction area 1, the program shifts to the jump table 321 to the module 1 of the instruction area 2 at the start address.
Jump to module 1 in MC10.
【0053】以上詳述したように、本発明のプリンタ装
置では、動作中のメモリ以外の命令メモリの有無を確認
する必要がない。即ち、内蔵ROMプログラム動作中に
EMCの有無を、或いはEMC動作中に内蔵ROMプロ
グラムの有無を確認する必要なく、常に一定の手順でモ
ジュールの選択が可能となる。As described in detail above, in the printer of the present invention, it is not necessary to confirm the presence or absence of an instruction memory other than the operating memory. That is, it is not necessary to check the presence or absence of the EMC during the operation of the built-in ROM program or to check the presence or absence of the built-in ROM program during the operation of the EMC.
【0054】さらに、モジュールの有無を確認する必要
がない。即ち、移行後の命令メモリに目的とするモジュ
ールがあるかどうかを条件命令で確認する必要がない。Further, there is no need to confirm the presence or absence of a module. In other words, it is not necessary to check whether or not the target module is present in the instruction memory after the transfer by using the conditional instruction.
【0055】また、操作が一定のジャンプ命令のみで構
成される為、非常に簡素な構成となり、複雑な条件命令
などが不要となるので、手順も簡単で、プログラム容量
の削減、実行時間の短縮を図ることができる。Further, since the operation is made up of only a fixed jump instruction, the operation becomes very simple, and complicated condition instructions are not required. Therefore, the procedure is simple, the program capacity is reduced, and the execution time is shortened. Can be achieved.
【0056】そして、内蔵ROMとEMCのように物理
的に異なる命令メモリ間で、モジュール単位の選択を行
う場合に、各々の命令メモリの有無、各々の命令メモリ
内のモジュールの有無などの判断を条件付きジャンプ命
令などを使用せず、全て一定の手順による無条件ジャン
プ命令だけで実行することができる。When a module unit is selected between physically different instruction memories such as an internal ROM and an EMC, it is necessary to determine whether or not each instruction memory is present and whether or not there is a module in each instruction memory. The execution can be performed only by an unconditional jump instruction according to a predetermined procedure without using a conditional jump instruction or the like.
【0057】[0057]
【発明の効果】本発明によれば、複雑な条件命令を使用
することなく、異なる命令エリア間のモジュール毎の移
行を可能としたプリンタ装置を提供することができる。According to the present invention, it is possible to provide a printer capable of transferring each module between different instruction areas without using complicated conditional instructions.
【図1】本発明の一実施例に係るプリンタ装置の構成を
示す図である。FIG. 1 is a diagram illustrating a configuration of a printer device according to an embodiment of the present invention.
【図2】本発明のプリンタ装置のメモリアクセス部の詳
細な回路構成を示す図である。FIG. 2 is a diagram showing a detailed circuit configuration of a memory access unit of the printer device of the present invention.
【図3】(a)及び(b)は、本発明のプリンタ装置の
ROMセレクト部13の識別内容を示す図である。FIGS. 3A and 3B are diagrams showing identification contents of a ROM selection unit 13 of the printer device of the present invention.
【図4】(a)は内蔵ROMとEMCの両方が装着され
た状態を示し、(b)は内蔵ROMのみでEMCが装着
されていない状態を示し、(c)は内蔵ROMがなく、
EMCだけの状態を示す図である。4A shows a state in which both the built-in ROM and the EMC are mounted, FIG. 4B shows a state in which only the built-in ROM is not mounted, and FIG. 4C shows a state in which the EMC is not mounted;
It is a figure which shows the state only of EMC.
【図5】ジャンプテーブルの構成例を示す図である。FIG. 5 is a diagram illustrating a configuration example of a jump table.
【図6】(a)乃至(d)は、ジャンプテ−ブルを使用
して、MPUリセット状態からモジュール1への移行ま
での過程を示す図である。FIGS. 6A to 6D are diagrams showing a process from the MPU reset state to the transition to the module 1 using a jump table.
【図7】(a)乃至(b)は、内蔵ROMプログラムと
EMCプログラムの関係を示す図である。FIGS. 7A and 7B are diagrams showing a relationship between a built-in ROM program and an EMC program.
【図8】内蔵ROMプログラムからEMCプログラムへ
の移行手順を示す図である。FIG. 8 is a diagram showing a procedure for shifting from a built-in ROM program to an EMC program.
1…ホストコンピュータ、2…プリンタ装置、3…I/
Fコントローラ、4…プリンタエンジン、5…プリンタ
インターフェイス、6…ホストインターフェイス、7…
MPU、8…内蔵ROM、9…RAM、10…EMC、
11…受信バッファ、12…イメージデータ発生部、1
3…ROMセレクト部、14…イメージメモリ、15…
プリンタ部。DESCRIPTION OF SYMBOLS 1 ... Host computer, 2 ... Printer device, 3 ... I /
F controller, 4 ... Printer engine, 5 ... Printer interface, 6 ... Host interface, 7 ...
MPU, 8: Internal ROM, 9: RAM, 10: EMC,
11: reception buffer, 12: image data generator, 1
3 ... ROM select unit, 14 ... image memory, 15 ...
Printer section.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−314176(JP,A) 特開 昭59−77560(JP,A) 特開 平4−115337(JP,A) 特開 平3−232032(JP,A) 特開 昭52−44132(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 9/30 - 9/355 G06F 9/40 - 9/42 G06F 3/09 - 3/12 G06F 12/00 - 12/06 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-1-314176 (JP, A) JP-A-59-77560 (JP, A) JP-A-4-115337 (JP, A) JP-A-3-315 232032 (JP, A) JP-A-52-44132 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 9/30-9/355 G06F 9/40-9/42 G06F 3/09-3/12 G06F 12/00-12/06
Claims (1)
を行う為の複数のモジュールからなるプログラムを記憶
するメモリを複数装備可能に構成されたプリンタ装置に
おいて、 アドレスを発生して前記メモリをアクセスし前記プログ
ラムを実行する処理手段と、 前記メモリの装備状態を検知する検知手段とを有し、 前記処理手段は、発生する論理アドレスの区分された範
囲を、その装置が装備可能なメモリの最大個数に対応し
て別個に複数設定すると共に、 前記処理手段の発生するアドレスの範囲及び前記検知手
段の信号とに応じて指定されたアドレスと物理メモリの
接続関係を予め決められた関係に切り換えるメモリ選択
手段とを備え、 前記処理手段がリセット時に前記メモリ選択手段の制御
に従ってプログラムの読み出しを開始する記憶位置に
は、処理を開始すべきモジュールへのジャンプ命令が記
憶されたジャンプテーブルへ処理アドレスを移行させる
ジャンプ命令が格納されていることを特徴とするプリン
タ装置。1. A printer device configured to be equipped with a plurality of memories for storing a program including a plurality of modules for performing a printing process corresponding to a higher-level device to be connected, wherein an address is generated and the memory is accessed. Processing means for executing the program; and detecting means for detecting an installation state of the memory, wherein the processing means sets a divided range of the generated logical address to a maximum of a memory which can be installed in the device. A plurality of addresses are separately set in accordance with the number, and an address specified according to a range of addresses generated by the processing unit and a signal of the detection unit and a physical memory
Memory selection to switch connection relation to predetermined relation
Means for controlling the memory selecting means when the processing means is reset.
A jump instruction for shifting a processing address to a jump table in which a jump instruction to a module to start processing is stored at a storage position where the reading of a program is started according to the following .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4314400A JP3033802B2 (en) | 1992-10-30 | 1992-10-30 | Printer device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4314400A JP3033802B2 (en) | 1992-10-30 | 1992-10-30 | Printer device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06149565A JPH06149565A (en) | 1994-05-27 |
| JP3033802B2 true JP3033802B2 (en) | 2000-04-17 |
Family
ID=18052899
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4314400A Expired - Fee Related JP3033802B2 (en) | 1992-10-30 | 1992-10-30 | Printer device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3033802B2 (en) |
-
1992
- 1992-10-30 JP JP4314400A patent/JP3033802B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06149565A (en) | 1994-05-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0716371B1 (en) | Device having automatic OS selecting function | |
| US6976140B2 (en) | Computer system and a method of replication | |
| EP1380988A2 (en) | Printer and control method therefor | |
| US20040090652A1 (en) | Printer, and control method thereof, having extended communication interface functions | |
| JP2997005B2 (en) | Output device | |
| US20110320748A1 (en) | Data processing apparatus and data processing method of data processing apparatus | |
| EP1909474B1 (en) | Image processor and its control method | |
| US4623962A (en) | Register control processing system | |
| JP3033802B2 (en) | Printer device | |
| US8180993B2 (en) | Information processing apparatus and control method thereof | |
| JP2006209772A (en) | Method and system for providing predictive paper out status in print network environment | |
| JP3376256B2 (en) | Print control apparatus, print control method, and storage medium storing computer-readable program | |
| JP3565987B2 (en) | Emulator device | |
| JP2826604B2 (en) | Printer device | |
| JP4150860B2 (en) | Device equipment | |
| JP2962930B2 (en) | Image forming apparatus and control program processing method in the apparatus | |
| JP4047361B2 (en) | Information processing apparatus, control method therefor, and recording medium | |
| JPH07302180A (en) | Printer device | |
| JP4125361B2 (en) | Information processing apparatus, control method therefor, and recording medium | |
| US20090204369A1 (en) | Control Apparatus and Program | |
| JP3181894B2 (en) | Output device | |
| JP2006172130A (en) | Information processing apparatus, external device, information processing program, and control program | |
| JP2000156760A (en) | Image processing apparatus, image processing system, and storage medium | |
| JP3167062B2 (en) | Image recording device | |
| JPH11353075A (en) | Printing device status display control method, printing device status display control device, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090218 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090218 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100218 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110218 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110218 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120218 Year of fee payment: 12 |
|
| LAPS | Cancellation because of no payment of annual fees |