JPH11138917A - Image data converter and converting method - Google Patents

Image data converter and converting method

Info

Publication number
JPH11138917A
JPH11138917A JP31404997A JP31404997A JPH11138917A JP H11138917 A JPH11138917 A JP H11138917A JP 31404997 A JP31404997 A JP 31404997A JP 31404997 A JP31404997 A JP 31404997A JP H11138917 A JPH11138917 A JP H11138917A
Authority
JP
Japan
Prior art keywords
data
bits
conversion
register
image data
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
JP31404997A
Other languages
Japanese (ja)
Other versions
JP3703273B2 (en
Inventor
Masafumi Wataya
雅文 綿谷
Sohei Tanaka
壮平 田中
Noriyuki Suzuki
範之 鈴木
Hiroshi Uemura
寛 植村
Nobuyuki Tsukada
伸幸 塚田
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 JP31404997A priority Critical patent/JP3703273B2/en
Publication of JPH11138917A publication Critical patent/JPH11138917A/en
Application granted granted Critical
Publication of JP3703273B2 publication Critical patent/JP3703273B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image data converter and a converting method in which the time required for HV conversion can be shortened without increasing the memory area and the printing time can also be shortened. SOLUTION: A raster data stored in a memory means 601 is stored from first line to n-th line in a register 201 and then read out sequentially in one direction as a data where a plurality of bits constitute a unit. It is stored in a register 301 while being rearranged in the direction orthogonal to the raster direction and then read out sequentially in the direction orthogonal to the raster direction.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、シリアルスキャン
印字方式の記録ヘッドを持つ記録装置の印字データの変
換、特にラスタイメージデータを記録ヘッドに合わせて
横−縦(HV)変換する画像データ変換装置および画像
データ変換方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data conversion apparatus for converting print data of a printing apparatus having a print head of a serial scan printing system, in particular, a horizontal-to-vertical (HV) conversion of raster image data according to the printing head. And an image data conversion method.

【0002】[0002]

【従来の技術】従来、プリンター等の記録ヘッドとして
複数の記録素子を具えたドットインパクト方式、サーマ
ル方式、インクジェット方式を用いた記録装置におい
て、記録用紙の搬送方向と直交する方向に記録ヘッドを
移動させながら印字を行い、1行印字を終えた段階で記
録ヘッドで記録される幅に相当する量だけ記録用紙を搬
送し、その繰り返しで記録する方式(シリアルスキャン
方式)が広く採用されている。このいわゆるシリアルス
キャン方式では、複数の記録素子を配列した記録ヘッド
を用いられるのが一般的であり、記録する画像データ
は、記録ヘッドの幅に相当するデータが順次記録ヘッド
に転送され、1画素に相当する距離を移動する度に記録
素子が駆動されて画像が形成される。
2. Description of the Related Art Conventionally, in a recording apparatus using a dot impact system, a thermal system, or an ink jet system having a plurality of recording elements as a recording head of a printer or the like, the recording head is moved in a direction orthogonal to a recording paper conveyance direction. A method in which printing is carried out while one line printing is completed, a recording paper is conveyed by an amount corresponding to a width to be recorded by a recording head, and recording is repeated (serial scan method) has been widely adopted. In this so-called serial scan method, a print head having a plurality of print elements arranged is generally used. For image data to be printed, data corresponding to the width of the print head is sequentially transferred to the print head, and one pixel is printed. The recording element is driven each time a distance corresponding to is moved, and an image is formed.

【0003】しかし、ホストコンピュータから送られて
くる画像データが、記録紙の幅方向、つまりラスタ方向
に連続したデータである場合、データの連続する方向が
記録ヘッドの記録素子の配列方向とは異なるため、横方
向(H)のデータを縦方向(V)のデータに変換する
(以後、HV変換という)処理が必要である。
However, when the image data sent from the host computer is continuous data in the width direction of the recording paper, that is, in the raster direction, the continuous direction of the data is different from the arrangement direction of the recording elements of the recording head. Therefore, a process of converting data in the horizontal direction (H) into data in the vertical direction (V) (hereinafter referred to as HV conversion) is required.

【0004】図10は、記録紙に対する画像データと記
録ヘッドとの位置関係を説明するものである。画像デー
タはラスタ方向X(記録用紙の搬送方向Yに直交する方
向)に連続しているが、印字ヘッド505はラスタ方向
とは異なる方向の画像データを複数同時に印字する。
FIG. 10 illustrates a positional relationship between image data and a recording head with respect to a recording sheet. Although the image data is continuous in the raster direction X (a direction orthogonal to the recording paper transport direction Y), the print head 505 simultaneously prints a plurality of image data in directions different from the raster direction.

【0005】50lは、第1番目のラスタデータに対応
した画像データであり、1ビット/画素の連続したデー
タである。同様に、502,503,504は、各々第
2番目のラスタデータに対応した画像データ、第3番目
のラスタデータに対応した画像データ、第4番目のラス
タデータに対応した画像データである。
[0005] Reference numeral 501 denotes image data corresponding to the first raster data, which is continuous data of 1 bit / pixel. Similarly, 502, 503, and 504 are image data corresponding to the second raster data, image data corresponding to the third raster data, and image data corresponding to the fourth raster data, respectively.

【0006】また、ラスタデータに対応した画像データ
の変換処理手段としては、ソフトウェアによる方法とハ
ードウェアによる方法とがあり、いずれも、画像データ
のlビット毎に水平(H)方向から垂直(V)方向に変
換する手段が用いられている。
[0006] The image data conversion processing means corresponding to the raster data includes a software method and a hardware method. In each case, the image data is converted from the horizontal (H) direction to the vertical (V) direction for every 1 bit of the image data. ) Direction.

【0007】しかし、このような従来の方法では、変換
時間に多くの時間を要するものである。その対処方法と
して特開昭63−200674号公報には、HV変換す
るデータを蓄えるために特別なメモリである印字バッフ
ァメモリを記録ヘッドの1バンドスキャン分持ち、逐次
変換で高速に行うようにしたものが提案されている。し
かし、この方式では、回路規模が大きくなってしまうと
いう問題点があった。このような問題点に対して、HV
変換のデータ設定をMPUが行い、変換自体はハードウ
ェアが行う以下の方法が提案されており、以下、この方
法について説明する。
However, such a conventional method requires a lot of conversion time. To cope with this problem, Japanese Patent Application Laid-Open No. 63-200674 discloses that a print buffer memory, which is a special memory for storing data to be subjected to HV conversion, is provided for one band scan of a recording head, and high-speed sequential conversion is performed. Things have been suggested. However, this method has a problem that the circuit scale becomes large. To solve such problems, HV
The following method has been proposed in which the MPU sets the data for conversion and the conversion itself is performed by hardware. This method will be described below.

【0008】図11は、ラスタ単位でホストコンピュー
タから送出される画像データをプリンタ内に一時蓄積す
る印字バッファメモリの構成例を示すものである。
FIG. 11 shows an example of the configuration of a print buffer memory for temporarily storing image data sent from a host computer in raster units in a printer.

【0009】601は、印字バッファメモリである。D
10000,D10002,…,D10200,…は、
印字バッファメモリ60lのアドレスを示す。
Reference numeral 601 denotes a print buffer memory. D
10,000, D10002, ..., D10200, ...
This shows the address of the print buffer memory 60l.

【0010】各アドレスに対して2バイ卜(16ビッ
ト)のデータが蓄積される様子を示したものであり、図
10で示した第1番目のラスタデータに対応した画像デ
ータ501のうち、アドレスD10000のMSBから
LSBまで合計16ビット(1ビット/画素)が順次格
納され、その次の画像データはアドレスD10002に
格納され、以降はアドレスD10168まで順次格納さ
れる。
FIG. 2 shows how two bytes (16 bits) of data are stored for each address. In the image data 501 corresponding to the first raster data shown in FIG. A total of 16 bits (1 bit / pixel) from the MSB to the LSB of D10000 are sequentially stored, the next image data is stored at address D10002, and thereafter, sequentially stored up to address D10168.

【0011】さらに、第2番目のラスタデータに対応し
た画像データ502は、アドレスD10200からアド
レスD10368まで、第3番目のラスタデータに対応
した画像データ503は、アドレスD10400からア
ドレスD10568までに各々順次格納されるものであ
る。
Further, image data 502 corresponding to the second raster data is sequentially stored from address D10200 to address D10368, and image data 503 corresponding to the third raster data is sequentially stored from address D10400 to address D10568. Is what is done.

