JPH061008A - Printer controller - Google Patents

Printer controller

Info

Publication number
JPH061008A
JPH061008A JP15944492A JP15944492A JPH061008A JP H061008 A JPH061008 A JP H061008A JP 15944492 A JP15944492 A JP 15944492A JP 15944492 A JP15944492 A JP 15944492A JP H061008 A JPH061008 A JP H061008A
Authority
JP
Japan
Prior art keywords
data
cache
area
stored
font
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.)
Granted
Application number
JP15944492A
Other languages
Japanese (ja)
Other versions
JP3059577B2 (en
Inventor
Hiromi Kataoka
洋海 片岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP15944492A priority Critical patent/JP3059577B2/en
Publication of JPH061008A publication Critical patent/JPH061008A/en
Application granted granted Critical
Publication of JP3059577B2 publication Critical patent/JP3059577B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To increase the speed of formation of a bit map image data by provid ing a font cache means for storing the bit map image data formed by a printer controller as a binary data, converting the same into a multi-valued data and outputting. CONSTITUTION:Whether characters to be formed are stored in a font cache or not is checked by character codes and the like stored in respective cache control labels by a CPU (S1). When the data is in the font cache (S2), the cache data corresponding to the characters is read, and converted into the multi-valued data and stored in a page memory (S3...S9). The formed multi-valued bit map data is stored in the page memory by the CPU, and sometimes the operation for pixels in the page memory is also carried out (S6). At that time, the pixel data is loaded from the page memory and bit operated, and then stored in the page memory of the address.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ホスト装置より出力さ
れる印刷データに従ってビットマップ画像データを生成
し、プリンタエンジンに対して印刷制御を行うプリンタ
コントローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer controller that generates bitmap image data according to print data output from a host device and performs print control on a printer engine.

【0002】[0002]

【従来の技術】レーザプリンタ等におけるプリンタコン
トローラは、記憶手段として、CPUの動作プログラム
を格納するコードROMやテキスト文字に対するビット
マップフォントあるいはアウトラインフォントを格納す
るフォントROMと共に、CPUのワーク領域および1
ページ分のビットマップデータ領域等からなるRAMを
有している。一般に、プリンタコントローラにおけるR
AMは、1ページ分のビットマップ画像データを格納す
るページメモリ領域、テキスト文字のアウトラインフォ
ントをビットマップ画像データに展開した際にこのビッ
トマップ画像データを格納しておくフォントキャッシュ
領域、ポストスクリプト(Post Script) 等のページ記述
言語(PDL)を処理するために割り当てられたPDL
用ワーク領域、およびその他の補助領域より構成され
る。
2. Description of the Related Art A printer controller in a laser printer or the like has, as a storage means, a code ROM storing an operation program of a CPU and a font ROM storing a bit map font or an outline font for a text character, a work area of the CPU and a CPU.
It has a RAM including a bitmap data area for pages. Generally, R in the printer controller
AM is a page memory area that stores bitmap image data for one page, a font cache area that stores this bitmap image data when an outline font of text characters is expanded into bitmap image data, and a postscript ( PDL assigned to process page description language (PDL) such as Post Script
The work area and other auxiliary areas.

【0003】このRAM領域は、例えばA4紙,300
dpi,2値(モノクロ)対応のプリンタコントローラ
であれば、2Mバイト程度の容量を必要とする。この場
合、ページメモリ領域として1Mバイト、フォントキャ
ッシュ領域として100Kバイト〜200Kバイト程
度、PDL用ワーク領域として500Kバイト程度が割
り当てられる。
This RAM area is, for example, A4 paper, 300
A printer controller compatible with dpi, binary (monochrome) requires a capacity of about 2 Mbytes. In this case, a page memory area of 1 Mbyte, a font cache area of about 100 Kbytes to 200 Kbytes, and a PDL work area of about 500 Kbytes are allocated.

【0004】一方、プリンタエンジンにおける電子写真
技術およびレーザ駆動部・走査部の進展に伴って、2値
プリンタの高解像化のみならず、ビットマップ画像デー
タを多値データ(1画素を2ビット以上で表現する)と
して取り扱い、階調度(グレースケール)を表現可能に
したプリンタが製品化されるようになった。このような
プリンタでは、一般にビットマップ画像データを4ビッ
トあるいは8ビットにしてRAM中へ格納するために、
RAMの大容量化を招く。例えば、A4紙,300dp
i,256階調対応のプリンタコントローラでは、ペー
ジメモリ領域として8Mバイトが必要となる。
On the other hand, with the development of electrophotographic technology and laser driving unit / scanning unit in printer engines, not only high resolution of binary printers but also bitmap image data is converted into multi-valued data (1 pixel is 2 bits). Printers that are capable of expressing gradation (grayscale) have been commercialized. In such a printer, since the bitmap image data is generally stored in the RAM as 4 bits or 8 bits,
This increases the capacity of the RAM. For example, A4 paper, 300 dp
A printer controller compatible with i, 256 gradations requires 8 Mbytes as a page memory area.

【0005】[0005]

【発明が解決しようとしている課題】しかしながら、こ
の種のプリンタコントローラでは、テキスト文字も階調
度を有する場合があり、一般的にフォントキャッシュ領
域に格納する文字のビットマップ画像データも多値デー
タとして格納されるので、2値プリンタのフォントキャ
ッシュ領域で格納できる文字数に対応させると、このフ
ォントキャッシュ領域の容量は1Mバイト以上必要とな
る。
However, in this type of printer controller, the text characters may also have gradation, and generally the bitmap image data of the characters stored in the font cache area is also stored as multi-valued data. Therefore, in order to correspond to the number of characters that can be stored in the font cache area of the binary printer, the capacity of this font cache area needs to be 1 Mbytes or more.

【0006】また、テキスト文字のビットマップ画像化
においては、アウトラインフォントデータからの文字輪
郭生成および生成された文字輪郭に対する塗りつぶし等
の処理が必要であり、RAMのアクセス操作が頻繁に行
われる。この処理においては、2値データの場合よりも
多値データの場合がメモリアクセスの回数がきわめて多
くなり、ビットマップ画像データの生成に長時間が必要
となる。
Further, in the bitmap image formation of a text character, it is necessary to generate a character outline from outline font data and to fill the generated character outline, and thus a RAM access operation is frequently performed. In this processing, the number of times of memory access is extremely large in the case of multi-valued data than in the case of binary data, and it takes a long time to generate the bitmap image data.

【0007】本発明は、前記従来の欠点を除去し、フォ
ントキャッシュ領域のために必要なRAM容量の削減な
らびに多値データとしてのビットマップ画像データ生成
の高速化を可能にするプリンタコントローラを提供す
る。
The present invention provides a printer controller which eliminates the above-mentioned conventional drawbacks, reduces the RAM capacity required for the font cache area, and speeds up the generation of bitmap image data as multi-valued data. .

【0008】[0008]

【課題を解決するための手段】この課題を解決するため
に、本発明のプリンタコントローラは、コードデータか
ら階調をもつビットマップ画像データを生成するプリン
タコントローラであって、該プリンタコントローラによ
り生成されたビットマップ画像データを2値データとし
て格納するフォントキャッシュ手段と、コードデータに
対応するビットマップ画像データが既に前記フォントキ
ャッシュ手段に格納されている場合に、前記フォントキ
ャッシュ手段に格納された2値データを多値データへ変
換して出力するフォントキャッシュ制御手段とを備え
る。ここで、前記フォントキャッシュ制御手段による2
値データから多値データへの変換は、該2値データの値
か0である場合には多値データの値を00に、1の場合
には所定の階調値に置き換える。
In order to solve this problem, a printer controller of the present invention is a printer controller for generating bitmap image data having gradation from code data, and is generated by the printer controller. A font cache means for storing the bitmap image data as binary data, and a binary cache stored in the font cache means when the bitmap image data corresponding to the code data is already stored in the font cache means. A font cache control means for converting the data into multi-valued data and outputting the multi-valued data. Here, the font cache control means 2
In the conversion from the value data to the multi-valued data, the value of the multi-valued data is replaced with 00 when the value of the binary data is 0, and the predetermined gradation value is replaced when the value is 1.

【0009】[0009]

【作用】かかる構成において、コードデータからビット
マップ画像データの生成を行う際に、フォントキャッシ
ュ手段中に格納されているビットマップ画像データを読
み出して、階調度をもつ多値データへ変換して出力する
処理機能を設けることにより、フォントキャッシュ領域
のために必要なRAM容量の削減ならびに多値データと
してのビットマップ画像データ生成の高速化を可能にす
るものである。
With this structure, when the bitmap image data is generated from the code data, the bitmap image data stored in the font cache means is read, converted into multi-valued data having gradation and output. By providing such a processing function, it is possible to reduce the RAM capacity required for the font cache area and to speed up the generation of bitmap image data as multi-valued data.

【0010】[0010]

【実施例】以下、本発明を図示の実施例に基づいて説明
する。
The present invention will be described below with reference to the illustrated embodiments.

【0011】図1は、レーザプリンタ等におけるプリン
タコントローラの構成を示すブロック図である。尚、本
例のプリンタコントローラの外部装置であるホスト装置
109,操作パネル110,プリンタエンジン111は
点線で示されているが、図1の構成はその一例であり本
発明のプリンタコントローラの構成は図1の実線の範囲
に限定されることはなく、上記外部装置を含むものであ
っても図1の構成の一部を欠くものであってもよい。
FIG. 1 is a block diagram showing the arrangement of a printer controller in a laser printer or the like. The host device 109, the operation panel 110, and the printer engine 111, which are external devices of the printer controller of the present example, are shown by dotted lines, but the configuration of FIG. 1 is an example thereof, and the configuration of the printer controller of the present invention is not shown. It is not limited to the range indicated by the solid line 1 and may include the above external device or may lack a part of the configuration of FIG.

【0012】同図において、101は該プリンタコント
ローラの動作制御を行うCPUである。102はCPU
101より出力されるアドレスやバス制御信号を入力
し、各メモリデバイス103〜105および各I/F制
御部106〜108に対するタイミング制御を行うメモ
リ・I/O制御部である。103はCPU101の動作
プログラムを格納するコードROM、104はテキスト
文字に対するビットマップフォントあるいはアウトライ
ンフォントを格納するフォントROM、105はCPU
101のワーク領域および1ページ分のビットマップデ
ータ領域等からなるRAMである。また、106はホス
ト装置109とのデータ通信等(Centronics やRS−2
32C等のI/Fによる)を制御するホストI/F制御
部、107は操作パネル110へのプリンタステータス
の表示制御やスイッチ入力制御を行うパネルI/F制御
部、108はプリンタエンジン111へのビットマップ
画像データの出力制御やコマンド/ステータスの通信制
御を行うプリンタI/F制御部である。CPU101か
ら各メモリデバイス103〜105および各I/F制御
部106〜108へのデータ入出力はデータバスを通し
て行なわれる。
In the figure, reference numeral 101 is a CPU for controlling the operation of the printer controller. 102 is a CPU
The memory / I / O control unit receives the address and the bus control signal output from 101 and controls the timing of the memory devices 103 to 105 and the I / F control units 106 to 108. Reference numeral 103 is a code ROM that stores the operation program of the CPU 101, 104 is a font ROM that stores a bitmap font or outline font for text characters, and 105 is a CPU
The RAM includes a work area 101, a bitmap data area for one page, and the like. Further, 106 is data communication with the host device 109 (Centronics or RS-2
A host I / F control unit for controlling the I / F of the 32C or the like), a panel I / F control unit 107 for performing display control of printer status on the operation panel 110 and a switch input control, and a reference numeral 108 for the printer engine 111. A printer I / F control unit that controls output of bitmap image data and communication control of commands / status. Data input / output from the CPU 101 to each of the memory devices 103 to 105 and each of the I / F control units 106 to 108 is performed through a data bus.

【0013】同図における動作シーケンスを以下に記
す。CPU101はホスト装置109より出力される印
刷データをホストI/F制御部106より入力し、該印
刷データからビットマップ画像データを生成し、RAM
105中へ展開する。ここで、該印刷データがテキスト
文字を含む場合は、フォントROM104より該テキス
ト文字コードに相当するフォントデータを読み出してビ
ットマップ画像データを生成する。CPU101は1ペ
ージ分のビットマップ画像データの生成が完了すると、
プリンタエンジン111に対してプリント開始を要求
し、その後プリンタエンジンより出力される垂直同期信
号によりプリントを開始する。この場合、RAM105
中のビットマップ画像データは1ライン毎にプリンタI
/F制御部108へ出力され、プリンタエンジン111
からの水平同期信号に同期して該ビットマップ画像デー
タが出力される。
The operation sequence in the figure is described below. The CPU 101 inputs print data output from the host device 109 from the host I / F control unit 106, generates bitmap image data from the print data, and stores it in the RAM.
Expand into 105. If the print data includes text characters, the font data corresponding to the text character code is read from the font ROM 104 to generate bitmap image data. When the CPU 101 completes the generation of the bitmap image data for one page,
A request to start printing is issued to the printer engine 111, and then printing is started by a vertical synchronization signal output from the printer engine. In this case, the RAM 105
Bitmap image data in the printer I
To the printer engine 111.
The bit map image data is output in synchronization with the horizontal sync signal from the.

【0014】図2は本実施例のプリンタコントローラに
おけるRAM構成を示すものである。
FIG. 2 shows the RAM configuration of the printer controller of this embodiment.

【0015】本実施例のプリンタコントローラにおける
RAMは、1ページ分のビットマップ画像データを格納
するページメモリ領域105aと、テキスト文字のアウ
トラインフォントをビットマップ画像データに展開した
際にこのビットマップ画像データを格納しておくフォン
トキャッシュ領域105bと、ポストスクリプト(Post
Script) 等のページ記述言語(PDL)を処理するため
に割り当てられたPDL用ワーク領域105cと、その
他の補助領域105dとから構成される。PDL用ワー
ク領域105cあるいはその他の補助領域105dに
は、フォントキャッシュ領域105b中のキャッシュデ
ータを多値データに変換する際に参照される階調値を格
納する階調値データ領域105eがある。
The RAM in the printer controller of this embodiment has a page memory area 105a for storing one page of bitmap image data and a bitmap image data when an outline font of a text character is expanded into the bitmap image data. Font cache area 105b for storing the
It is composed of a PDL work area 105c allocated for processing a page description language (PDL) such as Script) and other auxiliary area 105d. In the PDL work area 105c or other auxiliary area 105d, there is a gradation value data area 105e for storing the gradation value referred to when converting the cache data in the font cache area 105b into multi-valued data.

【0016】図3は本実施例のプリンタコントローラに
おけるRAM105中のフォントキャッシュ領域105
bの構成を示すものである。
FIG. 3 is a font cache area 105 in the RAM 105 of the printer controller of this embodiment.
It shows the configuration of b.

【0017】同図において、フォントキャッシュ領域1
05bは、テキスト文字のビットマップ画像データ(キ
ャッシュデータ0,1,2,…)を格納するキャッシュ
データ領域と、この領域内における各々のキャッシュデ
ータの情報を管理する部分(キャッシュ管理テーブル
0,1,2,…)および格納されているテキスト文字の
エントリ数を示すキャッシュエントリを有するキャッシ
ュ管理領域とから構成されている。
In the figure, the font cache area 1
Reference numeral 05b denotes a cache data area for storing bitmap image data of text characters (cache data 0, 1, 2, ...) And a portion for managing information of each cache data in this area (cache management tables 0, 1). , 2, ...) and a cache management area having a cache entry indicating the number of stored text character entries.

