JP2001322319A - Printing apparatus - Google Patents

Printing apparatus

Info

Publication number
JP2001322319A
JP2001322319A JP2000141260A JP2000141260A JP2001322319A JP 2001322319 A JP2001322319 A JP 2001322319A JP 2000141260 A JP2000141260 A JP 2000141260A JP 2000141260 A JP2000141260 A JP 2000141260A JP 2001322319 A JP2001322319 A JP 2001322319A
Authority
JP
Japan
Prior art keywords
memory
module
information
program
program modules
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
JP2000141260A
Other languages
Japanese (ja)
Inventor
Nobuaki Takenaka
宣明 武仲
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2000141260A priority Critical patent/JP2001322319A/en
Publication of JP2001322319A publication Critical patent/JP2001322319A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a printing apparatus which can print at high speeds. SOLUTION: Language-related module information is prepared for each language in this printing apparatus, which is information for ordering a plurality of program modules to be used in the languages in a size order of effects to be obtained when the program modules are executed on an SDRAM and from which a size of each program module is known. Before starting to actually process printing data, a memory capacity of the SDRAM utilizable to store a program is determined (step S202) on the basis of printing job information of the printing data. Language-related modules of the memory capacity are copied in an order designated by the language-related module information corresponding to the language used in the printing data from a ROM to the SDRAM. The copied program modules are executed on the SDRAM (steps S204 and S205). The printing apparatus is constituted in this manner.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、アクセス速度の異
なる2つメモリを有し、幾つかのプログラムモジュール
が、それら2つのメモリ上のいずれでも実行可能な制御
部を備える印刷装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a printing apparatus having a control unit having two memories having different access speeds and having several program modules executable on any of the two memories.

【0002】[0002]

【従来の技術】近年の印刷装置の画像解像度、階調幅
は、極めて大きなものとなっており、その結果として、
印刷データの処理に要するRAM容量も増大してきてい
る。ただし、印刷データの処理に要するRAM容量は、
印刷データの内容に依存するものであるため、一般的な
印刷装置は、RAMを増設(或いは交換)できるように
構成されており、通常の印刷データの処理に必要とされ
る容量のRAMが搭載された形で市販されている。
2. Description of the Related Art The image resolution and gradation width of recent printing apparatuses have become extremely large, and as a result,
The RAM capacity required for processing print data is also increasing. However, the RAM capacity required for processing print data is
Since it depends on the content of print data, a general printing apparatus is configured so that a RAM can be added (or replaced), and a RAM having a capacity required for normal processing of print data is mounted. It is commercially available in the form described.

【0003】また、従来の印刷装置は、ROMに記憶さ
れた複数のプログラムモジュールが、起動時に、全てR
AMに読み出されて、RAM上で実行されるものであっ
たが、近年、RAMの容量が少ない場合には、ROM上
でプログラムが実行され、RAMの容量が大きい場合に
は、プログラムがRAM上にコピーされ、RAM上で実
行される印刷装置も開発されている。
Further, in a conventional printing apparatus, a plurality of program modules stored in a ROM
The program is read by the AM and executed on the RAM. In recent years, when the capacity of the RAM is small, the program is executed on the ROM, and when the capacity of the RAM is large, the program is executed on the RAM. Printing devices that are copied on top and run on RAM have also been developed.

【0004】[0004]

【発明が解決しようとする課題】上記したような、RA
Mの容量に応じてプログラムが実行されるメモリが選択
される構成を採用すれば、RAMをより有効に活用でき
ることになる。
SUMMARY OF THE INVENTION As described above, RA
By adopting a configuration in which a memory for executing a program is selected according to the capacity of M, the RAM can be more effectively utilized.

【0005】しかしながら、従来の印刷装置は、RAM
上で実行されるプログラムモジュールの選択が大きな単
位(全てのプログラムモジュールといった単位や、ある
言語が関係する全てのプログラムモジュールといった単
位)で行なわれるものとなっていた。
[0005] However, the conventional printing apparatus has a RAM.
The selection of a program module to be executed above is performed in a large unit (a unit such as all program modules or a unit such as all program modules related to a language).

【0006】そこで、本発明の課題は、アクセス速度の
異なる2つのメモリを有し、幾つかのプログラムモジュ
ールが、それら2つのメモリ上のいずれでも実行可能な
制御部を備える印刷装置であって、各プログラムモジュ
ールを2つのメモリのいずれの上で実行させるかの制御
が、より高速に印刷が終了することになる形で行なわれ
る印刷装置を提供することにある。
Accordingly, an object of the present invention is to provide a printing apparatus having a control unit which has two memories having different access speeds and in which some program modules can execute any of the two memories. An object of the present invention is to provide a printing apparatus in which the control of which of the two memories each program module is executed on is performed in such a manner that printing is completed at higher speed.

【0007】[0007]

【課題を解決するための手段】本発明では、上記課題を
解決するために、本発明の第1の態様では、印刷エンジ
ンと、受信した印刷データに応じたデータを生成して印
刷エンジンに供給する制御部とを含む印刷装置を構成す
るに際して、制御部として、CPU,CPUの動作手順
を規定する、複数のプログラムモジュールからなるプロ
グラムを格納した第1メモリ,第1メモリよりも高速に
アクセスが行える第2メモリ,複数のプログラムモジュ
ールの中から、ある基準で選択された複数のプログラム
モジュールである複数の選択プログラムモジュールに関
するモジュール情報であって、第2メモリ上で実行する
ことによって得られる効果の大きさの順に複数の選択プ
ログラムモジュールを順序づける優先順位情報と、複数
の選択プログラムモジュールのそれぞれのサイズを示す
サイズ情報とを含むモジュール情報を保持したモジュー
ル情報保持手段,及び,プログラムで使用されている論
理アドレスを物理アドレスに変換するメモリ管理機構で
あって、論理アドレスの物理アドレスへの変換規則を変
更することができるメモリ管理機構を備えるものが用い
られる。
According to the present invention, in order to solve the above-mentioned problems, according to a first aspect of the present invention, a print engine and data corresponding to received print data are generated and supplied to the print engine. When configuring a printing apparatus including a control unit, a first memory that stores a program including a CPU and a plurality of program modules, which defines an operation procedure of the CPU, has a higher access speed than the first memory. Module information on a plurality of selected program modules, which are a plurality of program modules selected based on a certain criterion from a second memory and a plurality of program modules that can be executed. Priority information for ordering a plurality of selected program modules in order of size, and a plurality of selected programs Module information holding means for holding module information including size information indicating the size of each module, and a memory management mechanism for converting a logical address used in a program into a physical address, wherein the physical address of the logical address is A device having a memory management mechanism that can change the conversion rule to is used.

【0008】また、プログラムとして、CPUに、制御
部に受信された印刷データに応じたデータを生成し、印
刷エンジンに供給する処理であるデータ生成供給制御処
理を開始させる前に、当該印刷データの先頭に含まれる
印刷ジョブ情報に応じた容量の作業領域と、複数の選択
プログラムモジュールの中からモジュール情報内のサイ
ズ情報を参照してモジュール情報内の優先順位情報によ
って順序付けられた順で選択された幾つかの選択プログ
ラムモジュールのコピーとが、第2メモリ上に存在する
状態であって、データ生成供給制御処理時に、第2メモ
リ上にコピーが存在している各選択プログラムモジュー
ルに関しては、第2メモリ上の選択プログラムモジュー
ルのコピーが実行されることになり、第2メモリ上にコ
ピーが形成されていない各選択プログラムモジュールに
関しては、第1メモリ上の選択プログラムモジュールが
実行されることになる状態を形成するための制御処理を
実行させるものを用いられる。
Further, as a program, the CPU generates data in accordance with the print data received by the control unit, and before starting a data generation and supply control process, which is a process of supplying the print data to the print engine, starts processing of the print data. A work area having a capacity corresponding to the print job information included at the head and a plurality of selected program modules are selected in the order ordered by the priority information in the module information with reference to the size information in the module information. A copy of some selected program modules exists in the second memory, and at the time of the data generation / supply control processing, the second selected program module having a copy in the second memory is in the second state. A copy of the selected program module on the memory is executed, and a copy is formed on the second memory. No For each selected program module is used as to execute a control process for forming a state that will select the program module on the first memory is performed.