【0012】ここで、従来におけるHV変換処理の1例
を、図12〜図15に基づいて説明する。
Here, an example of a conventional HV conversion process will be described with reference to FIGS.

【0013】101は、データの制御等を行うマイクロ
プロセッサ(MPU)である。102は、図11の印字
バッファ601を含むメモリであるDRAMである。1
03は、HV変換処理を行うHV変換レジスタである。
このHV変換レジスタ103は、図13のHV変換ライ
トレジスタ201と、HV変換リードレジスタ801と
を含んでいる。また、104はDRAMアドレスデコー
ド回路、105はDRAM制御信号発生回路、106は
アドレスデコード回路である。107はHV変換レジス
タリードアドレスデコード回路、108は出力信号線で
ある。109はHV変換レジスタライトアドレスデコー
ド回路、110は出力信号線である。
Reference numeral 101 denotes a microprocessor (MPU) for controlling data and the like. A DRAM 102 is a memory including the print buffer 601 in FIG. 1
An HV conversion register 03 performs HV conversion processing.
The HV conversion register 103 includes the HV conversion write register 201 and the HV conversion read register 801 in FIG. Reference numeral 104 denotes a DRAM address decode circuit, reference numeral 105 denotes a DRAM control signal generation circuit, and reference numeral 106 denotes an address decode circuit. 107 is an HV conversion register read address decode circuit, and 108 is an output signal line. 109 is an HV conversion register write address decode circuit, and 110 is an output signal line.

【0014】図13は、図12のHV変換レジスタ10
3の内部構成例を示す。
FIG. 13 shows the HV conversion register 10 of FIG.
3 shows an example of the internal configuration.

【0015】HV変換ライトレジスタ201は、16×
16ビットから構成されている。このHV変換ライトレ
ジスタ201内には、各々1×16ビットからなるレジ
スタ(202,203,204,205,206)が1
6個含まれている。
The HV conversion write register 201 has a 16 ×
It consists of 16 bits. In the HV conversion write register 201, 1 × 16-bit registers (202, 203, 204, 205, 206) each having 1 bit are stored.
Six are included.

【0016】また、HV変換リードレジスタ80lは、
入力数16で、出力数1のセレクタ802,803,8
04,805,806から構成されている。各セレクタ
802〜806の入力には、各レジスタ202〜206
の出力が接続されている。
The HV conversion read register 80l is
Selectors 802, 803, 8 with 16 inputs and 1 output
04, 805, and 806. The inputs of the selectors 802 to 806 include the registers 202 to 206, respectively.
Output is connected.

【0017】図14は、印字バッファリードアドレス
と、HV変換レジスタライトアドレスとの対応関係を示
す。HV変換ライトレジスタ201のFF0000,F
F0002,FF0004,FF0006,FF000
8,FF000A,FF000C,FF000E,FF
0010,FF0012,FF0014,FF001
6,FF0018,FF001A,FF001C,FF
001Eといったアドレスが割り当てられている。
FIG. 14 shows the correspondence between the print buffer read address and the HV conversion register write address. FF0000, F of HV conversion write register 201
F0002, FF0004, FF0006, FF000
8, FF000A, FF000C, FF000E, FF
0010, FF0012, FF0014, FF001
6, FF0018, FF001A, FF001C, FF
001E.

【0018】また、70l,702,703,704,
705,706は、レジスタ202〜206と同様に、
HV変換レジスタ201を格納する1ビットからなレジ
スタである。
Also, 70l, 702, 703, 704,
705 and 706 are similar to the registers 202 to 206,
This is a 1-bit register that stores the HV conversion register 201.

【0019】図15は、印字バッファリードアドレス
と、HV変換レジスタリードアドレスとの対応関係を示
す。214,215は、HV変換用のデータ読出し用の
レジスタであり、各レジスタには、FF0020,FF
0022,FF0024,FF0026,FF002
8,FF020A,FF002C,FF002E,FF
0030,FF0032,FF0034,FF003
6,FF0038,FF003A,FF003C,FF
003Eといったアドレスが割り当てられている。
FIG. 15 shows the correspondence between the print buffer read address and the HV conversion register read address. Reference numerals 214 and 215 denote registers for reading data for HV conversion.
0022, FF0024, FF0026, FF002
8, FF020A, FF002C, FF002E, FF
0030, FF0032, FF0034, FF003
6, FF0038, FF003A, FF003C, FF
003E is assigned.

【0020】ここで、HV変換の原理について説明す
る。
Here, the principle of the HV conversion will be described.

【0021】まず、図11に示す印字バッファメモリ6
01のアドレスD10000から読み出した2バイトの
データを、図14に示すHV変換ライトレジスタ201
のアドレスFF0000に書き込み、以降順次、アドレ
スD10200のデータをFF0002へ、アドレスD
10400のデータをFF0004へ、アドレスD10
600のデータをFF0006へというように、アドレ
スD11E00までのデータをFF001Eへ順次書き
き移す。
First, the print buffer memory 6 shown in FIG.
The HV conversion write register 201 shown in FIG.
At address FF0000, and then sequentially transfers the data at address D10200 to FF0002
10400 data to FF0004, address D10
The data up to the address D11E00 is sequentially written to the FF001E, such as the data at 600 to the FF0006.

【0022】次に、図15に示すHV変換リードレジス
タ801におけるリードアドレスFF0020のデータ
を読出し、図11に示す印字バッファメモリ601のア
ドレスD10000へ書き戻す。この場合、図15のリ
ードアドレスFF0020のデータ中、MSBからLS
Bにかけて、図14のFF0000のMSBビットデー
タ70l、FF0002のMSBビットデータ702、
FF0004のMSBビットデータ703、FF001
EのMSBビットデータ704が割り当てられている。
Next, the data at the read address FF0020 in the HV conversion read register 801 shown in FIG. 15 is read and written back to the address D10000 in the print buffer memory 601 shown in FIG. In this case, in the data of the read address FF0020 in FIG.
14B, MSB bit data 701 of FF0000 in FIG. 14, MSB bit data 702 of FF0002,
MSB bit data 703 of FF0004, FF001
E MSB bit data 704 is assigned.

【0023】以後同様にして、リードアドレスFF00
22からFF003Eまでのデータを、印字バッファメ
モリ601のD10200からD11E00へ書き戻す
ことにより、HV変換を行う。なお、D100XXのよ
うに、XXと記述したところは00〜FFが記述される
ものであり、D10000〜D10168といったよう
に順次アドレスが変化することを示すものである。
Thereafter, similarly, the read address FF00
HV conversion is performed by writing back the data from 22 to FF003E to D10200 to D11E00 in the print buffer memory 601. Note that XX, such as D100XX, describes 00 to FF, and indicates that addresses change sequentially, such as D10000 to D10168.

【0024】[0024]

【発明が解決しようとする課題】近年、プリンタ技術の
向上により、印字密度は従来の300DPI(ドット・
パー・インチ)又は360DPIから、600DPI/
1200DPI/720DPI/1440DPIへと高
密度化しており、これに伴ってホストコンピュータから
プリンタへの転送データは従来に対して4倍/16倍へ
と増大している。
In recent years, with the improvement of the printer technology, the printing density has been reduced to the conventional 300 DPI (dot / dot).
Per inch) or 360 DPI to 600 DPI /
The density has been increased to 1200 DPI / 720 DPI / 1440 DPI, and the transfer data from the host computer to the printer has been increased to 4/16 times that of the prior art.

【0025】このため、ホストコンピュータからプリン
タへの転送データ量を削減するために、複数画素を1ブ
ロックとし、ブロック単位にコード化し、転送データ量
を削減する手法が考案されている。
For this reason, in order to reduce the amount of data transferred from the host computer to the printer, a method has been devised in which a plurality of pixels are treated as one block, and the data is coded in block units to reduce the amount of data transferred.

【0026】図16は、モノクロ画像データに対して、
4×4画素ブロックを4ビットコードで代表した場合を
表している。1201は4ビットコードであり、120
2は各コードに対する印字パターンを示している。
FIG. 16 shows the relationship between monochrome image data and
This shows a case where a 4 × 4 pixel block is represented by a 4-bit code. 1201 is a 4-bit code;
Reference numeral 2 denotes a print pattern for each code.