【0018】図4は図3におけるキャッシュ管理テーブ
ルの詳細を示すものである。
FIG. 4 shows details of the cache management table in FIG.

【0019】各キャッシュ管理テーブルには、テキスト
文字の情報として文字コード,書体名およびサイズを含
み、またキャッシュデータの情報として横方向の画素数
はXドット,縦方向の画素数Yドットおよびキャッシュ
データの先領アドレスを含んでいる。さらに、このキャ
ッシュデータの属性情報として、電源オン時に予め生成
されたキャッシュデータであるか否かを示すデフォルト
ビットD(Default) ,フォントキャッシュ領域の領域が
生成されたキャッシュデータによりフル状態になった場
合に新しいビットマップ画像データと置き換え可能か否
かを示す置換可能ビットR(Replaceable) ,および該キ
ャッシュデータが何回参照されたかを示すヒットレベル
・ビットフィールド(Hit Level) を含んでいる。これら
の属性情報のうち置換可能ビットRが“1”でヒットレ
ベルの値が小さいものから順に新しいビットマップ画像
データのキャッシュ領域に置き換えられる。
Each cache management table includes a character code, a typeface name and size as text character information, and the number of horizontal pixels is X dots, the number of vertical pixels is Y dots and cache data as cache data information. Contains the territory address of. Further, as attribute information of the cache data, a default bit D (Default) indicating whether or not the cache data is generated in advance when the power is turned on, and the font cache area area is filled with the generated cache data. In this case, a replaceable bit R (Replaceable) indicating whether or not it can be replaced with new bitmap image data and a hit level bit field (Hit Level) indicating how many times the cache data is referred to are included. Of these attribute information, the replaceable bit R is "1" and the hit level value is smaller, and the cache area of the new bitmap image data is replaced in order.