【0009】すなわち、本発明の印刷装置は、第2メモ
リ(例えば、RAM)の、プログラムの記憶に使用して
も問題が生じないと思われるサイズの記憶領域に、モジ
ュール情報内の優先順位情報によって指定される順で、
第1メモリ(例えば、ROM)内の所定のプログラムモ
ジュールがコピーされ、コピーされたプログラムモジュ
ールが第1メモリ上で実行される構成を有する。そし
て、モジュール情報内の優先順位情報は、第2メモリへ
コピーされることがある複数のプログラムモジュール
を、各プログラムモジュールを第2メモリ上で実行させ
ることによって得られる効果の大きさの順に、順序づけ
る情報となっているので、本発明の印刷装置では、高速
アクセス可能な第2メモリが極めて有効に利用されるこ
とになる。その結果として、本発明の印刷装置を用いれ
ば、高速に印刷が行えることになる。
That is, the printing apparatus of the present invention stores the priority order information in the module information in a storage area of a second memory (for example, RAM) having a size which does not cause a problem even when used for storing a program. In the order specified by
A predetermined program module in a first memory (for example, a ROM) is copied, and the copied program module is executed on the first memory. Then, the priority information in the module information is sequenced in the order of the magnitude of the effect obtained by executing each of the plurality of program modules that may be copied to the second memory on the second memory. Therefore, in the printing apparatus of the present invention, the second memory that can be accessed at high speed is used very effectively. As a result, high-speed printing can be performed using the printing apparatus of the present invention.

【0010】本発明の印刷装置を実現するに際しては、
第1メモリに格納されるプログラムを、CPUに、デー
タ生成供給制御処理の実行中に第2メモリの容量が不足
した場合には、データ生成供給制御処理を中断させ、デ
ータ生成供給制御処理を再開するのに要する容量の作業
領域と、複数の選択プログラムモジュールの中からモジ
ュール情報内のサイズ情報を参照してモジュール情報内
の優先順位情報によって順序付けられた順で選択された
幾つかの選択プログラムモジュールのコピーとが、第2
メモリ上に存在する状態であって、データ生成供給制御
処理の再開後に、第2メモリ上にコピーが存在している
各選択プログラムモジュールに関しては、第2メモリ上
の選択プログラムモジュールのコピーが実行されること
になり、第2メモリ上にコピーが形成されていない各選
択プログラムモジュールに関しては、第1メモリ上の選
択プログラムモジュールが実行されることになる状態を
形成するための制御処理を実行させた後に、データ生成
供給処理を再開させるものとしておくことが望ましい。
In realizing the printing apparatus of the present invention,
When the program stored in the first memory is instructed by the CPU to execute the data generation and supply control processing, the data generation and supply control processing is interrupted and the data generation and supply control processing is resumed if the capacity of the second memory becomes insufficient. Working area of the capacity required to execute the program, and some selected program modules selected in the order ordered by the priority information in the module information with reference to the size information in the module information from among the plurality of selected program modules Copy of the second
With respect to each of the selected program modules that exist in the memory and have a copy in the second memory after the restart of the data generation / supply control process, the copy of the selected program module in the second memory is executed. In other words, for each selected program module whose copy is not formed on the second memory, the control process for forming a state in which the selected program module on the first memory is to be executed is executed. It is desirable to restart the data generation and supply processing later.

【0011】このように印刷装置を構成しておけば、印
刷データの処理がメモリ不足により中断されるのを防ぐ
ことができることになる。
By configuring the printing apparatus in this way, it is possible to prevent the processing of the print data from being interrupted due to lack of memory.

【0012】なお、本発明の第1の態様に係る印刷装置
を実現するに際しては、選択プログラムモジュールは、
第1メモリに記憶された複数のプログラムモジュールの
中から、どのような基準で選択されたものであっても良
い。例えば、第2メモリ上で常に実行すべきプログラム
モジュールと、第1メモリ上で常に実行すべきプログラ
ムモジュールとを除く全てのプログラムモジュールが、
選択プログラムモジュールとして取り扱われるようにし
ておいても良い。
In implementing the printing apparatus according to the first aspect of the present invention, the selection program module includes
Any one of a plurality of program modules stored in the first memory may be selected based on any criteria. For example, all the program modules except for the program module that should always be executed on the second memory and the program module that should always be executed on the first memory,
You may make it handle as a selection program module.

【0013】ただし、本発明の第1の態様の印刷装置
で、複数種類の言語を処理できる印刷装置を実現したの
では、使用されないプログラムモジュールが第2メモリ
にコピーされることになるので、複数種類の言語を処理
できる印刷装置を実現する際には、以下の構成を採用す
べきである。
However, if the printing apparatus according to the first aspect of the present invention realizes a printing apparatus capable of processing a plurality of types of languages, unused program modules are copied to the second memory. The following configuration should be adopted when realizing a printing device that can process various kinds of languages.

【0014】すなわち、本発明の第2の態様では、印刷
エンジンと、受信した印刷データに応じたデータを生成
して印刷エンジンに供給する制御部とを含む印刷装置を
構成するに際して、制御部として、CPU,CPUの動
作手順を規定する、複数のプログラムモジュールからな
るプログラムを格納した第1メモリ,第1メモリよりも
高速にアクセスが行える第2メモリ,複数のプログラム
モジュールの中から、ある言語が用いられた印刷データ
に対する処理時に使用されることがあるという基準で選
択された複数のプログラムモジュールである複数の選択
プログラムモジュールに関するモジュール情報であっ
て、第2メモリ上で実行することによって得られる効果
の大きさの順に複数の選択プログラムモジュールを順序
づける優先順位情報と、複数の選択プログラムモジュー
ルのそれぞれのサイズを示すサイズ情報とを含むモジュ
ール情報を、複数種類の言語のそれぞれに対して保持し
たモジュール情報保持手段,及び,プログラムで使用さ
れている論理アドレスを物理アドレスに変換するメモリ
管理機構であって、論理アドレスの物理アドレスへの変
換規則を変更することができるメモリ管理機構を備える
ものが用いられる。
That is, according to the second aspect of the present invention, when configuring a printing apparatus including a print engine and a control unit for generating data corresponding to the received print data and supplying the data to the print engine, A language is selected from a first memory storing a program including a plurality of program modules, a second memory capable of accessing at a higher speed than the first memory, and a plurality of program modules. Module information on a plurality of selected program modules, which are a plurality of program modules selected on the basis that they may be used when processing used print data, and an effect obtained by executing the second program on the second memory Priority information that orders multiple selected program modules in order of size Module information holding means for holding module information including size information indicating the size of each of the plurality of selected program modules for each of a plurality of languages, and a logical address used in the program as a physical address A memory management mechanism that converts a rule for converting a logical address into a physical address can be used.

【0015】また、プログラムとして、CPUに、制御
部に受信された印刷データに応じたデータが生成され、
印刷エンジンに供給される処理であるデータ生成供給制
御処理を開始させる前に、当該印刷データの先頭に含ま
れる印刷ジョブ情報に応じた容量の作業領域と、印刷デ
ータで用いられている言語で使用される複数の選択プロ
グラムモジュールの中から、当該言語に関するモジュー
ル情報内のサイズ情報及び優先順位情報を参照して、そ
の優先順位情報によって順序付けられる順で選択された
幾つかの選択プログラムモジュールのコピーとが、第2
メモリ上に存在する状態であって、データ生成供給制御
処理時に、第2メモリ上にコピーが存在している各選択
プログラムモジュールに関しては、第2メモリ上の選択
プログラムモジュールのコピーが実行されることにな
り、第2メモリ上にコピーが形成されていない各選択プ
ログラムモジュールに関しては、第1メモリ上の選択プ
ログラムモジュールが実行されることになる状態を形成
するための制御処理を実行させるものが用いられる。
Further, as a program, data corresponding to the print data received by the control unit is generated in the CPU,
Before starting the data generation and supply control process, which is a process supplied to the print engine, use a work area with a capacity corresponding to the print job information included at the beginning of the print data and a language used in the print data. Out of a plurality of selected program modules to be copied, referring to the size information and priority information in the module information relating to the language, and copying some selected program modules selected in the order ordered by the priority information; But the second
For each selected program module that exists in the memory and has a copy in the second memory during the data generation / supply control processing, the copy of the selected program module in the second memory is executed. For each selected program module that has not been copied on the second memory, the one that executes a control process for forming a state in which the selected program module on the first memory is to be executed is used. Can be

【0016】すなわち、本発明の第2の態様に係る印刷
装置は、第1の態様に係る印刷装置と同様の処理が、印
刷データで用いられている言語の種類別に行なわれる構
成を有する。従って、本発明の第2の態様によれば、複
数種類の言語が用いられた印刷データを、高速に印刷が
行えることになる。
That is, the printing apparatus according to the second aspect of the present invention has a configuration in which the same processing as that of the printing apparatus according to the first aspect is performed for each type of language used in print data. Therefore, according to the second aspect of the present invention, print data using a plurality of types of languages can be printed at high speed.