【0027】図17は、カラー画像に適用した場合の例
であり、Bk(黒),C(シアン),M(マゼンタ),
Y(イエロー)の4色により画像形成がなされる。13
01は4ビットコードであり、1302は2×2画素ブ
ロック毎の各色の印字パターンを示している。
FIG. 17 shows an example in which the present invention is applied to a color image. Bk (black), C (cyan), M (magenta),
An image is formed by four colors of Y (yellow). 13
01 is a 4-bit code, and 1302 indicates a print pattern of each color for each 2 × 2 pixel block.

【0028】しかしながら、前述したHV変換処理の例
は、1ビット/1画素からなる画像データに対してHV
変換を行うものである。上述したような、多ビット/ブ
ロックにより構成された画像データに対しては対応でき
ず、一旦コードを画像パターンに従ってlビット/画
素、又は1ビット/色に変換した後、従来例のHV変換
処理を行う必要があり、処理時間が長くなり、プリンタ
の印字速度低下の要因となっていた。
However, the above-described example of the HV conversion process uses the HV conversion for the image data composed of 1 bit / 1 pixel.
The conversion is performed. As described above, it is not possible to cope with the image data composed of multiple bits / blocks, and once the code is converted into 1 bit / pixel or 1 bit / color according to the image pattern, and then the conventional HV conversion processing is performed. And the processing time becomes longer, causing a reduction in the printing speed of the printer.

【0029】さらに、コード化されたブロックデータを
蓄積するためのメモリ領域と、ブロックデータを印字デ
ータに展開したデータを蓄積するためのメモリ領域を確
保せねばならず、多大なメモリを必要としていた。
Further, a memory area for storing coded block data and a memory area for storing data obtained by expanding block data into print data have to be secured, and a large amount of memory is required. .

【0030】そこで、本発明の目的は、メモリ領域を増
やすことなく、HV変換の処理時間の短縮化を図ること
が可能な画像データ変換装置および画像データ変換方法
に関する。
Therefore, an object of the present invention relates to an image data conversion apparatus and an image data conversion method capable of shortening the processing time of HV conversion without increasing the memory area.

【0031】また、本発明の他の目的は、印字処理時間
が短縮化された画像データ変換装置および画像データ変
換方法に関する。
Another object of the present invention relates to an image data conversion apparatus and an image data conversion method in which the printing processing time is shortened.

【0032】[0032]

【課題を解決するための手段】本発明は、所定方向に配
列されたデータを、前記所定方向に直交する方向の配列
に変換する画像データ変換装置であって、前記所定方向
に配列されたデータを1ライン目からnライン目まで階
層的に順次ビット単位で記憶する記憶手段と、前記記憶
手段に記憶されたデータのうち、一部の1ライン目から
nライン目までのデータを記憶するレジスタと、前記レ
ジスタに記憶されたデータを複数ビットを1単位として
構成されたデータとして1方向に順次取り出し、当該複
数ビットを1単位として順次取り出されたデータを前記
所定方向と直交する方向の配列に並べ替えるデータ配列
変更手段と、前記複数ビットを1単位として並べ替えら
れたデータを、前記所定方向に直交する方向から順次読
み出す読出制御手段とを具えることによって、画像デー
タ変換装置を構成する。
According to the present invention, there is provided an image data conversion apparatus for converting data arranged in a predetermined direction into an array in a direction orthogonal to the predetermined direction, the data being arranged in the predetermined direction. And a register for storing some of the data from the first line to the n-th line among the data stored in the storage unit. And sequentially taking out the data stored in the register in one direction as data composed of a plurality of bits as one unit, and arranging the data sequentially taken out with the plurality of bits as one unit in an array in a direction orthogonal to the predetermined direction. Data arrangement changing means for rearranging, and a read control means for sequentially reading data rearranged in units of the plurality of bits from a direction orthogonal to the predetermined direction. By comprising the bets, constituting the image data conversion device.

【0033】また、本発明は、複数の記録素子が直線状
に配列された記録ヘッドを用い、所定方向に配列された
データから前記所定方向と直交する方向の配列に変換
し、該変換された変換データを前記記録ヘッドの複数の
記録素子に入力することにより、記録用紙の搬送方向と
直交する方向に前記記録ヘッドを移動させながら印字を
行う印字装置であって、前記画像データ変換装置を具
え、該画像データ変換装置により変換された変換データ
を前記記録ヘッドの複数の記録素子に入力することによ
り、記録用紙に前記記録ヘッドの幅分単位で印字を行う
ことによって、印字装置を構成することができる。
Further, the present invention uses a recording head in which a plurality of recording elements are linearly arranged, converts data arranged in a predetermined direction into an array in a direction orthogonal to the predetermined direction, and converts the data. A printing apparatus for performing printing by inputting conversion data to a plurality of printing elements of the printing head and moving the printing head in a direction orthogonal to a conveying direction of printing paper, comprising the image data conversion apparatus. A printing device configured to input the converted data converted by the image data conversion device to a plurality of recording elements of the recording head, thereby performing printing on recording paper in units of the width of the recording head. Can be.

【0034】また、本発明は、所定方向に配列されたデ
ータを、前記所定方向と直交する方向の配列に変換する
画像データ変換方法であって、前記所定方向に配列され
たデータを1ライン目からnライン目まで階層的に順次
ビット単位で記憶手段に記憶する第1の工程と、前記記
憶手段に記憶されたデータのうち、一部の1ライン目か
らnライン目までのデータをレジスタに記憶する第2の
工程と、前記レジスタに記憶されたデータを複数ビット
を1単位として構成されたデータとして1方向に順次取
り出し、当該複数ビットを1単位として順次取り出され
たデータを前記所定方向と直交する方向の配列に並べ替
える第3の工程と、前記複数ビットを1単位として並べ
替えられたデータを、前記所定方向に直交する方向から
順次読み出す第4の工程とを具えることによって、画像
データ変換方法を提供する。
The present invention is also an image data conversion method for converting data arranged in a predetermined direction into an array in a direction orthogonal to the predetermined direction, wherein the data arranged in the predetermined direction is stored in a first line. A first step of storing the data in the storage means hierarchically and sequentially in bit units from the first to the nth line, and of the data stored in the storage means, some of the data from the first line to the nth line are stored in the register. A second step of storing, and sequentially taking out the data stored in the register in one direction as data composed of a plurality of bits as one unit, and taking out the data sequentially taken out of the plurality of bits as a unit as the predetermined direction. A third step of rearranging the data in an array in the orthogonal direction, and a fourth step of sequentially reading the data rearranged in units of the plurality of bits from a direction orthogonal to the predetermined direction. By comprising the step, providing an image data conversion method.

【0035】また、本発明は、コンピュータによって、
画像データの配列変更の制御をするための制御プログラ
ムを記録した記録媒体であって、該制御プログラムはコ
ンピュータに、所定方向に配列されたデータを1ライン
目からnライン目まで階層的に順次ビット単位で記憶手
段に記憶させ、前記記憶手段に記憶されたデータのう
ち、一部の1ライン目からnライン目までのデータをレ
ジスタに記憶させ、前記レジスタに記憶させたタデータ
を複数ビットを1単位として構成されたデータとして1
方向に順次取り出させ、当該複数ビットを1単位として
順次取り出されたデータを前記所定方向と直交する方向
の配列に並べ替えさせ、前記複数ビットを1単位として
並べ替えさせたデータを、前記所定方向と直交する方向
から順次読み出させることによって、画像データ配列変
更制御プログラムを記録した記録媒体を提供する。
Further, the present invention provides a computer
A recording medium on which a control program for controlling a change in the arrangement of image data is recorded. The control program stores, in a computer, data arranged in a predetermined direction in a bit sequence in a hierarchical manner from a first line to an n-th line. The data stored in the storage unit is stored in units, and among the data stored in the storage unit, some of the data from the first line to the n-th line are stored in the register. 1 as data configured as a unit
In a direction orthogonal to the predetermined direction, and rearranging the data sequentially taken out using the plurality of bits as one unit, and rearranging the data rearranged using the plurality of bits as a unit in the predetermined direction. The present invention provides a recording medium on which an image data arrangement change control program is recorded by sequentially reading from a direction orthogonal to the image data.

【0036】ここで、前記複数ビットを1単位として構
成されたデータのビット数は、前記レジスタのデータ長
の整数分の1とすることができる。
Here, the number of bits of the data configured with the plurality of bits as one unit can be set to an integer fraction of the data length of the register.

【0037】前記複数ビットを1単位として構成された
データを、互いにビット数が異なる構成として複数種類
具えることができる。
A plurality of types of data having a plurality of bits as one unit can be provided as configurations having different numbers of bits.