【0020】図5は本実施例の多値のプリンタコントロ
ーラにおいて、テキスト文字のビットマップ画像データ
の生成過程を示すフローチャートである。
FIG. 5 is a flow chart showing the process of generating bitmap image data of text characters in the multi-valued printer controller of this embodiment.

【0021】CPU101は、生成すべき文字がフォン
トキャッシュ領域105b(図2)に存在するか否か
を、各々キャッシュ管理テーブル中に格納されている文
字コード,書体名およびサイズにより調べる(ステップ
S1)。ここで、フォントキャッシュ領域105b中に
データが存在するならば(ステップS2)、該当する文
字に一致するキャッシュデータを読み出し、多値データ
に変換してページメモリ105aへ格納する(ステップ
S3〜S9)。
The CPU 101 checks whether or not the character to be generated exists in the font cache area 105b (FIG. 2) based on the character code, typeface name and size stored in the cache management table (step S1). . If there is data in the font cache area 105b (step S2), the cache data matching the corresponding character is read, converted into multi-valued data and stored in the page memory 105a (steps S3 to S9). .

【0022】この場合、該当した文字に一致したキャッ
シュ管理テーブルからキャッシュデータが格納されてい
る領域の開始アドレスをアドレスカウンタCADR とし、
横方向の画素数Xドットおよび縦方向の画素数Yドット
から全画素数Nドットを算出し、1回のバス転送で読み
出されるキャッシュデータの画素数ΔNを設定する(ス
テップS3)。その後、キャッシュデータをロードして
(ステップS4)、各画素毎に2値データ(1ビット)
から多値データ(8ビット)への変換を行う(ステップ
S5)。この際、この画素値が“0”である場合は“0
0”に、“1”である場合は階調値データ領域105e
を参照して“階調値”として多値データへ変換する。
In this case, the start address of the area where the cache data is stored from the cache management table that matches the corresponding character is the address counter C ADR ,
The total number of pixels N dots is calculated from the number of horizontal pixels X dots and the number of vertical pixels Y dots, and the number of pixels ΔN of cache data read by one bus transfer is set (step S3). After that, the cache data is loaded (step S4), and binary data (1 bit) is set for each pixel.
To multi-valued data (8 bits) are converted (step S5). At this time, if this pixel value is "0", "0"
If it is "0" and "1", the gradation value data area 105e
Is converted into multi-valued data as a “gradation value”.