【0017】この第2の態様に係る印刷装置を実現する
に際しては、制御部に、複数のプログラムモジュールの
中から、言語に依らず使用されるという基準で選択され
た複数のプログラムモジュールである複数の共通プログ
ラムモジュールに関するモジュール情報であって、第2
メモリ上で実行することによって得られる効果の大きさ
の順に複数の共通プログラムモジュールを順序づける優
先順位情報と、複数の共通プログラムモジュールのそれ
ぞれのサイズを示すサイズ情報とを含む共通モジュール
情報を保持した共通モジュール情報保持手段を付加して
おくとともに、プログラムに含まれる起動時に実行され
るプログラムモジュールを、CPUに、印刷エンジンの
仕様と制御部の仕様とに応じた容量の作業領域と、共通
モジュール情報で順序づけられている複数の共通プログ
ラムモジュールの中から、共通モジュール情報内のサイ
ズ情報及び優先順位情報を参照してその優先順位情報が
示す順序で選択された幾つかの共通プログラムモジュー
ルのコピーとが、第2メモリ上に存在する状態であっ
て、その完了後に、第2メモリ上にコピーが存在してい
る各共通プログラムモジュールに関しては、第2メモリ
上の共通プログラムモジュールのコピーが実行されるこ
とになり、第2メモリ上にコピーが形成されていない各
共通プログラムモジュールに関しては、第1メモリ上の
共通プログラムモジュールが実行されることになる状態
を形成するための起動時制御処理を実行させるものとし
ておくことができる。
When the printing apparatus according to the second aspect is realized, the control unit includes a plurality of program modules selected from a plurality of program modules on the basis of being used regardless of language. Module information about the common program module of
Holds common module information including priority information for ordering a plurality of common program modules in the order of the magnitude of the effect obtained by executing on the memory, and size information indicating the size of each of the plurality of common program modules. A common module information holding unit is added, and a program module included in the program, which is executed at the time of startup, is provided to the CPU by a work area having a capacity according to the specifications of the print engine and the specifications of the control unit, Out of the plurality of common program modules ordered in the above, with reference to the size information and the priority information in the common module information, and copies of some of the common program modules selected in the order indicated by the priority information. , On the second memory, after completion thereof, For each common program module having a copy on the second memory, the copy of the common program module on the second memory is executed, and each common program module having no copy formed on the second memory is executed. With regard to the above, it is possible to execute a startup control process for forming a state in which the common program module on the first memory is to be executed.

【0018】本発明の第1、第2の態様においては、モ
ジュール情報内の優先順位情報として、第2メモリ上で
実行することによって得られる効果の大きさの指標とし
て、各選択プログラムモジュールの実行に要する時間と
出現確率の積の大きさが用いられた情報や、第2メモリ
上で実行することによって得られる効果の大きさの指標
として、各選択プログラムモジュールのサイズが用いら
れた情報を使用することができる。
In the first and second aspects of the present invention, the execution of each selected program module is performed as priority information in the module information and as an index of the magnitude of the effect obtained by executing on the second memory. Using the size of each selected program module as information using the magnitude of the product of the time required and the appearance probability, and as an index of the magnitude of the effect obtained by executing on the second memory can do.

【0019】また、モジュール情報保持手段を、第1メ
モリ、第2メモリとは異なるものとしても良いが、プロ
グラムを、モジュール情報保持手段として機能させるこ
ともできる。すなわち、プログラムを構成するプログラ
ムモジュールのいずれかに、モジュール情報を含めてお
き,第1メモリ内のプログラムモジュール(あるいは第
2メモリにコピーされたプログラムモジュール)がモジ
ュール情報保持手段として機能するようにしても良い。
Further, the module information holding means may be different from the first memory and the second memory, but the program may be caused to function as the module information holding means. That is, module information is included in any of the program modules constituting the program, and the program module in the first memory (or the program module copied to the second memory) functions as module information holding means. Is also good.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0021】図1に、本発明の一実施形態に係る印刷装
置の構成を示す。図示したように、実施形態に係る印刷
装置10は、印刷エンジン11と制御部12とを備え
る。
FIG. 1 shows the configuration of a printing apparatus according to an embodiment of the present invention. As illustrated, the printing apparatus 10 according to the embodiment includes a print engine 11 and a control unit 12.

【0022】印刷エンジン11は、印刷(用紙上への画
像形成)を実際に行う機構である。制御部12は、印刷
エンジン11を制御する電子機器である。制御部11
は、CPUバス31で相互に接続されたCPU21、S
DRAM22及びメモリコントローラ23を備える。ま
た、制御部12は、メモリバス32で相互に接続された
ROM24、ROM25、ビデオI/F回路26及び入
力I/F回路27を備える。図示してあるように、メモ
リバス32は、メモリコントローラ23にも接続されて
いる。なお、本実施形態の印刷装置10では、ROM2
4、SDRAM22が、それぞれ、第1メモリ、第2メ
モリとして機能し、メモリコントローラ23が、メモリ
管理機構として機能している。
The print engine 11 is a mechanism for actually performing printing (image formation on paper). The control unit 12 is an electronic device that controls the print engine 11. Control unit 11
Are the CPUs 21 and S connected to each other by the CPU bus 31
A DRAM 22 and a memory controller 23 are provided. The control unit 12 includes a ROM 24, a ROM 25, a video I / F circuit 26, and an input I / F circuit 27, which are interconnected by a memory bus 32. As shown, the memory bus 32 is also connected to the memory controller 23. In the printing apparatus 10 of the present embodiment, the ROM 2
4. The SDRAM 22 functions as a first memory and a second memory, respectively, and the memory controller 23 functions as a memory management mechanism.

【0023】CPU21は、プログラムに従って動作す
ることにより、印刷装置10内の各部を統合的に制御す
る制御回路である。ROM24、25は、不揮発性メモ
リであり、ROM24には、電源が投入された際にCP
U21によって実行されるIPLと、その後に実行され
る各種のプログラムモジュールが格納されている。ま
た、ROM25には、文字をイメージデータにするため
のフォントデータが記憶されている。入力I/F回路2
7は、ホストから送られてくる印刷データを受信し、メ
モリバス32上に送出する回路である。ビデオI/F回
路26は、メモリバス32を介して供給されるデータを
印刷エンジン11に転送する回路である。
The CPU 21 is a control circuit that operates in accordance with a program to integrally control each unit in the printing apparatus 10. The ROMs 24 and 25 are non-volatile memories.
The IPL executed by U21 and various program modules executed thereafter are stored. The ROM 25 stores font data for converting characters into image data. Input I / F circuit 2
A circuit 7 receives print data sent from the host and sends the print data to the memory bus 32. The video I / F circuit 26 is a circuit that transfers data supplied via the memory bus 32 to the print engine 11.

【0024】SDRAM22は、CPU21と同期して
動作するDRAMである。SDRAM22は、入力I/
F回路27に受信された印刷データや、当該印刷データ
に基づき生成された中間コードやイメージデータ(バン
ドイメージ)を一時的に記憶しておくために使用され
る。また、SDRAM22は、幾つかのプログラムモジ
ュールの記憶にも使用される。
The SDRAM 22 is a DRAM that operates in synchronization with the CPU 21. The SDRAM 22 has an input I /
It is used to temporarily store the print data received by the F circuit 27, and intermediate codes and image data (band images) generated based on the print data. The SDRAM 22 is also used for storing some program modules.

【0025】メモリコントローラ23は、論理アドレス
を物理アドレスに変換する回路である。メモリコントロ
ーラ23は、論理アドレスと物理アドレスの対応関係
を、CPU21から指示されたものに、変更する機能を
有する。
The memory controller 23 is a circuit for converting a logical address into a physical address. The memory controller 23 has a function of changing the correspondence between the logical address and the physical address to the one instructed by the CPU 21.

【0026】以下、印刷装置10の動作を説明する。ま
ず、印刷装置10の動作時にその内容が参照される情報
である共通モジュール情報、言語関連モジュール情報の
説明を行う。
Hereinafter, the operation of the printing apparatus 10 will be described. First, common module information and language-related module information, which are information whose contents are referred to when the printing apparatus 10 operates, will be described.