【0038】前記ビット数が異なる複数種類のデータを
選択するデータ選択手段を具えることができる。また、
前記データ選択手段は、アドレス指定によりデータを選
択することができる。
[0038] Data selection means for selecting a plurality of types of data having different numbers of bits can be provided. Also,
The data selection means can select data by addressing.

【0039】[0039]

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

【0040】まず、本発明の第1の実施の形態を、図1
〜図5に基づいて説明する。なお、従来例と同様な部分
については、同一符号を付す。
First, the first embodiment of the present invention will be described with reference to FIG.
This will be described with reference to FIG. The same parts as in the conventional example are denoted by the same reference numerals.

【0041】図1は、本発明に係るHV変換回路を具え
たプリンタの制御回路10の構成例を示す。101は、
データの制御等を行うマイクロプロセッサ(MPU)で
ある。このMPU101は、不図示の制御プログラムに
基づいて本発明に係る図3〜図4、図6〜図7のHV変
換処理(詳細な説明については後述する)を実行する。
この制御プログラムは、RAM,ROM等の記憶手段に
記憶されているものであるが、別体として、フロッピー
ディスク等に記憶させる構成であってもよい。
FIG. 1 shows a configuration example of a control circuit 10 of a printer including an HV conversion circuit according to the present invention. 101 is
It is a microprocessor (MPU) that controls data and the like. The MPU 101 executes the HV conversion process (detailed description will be described later) of FIGS. 3 and 4 and FIGS. 6 and 7 according to the present invention based on a control program (not shown).
This control program is stored in a storage means such as a RAM or a ROM, but may be stored separately on a floppy disk or the like.

【0042】また、図11に示した印字バッファメモリ
60lを有するメモリとしてのDRAM102と、HV
変換ライトレジスタ201およびHV変換リードレジス
タ301を有するHV変換レジスタ103と、それらの
制御回路104,105,106,107,109と
は、アドレスバス<23〜0>、データバスD<15〜
0>、制御信号線CLK,AS*,RD/WR*等で接
続されている。
A DRAM 102 as a memory having the print buffer memory 60l shown in FIG.
The HV conversion register 103 having the conversion write register 201 and the HV conversion read register 301 and their control circuits 104, 105, 106, 107 and 109 are composed of an address bus <23-0> and a data bus D <15-
0>, control signal lines CLK, AS *, RD / WR *, etc.

【0043】DRAM102は、4Mビット(256K
×16ワード)を用いて、MPU101のアドレスD0
0000〜D7FFFFまでに割り付ける。そのための
アドレスデコード回路が104であり、MPU101が
DRAM102をアクセスした場合、アドレスデコード
回路104からDRAM102のチップセレクト信号で
あるDRAMCS*が発生する。
The DRAM 102 has 4M bits (256K bits).
× 16 words), the address D0 of the MPU 101 is used.
Assign to 0000 to D7FFFF. When the MPU 101 accesses the DRAM 102, the address decode circuit 104 generates a DRAM CS * which is a chip select signal of the DRAM 102.

【0044】このDRAMCS*信号と、MPU101
のシステムクロックCLKと、アドレスバス上に有効ア
ドレスがあることを示すアドレスストローブ信号AS*
と、データーバスの転送信号を示すリード/ライト信号
RD/WR*と、奇数/偶数アドレス判別のために最下
位アドレスビットA<0>とが、DRAM制御信号発生
回路105に入力される。これにより、DRAM制御信
号発生回路105は、DRAM102の制御信号である
ロウアドレスストローブ信号RAS*と、カラムアドレ
スストローブ信号CAR*と、アウトプットイネーブル
信号OE*と、アッパーライト信号UWE*と、ロウア
ーライ卜信号LWE*とを発生する。また、アドレスデ
コード回路106は、アドレスバスA<18〜l>の1
8本の信号線を、10本/8本のロウアドレス/カラム
アドレスに切り替える。
The DRAMCS * signal and the MPU 101
And an address strobe signal AS * indicating that there is a valid address on the address bus.
And a read / write signal RD / WR * indicating a transfer signal of the data bus, and the lowest address bit A <0> for odd / even address discrimination are input to the DRAM control signal generation circuit 105. As a result, the DRAM control signal generation circuit 105 controls the row address strobe signal RAS *, the column address strobe signal CAR *, the output enable signal OE *, the upper write signal UWE *, and the lower And a signal LWE *. In addition, the address decode circuit 106 is connected to one of the address buses A <18 to l>.
Eight signal lines are switched to 10/8 row addresses / column addresses.

【0045】HV変換レジスタ103は、HV変換ライ
トレジスタ201にHV変換データを書き込んだ後、H
V変換リードレジスタ301からHV変換済みのデータ
を読み出す。
After writing the HV conversion data into the HV conversion write register 201, the HV conversion register 103
The HV converted data is read from the V conversion read register 301.

【0046】107は、HV変換リードレジスタ301
のアドレスデコード手段としてのHV変換レジスタリー
ドアドレスデコード回路である。108は、デコード結
果であり、16種類のリードレジスタを指し示す4ビッ
トからなる出力信号線である。109は、HV変換ライ
トレジスタ201のアドレスデコード手段としてのHV
変換レジスタライトアドレスデコード回路である。11
0は、16種類のライトアドレス各々を指し示す16本
の出力信号線である。111はHV変換レジスタ103
へのライトデータ線、112はHV変換レジスタ103
からのリードデータ線である。
107 is an HV conversion read register 301
Is an HV conversion register read address decode circuit as an address decode means. Reference numeral 108 denotes a decode result, which is an output signal line consisting of 4 bits indicating 16 types of read registers. Reference numeral 109 denotes an HV as an address decoding unit of the HV conversion write register 201.
This is a conversion register write address decode circuit. 11
0 is 16 output signal lines indicating each of the 16 types of write addresses. 111 is an HV conversion register 103
Write data line to the HV conversion register 103
Is the read data line.

【0047】次に、HV変換部の構成を、図2〜図4に
基づいて説明する。
Next, the configuration of the HV converter will be described with reference to FIGS.

【0048】図2は、HV変換レジスタ103の内部構
成を示す。HV変換リードレジスタ301を構成するセ
レクタ302,303,304,305は、入力数4ビ
ット×16、出力数4ビットである。各セレクタ302
〜305の入力には、HV変換ライトレジスタ201を
構成するセレクタ202〜205等の出力が接続されて
いる。
FIG. 2 shows the internal configuration of the HV conversion register 103. The selectors 302, 303, 304, and 305 that constitute the HV conversion read register 301 have 4 bits of input × 16 and 4 bits of output. Each selector 302
305 are connected to outputs of selectors 202 to 205 and the like constituting the HV conversion write register 201.

【0049】図3および図4は、4ビット/ブロックで
構成された画像データに対する、HV変換レジスタ10
3の構成例を示す。
FIGS. 3 and 4 show an HV conversion register 10 for image data composed of 4 bits / block.
3 shows a configuration example.

【0050】図3において、HV変換ライトレジスタ2
01は、16×16ビットから構成されている。横方向
のレジスタ202,203,204,205等は、各々
4ビット×4ブロックの計16ビットからなるHV変換
用のデータ書き込みレジスタ群である。これらレジスタ
群には、FF0000,FF0002,FF0004,
FF0006,FF0008,FF000A,FF00
0C,FF000E,FF0010,FF0012,F
F0014,FF0016,FF0018,FF001
A,FF001C,FF001Eの各アドレスが割り当
てられている。
In FIG. 3, the HV conversion write register 2
01 is composed of 16 × 16 bits. The registers 202, 203, 204, 205 and the like in the horizontal direction are a group of data write registers for HV conversion, each consisting of a total of 16 bits of 4 bits × 4 blocks. These registers include FF0000, FF0002, FF0004,
FF0006, FF0008, FF000A, FF00
0C, FF000E, FF0010, FF0012, F
F0014, FF0016, FF0018, FF001
Addresses A, FF001C, and FF001E are assigned.

【0051】HV変換ライトレジスタ201を構成する
レジスタ206,207,208,209は、4ビット
(1ブロック)を1画素の単位として構成されている。
同様に、レジスタ210,211,212,213は、
4ビット(1ブロック)を1画素の単位として構成され
ている。
The registers 206, 207, 208, and 209 constituting the HV conversion write register 201 are configured using four bits (one block) as a unit of one pixel.
Similarly, the registers 210, 211, 212, and 213
Four bits (one block) are configured as a unit of one pixel.

