JPS628664A - Data recovering circuit - Google Patents

Data recovering circuit

Info

Publication number
JPS628664A
JPS628664A JP14807785A JP14807785A JPS628664A JP S628664 A JPS628664 A JP S628664A JP 14807785 A JP14807785 A JP 14807785A JP 14807785 A JP14807785 A JP 14807785A JP S628664 A JPS628664 A JP S628664A
Authority
JP
Japan
Prior art keywords
data
run length
shifter
white
black
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14807785A
Other languages
Japanese (ja)
Inventor
Takashi Monno
孝史 門野
Masaaki Nishiyama
西山 雅昭
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP14807785A priority Critical patent/JPS628664A/en
Publication of JPS628664A publication Critical patent/JPS628664A/en
Priority to US07/268,633 priority patent/US4864414A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To process the recovery of the data at a high speed, to synchronize with the system speed of the electronic photograph system printer and to send the signal by providing two pairs of the data recovering part and recovering and processing the data outputted from the memory, in parallel. CONSTITUTION:The compressing data from a picture buffer 3 are inputted through a black shifter 13a and a white shifter 13b to a black decoding table 14a and a white decoding table 14b, the recovered run length data are selected by a selector 15, and signals RUNL 0-11 are sent to a run length counter 7. Each time a control line PIPE 1 falls, H is inputted to AND circuits ANDa and ANDb, in accordance with an output signal BLK/WHT of the run length counter 7, the black shifter 13a and the white shifter 13b output respectively the compressing data of the black dot and the white dot and the selector 15 alternately selects the recovering data and sends run length signals RUNL 0-11.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はレーザプリンタやLEDプリンタ等の電子写
真方式のプリンタ等において圧縮された画像データを復
元するデータ復元回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data restoration circuit for restoring compressed image data in an electrophotographic printer such as a laser printer or an LED printer.

[従来技術とその問題点] 一般に、レーザプリンタを出力装置として使用する場合
、ワードプロセッサ等のホストコンピュータ装置から送
られるデータの転送形態として文字コード等のコード情
報で送る場合と、画像をドツトデータとして送る場合と
がある。コード情報によるしのではビットマツプ方式お
よびキャラクタマツプ方式があり、このうちでもビット
マツプ方式は、任意位置に任意本字を印字することがで
き、又、フルグラフィック等の機能を有するが、プリン
タの動作を途中で停止させることができないので、メモ
リとして最低1頁分のデータを記憶する容量が必要とな
るので高価である。又、ドツトデータによる転送方式に
おいて、コンピュータ装置からの転送速度を制御して、
プリンタの印字ドツトデータの出力速度と完全に一致さ
せた場合には、コンピュータ装置からのデータをそのま
ま印字データとして出力することができるが、一般には
コンピュータ装置側の処理速度がプリンタに比べて遅く
又、データ転送の同期がとれない等の理由から、コンピ
ュータ装置のデータ転送速度とは無関係にプリンタ側で
印字できるようにする必要がある。しかし、この場合に
おいても、電子写真方式によるプリンタでは感光体の感
度や現像、転写等の特性により、一定のプロセス速度が
あり、例えば感熱プリンタの様に紙送り速度を可変にし
てコンピュータ装置とのデータ転送のタンミングに合わ
せるといった手法を用いることはできないので、プリン
タ側にバッファメモリを設け、コンピュータ装置から送
られてくるI頁分程度のドツトデータを記憶する必要が
あり、やはり、大容量のメモリを必要とし、高価なもの
となった。
[Prior art and its problems] In general, when using a laser printer as an output device, there are two ways to transfer data sent from a host computer device such as a word processor: one is to send code information such as a character code, and the other is to send images as dot data. There are cases where it is sent. There are two types of printers based on code information: the bitmap method and the character map method. Of these, the bitmap method can print arbitrary characters in any position and has functions such as full graphics, but it also controls the operation of the printer. Since it cannot be stopped midway, the memory is expensive because it requires a capacity to store at least one page of data. In addition, in the dot data transfer method, the transfer speed from the computer device is controlled,
If the output speed of the print dot data of the printer is completely matched, the data from the computer device can be output as print data, but generally the processing speed of the computer device is slower than that of the printer. , data transfer cannot be synchronized, etc., so it is necessary to be able to print on the printer side regardless of the data transfer speed of the computer device. However, even in this case, electrophotographic printers have a fixed process speed depending on the sensitivity of the photoreceptor and the characteristics of development, transfer, etc. For example, like thermal printers, the paper feed speed can be varied and the process speed can be changed to a computer device. Since it is not possible to use a method that matches the timing of data transfer, it is necessary to provide a buffer memory on the printer side and store approximately one page worth of dot data sent from the computer device, which also requires a large capacity memory. required and became expensive.

そこで、コンピュータ装置から送られてくるデータを符
号化することによりデータを圧縮させた後、メモリに記
憶させるようにすれば前記メモリ容量を少なくすること
ができる。
Therefore, if the data sent from the computer device is compressed by encoding it and then stored in the memory, the memory capacity can be reduced.