【0027】本印刷装置10は、複数種類の言語を処理
できる装置として構成してあるため、ROM24に格納
されているプログラムには、印刷データで使われている
言語(ESC/P言語や、PCL言語)によらず使用される複数
のプログラムモジュール(以下、共通モジュールと表記
する)と、言語に対応づけることができる複数のプログ
ラムモジュール(以下、言語関連モジュール)とが含ま
れている。
Since the printing apparatus 10 is configured as an apparatus capable of processing a plurality of types of languages, the programs stored in the ROM 24 include the languages (ESC / P language, PCL, etc.) used in the print data. A plurality of program modules (hereinafter, referred to as common modules) that are used irrespective of language) and a plurality of program modules (hereinafter, language-related modules) that can be associated with the language are included.

【0028】そして、SDRAM22にロード(コピ
ー)することがあるNmax個の共通モジュールには、各
共通モジュールをSDRAM22上で実行することによ
り得られる効果の大きさによって順位付け(順位付け手
順については後述する)が行なわれている。以下、この
効果の大きさの順に各共通モジュールに付与された順位
を優先順位と表記する。そして、所定の共通モジュール
(IPLの次に実行されるプログラムモジュール;以
下、メインモジュールと表記する)には、Nmax個の共
通モジュールの優先順位順が分かる情報と、各共通モジ
ュールのサイズと、優先順位が高い方から優先順位順に
抽出した1個ないしNmax個の共通モジュールのサイズ
の合計をそれぞれ示すNmax個の合計サイズとを含む共
通モジュール情報が含まれている。
The Nmax common modules that may be loaded (copied) to the SDRAM 22 are ranked according to the effect obtained by executing each common module on the SDRAM 22 (the ranking procedure will be described later). To). Hereinafter, the order given to each common module in the order of the magnitude of this effect is referred to as a priority order. A predetermined common module (a program module executed next to the IPL; hereinafter, referred to as a main module) includes information indicating the priority order of Nmax common modules, the size of each common module, and the priority. The common module information includes Nmax total sizes each indicating the total size of one to Nmax common modules extracted in order of priority from the highest priority.

【0029】より具体的には、メインモジュールに含ま
れる共通モジュール情報は、図2に模式的に示したよう
に、共通モジュール名とサイズと合計サイズとからなる
レコードを、対応する共通モジュールの優先順位順に並
べた情報となっている。
More specifically, the common module information included in the main module includes, as schematically shown in FIG. 2, a record including the common module name, the size, and the total size, and the priority of the corresponding common module. The information is arranged in order of rank.

【0030】言語関連モジュールに対しても、関連する
言語毎に、優先順位が付与されている。そして、各言語
に対して、共通モジュール情報と同様の情報からなる言
語関連モジュール情報が作成されており、それらの言語
関連モジュール情報が、所定のプログラムモジュール
(図2におけるModule C)に含められている。すなわ
ち、Module Cには、図3(A)、(B)に模式的に示し
たような内容の言語関連モジュール情報が含まれてい
る。
Priorities are also assigned to language-related modules for each relevant language. Then, language-related module information including the same information as the common module information is created for each language, and the language-related module information is included in a predetermined program module (Module C in FIG. 2). I have. That is, the Module C includes language-related module information having contents as schematically shown in FIGS. 3A and 3B.

【0031】そして、本印刷装置10では、共通モジュ
ール情報、言語関連モジュール情報が以下のように使用
されて、印刷が行なわれる。
In the printing apparatus 10, printing is performed using the common module information and the language-related module information as follows.

【0032】図4に示したように、印刷装置10の電源
が投入された際、CPU21は、まず、IPLに従い、
ハードウェアの初期化を行う(ステップS101)。次
いで、CPU21は、メインモジュールに従った動作を
開始し、SDRAM22の容量である搭載メモリ量を認
識するとともに、その搭載メモリ量と所定量とを比較
(ステップS102)する。
As shown in FIG. 4, when the power of the printing apparatus 10 is turned on, the CPU 21 firstly follows the IPL.
The hardware is initialized (step S101). Next, the CPU 21 starts the operation according to the main module, recognizes the amount of mounted memory which is the capacity of the SDRAM 22, and compares the amount of mounted memory with a predetermined amount (step S102).

【0033】搭載メモリ量が所定量以下であった場合
(ステップS102;YES)、CPU21は、図4に
示した処理を終了し、印刷待ち状態(印刷データの受信
を待機している状態)をとる。一方、搭載メモリ量が所
定量を超えていた場合(ステップS102;NO)、C
PU21は、プリンタ構成情報を取得し、そのプリンタ
構成情報に基づき、その後の処理のために、SDRAM
22内に確保すべきメモリサイズを算出する(ステップ
S103)。ここで、プリンタ構成情報とは、使用でき
るインタフェースの数、印刷エンジン11の解像度、印
刷エンジン11がモノクロ用のものであるかカラー印刷
用のものであるか、等からなる情報のことである。
If the amount of installed memory is equal to or smaller than the predetermined amount (step S102; YES), the CPU 21 ends the processing shown in FIG. 4 and changes to a print waiting state (a state of waiting for reception of print data). Take. On the other hand, if the amount of mounted memory exceeds the predetermined amount (step S102; NO), C
The PU 21 acquires the printer configuration information and, based on the printer configuration information, executes the SDRAM
The memory size to be secured in the storage 22 is calculated (step S103). Here, the printer configuration information is information including the number of interfaces that can be used, the resolution of the print engine 11, and whether the print engine 11 is for monochrome printing or color printing.

【0034】その後、CPU21は、搭載メモリ量か
ら、ステップS103で算出したメモリサイズを減じた
値である空きメモリサイズを求める(ステップS10
4)。次いで、CPU21は、共用モジュール情報を参
照して、SDRAM22にロードする、総サイズが空き
メモリサイズ以下となる幾つかの共用モジュールを特定
する(ステップS105)。このステップS105で
は、共用モジュール情報(図2参照)内の“合計サイ
ズ”が、空きメモリサイズ以下の、最も大きな値となっ
ている共通モジュールと、その共通モジュールよりも優
先順位が高い全ての共通モジュールが、SDRAM22
にロードする共通モジュールとして特定される。すなわ
ち、空きメモリサイズが例えば555kバイトであった場
合、Module A, Module B, Module Cが、SDRAM22
にロードする共通モジュールとして特定される。
Thereafter, the CPU 21 obtains a free memory size which is a value obtained by subtracting the memory size calculated in step S103 from the amount of mounted memory (step S10).
4). Next, the CPU 21 refers to the shared module information and specifies some shared modules to be loaded into the SDRAM 22 whose total size is equal to or smaller than the free memory size (step S105). In this step S105, the “total size” in the shared module information (see FIG. 2) has the largest value equal to or smaller than the free memory size, and all the common modules having a higher priority than the common module. Module is SDRAM 22
Is specified as a common module to be loaded into That is, if the free memory size is, for example, 555 kbytes, Module A, Module B, and Module C
Is specified as a common module to be loaded into

【0035】そして、CPU21は、特定した1つ以上
の共通モジュールをSDRAM22にロードする処理
と、特定した各共通モジュールがその後に実行される際
に、ROM24上の共通モジュールではなく、SDRA
M22上の共通モジュールが実行されるように、論理ア
ドレスと物理アドレスの対応関係を変更する処理(メモ
リコントローラを制御する処理)を実行(ステップS1
06)し、印刷待ち状態をとる。なお、ステップS10
5で、SDRAM22上で実行すべき共通モジュールが
1個も特定されなかった場合、このステップS106で
はなにも行なわれない。
The CPU 21 loads the specified one or more common modules into the SDRAM 22 and executes the SDRA instead of the common modules on the ROM 24 when the specified common modules are subsequently executed.
The process of changing the correspondence between the logical address and the physical address (the process of controlling the memory controller) is executed so that the common module on the M22 is executed (step S1).
06), and waits for printing. Step S10
If no common module to be executed on the SDRAM 22 is specified in step 5, no operation is performed in step S106.