【0023】次に、CPU101は生成した多値ビット
マップデータのページメモリ領域105aへの格納を行
うが、ただ単に格納のみならず格納すべきページメモリ
領域105a中の画素に対する操作を伴うこともある
(ステップS6)。この際、ページメモリ領域105a
中から画素データをロードし、ビット操作(論理積,論
理和,排他的論理和,加算,減算など)を行った後に、
同アドレスのページメモリ領域105aへストアする。
CPU101は、ステップS5およびS6をΔN画素分
行い(ステップS7)、その後、キャッシュデータのア
ドレスを更新して(ステップS8)、該ビットマップ化
すべき文字の全画素数Nドット分処理が完了するまで上
記ステップS4〜S8を繰り返し実行する(ステップS
9)。
Next, the CPU 101 stores the generated multi-valued bitmap data in the page memory area 105a. However, not only the storage but also the operation on the pixel in the page memory area 105a to be stored may be involved. (Step S6). At this time, the page memory area 105a
After loading pixel data from inside and performing bit operations (logical product, logical sum, exclusive OR, addition, subtraction, etc.),
The data is stored in the page memory area 105a having the same address.
The CPU 101 performs steps S5 and S6 for ΔN pixels (step S7), then updates the address of the cache data (step S8), and completes the processing for N dots of the total number of pixels of the character to be bitmapped. The above steps S4 to S8 are repeatedly executed (step S
9).