ここで、先づ、データの圧縮及び復元について説明する
。圧縮には理論的に最高の圧縮率が得られるハフマン符
号をモディファイ化したモディファイドハフマン(Ml
−1)方式を用いていて、次表で示すように白又は黒ド
ツトの続く長さくラン長)か白黒のドツト別に符号化さ
れている。
First, data compression and restoration will be explained. For compression, Modified Huffman (Ml
-1) method, and as shown in the following table, the run length (run length) of white or black dots or black and white dots are encoded separately.

モディファイドハフマン符号表 ラン長   白ラン     黒ラン 3   tooo      t。Modified Huffman code table Run length White run Black run 3  toooo   t.

5  1100’      001164  110
11      QOOOOOIII1EOL   0
00000000001  000000000001
この圧縮処理はCPU内の圧縮変換用テーブルによりな
されていて、CPUは外部から送られてくるラスターデ
ータを取り込みながら白ランから黒ランの変化点を検出
し、変化点までのドツト数に対応する白ラン長のMH符
号を圧縮変換テーブルから検索し、RAMからなる°メ
モリに書き込み、更に続いてデータを取り込み、今度は
黒ランから白ランへの変化点を検出し、この変化点まで
の黒ドツト数に対応する黒ラン長のMH符号を同様にし
て検索してメモリに書き込んでいる。ラスターデータで
送られてくる各ラインは必ず白ランが始まる様に取り決
められていて、黒ランから始まる場合には“0”長の白
ランが挿入されている。
5 1100' 001164 110
11 QOOOOOOIII1EOL 0
00000000001 000000000001
This compression process is performed by a compression conversion table in the CPU, and the CPU detects the change point from the white run to the black run while importing the raster data sent from the outside, and corresponds to the number of dots up to the change point. The MH code of the white run length is searched from the compression conversion table, written to the memory consisting of RAM, and then the data is imported.This time, the change point from black run to white run is detected, and the black run length up to this change point is The MH code with the black run length corresponding to the number of dots is similarly searched and written into the memory. Each line sent as raster data is arranged so that it always starts with a white run, and if it starts with a black run, a white run of length "0" is inserted.

従って、入力されるラスターデータに対応して圧縮変換
されるよう、この圧縮変換用テーブル内にはMH符号と
、このMH符号の符号長とがそれぞれ格納されている。
Therefore, the MH code and the code length of the MH code are stored in this compression conversion table so that the compression conversion is performed in accordance with the input raster data.