【0036】図4の処理が完了したCPU21は、図5
に示したように、印刷データの受信を監視する処理(ス
テップS201)を開始する。そして、印刷データが受
信され始めた場合(ステップS201;YES)には、
印刷データの先頭に含まれる印刷ジョブ情報に基づき、
印刷環境(解像度、インタフェース、受信バッファサイ
ズ)を決定するとともに、言語関連モジュールの記憶に
使用できるメモリ容量を決定する(ステップS20
2)。また、CPU21は、印刷データで用いられてい
る言語(ESC/P言語等)を特定(ステップS203)
し、特定した言語に関する言語関連モジュール情報を参
照して、受信された印刷データの処理に用いる言語関連
モジュールの中から、サイズの合計が、ステップS20
2で決定したメモリ容量以下となる幾つかの言語関連モ
ジュールを特定する(ステップS204)。このステッ
プS204における言語関連モジュールの特定は、ステ
ップS105における共通モジュールの特定と同様の手
順で行なわれる。
The CPU 21 having completed the processing of FIG.
As shown in (1), the process of monitoring the reception of print data (step S201) is started. Then, when the print data starts to be received (step S201; YES),
Based on the print job information included at the beginning of the print data,
The printing environment (resolution, interface, receiving buffer size) is determined, and the memory capacity available for storing the language-related modules is determined (step S20).
2). Further, the CPU 21 specifies a language (such as an ESC / P language) used in the print data (step S203).
Then, referring to the language-related module information related to the specified language, the total size of the language-related modules used for processing the received print data is determined in step S20.
Some language-related modules whose memory capacity is equal to or less than the memory capacity determined in step 2 are specified (step S204). The specification of the language-related module in step S204 is performed in the same procedure as the specification of the common module in step S105.

【0037】そして、CPU21は、特定した言語関連
モジュールをSDRAM22にロードする処理と、ロー
ドした言語関連モジュールがSDRAM22上で実行さ
れるように、論理アドレスと物理アドレスの対応関係を
変更する処理(メモリコントローラ23を制御する処
理)を実行する(ステップS205)。その後、CPU
21は、ROM24及びSDRAM22に記憶された複
数のプログラムモジュールに従った動作することによ
り、受信された印刷データに基づきバンドイメージを生
成し、印刷エンジン11に供給する処理であるデータ生
成供給制御処理を開始する。
The CPU 21 loads the specified language-related module into the SDRAM 22 and changes the correspondence between the logical address and the physical address so that the loaded language-related module is executed on the SDRAM 22 (memory). The processing for controlling the controller 23 is executed (step S205). Then the CPU
The data generation / supply control process 21 is a process for generating a band image based on the received print data and supplying the band image to the print engine 11 by operating according to a plurality of program modules stored in the ROM 24 and the SDRAM 22. Start.

【0038】このデータ生成供給制御処理時、CPU2
1は、メモリ残量(データの記憶に使用できるメモリ
量)のチェックを周期的に行い、メモリ残量が規定量以
下となった場合(メモリ不足が発生した場合)には、デ
ータ生成供給制御処理を中断して、図6に示した処理を
実行する。
During the data generation and supply control process, the CPU 2
1 periodically checks the remaining amount of memory (the amount of memory that can be used for storing data), and when the remaining amount of memory is equal to or less than a specified amount (when memory shortage occurs), data generation and supply control is performed. The processing is interrupted and the processing shown in FIG. 6 is executed.

【0039】すなわち、CPU21は、メモリ不足が発
生した場合、その時点における動作状況に応じて、不足
メモリ量(データの一時記憶のために新たにSDRAM
222内に用意しなければならないメモリ量)を決定す
る(ステップS301)。次いで、ステップS204で
参照した言語関連テーブルを参照して、ROM24に戻
す(SDRAM22上から消去する)言語関連モジュー
ルを特定する(ステップS302)。
That is, when a memory shortage occurs, the CPU 21 determines the amount of memory shortage (a new SDRAM for temporary storage of data) according to the operating condition at that time.
The amount of memory that must be prepared in 222 is determined (step S301). Next, by referring to the language-related table referred to in step S204, a language-related module to be returned to the ROM 24 (erased from the SDRAM 22) is specified (step S302).

【0040】このステップS302における言語関連モ
ジュールの特定は、SDRAM22上にコピーされてい
るj個の言語関連モジュールの中から、サイズの合計が
不足メモリ量を超えるk個(1≦k≦j)の言語関連モ
ジュールを、優先順位が低いほうからk値が最小となる
ように特定することによって行なわれる。また、サイズ
の合計が不足メモリ量を超えるk個の言語関連モジュー
ルを見出せなかった場合、ステップS302では、全て
(j個)の言語関連モジュールが、ROM24に戻す言
語関連モジュールとして特定される。
In step S302, the language-related modules are specified by selecting k (1 ≦ k ≦ j) out of j language-related modules copied on the SDRAM 22 whose total size exceeds the memory shortage. This is performed by specifying the language-related modules so that the k value becomes the smallest from the lower priority. If no k language-related modules whose total size exceeds the memory shortage are found, all (j) language-related modules are specified as language-related modules to be returned to the ROM 24 in step S302.

【0041】換言すれば、ステップS302では、優先
順位が低い方から順々に言語関連モジュールをROM2
4に戻す言語関連モジュールとして特定していき、特定
した言語関連モジュールのサイズの総和が不足メモリ量
を超えたときと、最も優先順位が高い言語関連モジュー
ルがROM24に戻す言語関連モジュールとして特定さ
れたときとに終了する処理が行なわれる。
In other words, in step S302, the language-related modules are sequentially stored in the ROM 2 in ascending order of priority.
The language-related module to be returned to 4 is specified. When the sum of the sizes of the specified language-related modules exceeds the insufficient memory amount, the language-related module having the highest priority is specified as the language-related module to be returned to the ROM 24. A process that ends sometimes is performed.

【0042】その後、CPU21は、特定した言語関連
モジュールをROM24に戻すための処理を行う(ステ
ップS303)。すなわち、特定した言語関連モジュー
ルの記憶に使用されていた記憶領域が、その後(ステッ
プS304以降において)、作業領域として使用され、
特定した各言語関連モジュールが実行される際には、R
OM24上の共通モジュールが実行されように各部を制
御する処理を行う。
Thereafter, the CPU 21 performs a process for returning the specified language-related module to the ROM 24 (step S303). That is, the storage area used for storing the specified language-related module is thereafter used (after step S304) as a work area,
When each specified language-related module is executed, R
A process is performed to control each unit so that the common module on the OM 24 is executed.

【0043】そして、メモリ不足が解消されていた場合
(ステップS304;YES)には、図示した処理を終
了して、データ生成供給制御処理を再開する。一方、メ
モリ不足が解消されていなかった場合(ステップS30
4;NO)には、共通モジュール情報を参照して、RO
M24に戻す(SDRAM22上から消去する)共通モ
ジュールを特定する(ステップS305)。このステッ
プS305では、参照される情報、処理対象とされるモ
ジュールの種類が異なることを除けば、ステップS30
2における処理と同じ手順の処理が行なわれる。
If the memory shortage has been resolved (step S304; YES), the illustrated processing is terminated, and the data generation / supply control processing is restarted. On the other hand, if the memory shortage has not been resolved (step S30)
4; NO), referring to the common module information,
A common module to be returned to M24 (erasing from the SDRAM 22) is specified (step S305). In step S305, except that the information to be referred to and the type of module to be processed are different, step S30
The processing of the same procedure as the processing in 2 is performed.

【0044】その後、CPU21は、特定した共通モジ
ュールをROM24に戻すための処理、すなわち、特定
した共通モジュールの記憶に使用されていた記憶領域が
作業領域として使用され、特定した各共通モジュールが
実行される際には、ROM24上の共通モジュールが実
行されように各部を制御する処理を行う(ステップS3
06)。そして、メモリ不足が解消されている場合(ス
テップS307;YES)には、図示した処理を終了し
て、データ生成供給制御処理を再開する。一方、メモリ
不足が解消されていなかった場合(ステップS307;
NO)には、印刷データの処理を続けることができない
ので、エラー処理を開始する。
Thereafter, the CPU 21 performs processing for returning the specified common module to the ROM 24, that is, the storage area used for storing the specified common module is used as a work area, and each specified common module is executed. In this case, a process for controlling each unit is performed so that the common module on the ROM 24 is executed (step S3).
06). Then, if the memory shortage has been resolved (step S307; YES), the illustrated processing is terminated, and the data generation / supply control processing is restarted. On the other hand, if the memory shortage has not been resolved (step S307;
In the case of NO), the processing of the print data cannot be continued, so that the error processing is started.

【0045】以下、本実施形態における、プログラムモ
ジュールの順位付け手順を説明する。
The procedure for ranking the program modules in this embodiment will be described below.

【0046】本実施形態では、各プログラムモジュール
の処理に要する時間Taを実測するとともに、さまざま
な印刷データに対して各プログラムモジュールの出現回
数を実測することにより、各プログラムモジュールの平
均的な出現確率pを求め、より高いTa×p値が得られ
たプログラムモジュールを、より優先順位の高いものと
している。
In this embodiment, the average appearance probability of each program module is measured by actually measuring the time Ta required for processing of each program module and measuring the number of appearances of each program module for various print data. The program module for which p has been obtained and a higher Ta × p value has been obtained has a higher priority.