【0024】一方、該ビットマップ化すべき文字のキャ
ッシュデータがフォントキャッシュ領域105b中に存
在しない場合は、CPU101はフォントROM104
から該ビットマップ化すべき文字に一致するアウトライ
ンフォントデータを読み出し、ビットマップデータを生
成してページメモリ領域へ格納する(ステップS1
0)。次に、生成したビットマップ画像データのフォン
トキャッシュ領域の格納を行う(ステップS11)が、
これの詳細を図6に示す。
On the other hand, when the cache data of the character to be bitmapped does not exist in the font cache area 105b, the CPU 101 causes the font ROM 104 to operate.
Outline font data corresponding to the character to be bit-mapped is read out, bit map data is generated and stored in the page memory area (step S1).
0). Next, the font cache area of the generated bitmap image data is stored (step S11).
Details of this are shown in FIG.

【0025】この場合、生成した文字のビットマップ画
像データがフォントキャッシュ領域中に格納(キャッシ
ュ)すべきか否を調べ(ステップS12)、キャッシュ
すべき文字であれば以下のステップS13〜S17を実
行し、キャッシュすべき文字でなければこの処理を終了
する。
In this case, it is checked whether the generated bitmap image data of the character should be stored (cached) in the font cache area (step S12), and if it is the character to be cached, the following steps S13 to S17 are executed. If it is not a character to be cached, this process ends.

【0026】この文字をキャッシュする場合、フォント
キャッシュ領域中に十分な領域があるか否かを調べる
(ステップS13)。フォントキャッシュ領域に割り当
てられた領域が以前に生成された文字のキャッシュデー
タで多くの領域を占有され、新規に格納するのに足りる
十分な領域がない場合は、CPU101は各キャッシュ
管理テーブル中に格納されている属性情報、すなわち置
換可能ビットRとヒットレベルの値とを参照して(ステ
ップS14)、置換可能ビットRの値が“1”でヒット
レベルの値が最も小さいキャッシュ管理テーブルを置き
換え可能な領域とする(ステップS15)。次に、格納
すべき文字データの情報を図4に示すキャッシュ管理テ
ーブルへ格納(ステップS16)した後で、ビットマッ
プ化した文字データをキャッシュデータ領域へ格納する
(ステップS17)。ステップS13において、フォン
トキャッシュ領域が新しい文字データを格納するのに足
りる十分な領域を有する場合は、ステップS16とS1
7のみを実行する。
When this character is cached, it is checked whether or not there is a sufficient area in the font cache area (step S13). If the area allocated to the font cache area is occupied by the previously generated character cache data and there is not enough area for new storage, the CPU 101 stores in each cache management table. The cache management table having the smallest replaceable bit R value "1" and the smallest hit level value can be replaced by referring to the stored attribute information, that is, the replaceable bit R and the hit level value (step S14). Area (step S15). Next, after storing the information of the character data to be stored in the cache management table shown in FIG. 4 (step S16), the bit-mapped character data is stored in the cache data area (step S17). If it is determined in step S13 that the font cache area has a sufficient area for storing new character data, steps S16 and S1.
Do only 7.

【0027】[0027]

【他の実施例】次に、図7に本発明の第2実施例のプリ
ンタコントローラの構成図を示す。同図において、11
2は、RAM105のフォントキャッシュ領域105b
中に格納されているテキスト文字のキャッシュデータを
読み出し、多値データに変換してページメモリ領域へ格
納するためのフォントキャッシュ制御部であり、図8に
その内部構成図が示されている。本実施例では、フォン
トキャッシュ制御部112は図5のフローチャートにお
けるステップS4〜S9をハードウェアにより自動的に
行うものである。
[Other Embodiments] FIG. 7 is a block diagram of a printer controller according to the second embodiment of the present invention. In the figure, 11
2 is a font cache area 105b of the RAM 105
It is a font cache control unit for reading the cache data of the text characters stored therein, converting it into multi-valued data and storing it in the page memory area, and its internal configuration diagram is shown in FIG. In the present embodiment, the font cache control unit 112 automatically executes steps S4 to S9 in the flowchart of FIG. 5 by hardware.