ところで、変換されるコード長は、白ランが4ビツトな
いし9ビツト、黒ランが2ビツトないし13ビツト、白
黒共通ランが11ビツトないし12ビツトとなっている
。従って、一つのラン長に対するデータは第4図で示す
ように、2つのアドレスに格納された!6ビツトからな
る2バイト構成としていて、第1のアドレスの上位4ビ
ツトにMI−I符号のコード長がバイナリ−で格納され
、っづ<12ビツトにM T(符号が左詰めで格納され
ている。ただし、13ビツト長の黒ランの場合には上位
lビットの0を省いて12ビツトとして格納される。こ
の構成により、変換頻度の高い4ピツト長までのコード
はlバイトのアクセスにより圧縮変換することができる
。このように符号化されたビット配列によるデータがメ
モリのアドレスにlバイトである8ビット単位に書き込
まれる。
Incidentally, the code lengths to be converted are 4 bits to 9 bits for white runs, 2 bits to 13 bits for black runs, and 11 bits to 12 bits for black and white common runs. Therefore, data for one run length was stored in two addresses, as shown in Figure 4! It has a 2-byte configuration consisting of 6 bits, and the code length of the MI-I code is stored in binary in the upper 4 bits of the first address, and M However, in the case of a black run with a length of 13 bits, the high-order 1 bit of 0 is omitted and stored as 12 bits.With this configuration, codes up to 4 pits long that are frequently converted can be compressed by accessing 1 byte. Data according to the bit array encoded in this way is written to a memory address in units of 8 bits, which is 1 byte.

この場合、第5図に示すように、バイトの境界は無視し
、ビットをつめてリニアアドレスとして書き込む。尚、
l走査におけるラインが全て白ドツトの場合、1ライン
分の白ラン長を圧縮コード化するのではなく、単にEO
L(エンドオブライン)コードのみを入れるようにし、
又、l走査のライン中の有効画像エリア内において途中
から白ドツトのみになった場合もEOLコードを入れる
In this case, as shown in FIG. 5, byte boundaries are ignored, bits are compressed, and the data is written as a linear address. still,
If all lines in one scan are white dots, the white run length for one line is not compressed and encoded, but simply EO
Make sure to include only the L (end of line) code,
Also, if there are only white dots in the effective image area in one scanning line, an EOL code is also inserted.

又、上記デコーダにはデータ復元用として復元用テーブ
ルROMが用いられていて、メモリに書き込まれていた
MH符号によるデータの内容をROMのアドレスとして
格納している。このMH符号によるデータは最長で13
ビツトとなり、又、格納されるときにデータの最上位ビ
ットは白ランテーブルと黒ランテーブルの切換用とする
必要があり、格納されるデータは14ビツトになる。従
って、上記復元用テーブルROMにはアドレスラインと
して14本のものを用いている。この復元用テーブルか
ら出力すべきデータは、第6図で示すように、ラン長2
560まで表わすに必要なバイナリ−データの12ビツ
ト及び最長13ビツトの符号長を表わすに必要なパイナ
リニデータ4ビットの計16ビツトとなり、この2バイ
トの信号を出力できるように上記復元用テーブルROM
を2個用いている。
Further, a restoration table ROM is used in the decoder for restoring data, and the contents of the data in the MH code written in the memory are stored as addresses in the ROM. The maximum length of data according to this MH code is 13
Also, when stored, the most significant bit of the data must be used for switching between the white run table and the black run table, and the stored data is 14 bits. Therefore, the restoring table ROM uses 14 address lines. The data to be output from this restoration table has a run length of 2 as shown in Figure 6.
The 12 bits of binary data required to represent up to 560 and the 4 bits of binary data required to represent the maximum code length of 13 bits make up a total of 16 bits.
Two are used.

第7図は、上述したデータの圧縮及び復元を行なうプリ
ンタ用画像情報処理装置のブロック図を示している。以
下、構成及び作用について説明する。
FIG. 7 shows a block diagram of an image information processing device for a printer that performs the above-described data compression and restoration. The configuration and operation will be explained below.

外部インタフェース1は、ラスターデータ出力方式のコ
ンピュータ装置と接続される部分であり、具体的にはセ
ントロニクス等のパラレルインタフェースやR9232
C,R9422等のシリアルインタフェースである。C
PU2は、マイクロプロセッサ、プログラムメモリ、シ
ステムラムメモリ及び上記インタフェースlからのラス
ターデータをソフトウェアによりMH符号に圧縮変換す
るテーブルメモリからなり、MH符号化されたデータは
既述したように定められた手順により画像バッファ3に
書き込まれる。画像バッファ3は、RAMからなるメモ
リで構成されていて、書き込み時には16ビツトAO〜
15のアドレスバスと8ピツ)DO〜7のデータバスに
よりCPUIと接続され、CPUIからの夏買方のデー
タかメモリに書き込まれ、プリント時には画像バッファ
3は、CPUIと切り離され、■77ビツトAO−16
のアドレスバスによりアドレスカウンタ4と接続され、
そして、16ビツトのBFoUTO〜I5のデータバス
によりシフター5と接続される。アドレスカウンタ4は
、アドレスバスを介して画像バッファ3内のメモリを読
み出すためのアドレスを発生する回路であり、発生した
アドレスは画像バッファ3のラッチ回路3aに保持され
る。このアドレスカウンタ4のアクセスにより所定のア
ドレスにあるデータは読み出され、データバスを介して
16ビツト単位でシフター5に送出される。シフター5
は、人力された16ビツトのデータをこのシフター5内
のラッチ回路5aに取り込み、後述するデコードテーブ
ル6から出力される信号C0DEO〜3で示される数だ
けシフトさせて信号C0DE15〜0として出力する。
The external interface 1 is a part connected to a raster data output type computer device, and specifically, a parallel interface such as Centronics or R9232.
This is a serial interface such as C, R9422, etc. C
The PU2 consists of a microprocessor, a program memory, a system RAM memory, and a table memory for compressing and converting the raster data from the above interface 1 into MH code by software, and the MH encoded data is processed according to the prescribed procedure as described above. is written into the image buffer 3 by The image buffer 3 is composed of a memory consisting of RAM, and when writing, 16 bits AO to
It is connected to the CPUI by an address bus of 15 and a data bus of 8 bits)DO to 7, and the data from the CPUI is written to the memory.When printing, the image buffer 3 is separated from the CPUI, 16
is connected to the address counter 4 by the address bus of
Then, it is connected to the shifter 5 by a 16-bit data bus of BFoUTO to I5. The address counter 4 is a circuit that generates an address for reading out the memory in the image buffer 3 via the address bus, and the generated address is held in the latch circuit 3a of the image buffer 3. Data at a predetermined address is read out by this access by the address counter 4, and sent to the shifter 5 in 16-bit units via the data bus. shifter 5
inputs manually input 16-bit data into a latch circuit 5a in this shifter 5, shifts it by a number indicated by a signal C0DEO-3 output from a decoding table 6, which will be described later, and outputs it as a signal C0DE15-0.

デコードテーブル6は、シフター5から出力されるMI
−1符号による信号C0DE15〜0を復元するための
復元回路であり、このデコードテーブル6内の復元用テ
ーブルROMにより、ラン長としてRUNO〜11のバ
イナリ−データで出力するとともに、この入力されたM
H符号のコード長をC0DEO〜3のバイナリ−データ
で前記シフター5に送出している。従って、シフター5
内のデータは、デコードテーブル6で解読したMl−1
符号長と等しいビット数だけシフトされた後、出力され
るので、デコードテーブル6に入力される信号C0DE
’15〜0の上位ビットのC0DE l 5に次に解読
されるMH符号の先頭が位置するようになる。
The decode table 6 is the MI output from the shifter 5.
This is a restoring circuit for restoring the signals C0DE15 to 0 based on the -1 code, and the restoring table ROM in the decoding table 6 outputs binary data of RUNO to 11 as the run length, and also outputs the input M
The code length of the H code is sent to the shifter 5 as binary data of C0DEO to 3. Therefore, shifter 5
The data in is Ml-1 decoded by decoding table 6.
The signal C0DE input to the decoding table 6 is output after being shifted by the number of bits equal to the code length.
The head of the MH code to be decoded next is located at C0DE l 5 of the upper bits from '15 to 0.