【0052】図4において、HV変換リードレジスタ3
01を構成する縦方向のレジスタ314,315等は、
HV変換用のデータ読み出しレジスタ群である。これら
レジスタ群には、FF0020,FF0022,FF0
024,FF0026,FF0028,FF020A,
FF002C,FF002E,FF0030,FF00
32,FF0034,FF0036,FF0038,F
F003A,FF003C,FF003Eの各アドレス
が割り当てられている。
In FIG. 4, the HV conversion read register 3
01, the vertical registers 314, 315, etc.
This is a data read register group for HV conversion. These registers include FF0020, FF0022, FF0
024, FF0026, FF0028, FF020A,
FF002C, FF002E, FF0030, FF00
32, FF0034, FF0036, FF0038, F
Each address of F003A, FF003C, and FF003E is assigned.

【0053】図5は、DRAM102に対するリード/
ライトサイクルのタイミング、HV変換レジスタ103
に対するリード/ライトサイクルのタイミングを示して
おり、MPU101はシステムクロック16.78MH
zを用いている。
FIG. 5 shows a read / write operation for the DRAM 102.
Write cycle timing, HV conversion register 103
The MPU 101 shows a system clock of 16.78 MHz.
z is used.

【0054】次に、HV変換処理の原理を、図3および
図4に基づいて説明する。
Next, the principle of the HV conversion process will be described with reference to FIGS.

【0055】まず、MPU101の指示によりHV変換
レジスタライトアドレスデコード回路109から、HV
変換ライトレジスタ201の所定のアドレスが出力され
る。これにより、印字バッファメモリ601のアドレス
D10000から読み出した2バイト(4ブロックに相
当する4画素分)のデータは、HV変換ライトレジスタ
201のアドレスFF0000のレジスタに書き込ま
れ、以下順次、アドレスD10200のデータをFF0
002へ、アドレスD10400のデータをFF000
4へ、アドレスD10600のデータをFF0006へ
というように、アドレスD11E00までのデータをF
F001Eまでに順次横方向に書き移される。
First, the HV conversion register write address decode circuit 109 sends an HV
A predetermined address of the conversion write register 201 is output. As a result, the data of 2 bytes (4 pixels corresponding to 4 blocks) read from the address D10000 of the print buffer memory 601 is written to the register of the address FF0000 of the HV conversion write register 201, and thereafter the data of the address D10200 is sequentially written. To FF0
002 to FF000
4, the data up to the address D11E00 is stored in the F
The data is sequentially transferred in the horizontal direction by F001E.

【0056】そして、図2に示すHV変換ライトレジス
タ201の出力とHV変換リードレジスタ301の入力
との接続関係から、図3に示すHV変換ライトレジスタ
201の横方向のレジスタに格納されたデータが4ビッ
ト(1ブロック分)の1画素単位で選択され、図4に示
すHV変換リードレジスタ301の縦方向のレジスタに
順次格納される。
From the connection relationship between the output of the HV conversion write register 201 and the input of the HV conversion read register 301 shown in FIG. 2, the data stored in the horizontal register of the HV conversion write register 201 shown in FIG. 4 bits (for one block) are selected in pixel units, and are sequentially stored in the vertical register of the HV conversion read register 301 shown in FIG.

【0057】さらに、MPU101の指示によりHV変
換レジスタリードアドレスデコード回路107から、H
V変換リードレジスタ301の所定のアドレスが出力さ
れる。これにより、HV変換リードレジスタ301のリ
ードアドレスFF0020に示される縦方向のデータ
が、4ビット(1ブロック)の1画素単位で読み出さ
れ、印字バッファメモリ601のアドレスD10000
へ書き戻される。
Further, in accordance with an instruction from the MPU 101, the HV conversion register read address decode circuit 107
A predetermined address of the V conversion read register 301 is output. As a result, the vertical data indicated by the read address FF0020 of the HV conversion read register 301 is read in units of one pixel of 4 bits (one block), and the address D10000 of the print buffer memory 601 is read.
Written back to

【0058】このとき、リードアドレスFF0020の
データ中、MSBからLSBにかけて、FF0000の
上位4ビットデータ206、FF0002の上位4ビッ
トデータ207、FF0004の上位4ビットデータ2
08、FF0006の上位ビットデータ209が割り当
てられており、以下同様にして、FF003Eまでのデ
ータを、印字バッファメモリ601のD11E00まで
順次書き戻すことによってHV変換を行う。
At this time, in the data of the read address FF0020, from the MSB to the LSB, the upper 4-bit data 206 of the FF0000, the upper 4-bit data 207 of the FF0002, and the upper 4-bit data 2 of the FF0004
08 and the upper bit data 209 of FF0006 are assigned, and the HV conversion is performed by sequentially writing back the data up to FF003E to D11E00 of the print buffer memory 601 in the same manner.

【0059】なお、D100XXにおけるXXと記述し
た箇所は、00〜FFが記述されるものであり、D10
000〜D10168といったように順次アドレスが変
化することを示す。
Note that the portion described as XX in D100XX describes 00 to FF, and
000 to D10168 indicate that the addresses change sequentially.

【0060】次に、本発明の第2の実施の形態を、図6
および図7に基づいて説明する。なお、第1の実施の形
態と同様な部分の説明は省略し、同一符号を付す。
Next, a second embodiment of the present invention will be described with reference to FIG.
Explanation will be made based on FIG. The description of the same parts as in the first embodiment is omitted, and the same reference numerals are given.

【0061】本例では、8ビット/画素で構成された画
像データに対する、HV変換レジスタ103の構成例に
ついて説明する。
In this example, a configuration example of the HV conversion register 103 for image data composed of 8 bits / pixel will be described.

【0062】図6において、HV変換ライトレジスタ2
01は、16×16ビットから構成されている。横方向
のレジスタ202,203,204,205等は、各々
8ビット×2ブロックの計16ビットからなるHV変換
用のデータ書き込みレジスタ群である。これらレジスタ
群には、FF0000,FF0002,FF0004,
FF0006,FF0008,FF000A,FF00
0C,FF000E,FF0010,FF0012,F
F0014,FF0016,FF0018,FF001
A,FF001C,FF001Eの各アドレスが割り当
てられている。
In FIG. 6, the HV conversion write register 2
01 is composed of 16 × 16 bits. The registers 202, 203, 204, 205 and the like in the horizontal direction are each a group of data write registers for HV conversion consisting of a total of 16 bits of 8 bits × 2 blocks. These registers include FF0000, FF0002, FF0004,
FF0006, FF0008, FF000A, FF00
0C, FF000E, FF0010, FF0012, F
F0014, FF0016, FF0018, FF001
Addresses A, FF001C, and FF001E are assigned.

【0063】HV変換ライトレジスタ201を構成する
レジスタ901,902、および、レジスタ903,9
04は、8ビット(1ブロック)を1画素の単位して構
成されている。
Registers 901 and 902 constituting HV conversion write register 201 and registers 903 and 9
Reference numeral 04 denotes a configuration in which 8 bits (1 block) are formed in units of one pixel.

【0064】図7において、縦方向のレジスタ314,
315は、HV変換用のデータ読み出しレジスタ群であ
る。これらレジスタ群には、FF0020,FF002
2,FF0024,FF0026,FF0028,FF
020A,FF002C,FF002E,FF003
0,FF0032,FF0034,FF0036,FF
0038,FF003A,FF003C,FF003E
の各アドレスが割り当てられている。
In FIG. 7, a vertical register 314,
315 is a data read register group for HV conversion. These registers include FF0020, FF002
2, FF0024, FF0026, FF0028, FF
020A, FF002C, FF002E, FF003
0, FF0032, FF0034, FF0036, FF
0038, FF003A, FF003C, FF003E
Addresses are assigned.

【0065】次に、HV変換処理の原理について説明す
る。
Next, the principle of the HV conversion process will be described.

【0066】まず、MPU101の指示によりHV変換
レジスタライトアドレスデコード回路109から、HV
変換ライトレジスタ201の所定のアドレスが出力され
る。これにより、印字バッファメモリ60lのアドレス
D10000から読み出した2バイト(2ブロックに相
当する2画素分)のデータが、HV変換ライトレジスタ
201のアドレスFF0000に書き込まれ、以下順
次、アドレスD10200のデータをFF0002へ、
アドレスD10400のデータをFF0004へ、アド
レスD10600のデータをFF0006というよう
に、アドレスD11E00までのデータをFF001E
まで順次横方向に書き移される。
First, the HV conversion register write address decode circuit 109 sends the HV
A predetermined address of the conversion write register 201 is output. As a result, two bytes (two pixels corresponding to two blocks) of data read from the address D10000 of the print buffer memory 60l are written to the address FF0000 of the HV conversion write register 201, and the data of the address D10200 is sequentially written to FF0002. What,
The data up to address D11E00 is FF001E, such that the data at address D10400 is FF0004 and the data at address D10600 is FF0006.
Are sequentially transferred in the horizontal direction.