【0028】以下に、図8の構成と動作について説明す
る。112aおよび112bは外部データバス及び外部
アドレスバス用のバッファ、112cはフォントキャッ
シュ領域105b中のキャッシュデータに対するアドレ
スおよびページメモリ領域に対するアドレスを生成し、
外部アドレスバスへ出力するアドレス制御部、112d
はCPU101およびRAM105との間のデータ転送
の制御、およびフォントキャッシュ制御部112内の各
レジスタや演算部等の制御を行うシーケンサである。図
5におけるステップS4〜S9に対応する動作は、すべ
てのシーケンサ112dにより制御される。
The configuration and operation of FIG. 8 will be described below. 112a and 112b are buffers for an external data bus and an external address bus, 112c generates an address for cache data and an address for a page memory area in the font cache area 105b,
Address control unit 112d for outputting to an external address bus
Is a sequencer for controlling data transfer between the CPU 101 and the RAM 105, and for controlling each register and arithmetic unit in the font cache control unit 112. The operations corresponding to steps S4 to S9 in FIG. 5 are controlled by all sequencers 112d.

【0029】112eはフォントキャッシュ領域105
b中のキャッシュデータを多値データに変換する際に参
照される階調値を格納する階調値データレジスタ、11
2fはフォントキャッシュ領域105b中からロードさ
れるキャッシュデータを格納するキャッシュデータレジ
スタ、112gはキャッシュデータレジスタ112fか
ら出力される各々画素データ(1ビット)から多値画素
データ(8ビット)へ、この画素データが“0”なら
“00”へ、“1”なら階調値データレジスタ中に格納
されているデータへ変換する2値/多値変換部である。
112e is a font cache area 105.
a gradation value data register for storing a gradation value referred to when converting the cache data in b into multi-valued data, 11
2f is a cache data register for storing cache data loaded from the font cache area 105b, and 112g is each pixel data (1 bit) output from the cache data register 112f to multi-value pixel data (8 bits). A binary / multi-value conversion unit for converting data to "00" when the data is "0" and data stored in the gradation value data register when the data is "1".

【0030】112hは該2値/多値変換部112gの
結果を格納する多値レジスタであり、キャッシュデータ
レジスタの参照ビットフィールドの番号と同じ番号をも
つ多値レジスタへ格納される。112iはページメモリ
領域105aへ格納するための出力データ、あるいはペ
ージメモリ領域105a中の画素データと演算を行うた
めに、ページメモリ領域105aよりロードされる入力
データを保持する多値入出力レジスタである。112j
は2値レジスタ112h中に格納されたデータと多値入
出力レジスタ112i中に格納されたデータとの演算
(論理積,論理和,加算,減算など)を行う多値演算部
であり、この演算結果は多値入出力レジスタ112iへ
出力される。
Reference numeral 112h is a multi-valued register for storing the result of the binary / multi-value conversion unit 112g, which is stored in the multi-valued register having the same number as the reference bit field number of the cache data register. Reference numeral 112i is a multi-valued input / output register that holds output data to be stored in the page memory area 105a, or input data loaded from the page memory area 105a for operation with pixel data in the page memory area 105a. . 112j
Is a multi-value arithmetic unit that performs an operation (logical product, logical sum, addition, subtraction, etc.) between the data stored in the binary register 112h and the data stored in the multi-value input / output register 112i. The result is output to the multilevel input / output register 112i.

【0031】次に、このフォントキャッシュ制御部11
2の動作フローを図5のフローチャートに基づいて説明
する。図5において、ステップS1〜S3およびステッ
プS10,S11の処理は、CPU101のソフトウェ
アにより行われる。ステップS3において、キャッシュ
データの開始アドレス,全画素数Nドットおよび1回の
バス転送で読み出されるキャッシュデータの画素数ΔN
は、アドレス制御部112cとシーケンサ112dの内
部へ制御用データとして格納され、またページメモリ領
域105aへ出力すべきビットマップ画像データの階調
値が階調値データレジスタ112eへ格納される。この
後、CPU101は、フォントキャッシュ領域105b
から2値/多値変換した後にページメモリ領域105a
へ格納するまでの過程(ステップS4〜S9)をフォン
トキャッシュ制御部112に行わせる。ステップS4〜
S9に対応する動作フローの制御は、すべてシーケンサ
112dで制御される(CPU101はバス制御権をシ
ーケンサ112dへ移す)。ステップS4では、フォン
トキャッシュ領域105bからキャッシュデータレジス
タ112fへキャッシュデータが転送される。
Next, the font cache control unit 11
The operation flow of No. 2 will be described based on the flowchart of FIG. In FIG. 5, the processes of steps S1 to S3 and steps S10 and S11 are performed by the software of the CPU 101. In step S3, the start address of the cache data, the total number of pixels N dots, and the number of pixels of the cache data read by one bus transfer ΔN
Is stored in the address control unit 112c and the sequencer 112d as control data, and the gradation value of the bitmap image data to be output to the page memory area 105a is stored in the gradation value data register 112e. After that, the CPU 101 determines that the font cache area 105b
Page memory area 105a after binary / multivalue conversion from
The font cache control unit 112 is caused to perform the process (steps S4 to S9) until the storage. Step S4 ~
The control of the operation flow corresponding to S9 is entirely controlled by the sequencer 112d (the CPU 101 transfers the bus control right to the sequencer 112d). In step S4, the cache data is transferred from the font cache area 105b to the cache data register 112f.