ラン長カウンタ7は、デコードテーブル6から入力され
たバイナリ−のラン長データをシリアルの黒又は白の信
号BLK/WHTとして出力するとともに、一連のシリ
アルデータを出力する毎にBLK/Wl(Tの信号を反
転していて、デコードテーブル6からのデータはこのラ
ン長カウンタ7のラッチ回路7aにラッチされる。
The run length counter 7 outputs the binary run length data inputted from the decoding table 6 as a serial black or white signal BLK/WHT, and also outputs BLK/Wl(T) every time it outputs a series of serial data. The data from the decode table 6 is latched into the latch circuit 7a of the run length counter 7.

EOL検知回路8は、シフター5からEOL符号が出力
されたとき、これを検知して、その−行を全て白の信号
するための制御線Uσ[を制御する。
The EOL detection circuit 8 detects when the EOL code is output from the shifter 5, and controls the control line U[sigma] to signal all the - rows to be white.

出力制御部9は、ラン長カウンタ7からのシリアルデー
タ、或いはEOL検知回路8からのEO17信号を所定
の8ビツトのパラレル信号LDDATAO〜7に変換し
た後、プリンタのエンジンと接続されるエンジンインタ
フェースIOに送出している。パイプ信号発生回路12
は上述した各ブロックを制御するため信号を発生ずる回
路であり、CPU2.ラン長カウンタ7、出力制御部9
及びエンジンインタフェースlOから制御線INPRN
T、ENI’ I PEl 、 ENP I PE2及
びSO茗−が入力されていて、制御線ptpEt及びv
丁V「丁を制御する。
The output control unit 9 converts the serial data from the run length counter 7 or the EO17 signal from the EOL detection circuit 8 into a predetermined 8-bit parallel signal LDDATAO~7, and then outputs the signal to the engine interface IO connected to the engine of the printer. It is being sent to Pipe signal generation circuit 12
are circuits that generate signals to control each of the blocks described above, and CPU2. Run length counter 7, output control section 9
and control line INPRN from engine interface lO
T, ENI' I PE1, ENP I PE2 and SO 錗- are input, and the control lines ptpEt and v
Ding V “Controlling Ding.

次に上記構成によるブロック図の動作を第8図のタイム
チャートとともに説明する。
Next, the operation of the block diagram of the above configuration will be explained with reference to the time chart of FIG.

CPU2からの制御線INPRNTが“H”、即ちノン
アクティブになったとき、画像バッファ3は、CPU2
と接続され、CPU1で圧縮されたMH符号が次々に画
像バッファ3に書き込まれる。
When the control line INPRNT from the CPU 2 becomes “H”, that is, becomes non-active, the image buffer 3
The MH codes compressed by the CPU 1 are sequentially written into the image buffer 3.

このCPUモードにおいては、パイプ信号発生回路12
.アドレスカウンタ4.シフター5.ラン長カウンタ7
及び出力制御部9は初期状態になっている。画像バッフ
ァ3に1頁分のデータが書き込まれると、CPU2は、
制御線を介してエンジンインタフェースIOに起動をか
け、更に、酉P n N ’I’ = L 、即ちアク
ティブにすると、画像バッファ3は、CP U 2と切
り離されてアドレスカウンタ4及びシフター5と接続さ
れ、又、画像バッファ3以降の各ブロックは動作状態に
なり、プリントモードとなる。
In this CPU mode, the pipe signal generation circuit 12
.. Address counter 4. Shifter 5. Run length counter 7
And the output control section 9 is in the initial state. When one page of data is written to the image buffer 3, the CPU 2
When the engine interface IO is activated via the control line and further P n N 'I' = L, that is, activated, the image buffer 3 is disconnected from the CPU 2 and connected to the address counter 4 and shifter 5. Also, each block after the image buffer 3 becomes active and enters print mode.

次に外°部エンジンからの1ラインの走査スタート同期
信号がエンジンインタフェースlOに入力されろと、制
御線SO8はパルス状に立下がる。
Next, when a one-line scan start synchronization signal from the external engine is input to the engine interface IO, the control line SO8 falls in a pulsed manner.

これにより、出力制御部9からの制御線ENP lPE
2が“し”、即ち、アクティブになり、パイプ信号発生
回路12からの制御線PIPEI、PIPIε2にはT
1のザイクルで立下がりのパルス発生する。又、ラン長
カウンタ7からの制御線百−NPIPEIは制御線PI
PEIのみをイネーブルにさせるための制御線である。
As a result, the control line ENP lPE from the output control unit 9
2 becomes "active", that is, becomes active, and T is applied to the control lines PIPEI and PIPIε2 from the pipe signal generation circuit 12.
A falling pulse is generated in cycles of 1. Also, the control line 10-NPIPEI from the run length counter 7 is the control line PI.
This is a control line for enabling only PEI.

PIPE目よ、アドレスカウンタ41画像バッファ3.
シフター5、デコードテーブル6及びラン長カウンタ7
に接続され、又、PIPE2はラン長カウンタ7及及び
出力制御部9に接続されていて、各ブロックは、P I
 PE 1.P I PE2に発生するパルスの間隔1
1以内に各々のブロックに割り当てられている処理を完
了するようにしている。
PIPE eye, address counter 41 image buffer 3.
Shifter 5, decode table 6 and run length counter 7
PIPE2 is also connected to a run length counter 7 and an output control section 9, and each block is connected to a PIPE2.
PE 1. P I Interval of pulses generated in PE2 1
The processing assigned to each block is completed within 1 hour.

このプリントモードにおいてアドレスカウンタ4は、P
 I PE 1の立下がり毎に、カウントしたアドレス
をMAO−16の17ビツトで順次画像バッファ3に送
出して、画像バッファ3のアドレスをアクセスして、メ
モリに書き込まれていたデータを読み取り、シフター5
にBFOUTO〜I5のI6ビットとして出力させる。
In this print mode, the address counter 4 is
Every time I PE 1 falls, the counted address is sequentially sent to the image buffer 3 using 17 bits of the MAO-16, the address of the image buffer 3 is accessed, the data written in the memory is read, and the shifter 5
output as the I6 bit of BFOUTO to I5.

尚、シフター5からの制御線C0UNTENが“H“の
ときは、ptpEtが立下がってもアドレスカウンタ4
からはカウントしたアドレスが送出されないようになっ
ている。
Note that when the control line C0UNTEN from the shifter 5 is "H", the address counter 4 remains unchanged even if ptpEt falls.
From then on, the counted addresses will not be sent.

シフター5では既述したように入力されるデータを取り
込むとともに出力されるC0DE15〜0の16ビツト
の上位ビットに次に解読されるMH符号の先頭が来るよ
うにシフトさせて、デコードテーブル6に送出する。デ
コードテーブル6でMH符号はラン長がRUNLO〜2
のI2ビットのバイナリ−データとして復元され、ラン
長カウンタ7に送出される。このラン長カウンタ7から
は白又は黒の長さを示すデータがシリアルに出力され、
又白又は黒のシリアルデータを出力する毎に、白又は黒
を示す信号BLK/Wl−ITを反転している。前記制
御線部σ「の立下がりでBLK/WI(TはI−ルベル
に設定されている。次に「PEIの立下がりにより入力
されたラン長の値がラン長カウンタ内にプリセットされ
る。このプリセット値がOのときBLK/WHTは反転
し、又、lのときはPIPE2の立下がりにBLK/W
 I−I Tが反転する。このプリセット値が2以上の
ときは、ENP I PE lをノンアクティブにして
PIPElの立下がりを禁止してラン長カウンタ部まで
の動作を停止させる。そしモ、PMPE2の立下がりご
とに前記プリセット値を減じ、このプリセット値が1に
なったときにBLK/WH〒が反転し、又、ENP I
 PEIをアクティブに復帰させている。出力制御部9
は、丁v丁立下がり時に“8”にセットされるカウンタ
を有し、PIFE2の立下がり毎にラン長カウンタ7か
らのンリアルデータをこの出力制御部9内のラッチ回路
9aに取り込むとともに前記設定された数値がカウント
によりlづつ減じられる。このカウント値が0になると
、カウント値を再び8に設定するとともに、ENPIP
E2はノンアクティブとなり、P I PE IとPI
PE2の立下がりか禁止され、各ブロック3,4,5,
6,7.9における動作が停止する。このとき上記ラッ
チ回路9aには8ビツトのデータがラッチされていて、
エンジンインタフェースIOからの制御線LDREQが
パルス状に立下がると、出力制御部9からデータがパラ
レルの8ビツトLDDATAO〜7としてエンジンイン
タフェースIOを介してエンジンに送出され、このとき
、ENPIPE2はアクティブに復帰する。出力制御部
9にEOL信号が入力されると無条件でENP I P
E2はノンアクティブとなり、この場合、次のSO8の
立下がりでENP I PE丁はアクティブに戻る。こ
のEOL信号の発生後、ラン長カウンタ7からの信号を
無効にする。
As described above, the shifter 5 takes in the input data, shifts it so that the top of the next MH code to be decoded is placed in the upper 16 bits of output C0DE15-0, and sends it to the decoding table 6. do. In decode table 6, the run length of MH code is RUNLO~2
The data is restored as I2-bit binary data and sent to the run length counter 7. This run length counter 7 serially outputs data indicating the length of white or black.
Further, each time white or black serial data is output, the signal BLK/Wl-IT indicating white or black is inverted. At the falling edge of the control line σ, BLK/WI (T is set to I-level). Next, at the falling edge of PEI, the input run length value is preset in the run length counter. When this preset value is O, BLK/WHT is inverted, and when it is l, BLK/WHT is inverted at the falling edge of PIPE2.
I-IT is reversed. When this preset value is 2 or more, ENP I PE l is made inactive to prohibit falling of PIP El and stop the operation up to the run length counter section. Then, the preset value is decreased every time PMPE2 falls, and when this preset value becomes 1, BLK/WH〒 is inverted, and ENP I
Returning PEI to active status. Output control section 9
has a counter that is set to "8" at the falling edge of PIFE2, and every time PIFE2 falls, the real data from the run length counter 7 is taken into the latch circuit 9a in the output control section 9, and the above-mentioned The set value is decremented by l by the count. When this count value reaches 0, the count value is set to 8 again and the ENPIP
E2 becomes inactive and P I PE I and P I
Only the falling edge of PE2 is prohibited, and each block 3, 4, 5,
The operations at 6 and 7.9 stop. At this time, 8-bit data is latched in the latch circuit 9a,
When the control line LDREQ from the engine interface IO falls in a pulsed manner, data is sent from the output control unit 9 as parallel 8-bit LDDATAO to 7 to the engine via the engine interface IO, and at this time, ENPIPE2 returns to active. do. When the EOL signal is input to the output control unit 9, ENP I P is unconditionally set.
E2 becomes inactive, and in this case, ENP I PE returns to active at the next falling edge of SO8. After the EOL signal is generated, the signal from the run length counter 7 is invalidated.

さて、上述の回路で問題とのるのがデコードテーブル6
における処理速度である。この処理速度はデコードテー
ブル6のテーブルROMのアクセスタイムに依っていて
、シフター5にシフト量を示ずC0DEO〜3或いは制
御線P I PE Iの信号が入力されてからデコード
テーブル6からラン長信号nUNLO〜11が出力され
るまで、シフター5においてT3そしてデコードテーブ
ル6においてTい計1’3+T4の処理時間が必要とな
る。
Now, the problem with the above circuit is the decode table 6.
This is the processing speed in . This processing speed depends on the access time of the table ROM of the decode table 6, and the shift amount is not shown in the shifter 5. After the signal of C0DEO~3 or the control line PI PE I is input, the run length signal is output from the decode table 6. Until nUNLO~11 is output, a processing time of T3 in the shifter 5 and T in the decoding table 6, totaling 1'3+T4, is required.

ラン長が1或いはOの時、上記復元処理は最も過酷とな
り、1ドツトにっきT 3 + T 4必要となる。
When the run length is 1 or O, the restoration process is most severe and requires T 3 + T 4 per dot.

従ってドブトクロックは、t/(’r3+’r、)が限
界であり、この値は安価なメモリを使用すると約3MI
Iz程度になり、電子写真方式のプリンタのシステム速
度をこれに合わせておとす必要があるといった欠点があ
った。
Therefore, the limit of the Dobutto clock is t/('r3+'r,), and this value is about 3 MI when using cheap memory.
The disadvantage is that the system speed of an electrophotographic printer needs to be reduced to match this speed.

[発明の目的] この発明は上述した問題点をなくすためになされたもの
であり、圧縮データを高速に復元処理できるデータ復元
回路を提供することを目的とする。
[Object of the Invention] The present invention has been made in order to eliminate the above-mentioned problems, and an object thereof is to provide a data restoration circuit that can restore compressed data at high speed.

[発明の構成] この発明のデータ復元回路は画像データのラン長を符号
化して記憶するメモリと、このメモリから所定のビット
数で出力されたデータを適宜シフトさせることにより、
次に復元されるラン長符号がデータの先頭となるように
して出力するシフター回路と、前記シフター回路から出
力されたラン長符号を復元し1、そのラン長をバイナリ
−コードで出力する復元メモリとから構成されるデータ
復元回路であって、前記シフター及びこのシフターに接
続される復元メモリからなるデータ復元部を2組み設け
、メモリから出力されるデータを並列に処理することを
特徴とする。
[Structure of the Invention] The data restoration circuit of the present invention includes a memory that encodes and stores the run length of image data, and appropriately shifts data output from this memory with a predetermined number of bits.
A shifter circuit that outputs the next restored run length code so that it becomes the beginning of data, and a restoration memory that restores the run length code output from the shifter circuit and outputs the run length in binary code. The data restoration circuit is characterized in that it includes two sets of data restoration sections each consisting of the shifter and a restoration memory connected to the shifter, and processes data output from the memory in parallel.

[実施例コ 第1図はこの発明の1実施例を示すデータ復元部であり
、シフター及びデコードテーブルからなる復元回路を2
組み備えていて、白黒のデータ別に信号を処理している
[Example 1] Figure 1 shows a data restoration section showing an example of the present invention.
It processes signals separately for black and white data.

画像バッファ3からの圧縮データBFOUTO〜15は
黒シフター13a及び白シフタ−13bに入力される。
Compressed data BFOUTO-15 from the image buffer 3 is input to a black shifter 13a and a white shifter 13b.

黒シフター13a及び白シフタ−13bの出力信号C0
DE15〜0はそれぞれ黒デコードテーブル14a、白
デコードテーブル14bに人力されるとともにシフト量
を表わす信号C0DEO〜3が各デコードテーブル14
a、14bからそれぞれ各シフター13a、13bに送
出される。そして、黒デコードテーブル14a、白デコ
ードテーブル+4bで復元されたラン長データBRUN
LO〜II。
Output signal C0 of black shifter 13a and white shifter 13b
DE15-0 are manually input to the black decode table 14a and white decode table 14b, respectively, and signals C0DEO-3 representing the shift amount are input to each decode table 14.
a, 14b to each shifter 13a, 13b, respectively. Then, the run length data BRUN restored using the black decode table 14a and the white decode table +4b
LO~II.

WRUNLO〜1(はそれぞれセレクター15に入力さ
れる。セレクター15で選択された信号RUNLO−1
1は既述したラン長カウンタ7に送出される。そして制
御線PIPEIはインバータINVIにより正論理の制
御線PIPEIとした後、AND回路ANDa、AND
bを介してそれぞれ黒シフター13a、白シフター13
bに接続され、ラン長カウンタ7の出力信号BLK/W
HTは、AND回路ANDbの他の一方の入力端子に入
力され、そして、AND回路ANDaの他の一方の入力
端子にはインバータINV2を介して入力゛される。
WRUNLO-1 (are respectively input to the selector 15. The signal RUNLO-1 selected by the selector 15
1 is sent to the run length counter 7 described above. Then, the control line PIPEI is made into a positive logic control line PIPEI by the inverter INVI, and then the AND circuit ANDa, AND
black shifter 13a and white shifter 13 via b
b, and the output signal BLK/W of the run length counter 7
HT is input to the other input terminal of the AND circuit ANDb, and is input to the other input terminal of the AND circuit ANDa via the inverter INV2.

次に動作について説明する。制御線PIPEIが立下る
毎にAND回路ANDa、ANDbの一方の入力端子に
“H”が入力される。今、ラン長カウウタ7の出力信号
BLK/WHTh(BLK、即ち“H”のとき、前記A
ND回路ANDaは阻止され、AND回路ANDbのみ
が有効となり、白シフタ−+3bに制御線PIPEIに
よるパイプ信号が送出される。そして、制御線P I 
PE Iの次のパルス立下り時には、前記出力信号BL
K/WHTは反転してW HT 、即ち“L”となって
いるので、今度はAND回路ANDaのみが有効となり
、黒シフター13aにパイプ信号が送出される。このよ
うに、ラン長カウンタ7の出力信号BLK/WHTに従
って黒シフター13a、白シフター13bはそれぞれ黒
ドツト、白ドツトの圧縮データを黒デコードテーブル1
4a、白デコードテーブル14bに出力し、個別に圧縮
データを復元している。セレクター15は、黒デコード
テーブル14a、白デコードテーブル14bから出力さ
れる復元データl3UTINLO〜I l、Wr(UN
LO〜l lを交互に選択してラン長カウンタ7にラン
長信号RUNLO−IIとして送出している。従って、
復元回路における処理速度を従来の復元回路と比較して
およそ倍にすることができる。
Next, the operation will be explained. Every time the control line PIPEI falls, "H" is input to one input terminal of the AND circuits ANDa and ANDb. Now, when the output signal BLK/WHTh (BLK, that is, "H") of the run length counter 7, the
The ND circuit ANDa is blocked, only the AND circuit ANDb is enabled, and a pipe signal via the control line PIPEI is sent to the white shifter +3b. And the control line P I
At the falling edge of the next pulse of PE I, the output signal BL
Since K/WHT is inverted to W HT , that is, "L", only the AND circuit ANDa is enabled this time, and a pipe signal is sent to the black shifter 13a. In this way, according to the output signal BLK/WHT of the run length counter 7, the black shifter 13a and the white shifter 13b transfer the compressed data of black dots and white dots to the black decode table 1, respectively.
4a, the data is output to the white decoding table 14b, and the compressed data is individually restored. The selector 15 selects restored data l3UTINLO~Il,Wr(UN
LO to 11 are alternately selected and sent to the run length counter 7 as a run length signal RUNLO-II. Therefore,
The processing speed of the restoration circuit can be approximately doubled compared to the conventional restoration circuit.

このときのタイムチャートを第2図に示す。このタイム
チャートではクロック周期をT1としているが、ROM
のアクセスタイム、シフターでのディレータイムの和T
3+T、に対して、ラン長RtJNL及びコード長C0
DEO〜3の必要となる時間は最悪のときでもT、であ
るので十分余裕ができる。このため第3図に示すように
、前記クロック周期を’r、/2としても、動作可能で
あり高速にデータの復元を行なうことかできる。
A time chart at this time is shown in FIG. In this time chart, the clock period is T1, but the ROM
sum of access time and delay time at shifter T
3+T, run length RtJNL and code length C0
The time required for DEO~3 is T even in the worst case, so there is plenty of time. Therefore, as shown in FIG. 3, even if the clock period is set to 'r,/2, the operation is possible and data can be restored at high speed.

[発明の効果] 以」二説明したように、この発明のデータ復元回路は、
データ復元部を2組み設け、メモリから出力されるデー
タを並列で復元処理したので、従来のデータ復元回路と
比較してデータの復元を高速に処理することができ、電
子写真方式のプリンタのシステム速度に同期して信号を
送出することかできる。
[Effects of the Invention] As explained below, the data restoration circuit of the present invention has the following effects:
Two sets of data restoration units are provided to restore the data output from memory in parallel, making it possible to restore data at high speed compared to conventional data restoration circuits. It is possible to send signals in synchronization with the speed.

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

第1図はこの発明の1実施例を示すデータ復元部のブロ
ック図、第2図及び第3図は第1図におけるデータ復元
部の動作例を示すタイムチャート、第4図は圧縮変換テ
ーブル内に格納されている変換用データのビット配列図
、第5図はメモリに書き込まれるMH符号の配列図、第
6図は復元用テーブルROMから出力されるバイナリ−
による復元データの配列図、第7図は従来の復元方式を
用いたプリンタ用画像情報処理装置のブロック図、第8
図は第7図のブロック図の動作を示すタイムチャートで
ある。 13a・・・黒シフター、13b・・・白シフタ−,1
4a・・・黒デコードテーブル、 14b・・・白デコードテーブル、15・・・セレクタ
。 特許出願人 ミノルタカメラ株式会社 代 理 人 弁理士 青白 葆 外2名114図 第51!1 1116図
FIG. 1 is a block diagram of a data restoration section showing one embodiment of the present invention, FIGS. 2 and 3 are time charts showing an example of the operation of the data restoration section in FIG. 1, and FIG. 5 is a bit array diagram of the conversion data stored in the memory, FIG. 5 is an array diagram of the MH code written in the memory, and FIG. 6 is a binary diagram output from the restoration table ROM.
FIG. 7 is a block diagram of an image information processing device for a printer using the conventional restoration method, and FIG.
The figure is a time chart showing the operation of the block diagram of FIG. 13a...Black shifter, 13b...White shifter, 1
4a...Black decode table, 14b...White decode table, 15...Selector. Patent Applicant: Minolta Camera Co., Ltd. Agent: Patent Attorney: 2 people (114) Figure 51!1 1116

Claims (1)

【特許請求の範囲】[Claims] (1)画像データのラン長を符号化して記憶するメモリ
と、このメモリから所定のビット数で出力されたデータ
を適宜シフトさせることにより、次に復元されるラン長
符号がデータの先頭となるようにして出力するシフター
回路と、前記シフター回路から出力されたラン長符号を
復元し、そのラン長をバイナリーコードで出力する復元
メモリとから構成されるデータ復元回路であって、前記
シフター及びこのシフターに接続される復元メモリから
なるデータ復元部を2組み設け、メモリから出力される
データを並列に処理することを特徴とするデータ復元回
路。
(1) A memory that encodes and stores the run length of image data, and by appropriately shifting the data output from this memory with a predetermined number of bits, the run length code to be restored next becomes the beginning of the data. A data restoration circuit comprising a shifter circuit that outputs a run length code as described above, and a restoration memory that restores a run length code outputted from the shifter circuit and outputs the run length in a binary code, the data restoration circuit comprising: A data restoration circuit characterized in that two sets of data restoration sections each consisting of a restoration memory connected to a shifter are provided, and data output from the memory is processed in parallel.
JP14807785A 1985-07-03 1985-07-04 Data recovering circuit Pending JPS628664A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP14807785A JPS628664A (en) 1985-07-04 1985-07-04 Data recovering circuit
US07/268,633 US4864414A (en) 1985-07-03 1988-11-08 Image signal processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14807785A JPS628664A (en) 1985-07-04 1985-07-04 Data recovering circuit

Publications (1)

Publication Number Publication Date
JPS628664A true JPS628664A (en) 1987-01-16

Family

ID=15444704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14807785A Pending JPS628664A (en) 1985-07-03 1985-07-04 Data recovering circuit

Country Status (1)

Country Link
JP (1) JPS628664A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63201784A (en) * 1987-02-18 1988-08-19 Canon Inc Picture processing device
US5692210A (en) * 1987-02-18 1997-11-25 Canon Kabushiki Kaisha Image processing apparatus having parallel processors for communicating and performing positional control over plural areas of image data in accordance with designated position instruction

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63201784A (en) * 1987-02-18 1988-08-19 Canon Inc Picture processing device
US5692210A (en) * 1987-02-18 1997-11-25 Canon Kabushiki Kaisha Image processing apparatus having parallel processors for communicating and performing positional control over plural areas of image data in accordance with designated position instruction
US6477281B2 (en) 1987-02-18 2002-11-05 Canon Kabushiki Kaisha Image processing system having multiple processors for performing parallel image data processing

Similar Documents

Publication Publication Date Title
US4881180A (en) Character image generating circuit
US4800440A (en) Digital image signal coding/decoding circuit with buffer memory storing reference line as compression codes
JPS628664A (en) Data recovering circuit
US4864414A (en) Image signal processing device
JP2695790B2 (en) Image processing system
JPS628663A (en) Data recovering circuit
JPS628662A (en) Data restoring circuit
JPS627269A (en) Image information processor
JPS5856872B2 (en) Expanded character pattern encoder
US6473530B2 (en) Encoding and decoding apparatuses and image processing apparatus using the same
JPS60119170A (en) Connecting device of facsimile
EP0302432A2 (en) Document decompressing system
JP2556047B2 (en) Image information coding device
KR930004002B1 (en) Dot per inch changing circuit
JP2985288B2 (en) Coding method
JPH0563959A (en) Method and device for processing picture
JP2556160B2 (en) Compression code decompression device
JP2611380B2 (en) Facsimile transmission control method
JPS61256868A (en) Data processing system
JPS61216090A (en) Picture processing system
JPH0695729B2 (en) MR encoding device
JPS6365271B2 (en)
JPS6125272B2 (en)
JPS63267556A (en) Printing control system of personal computer
JPH03137775A (en) Picture processing device