【0067】そして、HV変換ライトレジスタ201の
出力とHV変換リードレジスタ301の入力との接続関
係(前記図2と同様な考え方で接続された関係)から、
図6に示すHV変換ライトレジスタ201の横方向のレ
ジスタに格納されたデータが8ビット(1ブロック分)
の1画素単位で選択され、図7に示すHV変換リードレ
ジスタ301の縦方向のレジスタに順次格納される。
Then, from the connection relationship between the output of the HV conversion write register 201 and the input of the HV conversion read register 301 (the connection connected in the same way as in FIG. 2),
The data stored in the horizontal register of the HV conversion write register 201 shown in FIG. 6 is 8 bits (for one block)
And is sequentially stored in a vertical register of the HV conversion read register 301 shown in FIG.

【0068】さらに、MPU101の指示によりHV変
換レジスタリードアドレスデコード回路107から、H
V変換リードレジスタ301の所定のアドレスが出力さ
れる。これにより、HV変換リードレジスタ201のア
ドレスFF0020に示される縦方向のデータが、8ビ
ット(1ブロック)の1画素単位で読み出され、印字バ
ッファメモリ60lのアドレスD10000へ書き戻さ
れる。
Further, in accordance with an instruction from the MPU 101, the HV conversion register read address decode circuit 107
A predetermined address of the V conversion read register 301 is output. As a result, the vertical data indicated by the address FF0020 of the HV conversion read register 201 is read in units of one pixel of 8 bits (one block), and is written back to the address D10000 of the print buffer memory 60l.

【0069】このとき、リードアドレスFF0020の
データ中、MSBからLSBにかけて、FF0000の
上位8ビットデータ901、FF0002の上位8ビッ
トデータ902が割り当てられており、以下同様にし
て、FF003Eまでのデータを印字バッファメモリ6
01のD11E00まで順次書き戻すことによってHV
変換を行う。
At this time, in the data of the read address FF0020, the upper 8-bit data 901 of the FF0000 and the upper 8-bit data 902 of the FF0002 are allocated from the MSB to the LSB. Buffer memory 6
HV by sequentially writing back to D11E00 of 01
Perform the conversion.

【0070】なお、D100XXのように、XXと記述
した箇所は、00〜FFが記述されるものであり、D1
0000〜D10168というように、順次アドレスが
変化することを示す。
Note that, as in D100XX, the portion described as XX describes 00 to FF, and D1
0000 to D10168, indicating that addresses change sequentially.

【0071】次に、本発明の第3の実施の形態を、図8
〜図9に基づいて説明する。なお、前述した例と同様な
部分についての説明は省略し、同一符号を付す。
Next, a third embodiment of the present invention will be described with reference to FIG.
This will be described with reference to FIG. The description of the same parts as in the above-described example is omitted, and the same reference numerals are given.

【0072】本例では、前述したような、1ビット/画
素のデータに対するHV変換処理と、4ビット/画素の
データに対するHV変換処理とを実行できるように、H
V変換レジスタ103のレジスタ群を共用して構成した
例である。
In this example, the HV conversion process for 1-bit / pixel data and the HV conversion process for 4-bit / pixel data as described above are performed.
This is an example in which a register group of the V conversion register 103 is shared.

【0073】1001は、HV変換レジスタである。1
002は、HV変換リードレジスタ301,801を選
択するためのレジスタ選択回路である。1003は、H
V変換処理を選択するための信号線である。
Reference numeral 1001 denotes an HV conversion register. 1
Reference numeral 002 denotes a register selection circuit for selecting the HV conversion read registers 301 and 801. 1003 is H
This is a signal line for selecting V conversion processing.

【0074】図9は、HV変換レジスタ1001の内部
構成を示す。1101は入力16ビット×2、出力16
ビットのセレクタである。このセレクタ1101は、レ
ジスタ群4ビット/画素(1ブロック)時のHV変換リ
ードレジスタ301と、1ビット/画素(1ブロック)
時のHV変換リードレジスタ801を信号線1003に
従って選択するものである。
FIG. 9 shows the internal configuration of the HV conversion register 1001. 1101 is input 16 bits × 2, output 16
It is a bit selector. The selector 1101 includes an HV conversion read register 301 for a register group of 4 bits / pixel (1 block) and a 1 bit / pixel (1 block).
The HV conversion read register 801 is selected according to the signal line 1003.

【0075】ここで、動作について説明する。The operation will now be described.

【0076】前述した例と同様に、HV変換レジスタラ
イトアドレスが指し示すHV変換ライトレジスタ201
にHV変換用のデータが書き込まれた後、HV変換レジ
スタリードアドレスデコード回路107によって、FF
0020〜FF003Eのアドレスが指し示された場合
は、1ビット/画素のデータ(1ブロック)に対するH
V変換データの読み出しがHV変換リードレジスタ80
1から行われる。また、FF0040〜FF005Eの
アドレスが指し示された場合は、4ビット/画素のデー
タ(1ブロック)に対するHV変換データの読み出しが
HV変換リードレジスタ301から行われる。この場
合、レジスタ選択回路1002から信号線1003に出
力される値は、FF0020〜FF003Eのアドレス
が指定された場合はゼロ、FF0040〜FF005E
のアドレスが指定された場合は1となっている。このよ
うなゼロ又は1の信号がセレクタ1101に入力される
ことにより、リードデータ線112から、1ビット/画
素、又は、4ビット/画素のデータ(1ブロック)が出
力される。
As in the above-described example, the HV conversion write register 201 indicated by the HV conversion register write address is used.
After the data for HV conversion is written into the FF, the HV conversion register read address decode circuit 107
When the addresses of 0020 to FF003E are indicated, H for 1 bit / pixel data (one block)
Reading of the V conversion data is performed by the HV conversion read register 80.
Performed from 1. When the addresses FF0040 to FF005E are indicated, the HV conversion read register 301 reads HV conversion data for 4-bit / pixel data (one block). In this case, the value output from the register selection circuit 1002 to the signal line 1003 is zero when the addresses FF0020 to FF003E are designated, and the values output from the registers FF0020 to FF003E are zero.
Is 1 when the address is designated. When such a signal of zero or one is input to the selector 1101, 1-bit / pixel or 4-bit / pixel data (one block) is output from the read data line 112.

【0077】本例においては、HV変換処理はリード
(読み出し)時にセレクタ1101を介して行うような
構成で説明したが、これとは逆に、ライト(書き込み)
時にセレクタ1101を介して書き込み、読出しは単純
に行う構成でもよい。
In the present embodiment, the HV conversion processing has been described as being performed via the selector 1101 at the time of reading (reading). Conversely, writing (writing) is performed.
Sometimes, writing and reading may be simply performed via the selector 1101.

【0078】また、HV変換レジスタを共用し、2種類
のHV変換を読み出しの際に実現したが、書き込みの際
に2種類のHV変換モードを選択するように構成しても
よい。
Although the HV conversion register is shared and two types of HV conversion are realized at the time of reading, two types of HV conversion modes may be selected at the time of writing.

【0079】さらに、2種類のHV変換モードを共用し
たが、同様の手法によりさらに多くのモードを実現する
ことも可能である。
Although the two types of HV conversion modes are shared, more modes can be realized by the same method.

【0080】以上の例では、1ビット、4ビット、8ビ
ットを例に挙げたが、これに限るものではなく、2ビッ
ト、3ビット等でも同様可能である。しかし、3ビット
等の奇数ビットにより構成する場合は一般のMPUバス
のバス輻との整合性が良くない場合も有り得る。
In the above example, 1 bit, 4 bits, and 8 bits have been described as examples. However, the present invention is not limited to this, and 2 bits, 3 bits, and the like can be similarly used. However, in the case of using an odd number of bits such as 3 bits, there is a case where the consistency with the bus radiation of the general MPU bus is not good.