【0032】次に、ステップS5では、上述したように
キャッシュデータレジスタ112fおよび階調値データ
レジスタ中のデータをもとに、逐次、2値/多値変換部
112gにおいて多値画素データを生成して多値レジス
タ112hへ格納する。ステップS6およびS7では、
ページメモリ領域105a中の各画素データと多値レジ
スタ112h中の各データとの演算操作が多値演算部に
おいて行われ、演算結果は多値入出力レジスタ112i
を通してページメモリ領域105aへ格納される。ΔN
画素分の上記処理(ステップS4〜S7)を処理する
と、アドレス制御部においてキャッシュデータの格納ア
ドレスCADR が更新され(ステップS8)、上記処理が
全画素分処理するまで繰り返される(ステップS4〜S
9)。この処理が終了するとフォントキャッシュ制御部
112(シーケンサ112d)はCPU101へバス制
御権を移して、再びCPU101がプリンタコントロー
ラ全体を制御する。
Next, in step S5, multi-valued pixel data is sequentially generated in the binary / multi-value conversion unit 112g based on the data in the cache data register 112f and the gradation value data register as described above. And stores it in the multi-valued register 112h. In steps S6 and S7,
An arithmetic operation of each pixel data in the page memory area 105a and each data in the multi-value register 112h is performed in the multi-value arithmetic unit, and the operation result is the multi-value input / output register 112i.
Through the page memory area 105a. ΔN
When the processing for the pixels (steps S4 to S7) is processed, the storage address C ADR of the cache data is updated in the address control unit (step S8), and the above processing is repeated until all pixels are processed (steps S4 to S4).
9). When this process ends, the font cache control unit 112 (sequencer 112d) transfers the bus control right to the CPU 101, and the CPU 101 controls the entire printer controller again.

【0033】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることは言うまでもない。
The present invention may be applied to either a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0034】[0034]

【発明の効果】本発明により、フォントキャッシュ領域
のために必要なRAM容量の削減ならびに多値データと
してのビットマップ画像データ生成の高速化を可能にす
るプリンタコントローラを提供できる。
According to the present invention, it is possible to provide a printer controller capable of reducing the RAM capacity required for a font cache area and speeding up the generation of bitmap image data as multi-valued data.

【0035】すなわち、階調度(グレースケール)をも
つ画像データを取り扱うプリンタコントローラにおい
て、ビットマップ画像データに展開した文字データのフ
ォントキャッシュ領域への格納を2値形成とし、ホスト
装置から出力される印刷データよりビットマップ画像デ
ータを生成する際、フォントキャッシュ領域中の文字デ
ータを階調性をもつ多値データに変換しページメモリ領
域へ格納する処理機能を有することにより、プリンタコ
ントローラに必要なRAMの容量削減および多値データ
としてのビットマップ画像データ生成の高速化を可能に
した。
That is, in a printer controller that handles image data having a gradation (gray scale), the storage of character data expanded into bit map image data in the font cache area is binary-formed, and the printing output from the host device is performed. When the bitmap image data is generated from the data, it has the processing function of converting the character data in the font cache area to multi-valued data with gradation and storing it in the page memory area. The capacity can be reduced and the bit map image data as multi-valued data can be generated faster.

【0036】また、フォントキャッシュ領域中のデータ
の読み出し、2値データから多値データへの変換および
ページメモリとの演算・格納をハードウェアとして設け
て、さらに高速な処理を可能とした。
Further, reading of data in the font cache area, conversion from binary data to multi-valued data, and operation / storing with a page memory are provided as hardware to enable higher speed processing.

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

【図1】第1実施例のプリンタコントローラのブロック
図である。
FIG. 1 is a block diagram of a printer controller according to a first embodiment.

【図2】本実施例のプリンタコントローラのRAM構成
図である。
FIG. 2 is a RAM configuration diagram of a printer controller according to the present exemplary embodiment.

【図3】本実施例のプリンタコントローラのフォントキ
ャッシュ領域の構成図である。
FIG. 3 is a configuration diagram of a font cache area of the printer controller according to the present embodiment.

【図4】本実施例のフォントキャッシュ領域のキャッシ
ュ管理領域の構成図である。
FIG. 4 is a configuration diagram of a cache management area of a font cache area according to the present embodiment.

【図5】本実施例のフォントキャッシュ領域を用いたテ
キスト文字のビットマップ画像データの生成過程を示す
フローチャートである。
FIG. 5 is a flowchart showing a process of generating bitmap image data of a text character using the font cache area of this embodiment.

【図6】本実施例のビットマップ化したテキスト文字デ
ータのフォントキャッシュ領域への格納を示すフローチ
ャート図である。
FIG. 6 is a flowchart showing storage of bitmapped text character data in a font cache area according to the embodiment.

【図7】第2実施例のプリンタコントローラのブロック
図である。
FIG. 7 is a block diagram of a printer controller according to a second embodiment.