【0047】すなわち、ROM24上で、あるプログラ
ムモジュールを実行するのに要する時間と、SDRAM
22上で同じプログラムモジュールを実行するのに要す
る時間の差は、Taに一定比率をかけたものとなる。従
って、Taが大きく(処理に時間がかかり)、出現確率
pが高いプログラムモジュール(Ta×p値が大きいプ
ログラムモジュール)が、SDRAM22に先にロード
されるようにしておいた方が、総合的な処理時間を短縮
できることになる。このため、本実施形態では、より高
いTa×p値が得られたプログラムモジュールを、より
優先順位の高いものとしているのである。
That is, the time required to execute a certain program module on the ROM 24 and the SDRAM
The difference in the time required to execute the same program module on 22 is obtained by multiplying Ta by a certain ratio. Therefore, if a program module with a large Ta (time is required for processing) and a high appearance probability p (a program module with a large Ta × p value) is loaded into the SDRAM 22 first, it is more comprehensive. Processing time can be reduced. For this reason, in the present embodiment, a program module having a higher Ta × p value is given a higher priority.

【0048】以上、説明したように、実施形態に係る印
刷装置10では、SDRAM22の、プログラムの記憶
に使用しても問題が生じないと思われるサイズの記憶領
域に、共通モジュール情報及び言語関連モジュール情報
内の優先順位情報(モジュール名の並び)によって指定
される順で、ROM24内の幾つかのプログラムモジュ
ールがコピー(ロード)され、コピーされたプログラム
モジュールがSDRAM22上で実行される。そして、
各モジュール情報内の優先順位情報は、SDRAM22
にコピーされることがある複数のプログラムモジュール
を、各プログラムモジュールをSDRAM22上で実行
させることによって得られる効果の大きさの順に、順序
づける情報となっている。従って、本印刷装置10は、
高速アクセス可能なSDRAM22が極めて有効に利用
された状態で機能することとなり、その結果として、高
速に印刷が行えることになる。
As described above, in the printing apparatus 10 according to the embodiment, the common module information and the language-related modules are stored in the storage area of the SDRAM 22 having a size that does not cause a problem even when used for storing a program. Some program modules in the ROM 24 are copied (loaded) in the order specified by the priority information (arrangement of module names) in the information, and the copied program modules are executed on the SDRAM 22. And
The priority information in each module information is stored in the SDRAM 22
This is information for ordering a plurality of program modules that may be copied in the order of the magnitude of the effect obtained by executing each program module on the SDRAM 22. Therefore, the printing apparatus 10
The SDRAM 22 that can be accessed at a high speed functions in a state of being used extremely effectively, and as a result, printing can be performed at a high speed.

【0049】<変形形態>実施形態に係る印刷装置10
は、各種の変形を行うことができる。例えば、一般に、
サイズの大きなプログラムモジュールほど、Taが大き
くなるので、図7(A)、(B)にそれぞれ示したよう
に、共通モジュール情報、言語関連モジュール情報を作
成しておいても良い。すなわち、各モジュール情報を、
サイズがより大きいプログラムモジュールがより優先順
位が高いプログラムモジュールとして取り扱われるよう
に作成しておいても良い。
<Modification> Printing apparatus 10 according to the embodiment
Can be variously modified. For example, in general,
Since a larger program module has a larger Ta, common module information and language-related module information may be created as shown in FIGS. 7A and 7B. That is, each module information is
A program module having a larger size may be created so as to be treated as a program module having a higher priority.

【0050】また、言語関連モジュールの出現確率は、
印刷データの内容によって異なるため、文字が主に使わ
れている印刷データ用の言語関連モジュール情報、イメ
ージが主に使われている印刷データ用の言語関連モジュ
ール情報、グラフィックが主に使われている印刷データ
用の言語関連モジュール情報等を印刷装置10内に用意
しておき、ユーザが、印刷装置10の操作パネルを操作
することにより、あるいは、ホストを操作することによ
り(ホスト内のプリンタドライバに所定のコマンドを送
出させることにより)、CPU21に使用させる言語関
連モジュール情報を指定できるように、印刷装置10を
構成しても良い。
The appearance probability of the language-related module is
Because it depends on the content of the print data, language-related module information for print data that mainly uses characters, language-related module information for print data that mainly uses images, and graphics are mainly used Language-related module information and the like for print data are prepared in the printing apparatus 10, and the user operates the operation panel of the printing apparatus 10 or operates the host (to the printer driver in the host). The printing apparatus 10 may be configured so that language-related module information to be used by the CPU 21 can be specified (by sending a predetermined command).

【0051】また、1種の言語しか処理しない印刷装置
10を構成する場合には、ROM24上或いはSDRA
M22上で常に実行させるプログラムモジュールを除く
全てのプログラムモジュールに関する1個のモジュール
情報に従って、SDRAM22にロードされるプログラ
ムモジュールが決定されるように、印刷装置10を構成
する(プログラムを作成する)こともできる。
When configuring the printing apparatus 10 that processes only one type of language, the printing on the ROM 24 or the SDRA
The printing apparatus 10 may be configured (create a program) such that the program module loaded on the SDRAM 22 is determined according to one module information on all the program modules except the program module that is always executed on the M22. it can.

【0052】また、各言語関連モジュールの出現回数が
言語毎に実際にカウントされ、そのカウント結果に基づ
き、言語関連モジュール情報が書き換えられるように
(印刷が行なわれることが多いタイプの印刷データに適
したものに、言語関連モジュールのロード順が変更され
るように)、印刷装置10を構成しておいても良い。な
お、そのように動作する印刷装置10は、例えば、以下
のようにして構成できる。
The number of appearances of each language-related module is actually counted for each language, and the language-related module information is rewritten based on the count result (suitable for print data of a type that is frequently printed). Alternatively, the printing apparatus 10 may be configured so that the load order of the language-related modules is changed). The printing apparatus 10 that operates as described above can be configured, for example, as follows.

【0053】プログラム内に言語関連モジュール情報を
含めておくのではなく、EEPROM等の言語関連モジ
ュール情報を記憶しておくための記憶手段を用意してお
き、その記憶手段に記憶された言語関連モジュール情報
が参照されるようにプログラムを変更しておく。また、
言語関連モジュール情報を、図8に示したように、各プ
ログラムモジュールに関するモジュール名、サイズ、T
a、出現回数、Ta×出現回数を含み、合計サイズを含
まないものとしておく。また、各プログラムモジュール
が使用される度に、対応する出現回数がインクリメント
され、適当な周期で、Ta×出現回数が再計算されるよ
うにしておく。そして、SDRAM22にロードする言
語関連モジュールが特定される際には、その時点におけ
る出現回数×Taによって各プログラムモジュールの優
先順位順が判断され、その判断結果と、各プログラムモ
ジュールのサイズとに基づき、合計サイズが所望値以下
となる幾つかのプログラムモジュールが、優先順位順
(出現回数×Taの値順で)で特定されるようにしてお
く。
Instead of including the language-related module information in the program, storage means for storing language-related module information such as an EEPROM is prepared, and the language-related module information stored in the storage means is prepared. Change the program so that the information is referenced. Also,
As shown in FIG. 8, the language-related module information includes the module name, size, and T for each program module.
a, the number of appearances, Ta × the number of appearances, but not the total size. Each time each program module is used, the corresponding number of appearances is incremented, and Ta × the number of appearances is recalculated at an appropriate cycle. When a language-related module to be loaded into the SDRAM 22 is specified, the priority order of each program module is determined by the number of appearances at that time × Ta, and based on the determination result and the size of each program module, Some program modules whose total size is equal to or smaller than the desired value are specified in the order of priority (in the order of the number of appearances × Ta).

【0054】[0054]

【発明の効果】本発明によれば、高速に印刷が行える印
刷装置を得ることができる。
According to the present invention, it is possible to obtain a printing apparatus capable of performing high-speed printing.

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

【図1】本発明の一実施形態に係る印刷装置の概略構成
を示したブロック図である
FIG. 1 is a block diagram illustrating a schematic configuration of a printing apparatus according to an embodiment of the present invention.

【図2】実施形態に係る印刷装置が保持している共通モ
ジュール情報の説明図である。
FIG. 2 is an explanatory diagram of common module information held by the printing apparatus according to the embodiment.

【図3】実施形態に係る印刷装置が保持している言語関
連モジュール情報の説明図である。
FIG. 3 is an explanatory diagram of language-related module information held by the printing apparatus according to the embodiment.

【図4】実施形態に係る印刷装置で実行される起動時処
理の流れ図である。
FIG. 4 is a flowchart of a startup process executed by the printing apparatus according to the embodiment.

【図5】実施形態に係る印刷装置において、起動時処理
の完了後に実行される処理の流れ図である。
FIG. 5 is a flowchart of processing executed after completion of startup processing in the printing apparatus according to the embodiment.

【図6】データ生成供給制御処理時に、メモリ不足が発
生した際に実行される処理の流れ図である。
FIG. 6 is a flowchart of processing executed when a memory shortage occurs during data generation / supply control processing.

【図7】実施形態とは異なる規則で優先順位が付けられ
た場合の言語関連モジュール情報の説明図である。
FIG. 7 is an explanatory diagram of language-related module information in the case where priorities are assigned according to rules different from those of the embodiment.

【図8】優先順位を動的に変更する場合に使用できる言
語関連モジュール情報の説明図である。
FIG. 8 is an explanatory diagram of language-related module information that can be used when the priority is dynamically changed.

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

10 印刷装置 11 印刷エンジン 12 制御部 21 CPU 22 SDRAM 23 メモリコントローラ 24、25 ROM 26 ビデオI/F回路 27 入力I/F回路 31 CPUバス 32 メモリバス REFERENCE SIGNS LIST 10 printing device 11 print engine 12 control unit 21 CPU 22 SDRAM 23 memory controller 24, 25 ROM 26 video I / F circuit 27 input I / F circuit 31 CPU bus 32 memory bus

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 印刷エンジンと、印刷データを受信し
て、当該印刷データに応じたデータを生成して前記印刷
エンジンに供給する制御部とを含む印刷装置であって、 前記制御部は、 CPU,前記CPUの動作手順を規定する、複数のプロ
グラムモジュールからなるプログラムを格納した第1メ
モリ,前記第1メモリよりも高速にアクセスが行える第
2メモリ,前記複数のプログラムモジュールの中から、
ある基準で選択された複数のプログラムモジュールであ
る複数の選択プログラムモジュールに関するモジュール
情報であって、前記第2メモリ上で実行することによっ
て得られる効果の大きさの順に前記複数の選択プログラ
ムモジュールを順序づける優先順位情報と、前記複数の
選択プログラムモジュールのそれぞれのサイズを示すサ
イズ情報とを含むモジュール情報を保持したモジュール
情報保持手段,及び,前記プログラムで使用されている
論理アドレスを物理アドレスに変換するメモリ管理機構
であって、論理アドレスの物理アドレスへの変換規則を
変更することができるメモリ管理機構を備え,前記プロ
グラムは、前記CPUに、 前記制御部に受信された印刷データに応じたデータを生
成し、前記印刷エンジンに供給する処理であるデータ生
成供給制御処理を開始させる前に、 当該印刷データの先頭に含まれる印刷ジョブ情報に応じ
た容量の作業領域と、前記複数の選択プログラムモジュ
ールの中から前記モジュール情報内の前記サイズ情報を
参照して前記モジュール情報内の前記優先順位情報によ
って順序付けられた順で選択された幾つかの選択プログ
ラムモジュールのコピーとが、前記第2メモリ上に存在
する状態であって、前記データ生成供給制御処理時に、
前記第2メモリ上にコピーが存在している各選択プログ
ラムモジュールに関しては、前記第2メモリ上の選択プ
ログラムモジュールのコピーが実行されることになり、
前記第2メモリ上にコピーが形成されていない各選択プ
ログラムモジュールに関しては、前記第1メモリ上の選
択プログラムモジュールが実行されることになる状態を
形成するための制御処理を実行させることを特徴とする
印刷装置。
1. A printing apparatus, comprising: a print engine; and a control unit that receives print data, generates data corresponding to the print data, and supplies the data to the print engine. A first memory that stores a program including a plurality of program modules that defines an operation procedure of the CPU, a second memory that can be accessed at a higher speed than the first memory, and the plurality of program modules.
Module information relating to a plurality of selected program modules, which are a plurality of selected program modules selected according to a certain criterion, wherein the plurality of selected program modules are ordered in the order of magnitude of an effect obtained by executing the second program on the second memory; Module information holding means holding module information including priority information and size information indicating the size of each of the plurality of selected program modules, and converts a logical address used in the program into a physical address. A memory management mechanism that is capable of changing a rule for converting a logical address to a physical address, wherein the program causes the CPU to store data corresponding to the print data received by the control unit. Generating and supplying the print engine with the print engine. Before starting the data generation and supply control process, refer to the work area having a capacity corresponding to the print job information included at the head of the print data and the size information in the module information from among the plurality of selected program modules. The copy of the selected program modules selected in the order ordered by the priority information in the module information is present in the second memory, and the data generation and supply control process is performed. Sometimes
For each selected program module having a copy on the second memory, a copy of the selected program module on the second memory will be executed,
For each selected program module whose copy is not formed on the second memory, a control process for forming a state in which the selected program module on the first memory is to be executed is executed. Printing device.
【請求項2】 前記プログラムは、前記CPUに、 前記データ生成供給制御処理の実行中に前記第2メモリ
の容量が不足した場合には、 前記データ生成供給制御処理を中断させ、 前記データ生成供給制御処理を再開するのに要する容量
の作業領域と、前記複数の選択プログラムモジュールの
中から前記モジュール情報内のサイズ情報を参照して前
記モジュール情報内の優先順位情報によって順序付けら
れた順で選択された幾つかの選択プログラムモジュール
のコピーとが、前記第2メモリ上に存在する状態であっ
て、前記データ生成供給制御処理の再開後に、前記第2
メモリ上にコピーが存在している各選択プログラムモジ
ュールに関しては、前記第2メモリ上の選択プログラム
モジュールのコピーが実行されることになり、前記第2
メモリ上にコピーが形成されていない各選択プログラム
モジュールに関しては、前記第1メモリ上の選択プログ
ラムモジュールが実行されることになる状態を形成する
ための制御処理を実行させた後に、前記データ生成供給
処理を再開させることを特徴とする請求項1記載の印刷
装置。
2. The program causes the CPU to interrupt the data generation and supply control process if the capacity of the second memory is insufficient during the execution of the data generation and supply control process. A work area having a capacity required for restarting the control process, and a plurality of selected program modules are selected in the order ordered by the priority information in the module information with reference to the size information in the module information. And some copies of the selected program module exist in the second memory, and after the data generation / supply control process is restarted, the second
For each selected program module having a copy on the memory, the copy of the selected program module on the second memory is executed, and the second
For each selected program module for which a copy has not been formed on the memory, after executing a control process for forming a state in which the selected program module on the first memory is to be executed, The printing apparatus according to claim 1, wherein the processing is restarted.
【請求項3】 印刷エンジンと、印刷データを受信し
て、当該印刷データに応じたデータを生成して前記印刷
エンジンに供給する制御部とを含む印刷装置であって、 前記制御部は、 CPU,前記CPUの動作手順を規定する、複数のプロ
グラムモジュールからなるプログラムを格納した第1メ
モリ,前記第1メモリよりも高速にアクセスが行える第
2メモリ,前記複数のプログラムモジュールの中から、
ある言語が用いられた印刷データに対する処理時に使用
されることがあるという基準で選択された複数のプログ
ラムモジュールである複数の選択プログラムモジュール
に関するモジュール情報であって、前記第2メモリ上で
実行することによって得られる効果の大きさの順に前記
複数の選択プログラムモジュールを順序づける優先順位
情報と、前記複数の選択プログラムモジュールのそれぞ
れのサイズを示すサイズ情報とを含むモジュール情報
を、複数種類の言語のそれぞれに対して保持したモジュ
ール情報保持手段,及び,前記プログラムで使用されて
いる論理アドレスを物理アドレスに変換するメモリ管理
機構であって、論理アドレスの物理アドレスへの変換規
則を変更することができるメモリ管理機構を備え,前記
プログラムは、前記CPUに、 前記制御部に受信された印刷データに応じたデータが生
成され、前記印刷エンジンに供給される処理であるデー
タ生成供給制御処理を開始させる前に、 当該印刷データの先頭に含まれる印刷ジョブ情報に応じ
た容量の作業領域と、前記印刷データで用いられている
言語で使用される前記複数の選択プログラムモジュール
の中から、当該言語に関する前記モジュール情報内の前
記サイズ情報及び前記優先順位情報を参照して、その優
先順位情報によって順序付けられる順で選択された幾つ
かの選択プログラムモジュールのコピーとが、前記第2
メモリ上に存在する状態であって、前記データ生成供給
制御処理時に、前記第2メモリ上にコピーが存在してい
る各選択プログラムモジュールに関しては、前記第2メ
モリ上の選択プログラムモジュールのコピーが実行され
ることになり、前記第2メモリ上にコピーが形成されて
いない各選択プログラムモジュールに関しては、前記第
1メモリ上の選択プログラムモジュールが実行されるこ
とになる状態を形成するための制御処理を実行させるこ
とを特徴とする印刷装置。
3. A printing apparatus comprising: a print engine; and a control unit that receives print data, generates data corresponding to the print data, and supplies the print data to the print engine. A first memory that stores a program including a plurality of program modules that defines an operation procedure of the CPU, a second memory that can be accessed at a higher speed than the first memory, and the plurality of program modules.
Module information relating to a plurality of selected program modules, which are a plurality of program modules selected on the basis that they may be used in processing print data in which a certain language is used, to be executed on the second memory Module information including priority information for ordering the plurality of selected program modules in the order of the effect obtained by the module and size information indicating the size of each of the plurality of selected program modules. And a memory management mechanism for converting a logical address used in the program into a physical address, the memory being capable of changing a rule for converting a logical address into a physical address. A management mechanism, wherein the program is Before the PU generates data corresponding to the print data received by the control unit and starts a data generation / supply control process, which is a process to be supplied to the print engine, the print data included in the head of the print data is From the work area having a capacity corresponding to job information and the plurality of selected program modules used in the language used in the print data, the size information and the priority information in the module information relating to the language And a copy of some selected program modules selected in the order ordered by the priority information,
For each of the selected program modules that exist in the memory and have a copy in the second memory during the data generation / supply control process, the copy of the selected program module in the second memory is executed. For each selected program module for which a copy is not formed on the second memory, a control process for forming a state in which the selected program module on the first memory is to be executed is performed. A printing apparatus characterized by being executed.
【請求項4】 前記制御部は、 前記複数のプログラムモジュールの中から、言語に依ら
ず使用されるという基準で選択された複数のプログラム
モジュールである複数の共通プログラムモジュールに関
するモジュール情報であって、前記第2メモリ上で実行
することによって得られる効果の大きさの順に前記複数
の共通プログラムモジュールを順序づける優先順位情報
と、前記複数の共通プログラムモジュールのそれぞれの
サイズを示すサイズ情報とを含む共通モジュール情報を
保持した共通モジュール情報保持手段を、さらに備え、 前記プログラムに含まれる起動時に実行されるプログラ
ムモジュールは、前記CPUに、 前記印刷エンジンの仕様と前記制御部の仕様とに応じた
容量の作業領域と、前記共通モジュール情報で順序づけ
られている前記複数の共通プログラムモジュールの中か
ら、前記共通モジュール情報内の前記サイズ情報及び前
記優先順位情報を参照してその優先順位情報が示す順序
で選択された幾つかの共通プログラムモジュールのコピ
ーとが、前記第2メモリ上に存在する状態であって、そ
の完了後に、前記第2メモリ上にコピーが存在している
各共通プログラムモジュールに関しては、前記第2メモ
リ上の共通プログラムモジュールのコピーが実行される
ことになり、前記第2メモリ上にコピーが形成されてい
ない各共通プログラムモジュールに関しては、前記第1
メモリ上の共通プログラムモジュールが実行されること
になる状態を形成するための起動時制御処理を実行させ
ることを特徴とする請求項3記載の印刷装置。
4. The module information on a plurality of common program modules, which are a plurality of program modules selected on the basis of being used irrespective of a language, from the plurality of program modules, A common information including priority information for ordering the plurality of common program modules in the order of the magnitude of the effect obtained by executing the second memory, and size information indicating a size of each of the plurality of common program modules; The program module further includes a common module information holding unit that holds module information. The program module included in the program and executed at the time of start-up includes a CPU having a capacity corresponding to the specification of the print engine and the specification of the control unit. Work area and the common module information A plurality of common program modules selected from the plurality of common program modules in the order indicated by the priority information with reference to the size information and the priority information in the common module information. , For each common program module that is in the second memory and whose copy is present in the second memory after the completion, the copy of the common program module in the second memory is executed. For each common program module whose copy is not formed on the second memory, the first program
4. The printing apparatus according to claim 3, wherein a startup control process for forming a state in which the common program module on the memory is to be executed is executed.
【請求項5】 前記モジュール情報内の優先順位情報
が、前記第2メモリ上で実行することによって得られる
効果の大きさの指標として、各選択プログラムモジュー
ルの実行に要する時間と出現確率の積の大きさを用いら
れた情報であることを特徴とする請求項1ないし請求項
4記載の印刷装置。
5. The method according to claim 1, wherein the priority information in the module information is used as an index of a magnitude of an effect obtained by executing the program on the second memory. The printing apparatus according to claim 1, wherein the information is information using a size.
【請求項6】 前記モジュール情報内の前記優先順位情
報が、前記第2メモリ上で実行することによって得られ
る効果の大きさの指標として、各選択プログラムモジュ
ールのサイズが用いられた情報であることを特徴とする
請求項1ないし請求項4記載の印刷装置。
6. The method according to claim 1, wherein the priority information in the module information is information using a size of each selected program module as an index of a magnitude of an effect obtained by executing the module on the second memory. The printing apparatus according to claim 1, wherein:
【請求項7】 前記第1メモリがROMであり、前記第
2メモリがRAMであることを特徴とする請求項1ない
し請求項6のいずれかに記載の印刷装置。
7. The printing apparatus according to claim 1, wherein the first memory is a ROM, and the second memory is a RAM.
【請求項8】 前記プログラムが、前記モジュール情報
保持手段として機能していることを特徴とする請求項1
ないし請求項7のいずれかに記載の印刷装置。
8. The program according to claim 1, wherein the program functions as the module information holding unit.
A printing device according to claim 7.
JP2000141260A 2000-05-15 2000-05-15 Printing apparatus Pending JP2001322319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000141260A JP2001322319A (en) 2000-05-15 2000-05-15 Printing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000141260A JP2001322319A (en) 2000-05-15 2000-05-15 Printing apparatus