【0081】本例では、モノクロデータに対するHV変
換例を説明したが、図17に示したようなカラー画像、
1ビット/色(例えば、Bk、シアン、マゼンタ、イエ
ロー、又は、赤、青、緑)、多ビット/色(例えば、B
k、シアン、マゼンタ、イエロー、又は、赤、青、緑)
等で表されるカラー画像データに対しても適用可能であ
る。
In this example, an example of HV conversion for monochrome data has been described, but a color image as shown in FIG.
1 bit / color (for example, Bk, cyan, magenta, yellow or red, blue, green), multiple bits / color (for example, B
k, cyan, magenta, yellow, or red, blue, green)
The present invention is also applicable to color image data represented by the above.

【0082】また、上述した各実施例では、ラスタデー
タをラスタ方向と直交する方向の配列に変換する構成に
ついて説明したが、本発明はデータ配列の方向に限定さ
れるものではなく、縦方向に配列されたデータを横方向
の配列に変換する場合においても適用可能である。
Further, in each of the above-described embodiments, a configuration in which raster data is converted into an array in a direction orthogonal to the raster direction has been described. However, the present invention is not limited to the data array direction, but may be arranged in the vertical direction. The present invention is also applicable to a case where the arranged data is converted into a horizontal array.

【0083】また、上述した各実施例では、制御回路の
構成を用いて説明したが、プログラム処理の場合にも同
様に行うことが可能である。
Further, in each of the embodiments described above, the description has been made using the configuration of the control circuit. However, the same can be applied to the case of the program processing.

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

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

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

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

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

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

【0090】[0090]

【発明の効果】以上説明したように、本発明によれば、
多ビット/ブロック又は多ビット/画素からなる画像デ
ータを直接HV変換することが可能になったので、印字
を行う際の処理時間を大幅に短縮することができると共
に、プリンタシステム内のメモリ容量を削減することが
可能となる。
As described above, according to the present invention,
The direct HV conversion of image data consisting of multiple bits / blocks or multiple bits / pixels has become possible, so that the processing time for printing can be greatly reduced and the memory capacity in the printer system is reduced. It becomes possible to reduce.

【0091】また、本発明によれば、HV変換レジスタ
を共用し、複数のHV変換モードを選択できるようにし
たので、小さな回路規模で、多様な印字データ形式に対
応可能なプリンタを構成することができる。
Further, according to the present invention, since the HV conversion register is shared and a plurality of HV conversion modes can be selected, it is possible to configure a printer capable of supporting various print data formats with a small circuit scale. Can be.

【0092】さらに、多ビット/画素の画像データに対
するHV変換処理が可能になったのだ、近年開発が進ん
でいる、画素毎に多階調表現が可能なプリンタに対して
も適用することができる。
Further, the HV conversion processing for multi-bit / pixel image data has become possible. The present invention can be applied to a printer which can be expressed in multiple gradations for each pixel which has been developed in recent years. it can.

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

【図1】本発明の第1の実施の形態であるHV変換用制
御回路の構成を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of an HV conversion control circuit according to a first embodiment of the present invention.

【図2】HV変換回路の構成を示す回路図である。FIG. 2 is a circuit diagram illustrating a configuration of an HV conversion circuit.

【図3】HV変換用レジスタへのデータの書き込み処理
を説明する説明図である。
FIG. 3 is an explanatory diagram illustrating a process of writing data to an HV conversion register.

【図4】HV変換用レジスタからのデータの読出し処理
を説明する説明図である。
FIG. 4 is an explanatory diagram illustrating a process of reading data from an HV conversion register.

【図5】HV変換処理の書き込み、読出しサイクルを示
すタイミングチャートである。
FIG. 5 is a timing chart showing a write / read cycle of the HV conversion process.

【図6】本発明の第2の実施の形態を示すものであり、
HV変換用レジスタへのデータの書き込み処理を説明す
る説明図である。
FIG. 6 shows a second embodiment of the present invention;
FIG. 9 is an explanatory diagram illustrating a process of writing data to an HV conversion register.

【図7】本発明の第2の実施の形態を示すものであり、
HV変換用レジスタからのデータの読出し処理を説明す
る説明図である。
FIG. 7 shows a second embodiment of the present invention;
FIG. 9 is an explanatory diagram illustrating a process of reading data from an HV conversion register.

【図8】本発明の第3の実施の形態であるHV変換用制
御回路の構成を示す回路図である。
FIG. 8 is a circuit diagram showing a configuration of an HV conversion control circuit according to a third embodiment of the present invention.

【図9】HV変換回路の内部構成を示すブロック図であ
る。
FIG. 9 is a block diagram illustrating an internal configuration of the HV conversion circuit.

【図10】記録用紙に対するプリントヘッドの関係を示
す正面図である。
FIG. 10 is a front view illustrating a relationship between a print head and recording paper.

【図11】印字バッファの構成を示す斜視図である。FIG. 11 is a perspective view illustrating a configuration of a print buffer.

【図12】従来におけるHV変換用制御回路の構成を示
す回路図である。
FIG. 12 is a circuit diagram showing a configuration of a conventional HV conversion control circuit.

【図13】HV変換回路の構成を示す回路図である。FIG. 13 is a circuit diagram showing a configuration of an HV conversion circuit.

【図14】従来のHV変換用レジスタへのデータの書き
込み処理を説明する説明図である。
FIG. 14 is an explanatory diagram illustrating a conventional process of writing data to an HV conversion register.

【図15】従来のHV変換用レジスタからのデータの読
出し処理を説明する説明図である。
FIG. 15 is an explanatory diagram illustrating a conventional process of reading data from an HV conversion register.

【図16】モノクロ画像データの印字パターンを示す説
明図である。
FIG. 16 is an explanatory diagram showing a print pattern of monochrome image data.

【図17】カラー画像データの印字パターンを示す説明
図である。
FIG. 17 is an explanatory diagram showing a print pattern of color image data.

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