【図8】第2実施例のフォントキャッシュ制御部の内部
ブロック図である。
FIG. 8 is an internal block diagram of a font cache control unit of the second embodiment.

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

101…CPU、102…メモリI/O制御部、103
…コード ROM、104…フォント ROM、105
…RAM、105a…ページメモリ領域、105b…フ
ォントキャッシュ領域、105c…PDL用ワーク領
域、105d…その他のRAM領域、105e…階調値
データ領域、106…ホストI/F制御部、107…パ
ネルI/F制御部、108…プリンタI/F制御部、1
09…ホスト装置、110…操作パネル、111…プリ
ンタエンジン、112…フォントキャッシュ制御部、1
12a,112b…入出力バッファ、112c…アドレ
ス制御部、112d…シーケンサ、112e…階調値デ
ータレジスタ、112f…キャッシュデータレジスタ、
112g…2値/多値変換部、112h…多値レジス
タ、112i…多値入出力レジスタ、112j…多値演
算部
101 ... CPU, 102 ... Memory I / O control unit, 103
… Code ROM, 104… Font ROM, 105
RAM 105a Page memory area 105b Font cache area 105c PDL work area 105d Other RAM area 105e Gradation value data area 106 Host I / F controller 107 Panel I / F control unit, 108 ... Printer I / F control unit, 1
09 ... Host device, 110 ... Operation panel, 111 ... Printer engine, 112 ... Font cache control unit, 1
12a, 112b ... I / O buffer, 112c ... Address control unit, 112d ... Sequencer, 112e ... Gradation value data register, 112f ... Cache data register,
112g ... Binary / multivalue converter, 112h ... Multivalue register, 112i ... Multivalue input / output register, 112j ... Multivalue calculator

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 コードデータから階調をもつビットマッ
プ画像データを生成するプリンタコントローラであっ
て、 該プリンタコントローラにより生成されたビットマップ
画像データを2値データとして格納するフォントキャッ
シュ手段と、 コードデータに対応するビットマップ画像データが既に
前記フォントキャッシュ手段に格納されている場合に、
前記フォントキャッシュ手段に格納された2値データを
多値データへ変換して出力するフォントキャッシュ制御
手段とを備えることを特徴とするプリンタコントロー
ラ。
1. A printer controller for generating bitmap image data having gradation from code data, the font cache means storing the bitmap image data generated by the printer controller as binary data, and code data. When the bitmap image data corresponding to is already stored in the font cache means,
A printer controller comprising: a font cache control unit for converting binary data stored in the font cache unit into multi-valued data and outputting the multi-valued data.
【請求項2】 前記フォントキャッシュ制御手段による
2値データから多値データへの変換は、該2値データの
値が0である場合には多値データの値を00に、1の場
合には所定の階調値に置き換えることを特徴とする請求
項1記載のプリンタコントローラ。
2. The conversion from binary data to multi-valued data by the font cache control means is such that when the value of the binary data is 0, the value of the multi-valued data is 00, and when it is 1. The printer controller according to claim 1, wherein the printer controller is replaced with a predetermined gradation value.
JP15944492A 1992-06-18 1992-06-18 Print data generation method, printer controller and printer Expired - Lifetime JP3059577B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15944492A JP3059577B2 (en) 1992-06-18 1992-06-18 Print data generation method, printer controller and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15944492A JP3059577B2 (en) 1992-06-18 1992-06-18 Print data generation method, printer controller and printer

Publications (2)

Publication Number Publication Date
JPH061008A true JPH061008A (en) 1994-01-11
JP3059577B2 JP3059577B2 (en) 2000-07-04

Family

ID=15693892

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15944492A Expired - Lifetime JP3059577B2 (en) 1992-06-18 1992-06-18 Print data generation method, printer controller and printer

Country Status (1)

Country Link
JP (1) JP3059577B2 (en)

Also Published As

Publication number Publication date
JP3059577B2 (en) 2000-07-04

Similar Documents

Publication Publication Date Title
EP0457572B1 (en) Outputting method and apparatus
US5522028A (en) Output apparatus
US6016155A (en) Character processing apparatus, character processing method, and memory
JP2815832B2 (en) Page Printer Band Printing Method
JP3059577B2 (en) Print data generation method, printer controller and printer
JP2972211B2 (en) Character output control device and method
US20050134873A1 (en) Post screening handling of multibit raster operations
JP3196788B2 (en) Printer and print control method
JPH06274145A (en) Character processor
JP2872144B2 (en) Printing equipment
JP3059618B2 (en) Image control device
JP2001117727A (en) Printing processor
JP2940140B2 (en) Document data processing device
JPH07250246A (en) Image forming device
JP3143520B2 (en) Character processing apparatus and method
JP3054157B2 (en) Character processing device and character processing method
JP2598125B2 (en) Output control device
JP2710140B2 (en) Output control device
JPH08234720A (en) Data structure of font data memory
JPH01173094A (en) Image output device having character indicator
JPS63242561A (en) Font reducing system
JPH04328628A (en) Font data take-out system
JPH0930059A (en) Output device and method
JPH0958063A (en) Page printer
EP0451250A1 (en) High speed character generator

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990906

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000328

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130421

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130421

Year of fee payment: 13