Publications (1)

Publication Number Publication Date
JP2001322319A true JP2001322319A (en) 2001-11-20

Family

ID=18648400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000141260A Pending JP2001322319A (en) 2000-05-15 2000-05-15 Printing apparatus

Country Status (1)

Country Link
JP (1) JP2001322319A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7202967B2 (en) 2002-02-25 2007-04-10 Seiko Epson Corporation Printer, control program loading method, and medium and page printer recording load control programs

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7202967B2 (en) 2002-02-25 2007-04-10 Seiko Epson Corporation Printer, control program loading method, and medium and page printer recording load control programs

Similar Documents

Publication Publication Date Title
JP5289153B2 (en) Information processing apparatus, control method therefor, and computer program
JPH10143340A (en) Printer
JP3007103B2 (en) Printing control device
JP5418097B2 (en) Information processing apparatus, image forming apparatus, and operation mode switching method
US7973958B2 (en) Image forming apparatus conducting an interpretation operation
JP4560493B2 (en) Image forming apparatus
US7355739B2 (en) Image forming device having a memory assignment unit
JP6270377B2 (en) Image forming apparatus
JP2008290813A (en) Image forming apparatus, program, and recording medium recording the program
JP5545050B2 (en) Image processing apparatus, program, and image processing method
JP2001322319A (en) Printing apparatus
JP5232728B2 (en) Image forming apparatus
US5905853A (en) Image printing apparatus and method having changeable capacity storage means
JPH11194973A (en) Image information processor, control method therefor and record medium
US20070177919A1 (en) Image forming apparatus, data processing method thereof, and computer-readable recording medium storing program of the method
JP5874665B2 (en) Image forming apparatus, control apparatus, and program
JP2003266901A (en) Printer
JP2009093263A (en) Printing system and program for print
JP6760208B2 (en) Image processing device
JP6760116B2 (en) Printing device and memory management method for printing device
JP2010188598A (en) Printing apparatus, driver program and printing system
JP2003067243A (en) Image processing device, program, recording medium and image forming apparatus to which program is written
US20200110636A1 (en) Electronic device that uses hardware corresponding to priority level of processor usage
JP2003131934A (en) Memory control circuit and information processing system
JPH05327955A (en) Image forming device and method for processing control program therein