101a データ配列変更手段、読出制御手段 201,301 レジスタ 601 記憶手段 101a Data array changing unit, read control unit 201, 301 Register 601 Storage unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 植村 寛 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 塚田 伸幸 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Hiroshi Uemura 3-30-2 Shimomaruko, Ota-ku, Tokyo Within Canon Inc. (72) Inventor Nobuyuki Tsukada 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inside the corporation

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 所定方向に配列されたデータを、前記所
定方向に直交する方向の配列に変換する画像データ変換
装置であって、 前記所定方向に配列されたデータを1ライン目からnラ
イン目まで階層的に順次ビット単位で記憶する記憶手段
と、 前記記憶手段に記憶されたデータのうち、一部の1ライ
ン目からnライン目までのデータを記憶するレジスタ
と、 前記レジスタに記憶されたデータを複数ビットを1単位
として構成されたデータとして1方向に順次取り出し、
当該複数ビットを1単位として順次取り出されたデータ
を前記所定方向と直交する方向の配列に並べ替えるデー
タ配列変更手段と、 前記複数ビットを1単位として並べ替えられたデータ
を、前記所定方向に直交する方向から順次読み出す読出
制御手段とを具えたことを特徴とする画像データ変換装
置。
1. An image data conversion device for converting data arranged in a predetermined direction into an array in a direction orthogonal to the predetermined direction, wherein the data arranged in the predetermined direction is converted from a first line to an nth line. Storage means for sequentially storing bits in a hierarchical manner up to a bit; a register for storing data of a part of the first to n-th lines among data stored in the storage means; Data is sequentially extracted in one direction as data composed of a plurality of bits as one unit,
Data array changing means for rearranging the data sequentially taken out with the plurality of bits as one unit into an array in a direction orthogonal to the predetermined direction; and An image data conversion device, comprising: readout control means for sequentially reading data from a direction to be read.
【請求項2】 前記複数ビットを1単位として構成され
たデータのビット数は、前記レジスタのデータ長の整数
分の1であることを特徴とする請求項1記載の画像デー
タ変換装置。
2. The image data conversion device according to claim 1, wherein the number of bits of the data configured with the plurality of bits as one unit is 1 / integer of the data length of the register.
【請求項3】 前記複数ビットを1単位として構成され
たデータを、互いにビット数が異なる構成として複数種
類具えたことを特徴とする請求項1又は2記載の画像デ
ータ変換装置。
3. The image data conversion device according to claim 1, wherein a plurality of types of the data composed of the plurality of bits as one unit are provided with different numbers of bits.
【請求項4】 前記ビット数が異なる複数種類のデータ
を選択するデータ選択手段を具えたことを特徴とする請
求項3記載の画像データ変換装置。
4. The image data conversion apparatus according to claim 3, further comprising data selection means for selecting a plurality of types of data having different bit numbers.
【請求項5】 前記データ選択手段は、アドレス指定に
よりデータを選択することを特徴とする請求項4記載の
画像データ変換装置。
5. The image data conversion apparatus according to claim 4, wherein said data selection means selects data by specifying an address.
【請求項6】 複数の記録素子が直線状に配列された記
録ヘッドを用い、 所定方向に配列されたデータから前記所定方向と直交す
る方向の配列に変換し、該変換された変換データを前記
記録ヘッドの複数の記録素子に入力することにより、記
録用紙の搬送方向と直交する方向に前記記録ヘッドを移
動させながら印字を行う印字装置であって、 請求項1ないし5記載のいずれかに記載の画像データ変
換装置を具え、 該画像データ変換装置により変換された変換データを前
記記録ヘッドの複数の記録素子に入力することにより、
記録用紙に前記記録ヘッドの幅分単位で印字を行うこと
を特徴とする印字装置。
6. Using a recording head in which a plurality of recording elements are linearly arranged, converting data arranged in a predetermined direction into an array in a direction orthogonal to the predetermined direction, and converting the converted data. The printing apparatus according to any one of claims 1 to 5, wherein printing is performed by moving the recording head in a direction orthogonal to a recording paper conveyance direction by inputting to a plurality of recording elements of the recording head. By inputting the conversion data converted by the image data conversion device to a plurality of printing elements of the printing head,
A printing apparatus for performing printing on recording paper in units of the width of the recording head.
【請求項7】 所定方向に配列されたデータを、前記所
定方向と直交する方向の配列に変換する画像データ変換
方法であって、 前記所定方向に配列されたデータを1ライン目からnラ
イン目まで階層的に順次ビット単位で記憶手段に記憶す
る第1の工程と、 前記記憶手段に記憶されたデータのうち、一部の1ライ
ン目からnライン目までのデータをレジスタに記憶する
第2の工程と、 前記レジスタに記憶されたデータを複数ビットを1単位
として構成されたデータとして1方向に順次取り出し、
当該複数ビットを1単位として順次取り出されたデータ
を前記所定方向と直交する方向の配列に並べ替える第3
の工程と、 前記複数ビットを1単位として並べ替えられたデータ
を、前記所定方向に直交する方向から順次読み出す第4
の工程とを具えたことを特徴とする画像データ変換方
法。
7. An image data conversion method for converting data arranged in a predetermined direction into an array in a direction orthogonal to the predetermined direction, wherein the data arranged in the predetermined direction is converted from a first line to an nth line. A first step of storing the data in the storage means hierarchically and sequentially in units of bits in a bit unit, and a second step of storing data of some of the first to nth lines of the data stored in the storage means in a register And sequentially taking out the data stored in the register in one direction as data constituted by a plurality of bits as one unit,
A third method of rearranging the data sequentially extracted with the plurality of bits as one unit into an array in a direction orthogonal to the predetermined direction.
A step of sequentially reading out the data rearranged with the plurality of bits as one unit from a direction orthogonal to the predetermined direction.
A method for converting image data, comprising the steps of:
【請求項8】 前記複数ビットを1単位として構成され
たデータのビット数は、前記レジスタのデータ長の整数
分の1であることを特徴とする請求項7記載の画像デー
タ変換方法。
8. The image data conversion method according to claim 7, wherein the number of bits of the data composed of the plurality of bits as one unit is 1 / integer of the data length of the register.
【請求項9】 前記複数ビットを1単位として構成され
たデータを、互いにビット数が異なる構成として複数種
類具えたことを特徴とする請求項7又は8記載の画像デ
ータ変換方法。
9. The image data conversion method according to claim 7, wherein a plurality of types of the data constituted by the plurality of bits as one unit are provided with different numbers of bits.
【請求項10】 前記ビット数が異なる複数種類のデー
タを選択することを特徴とする請求項9記載の画像デー
タ変換方法。
10. The image data conversion method according to claim 9, wherein a plurality of types of data having different numbers of bits are selected.
【請求項11】 前記アドレス指定によりデータを選択
することを特徴とする請求項10記載の画像データ変換
方法。
11. The image data conversion method according to claim 10, wherein data is selected by the address designation.
【請求項12】 コンピュータによって、画像データの
配列変更の制御をするための制御プログラムを記録した
記録媒体であって、 該制御プログラムはコンピュータに、 所定方向に配列されたデータを1ライン目からnライン
目まで階層的に順次ビット単位で記憶手段に記憶させ、 前記記憶手段に記憶されたデータのうち、一部の1ライ
ン目からnライン目までのデータをレジスタに記憶さ
せ、 前記レジスタに記憶させたタデータを複数ビットを1単
位として構成されたデータとして1方向に順次取り出さ
せ、当該複数ビットを1単位として順次取り出されたデ
ータを前記所定方向と直交する方向の配列に並べ替えさ
せ、 前記複数ビットを1単位として並べ替えさせたデータ
を、前記所定方向と直交する方向から順次読み出させる
ことを特徴とする画像データ配列変更制御プログラムを
記録した記録媒体。
12. A recording medium recording a control program for controlling a change in arrangement of image data by a computer, the control program stores, in the computer, data arranged in a predetermined direction from the first line to n. The data is stored in the storage means hierarchically and sequentially in units of bits up to the line, and among the data stored in the storage means, some of the data from the first line to the nth line are stored in the register, and the data is stored in the register The data obtained is sequentially extracted in one direction as data composed of a plurality of bits as one unit, and the sequentially extracted data is rearranged into an array in a direction orthogonal to the predetermined direction, wherein the plurality of bits are sequentially extracted as a unit. It is characterized in that data obtained by rearranging a plurality of bits as one unit is sequentially read from a direction orthogonal to the predetermined direction. Recording medium recording an image data sequence change control program to.
JP31404997A 1997-11-14 1997-11-14 Image data conversion apparatus, printing apparatus including image data conversion apparatus, and image data conversion method Expired - Fee Related JP3703273B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31404997A JP3703273B2 (en) 1997-11-14 1997-11-14 Image data conversion apparatus, printing apparatus including image data conversion apparatus, and image data conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31404997A JP3703273B2 (en) 1997-11-14 1997-11-14 Image data conversion apparatus, printing apparatus including image data conversion apparatus, and image data conversion method

Publications (2)

Publication Number Publication Date
JPH11138917A true JPH11138917A (en) 1999-05-25
JP3703273B2 JP3703273B2 (en) 2005-10-05

Family

ID=18048611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31404997A Expired - Fee Related JP3703273B2 (en) 1997-11-14 1997-11-14 Image data conversion apparatus, printing apparatus including image data conversion apparatus, and image data conversion method

Country Status (1)

Country Link
JP (1) JP3703273B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003103846A (en) * 2001-09-28 2003-04-09 Seiko Instruments Inc Ink-jet printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003103846A (en) * 2001-09-28 2003-04-09 Seiko Instruments Inc Ink-jet printer
JP4704635B2 (en) * 2001-09-28 2011-06-15 株式会社セイコーアイ・インフォテック Inkjet printer

Also Published As

Publication number Publication date
JP3703273B2 (en) 2005-10-05

Similar Documents

Publication Publication Date Title
US5629781A (en) High-speed image processing using parallel storage
EP0690410B1 (en) Printer having scroll print buffer and printing method
US5299310A (en) Flexible frame buffer for raster output devices
US5347617A (en) Printer having a multiple scan line printhead controller
JP2000280564A (en) Method and system for printing
JPH11138917A (en) Image data converter and converting method
US5672016A (en) Method for controlling color image data
US6891638B1 (en) Image processing apparatus, image processing method, and storage medium
JP2839810B2 (en) High density image forming method in LED printer
JP2001096854A (en) Apparatus and method for printing processing
JPH09174952A (en) Color printer
JP4323622B2 (en) Recording device
JPH05260285A (en) Picture output device
JP2002240261A (en) Print buffer memory controller
JPH10211736A (en) Printing output apparatus
JP3138300B2 (en) Image processing method
JP3493881B2 (en) Printing apparatus and control method thereof
JPH1093813A (en) Recording device
JP2922660B2 (en) Image processing device
JP2000231632A (en) Halftone generating device
JPH11192752A (en) Recording device
JPH08183208A (en) Method and apparatus for recording bit map
JP2000094748A (en) Image-forming apparatus
JPH0379364A (en) Recorder
JP2002211051A (en) Data packing device for ink jet printer

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040910

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041109

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050701

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050719

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080729

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090729

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090729

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100729

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100729

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110729

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120729

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120729

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130729

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees