JPH09185132A - Data processor - Google Patents

Data processor

Info

Publication number
JPH09185132A
JPH09185132A JP7352323A JP35232395A JPH09185132A JP H09185132 A JPH09185132 A JP H09185132A JP 7352323 A JP7352323 A JP 7352323A JP 35232395 A JP35232395 A JP 35232395A JP H09185132 A JPH09185132 A JP H09185132A
Authority
JP
Japan
Prior art keywords
data
read
write
signal
start signal
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
JP7352323A
Other languages
Japanese (ja)
Inventor
Kenichi Ono
健一 小野
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP7352323A priority Critical patent/JPH09185132A/en
Publication of JPH09185132A publication Critical patent/JPH09185132A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Exposure Or Original Feeding In Electrophotography (AREA)
  • Optical Systems Of Projection Type Copiers (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to detect the inversion of a reading-out address and a writing address by comparing the data read out in trial with the test data and emitting an error signal if the data are not equal. SOLUTION: This data processor has an image input section 101, an FIFO memory 12 and a printing control section 103. An LD modulating section 104 modulates and drives an LD 105. A synchronous detector 106 for detecting the laser beam emitted from this LD 105 is connected to the printing control section 103 and a phase shifting circuit 107. A test data generating circuit 108 is connected to the data writing section of the FIFO memory 102 and a data comparator circuit 109 to the data reading out section of the FIFO memory 102. The error signal output of the data comparator circuit 109 is connected to a CPU. The reading-out data outputted from the reading-out image data output terminal Dout of the FIFO memory 102 is compared with an expected value in the period when the reading-out enable signal XFRE is active in the data comparator circuit 109. The error signal is emitted in case the data do not coincide.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は,デジタル複写機,
プリンタ,ファクシミリ等の分野で利用されるデータ処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital copying machine,
The present invention relates to a data processing device used in fields such as printers and facsimiles.

【0002】[0002]

【従来の技術】従来のデータ処理装置の一例であるデジ
タル複写機としては,例えば,図16に示すものがあ
る。図16は,従来のデジタル複写機の構成図である。
デジタル複写機1601は,大別すると,原稿(図示せ
ず)の印刷画像を読み取り入力する画像読取部1602
と,画像読取部1602で入力した画像データに各種処
理を実行する信号処理部1603と,信号処理部160
3から出力される画像データを印刷用紙(図示せず)に
印刷出力する画像印刷部1604とから構成され,これ
らを順次接続した構造である。
2. Description of the Related Art A digital copying machine which is an example of a conventional data processing apparatus is shown in FIG. FIG. 16 is a block diagram of a conventional digital copying machine.
The digital copying machine 1601 is roughly divided into an image reading unit 1602 for reading and inputting a print image of a document (not shown).
A signal processing unit 1603 that executes various processes on the image data input by the image reading unit 1602;
3 and an image printing unit 1604 that prints out the image data output from the printer 3 on a printing paper (not shown), and has a structure in which these are sequentially connected.

【0003】具体的には,画像読取部1602は,コン
タクトガラス1605下に,主走査方向に細長いライン
光源1606および反射ミラー1607からなる第1走
査ユニット1608と,一対の反射ミラー1609,1
610からなる第2走査ユニット1611とを,速度比
が二対一となるよう副走査方向に移動自在に支持し,結
像光学系1612とCCD(Charge Coupl
ed Device)センサ1613とを順次配置した
構造となっている。
Specifically, the image reading section 1602 has a first scanning unit 1608 consisting of a line light source 1606 elongated in the main scanning direction and a reflection mirror 1607, and a pair of reflection mirrors 1609, 1 under a contact glass 1605.
The second scanning unit 1611 composed of 610 is movably supported in the sub-scanning direction so that the speed ratio becomes 2: 1, and the image forming optical system 1612 and the CCD (Charge Couple).
ed Device) sensor 1613 is sequentially arranged.

【0004】また,信号処理部1603は,画像読取部
1602のCCDセンサ1613と接続されたアンプ1
614に,A/DC(Analog/Digital
Convertor)1615,画像データに各種処理
を実行する画像処理部1616,画像データを一時記憶
するバッファメモリ1617,データ読出の開始タイミ
ングを制御する印刷制御部1618,画像データの基づ
いて画像印刷部1604を駆動制御するLD(Lase
r Diode)変調部1619等を順次接続した構造
となっている。
The signal processing section 1603 includes an amplifier 1 connected to the CCD sensor 1613 of the image reading section 1602.
614, A / DC (Analog / Digital
1616, an image processing unit 1616 that executes various processes on image data, a buffer memory 1617 that temporarily stores the image data, a print control unit 1618 that controls the start timing of data reading, and an image printing unit 1604 based on the image data. LD (Lase for drive control)
r Diode) modulator 1619 and the like are sequentially connected.

【0005】さらに,画像印刷部1604は,信号処理
部1603のLD変調部1619と接続されたLD16
20の出射光路に,コリメータレンズ1621やシリン
ドカルレンズ1622を介して主走査方向に回転自在な
ポリゴンミラー1623の反射面を位置させ,ポリゴン
ミラー1623の主走査方向にfθレンズ1624や反
射ミラー1625を介して副走査方向に回転自在な感光
ドラム1626の被走査面を位置させた構造となってい
る。
Further, the image printing unit 1604 is connected to the LD modulation unit 1619 of the signal processing unit 1603 and the LD 16
A reflecting surface of a polygon mirror 1623 which is rotatable in the main scanning direction via a collimator lens 1621 and a cylindrical lens 1622 is located in the outgoing optical path of 20, and the fθ lens 1624 and the reflecting mirror in the main scanning direction of the polygon mirror 1623. The structure is such that the surface to be scanned of the photosensitive drum 1626 that is rotatable in the sub-scanning direction via 1625 is positioned.

【0006】なお,この画像印刷部1604は,ポリゴ
ンミラー1623の主走査光が感光ドラム1626に入
射する直前の位置にフォトセンサからなる同期検知器1
627が配置されており,この同期検知器1627の出
力端子が信号処理部1603の印刷制御部1618にフ
ィードバック接続されている。
The image printing unit 1604 is provided with a synchronous detector 1 including a photo sensor at a position immediately before the main scanning light of the polygon mirror 1623 enters the photosensitive drum 1626.
627 is arranged, and the output terminal of the synchronization detector 1627 is feedback-connected to the print control unit 1618 of the signal processing unit 1603.

【0007】以上の構成において,デジタル複写機16
01は,原稿から画像データを画像読取部1602で読
み取り入力して画像印刷部1604で印刷用紙に印刷出
力するようになっており,この過程で画像データを信号
処理部1603で一時記憶して画像読取部1602の入
力速度と画像印刷部1604の出力速度とを調停するよ
うになっている。
With the above arrangement, the digital copying machine 16
Reference numeral 01 is for reading and inputting image data from a document by the image reading unit 1602 and printing out on a printing paper by the image printing unit 1604. In this process, the image data is temporarily stored by the signal processing unit 1603 and the image The input speed of the reading unit 1602 and the output speed of the image printing unit 1604 are arbitrated.

【0008】より詳細には,従来のデジタル複写機16
01において,画像読取部1602は,コンタクトガラ
ス1605に載置された原稿の印刷画像を第1走査ユニ
ット1608,第2走査ユニット1611で副走査方向
に読み取り走査し,結像光学系1612でCCDセンサ
1613に結像する。したがって,CCDセンサ161
3は,副走査方向に連続する主走査ラインとしてドット
マトリクスの画像データを1ラインずつ信号処理部16
03に出力する。
More specifically, the conventional digital copying machine 16
In 01, the image reading unit 1602 reads and scans the print image of the document placed on the contact glass 1605 in the sub-scanning direction by the first scanning unit 1608 and the second scanning unit 1611, and the CCD optical sensor 1612 scans the image. An image is formed at 1613. Therefore, the CCD sensor 161
Reference numeral 3 denotes the signal processing unit 16 for each line of the image data of the dot matrix as main scanning lines continuous in the sub-scanning direction.
03 is output.

【0009】この時,CCDセンサ1613は,1ライ
ンの画像データをライン同期信号LSYNCによりアド
レスをリセットしてから所定の画像クロックで主走査方
向に一画像ずつ出力することになり,この画像データ
は,第1走査ユニット1608,第2走査ユニット16
11の走査速度やCCDセンサ1613の読取周期等に
起因した所定のライン周期で信号処理部1603に1ラ
インずつ出力される。
At this time, the CCD sensor 1613 outputs the image data of one line one by one in the main scanning direction at a predetermined image clock after resetting the address by the line synchronization signal LSYNC. , First scanning unit 1608, second scanning unit 16
The signal is output line by line to the signal processing unit 1603 at a predetermined line cycle due to the scanning speed of 11 and the reading cycle of the CCD sensor 1613.

【0010】そこで,信号処理部1603では,1ライ
ンずつ入力される画像データをアンプ1614で増幅し
てA/DC1615でアナログ値からデジタル値に変換
し,画像処理部1616で明度補正処理や変倍処理や編
集処理などの各種処理を実行してからバッファメモリ1
617に入力する。その後,詳細は後述するが,印刷制
御部1618がバッファメモリ1617にタイミング制
御信号を出力するので,このタイミング制御信号にした
がってバッファメモリ1617の画像データが印刷制御
部1618に読み出される。
Therefore, in the signal processing unit 1603, the image data input line by line is amplified by the amplifier 1614 and converted from an analog value to a digital value by the A / DC 1615, and the image processing unit 1616 performs brightness correction processing and scaling. Buffer memory 1 after executing various processing such as processing and editing processing
Input to 617. After that, as will be described in detail later, since the print control unit 1618 outputs a timing control signal to the buffer memory 1617, the image data in the buffer memory 1617 is read by the print control unit 1618 in accordance with this timing control signal.

【0011】そこで,印刷制御部1618は,範囲制限
やパターン合成などの各種処理を実行してから画像デー
タをLD変調部1619に出力するので,LD変調部1
619は,画像データに対応して変調する駆動電流を画
像印刷部1604のLD1620に出力することにな
る。
Therefore, the print control unit 1618 outputs various image data to the LD modulation unit 1619 after performing various processes such as range limitation and pattern composition.
619 outputs a drive current that is modulated according to the image data to the LD 1620 of the image printing unit 1604.

【0012】そして,画像印刷部1604では,画像デ
ータに対応して駆動されるLD1620の出射光をコリ
メータレンズ1621,シリンドカルレンズ1622で
収束してポリゴンミラー1623で偏向走査し,その走
査光をfθレンズ1624で補正して感光ドラム162
6の副走査方向に移動する被走査面に結像する。そこ
で,感光ドラム1626の被走査面にドットマトリクス
の静電潜像が形成されるので,これをトナー(図示せ
ず)で現像して印刷用紙に転写することで画像印刷が実
行される。
In the image printing unit 1604, the light emitted from the LD 1620 driven in accordance with the image data is converged by the collimator lens 1621 and the cylindrical lens 1622, deflected and scanned by the polygon mirror 1623, and the scanning light is scanned. The photosensitive drum 162 is corrected by the fθ lens 1624.
An image is formed on the surface to be scanned 6 which moves in the sub-scanning direction. Therefore, since an electrostatic latent image of a dot matrix is formed on the surface to be scanned of the photosensitive drum 1626, the image is printed by developing it with toner (not shown) and transferring it to a printing paper.

【0013】ここで,画像印刷部1604では,ポリゴ
ンミラー1623の主走査光が感光ドラム1626の直
前に入射する同期検知器1627が同期検知信号DEP
Tを出力するので,これが入力される信号処理部160
3の印刷制御部1618がバッファメモリ1617にタ
イミング制御信号を出力するようになっている。このよ
うにすることで,信号処理部1603のバッファメモリ
1617で一時記憶された画像データは,画像印刷部1
604の印刷出力に適正なタイミングで順次読み出され
ることになる。
Here, in the image printing unit 1604, the synchronization detector 1627, which the main scanning light of the polygon mirror 1623 enters immediately before the photosensitive drum 1626, is synchronized with the synchronization detection signal DEP.
Since T is output, the signal processing unit 160 to which this is input
The print control unit 1618 of No. 3 outputs the timing control signal to the buffer memory 1617. By doing so, the image data temporarily stored in the buffer memory 1617 of the signal processing unit 1603 can be stored in the image printing unit 1.
The printouts of 604 are sequentially read at appropriate timing.

【0014】なお,このようなデジタル複写機1601
は,画像読取部1602から信号処理部1603に画像
データを書き込むことと,信号処理部1603から画像
印刷部1604に画像データを読み出すこととを連続的
に実行するため,信号処理部1603のバッファメモリ
1617を二系統として2ラインの画像データを1ライ
ンずつ別個に入出力できるようにしている。そこで,一
方のバッファメモリ1617に1ラインの画像データを
書き込んでいる時間に,他方のバッファメモリ1617
から事前に書き込まれた1ラインの画像データを読み出
すようにし,このようなデータ読出とデータ書込とを二
系統のバッファメモリ1617で交互に実行するように
なっている。
Incidentally, such a digital copying machine 1601
To continuously write image data from the image reading unit 1602 to the signal processing unit 1603 and read image data from the signal processing unit 1603 to the image printing unit 1604, the buffer memory of the signal processing unit 1603. 1617 has two systems so that two lines of image data can be input and output separately for each line. Therefore, while one line of image data is being written in one buffer memory 1617, the other buffer memory 1617
The image data of one line written in advance is read out, and such data reading and data writing are alternately executed by the two systems of buffer memory 1617.

【0015】ところが,デジタル複写機1601では,
データ書込の切り替えタイミングより以前にデータ読出
が終了すように設定してあるため,データ読出の速度が
データ書込より遅い場合には対応不能であるという不都
合があった。
However, in the digital copying machine 1601,
Since the data reading is set to be completed before the data writing switching timing, there is an inconvenience that it is impossible to cope with the case where the data reading speed is slower than the data writing.

【0016】このため,これを解決した従来のデータ処
理装置として,特開平4−170857号公報に開示さ
れたものがある。特開平4−170857号公報のデー
タ処理装置によれば,バッファメモリを二系統のFIF
O(First In First Out)メモリと
して,データ書込とデータ読出とを非同期に開始して同
一周期で実行できるようにし,データ書込よりデータ読
出が高速となるようにしている。
Therefore, as a conventional data processing device that solves this problem, there is one disclosed in Japanese Patent Laid-Open No. 4-170857. According to the data processing device disclosed in Japanese Patent Laid-Open No. 4-170857, the buffer memory has two systems of FIF.
As an O (First In First Out) memory, data writing and data reading are started asynchronously so that they can be executed in the same cycle, and data reading is faster than data writing.

【0017】このようにすることで,一方のバッファメ
モリにデータ書込とデータ読出とが同時に実行される場
合でも,データ書込よりデータ読出が高速なので書込ア
ドレスが読出アドレスに追い付いたり追い越すようなこ
とがない。
By doing so, even when data writing and data reading are simultaneously performed in one buffer memory, the data reading is faster than the data writing, so that the write address can catch up with or overtake the read address. There is nothing.

【0018】また,バッファメモリへの書込タイミング
と読出タイミングの位相を相対的に可変としたことによ
って,1ライン分の記憶容量を持つ一系統のFIFO
で,バッファメモリを実現できるものも提案されてい
る。
Further, since the phases of the write timing and the read timing to the buffer memory are made relatively variable, one system of FIFO having a storage capacity of one line is provided.
Therefore, a device that can realize a buffer memory has been proposed.

【0019】また,1ライン未満の記憶容量を持つ一系
統のFIFOで,バッファメモリを実現することができ
るものも提案されている。
There is also proposed a system of FIFO having a storage capacity of less than one line, which can realize a buffer memory.

【0020】[0020]

【発明が解決しようとする課題】しかしながら,従来の
FIFOを用いたデータ処理装置によれば,FIFOの
長さは,理論的には1ラインの画像データの長さに書込
クロックと読出クロックの周波数差の比をかけた長さ
に,FIFOの書込と読出に必要なクロック数を足した
長さでよいが,FIFOの記憶容量が1ラインの画像デ
ータに対して短いほど,また,クロックの周波数が離れ
ているほど余裕分が小さくなるため,読出アドレスが書
込アドレスに追い付いてアドレスの逆転が起き,正しく
データ転送ができなくなるという問題点があった。
However, according to the conventional data processing device using the FIFO, the length of the FIFO is theoretically the length of the image data of one line, that is, the write clock and the read clock. The length obtained by multiplying the frequency difference ratio by the number of clocks required for writing and reading of the FIFO may be used. However, the shorter the memory capacity of the FIFO is for one line of image data, the more the clock is used. There is a problem that the read address catches up with the write address and the address inversion occurs, and the data cannot be correctly transferred, because the margin becomes smaller as the frequency is farther away.

【0021】また,書込タイミングと読出タイミングの
位相を変化させる量は,画素密度,紙サイズに応じた値
をソフトウェアにより設定するが,画像入力部の画像遅
延量が大きく変化し,逆転の余裕分を越えた場合には逆
転が起き,正しくデータ転送ができなくなるという問題
点があった。
Further, the amount of changing the phase of the writing timing and the reading timing is set by software in accordance with the pixel density and the paper size, but the image delay amount of the image input section largely changes, and there is a margin of inversion. If the time is exceeded, there will be a problem that reverse rotation will occur and correct data transfer will not be possible.

【0022】また,画素密度,紙サイズが増えた場合に
は,設定値のテーブルを増やしたり,計算で求めること
をしなければならないという問題点があった。
In addition, when the pixel density and the paper size increase, there is a problem that the table of set values must be increased or the calculation must be performed.

【0023】さらに,前記画素密度,紙サイズが増えた
場合の設定を間違えて逆転が起きたとしても,それを検
出する方法がないという問題点があった。
Further, there is a problem that there is no method for detecting the reverse rotation even if the setting is mistaken when the pixel density and the paper size are increased.

【0024】本発明は上記に鑑みてなされたものであっ
て,読出アドレスと書込アドレスとのアドレスの逆転を
検知できるデータ処理装置を提供することを目的とす
る。
The present invention has been made in view of the above, and it is an object of the present invention to provide a data processing device capable of detecting a reverse address of a read address and a write address.

【0025】また,本発明は上記に鑑みてなされたもの
であって,読出アドレスと書込アドレスとのアドレスの
逆転が起きないデータ処理装置を提供することを目的を
する。
Further, the present invention has been made in view of the above, and it is an object of the present invention to provide a data processing device in which a read address and a write address are not reversed.

【0026】[0026]

【課題を解決するための手段】上記の目的を達成するた
めに,請求項1に係るデータ処理装置は,所定周期の書
込クロックで書込アドレスに対応したデータ書込と前記
書込クロックとは独立した所定周期の読出クロックで読
出アドレスに対応したデータ読出とが同時に実行可能な
記憶手段と,前記記憶手段への前記データ書込を書込開
始信号の入力により開始するデータ書込手段と,前記記
憶手段からの前記データ読出を読出開始信号の入力によ
り開始するデータ読出手段と,前記データ読出手段の読
出開始信号と前記データ書込手段の書込開始信号との位
相を相対的に可変する開始信号位相可変手段と,前記記
憶手段に試験的に書き込む試験データを発生する試験書
込データ発生手段と,前記記憶手段から試験的に読み出
したデータを前記試験データと比較し,等しくなければ
エラー信号を発生する比較手段と,を備えたものであ
る。
In order to achieve the above object, a data processor according to a first aspect of the present invention provides a data write corresponding to a write address with a write clock of a predetermined cycle and the write clock. Storage means capable of simultaneously performing data reading corresponding to a read address with a read clock of an independent predetermined cycle; and data writing means for starting the data writing to the storage means by inputting a write start signal. , The data read means for starting the data read from the storage means by inputting a read start signal, and the phases of the read start signal of the data read means and the write start signal of the data write means are relatively variable Start signal phase varying means, test write data generating means for generating test data to be written to the storage means on a trial basis, and data read on a trial basis from the storage means. Compared to experimental data, and includes comparison means for generating an error signal if not equal, a.

【0027】また,請求項2に係るデータ処理装置は,
前記試験書込データ発生手段が,発生する試験データを
1ライン毎に変化させるものである。
A data processing apparatus according to claim 2 is
The test write data generating means changes the generated test data line by line.

【0028】また,請求項3に係るデータ処理装置は,
前記試験書込データ発生手段が,発生する試験データを
前記記憶手段の書込アドレスが0に戻る毎に変化させる
ものである。
A data processing apparatus according to claim 3 is
The test write data generating means changes the generated test data every time the write address of the storage means returns to 0.

【0029】また,請求項4に係るデータ処理装置は,
所定周期の書込クロックで書込アドレスに対応したデー
タ書込と前記書込クロックとは独立した所定周期の読出
クロックで読出アドレスに対応したデータ読出とが同時
に実行可能な記憶手段と,前記記憶手段への前記データ
書込を書込開始信号の入力により開始するデータ書込手
段と,前記記憶手段からの前記データ読出を読出開始信
号の入力により開始するデータ読出手段と,前記データ
読出手段の読出開始信号と前記データ書込手段の書込開
始信号との位相を相対的に可変する開始信号位相可変手
段と,前記記憶手段に試験的に書き込む試験データを発
生する試験書込データ発生手段と,前記記憶手段から試
験的に読み出したデータを前記試験データと比較し等し
くなければエラー信号を発生する比較手段と,を備え,
前記開始信号位相可変手段は,前記比較手段の比較結果
に基づいて,前記位相変更量を変更するものである。
The data processing apparatus according to claim 4 is
Storage means capable of simultaneously executing data writing corresponding to a write address with a write clock of a predetermined cycle and data reading corresponding to a read address with a read clock of a predetermined cycle independent of the write clock; Data writing means for starting the data writing to the means by inputting a write start signal, data reading means for starting the data reading from the storage means by inputting a read start signal, and the data reading means Start signal phase changing means for relatively changing the phases of the read start signal and the write start signal of the data writing means; and test write data generating means for generating test data to be written in the storage means on a trial basis. Comparing the data read out from the storage means on a trial basis with the test data and generating an error signal if they are not equal,
The start signal phase changing means changes the phase change amount based on the comparison result of the comparing means.

【0030】また,請求項5に係るデータ処理装置は,
前記試験書込データ発生手段の動作および前記開始信号
位相可変手段の位相変更を,印字用紙幅または画素密度
の変更時に行うものである。
The data processing apparatus according to claim 5 is
The operation of the test write data generating means and the phase change of the start signal phase changing means are performed when the print paper width or the pixel density is changed.

【0031】また,請求項6に係るデータ処理装置は,
前記開始信号位相可変手段が,前記位相変更量の変化を
除々に行なうとともに,前記比較手段でエラー信号が発
生しなくなるまで位相を変化させ,前記比較手段の比較
結果が等しければ,位相の変化をやめて,前記位相変更
量を決定するものである。
A data processing apparatus according to claim 6 is
The start signal phase changing means gradually changes the phase change amount, changes the phase until no error signal is generated in the comparing means, and changes the phase if the comparison result of the comparing means is equal. The amount of phase change is stopped and determined.

【0032】また,請求項7に係るデータ処理装置は,
前記開始信号位相可変手段が,前記比較手段でエラー信
号の発生するタイミングに応じて,前記位相変化量を決
定するものである。
A data processing device according to claim 7 is
The start signal phase varying means determines the phase change amount according to the timing at which the error signal is generated by the comparing means.

【0033】[0033]

【発明の実施の形態】以下,本発明のデータ処理装置を
デジタル複写機に適用した場合を一例として,図面を参
照して詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION A data processing device of the present invention is applied to a digital copying machine as an example, and will be described in detail with reference to the drawings.

【0034】図1は,本実施例のデジタル複写機の全体
構成図である。本実施例のデジタル複写機は,データ書
込手段としての画像入力部101と,記憶手段としての
FIFOメモリ102と,データ読出手段としての印刷
制御部103と,を備えている。
FIG. 1 is an overall block diagram of the digital copying machine of this embodiment. The digital copying machine of this embodiment includes an image input unit 101 as a data writing unit, a FIFO memory 102 as a storage unit, and a print control unit 103 as a data reading unit.

【0035】さらに,印刷制御部103はLD変調部1
04と接続され,LD変調部104はLD105を変調
駆動する。また,LD105から出射されたレーザビー
ムを検知する同期検知器106は,印刷制御部103と
開始信号位相可変手段としての位相変更回路107とに
接続されており,位相変更回路107は,画像入力部1
01と接続されている。
Further, the print control unit 103 includes the LD modulation unit 1
The LD modulator 104 drives the LD 105 for modulation. A synchronization detector 106 that detects a laser beam emitted from the LD 105 is connected to the print control unit 103 and a phase changing circuit 107 as a start signal phase changing unit, and the phase changing circuit 107 includes an image input unit. 1
01 is connected.

【0036】また,試験書込データ発生手段としてのテ
ストデータ発生回路108がFIFOメモリ102のデ
ータ書込部に,比較手段としてのデータ比較回路109
がFIFOメモリ102のデータ読出部に接続されてお
り,データ比較回路109のエラー信号出力がCPU
(図示せず)に接続されている。
Further, the test data generating circuit 108 as the test writing data generating means is provided in the data writing portion of the FIFO memory 102 and the data comparing circuit 109 as the comparing means.
Is connected to the data reading section of the FIFO memory 102, and the error signal output of the data comparison circuit 109 is the CPU.
(Not shown).

【0037】画像入力部101は,ポリゴンモータ同期
信号XPMSYNCにより,1ラインの画像データの読
み込みおよび画像処理を開始する。そして,所定の処理
時間後に,書込開始信号XLSYNCを発生し,所定周
期の書込クロックWCLKで書込アドレスを順次インク
リメントしてFIFOメモリ102への画像データのデ
ータ書込を開始し,1ラインの画像データをFIFOメ
モリ102へ書き込む。であるから,ポリゴンモータ同
期信号XPMSYNCから書込開始信号XLSYNCの
間には,位相差が存在する。画像処理の処理時間はシス
テムやモードによって異なるので,ポリゴンモータ同期
信号XPMSYNCから書込開始信号XLSYNCの間
の位相差は,システムやモードにより変化し一定しな
い。
The image input section 101 starts reading of image data of one line and image processing in response to the polygon motor synchronization signal XPMSYNC. Then, after a predetermined processing time, a write start signal XLSYNC is generated, the write address is sequentially incremented by a write clock WCLK of a predetermined cycle, data writing of image data to the FIFO memory 102 is started, and one line is started. Image data of the above is written in the FIFO memory 102. Therefore, there is a phase difference between the polygon motor synchronization signal XPMSYNC and the writing start signal XLSYNC. Since the processing time of image processing varies depending on the system and mode, the phase difference between the polygon motor synchronization signal XPMSYNC and the writing start signal XLSYNC changes depending on the system and mode and is not constant.

【0038】FIFOメモリ102は,画像データの主
走査方向の1ライン未満あるいは1ライン以上の記憶容
量を有し,所定周期の書込クロックWCLKで書込アド
レスに対応したデータ書込と,その書込クロックWCL
Kとは独立した所定周期の読出クロックRCLKで読出
アドレスに対応したデータ読出とが同時に実行される。
The FIFO memory 102 has a storage capacity of less than one line or more than one line of the image data in the main scanning direction, and writes data corresponding to the write address by the write clock WCLK of a predetermined cycle and its writing. Embedded clock WCL
Data read corresponding to the read address is simultaneously executed by the read clock RCLK having a predetermined cycle independent of K.

【0039】このFIFOメモリ102は,書込データ
入力端子Din,読出画像データ出力端子Dout,書
込み用および読出し用のイネーブル入力端子XWE,X
RE,リセット入力端子XWRES,XRRES,クロ
ック入力端子WCLK,RCLKがそれぞれ設けられて
いる。なお,各英字の頭のXはアクティブローであるこ
とを表し,各端子の英字名を信号名とする。
This FIFO memory 102 has a write data input terminal Din, a read image data output terminal Dout, write enable and read enable input terminals XWE, X.
RE, reset input terminals XWRES and XRRES, and clock input terminals WCLK and RCLK are provided, respectively. The X at the beginning of each letter represents active low, and the letter name of each terminal is the signal name.

【0040】また,FIFOメモリ102には,書込ア
ドレスポインタと読出アドレスポインタとが内蔵されて
おり,各ポインタは各リセット信号XWRES,XRR
ESにより,ポインタアドレス値が0にリセットされ,
また,各々のイネーブル信号XWE,XREがアクティ
ブな時に,各クロック信号WCLK,RCLKによりポ
インタアドレス値がインクリメントされる。各アドレス
ポインタがFIFOメモリ102の記憶容量に相当する
最終アドレスに達した時点で,それぞれのアドレスポイ
ンタは0に戻り,さらに,順次インクリメントしてい
く。
Further, the FIFO memory 102 has a write address pointer and a read address pointer built therein, and each pointer has a reset signal XWRES, XRR.
ES will reset the pointer address value to 0,
When the enable signals XWE and XRE are active, the pointer address value is incremented by the clock signals WCLK and RCLK. When each address pointer reaches the final address corresponding to the storage capacity of the FIFO memory 102, each address pointer returns to 0 and is further incremented.

【0041】印刷制御部103は,同期検知信号XDE
PTにより作られる読出開始信号XRRESにより,画
像入力部101とは独立した所定周期の読出クロックR
CLKで読出アドレスを順次インクリメントしてFIF
Oメモリ102から画像データのデータ読出を開始す
る。読出開始信号XRRESは,同期検知信号XDEP
Tを整形しただけの信号であるので,同期検知信号XD
EPTと読出開始信号XRRESの間には位相差はほと
んど存在しない。
The print control unit 103 receives the synchronization detection signal XDE
A read start signal XRRES generated by PT causes a read clock R having a predetermined cycle independent of the image input unit 101.
Read address is sequentially incremented by CLK and FIF
Data reading of image data from the O memory 102 is started. The read start signal XRRES is the synchronization detection signal XDEP.
Since it is a signal that only T is shaped, the synchronization detection signal XD
There is almost no phase difference between the EPT and the read start signal XRRES.

【0042】位相変更回路107は,同期検知信号XD
EPTが入力されることにより,その同期検知信号XD
EPTの位相を異なった状態で出力させる。この位相が
異なった信号は,画像入力部101のXPMSYNC端
子に入力される。ここでは,XPMSYNC端子の信号
をポリゴンモータ同期信号XPMSYNCという。
The phase change circuit 107 has a synchronization detection signal XD.
When the EPT is input, its synchronization detection signal XD
The EPT phase is output in different states. The signals having different phases are input to the XPMSSYNC terminal of the image input unit 101. Here, the signal at the terminal XPMSSYNC is referred to as a polygon motor synchronization signal XPMSSYNC.

【0043】ポリゴンモータ同期信号XPMSYNCの
所定の処理時間後には,書込開始信号XLSYNCが発
生する。一方,同期検知信号XDEPTは,印刷制御部
103のXDETP端子に入力される。ここで,同期検
知信号XDEPTは整形されて読出開始信号XRRES
となる。したがって,読出開始信号XRRESは,同期
検知信号XDEPTと同位相であるのに対して,書込開
始信号XLSYNCの位相とは相対的に異なった状態と
なる。この場合,相対的に位相が異なった書込開始信号
XLSYNCと読出開始信号XRRESを用いることに
よってFIFOメモリ102の任意のアドレスに対し
て,画像データの書き込みと読み出しが交互にアクセス
できるように制御される。
The write start signal XLSYNC is generated after a predetermined processing time of the polygon motor synchronization signal XPMSYNC. On the other hand, the synchronization detection signal XDEPT is input to the XDETP terminal of the print control unit 103. Here, the synchronization detection signal XDEPT is shaped so that the read start signal XRRES
Becomes Therefore, the read start signal XRRES has the same phase as the synchronization detection signal XDEPT, but is relatively different from the phase of the write start signal XLSYNC. In this case, by using the write start signal XLSYNC and the read start signal XRRES whose phases are relatively different from each other, it is controlled so that writing and reading of image data can be alternately accessed to an arbitrary address of the FIFO memory 102. It

【0044】つまり,画像入力部101は,入力される
ポリゴンモータ同期信号XPMSYNCの所定の処理時
間後に発生する書込開始信号XLSYNCを書込リセッ
ト信号として画像データをFIFOメモリ102に書き
込み,印刷制御部103は,同期検知パルス信号XDE
PT(以下,同期検知信号XDEPTを同期検知パルス
信号XDEPTと記す)を読出開始信号XRRESとし
てFIFOメモリ102から画像データを読み出すが,
このようなFIFOメモリ102のデータ書込とデータ
読出とは,周期が相違したクロックで独立して実行され
るので,これを無秩序に実行するとデータ書込とデータ
読出のアドレスが交差してエラーを発生することにな
る。
That is, the image input unit 101 writes the image data into the FIFO memory 102 using the write start signal XLSYNC generated after a predetermined processing time of the input polygon motor synchronization signal XPMSYNC as the write reset signal, and the print control unit 101. 103 is a synchronization detection pulse signal XDE
Image data is read from the FIFO memory 102 by using PT (hereinafter, the synchronization detection signal XDEPT is referred to as a synchronization detection pulse signal XDEPT) as a read start signal XRRES.
Since the data writing and the data reading of the FIFO memory 102 are independently performed by the clocks having the different cycles, the chaotic execution of the data causes the addresses of the data writing and the data reading to cross each other, resulting in an error. Will occur.

【0045】画像入力部101は,ここでは画像読取部
110にアンプ111やA/Dコンバータ112を介し
て画像印刷部113を接続したような構造となってお
り,図2に示すように,FIFOメモリ102の書込ク
ロックWCLKとなる入力画素クロックSCLKを発生
するクロック発生回路114を具備している。図2は,
画像入力部101の入出力を示した説明図である。
The image input section 101 has a structure in which an image printing section 113 is connected to the image reading section 110 via an amplifier 111 and an A / D converter 112, and as shown in FIG. A clock generation circuit 114 for generating an input pixel clock SCLK which is a write clock WCLK of the memory 102 is provided. FIG.
5 is an explanatory diagram showing input / output of the image input unit 101. FIG.

【0046】さらに,画像入力部101は,ポリゴンモ
ータ同期信号XPMSYNCの入力端子,FIFOメモ
リ102に書き込む画像データの出力端子,FIFOメ
モリ102の書込のイネーブル信号XWEとなる主走査
有効領域信号XLGATEの出力端子,FIFOメモリ
102の書込リセット信号XWRESとなる書込開始信
号XLSYNCの出力端子等を具備している。
Further, the image input section 101 receives an input terminal for the polygon motor synchronization signal XPMSYNC, an output terminal for image data to be written in the FIFO memory 102, and a main scanning effective area signal XLGATE which is a write enable signal XWE for the FIFO memory 102. It is provided with an output terminal, an output terminal of a write start signal XLSYNC which is a write reset signal XWRES of the FIFO memory 102, and the like.

【0047】印刷制御部103は,FIFOメモリ10
2から読み出す画像データの入力端子,FIFOメモリ
102の読出イネーブル信号XREとなるXRE信号の
出力端子,FIFOメモリ102の読出リセット信号X
RRESとなるXRRES信号の出力端子,FIFOメ
モリ102の読出クロックRCLKとなる出力端子,L
D変調部104を介して画像印刷部113に画像データ
を伝送する出力端子,LD変調部104を介して画像印
刷部113に画像データを伝送する印刷画素クロックP
CLKの出力端子,読出開始信号となる画像印刷部11
3の同期検知パルス信号XDEPTの入力端子等を具備
している。
The print control unit 103 includes a FIFO memory 10
2, an input terminal for image data to be read from 2, an output terminal for an XRE signal serving as a read enable signal XRE for the FIFO memory 102, and a read reset signal X for the FIFO memory 102.
Output terminal of XRRES signal which becomes RRES, output terminal which becomes read clock RCLK of FIFO memory 102, L
An output terminal for transmitting image data to the image printing unit 113 via the D modulation unit 104, and a print pixel clock P for transmitting image data to the image printing unit 113 via the LD modulation unit 104.
CLK output terminal, image printing unit 11 serving as a read start signal
It is provided with an input terminal for the synchronous detection pulse signal XDEPT and the like.

【0048】そこで,このデジタル複写機の各部の詳細
な説明を,その作用とともに以下に順次説明する。図3
は,デジタル複写機の各信号のタイミングを示す説明図
である。まず,デジタル複写機の画像印刷部113で
は,ポリゴンミラー115の回転数は,次式として設定
される。
Therefore, a detailed description of each part of the digital copying machine will be sequentially described below together with its operation. FIG.
FIG. 4 is an explanatory diagram showing the timing of each signal of the digital copying machine. First, in the image printing unit 113 of the digital copying machine, the rotation speed of the polygon mirror 115 is set as the following equation.

【0049】[0049]

【数1】 [Equation 1]

【0050】そこで,このようなポリゴンミラー115
がLD105の出射光を偏向走査して主走査を形成する
が,この出射光は感光ドラム116に入射する直前に同
期検知器106に入射するので,この時の同期検知器1
06は受光に対応して印刷制御部103に同期検知パル
ス信号XDEPTを出力する。つまり,同期検知パルス
信号XDEPTは,画像印刷部113の1ラインの主走
査毎に一回ずつ出力されることになり,その周期は画像
印刷のライン周期と同一である。そこでこのライン周期
は,次式となる。
Therefore, such a polygon mirror 115
Forms a main scan by deflecting and scanning the emitted light of the LD 105. Since this emitted light enters the synchronous detector 106 immediately before entering the photosensitive drum 116, the synchronous detector 1 at this time
Reference numeral 06 outputs a synchronization detection pulse signal XDEPT to the print control unit 103 in response to light reception. That is, the synchronization detection pulse signal XDEPT is output once for each main scan of one line of the image printing unit 113, and its cycle is the same as the line cycle of image printing. Therefore, this line period is given by the following equation.

【0051】[0051]

【数2】 [Equation 2]

【0052】そして,このようなライン周期で画像印刷
部113が出力する同期検知パルス信号XDEPTが,
印刷制御部103に読出開始信号として入力されること
になる。
Then, the synchronization detection pulse signal XDEPT output by the image printing unit 113 in such a line cycle is
The read start signal is input to the print control unit 103.

【0053】そこで,印刷制御部103は,図4に示す
ように,画像印刷部113から同期検知パルス信号XD
EPTが入力されるクロック同期回路117にクロック
発生回路114が接続されており,クロック発生回路1
14が印刷画素クロックPCLKを出力するようになっ
ている。図4は,印刷画素クロックPCLKの出力を示
した説明図である。ここで,印刷画素クロックPCLK
はLD印刷周波数でもあり,次式となる。
Therefore, as shown in FIG. 4, the print control unit 103 sends the sync detection pulse signal XD from the image printing unit 113.
The clock generation circuit 114 is connected to the clock synchronization circuit 117 to which the EPT is input.
14 outputs the print pixel clock PCLK. FIG. 4 is an explanatory diagram showing the output of the print pixel clock PCLK. Here, the print pixel clock PCLK
Is also the LD printing frequency and is given by the following equation.

【0054】[0054]

【数3】 (Equation 3)

【0055】なお,この有効走査期間率は,レーザプリ
ンタの場合は通常70〜80(%)である。そこで,印
刷制御部103では,上述のようにしてクロック発生回
路114が発生する印刷画素クロックPCLKを,クロ
ック同期回路117が同期検知パルス信号XDEPTの
入力タイミングに位相を同期させて出力する。なお,ク
ロック発生回路114は水晶やセラミックの発振器を利
用してもよいが,PLL(Phase Locked
Loop)周波数シンセサイザを利用すれば周波数を可
変できるので,画素密度や線速の変更に対応することが
できる。
The effective scanning period ratio is usually 70 to 80 (%) in the case of a laser printer. Therefore, in the print control unit 103, the clock synchronizing circuit 117 outputs the print pixel clock PCLK generated by the clock generating circuit 114 as described above in synchronization with the input timing of the synchronization detection pulse signal XDEPT. The clock generation circuit 114 may use a crystal or ceramic oscillator, but a PLL (Phase Locked)
Since the frequency can be changed by using a Loop frequency synthesizer, it is possible to deal with a change in pixel density or linear velocity.

【0056】また,図1に示したように,画像印刷部1
13が出力する同期検知パルス信号XDEPTは位相変
更回路107にも入力されるので,この位相変更回路1
07は,同期検知パルス信号XDEPTの周期は変更す
ることなく位相を変更し,ポリゴンモータ同期信号XP
MSYNCとして画像入力部101に出力する。
Further, as shown in FIG. 1, the image printing unit 1
Since the synchronization detection pulse signal XDEPT output by 13 is also input to the phase changing circuit 107, the phase changing circuit 1
07, the phase is changed without changing the cycle of the synchronization detection pulse signal XDEPT, and the polygon motor synchronization signal XP is changed.
It is output to the image input unit 101 as MSYNC.

【0057】ここで,画像入力部101で,クロック発
生回路114が発生する入力画素クロックSCLKの入
力画素周波数が,次式で求められるようになる。
Here, in the image input section 101, the input pixel frequency of the input pixel clock SCLK generated by the clock generation circuit 114 is obtained by the following equation.

【0058】[0058]

【数4】 (Equation 4)

【0059】なお,有効画像率はCCDセンサ118に
存在する無効な素子のために発生する期間から算定され
るが,この無効な期間は全体の数%しか必要ないので,
有効画像率は100(%)に近くなる。そして,画像入
力部101では,入力されるポリゴンモータ同期信号X
PMSYNCを入力画素クロックSCLKに同期させ,
CCDセンサ118にシフトパルスとして出力する。
The effective image rate is calculated from the period generated due to the invalid elements existing in the CCD sensor 118. Since this invalid period requires only a few% of the whole,
The effective image rate is close to 100 (%). Then, in the image input unit 101, the input polygon motor synchronization signal X
Synchronize PMSYNC to the input pixel clock SCLK,
It outputs to CCD sensor 118 as a shift pulse.

【0060】そこで,CCDセンサ118では,内蔵し
たシフトレジスタ(図示せず)がシフトパルスでリセッ
トされ,無効なCCDの画素に連続して有効なCCDの
画像データを順次出力するので,この画像データは画像
入力部101で各種処理を実行されてからFIFOメモ
リ102に書き込まれる。この時画像入力部101で
は,データ伝送が各種処理のために,副走査方向で数ラ
イン,主走査方向で数十から数百ドット遅延するので,
この遅延量に対応して有効な一画素目で主走査有効領域
信号XLGATEがアクティブになる。
Therefore, in the CCD sensor 118, the built-in shift register (not shown) is reset by the shift pulse, and the effective CCD image data is successively output to the invalid CCD pixels. Is executed in the image input unit 101 and then written in the FIFO memory 102. At this time, in the image input unit 101, data transmission is delayed by several lines in the sub-scanning direction and tens to hundreds of dots in the main scanning direction due to various processes.
The main scanning effective area signal XLGATE becomes active at the effective first pixel corresponding to this delay amount.

【0061】なお,この主走査有効領域信号XLGAT
Eは主走査方向の有効画像領域を示し,これがアクティ
ブになる所定のクロック数前に書込開始信号XLSYN
Cが出力される。そこで,上述のようにして画像入力部
101から主走査有効領域信号XLGATEと書込開始
信号XLSYNCとが入力されるFIFOメモリ102
は,画像入力部101の入力画素クロックSCLKを書
込クロックWCLKとして画像データを順次記憶するこ
とになる。
The main scanning effective area signal XLGAT
E indicates an effective image area in the main scanning direction, and the write start signal XLSYN is output a predetermined number of clocks before it becomes active.
C is output. Therefore, as described above, the FIFO memory 102 to which the main scanning effective area signal XLGATE and the write start signal XLSYNC are input from the image input unit 101.
The image data is sequentially stored using the input pixel clock SCLK of the image input unit 101 as the write clock WCLK.

【0062】そこで,印刷制御部103は,上述のよう
にして画像入力部101からFIFOメモリ102に書
き込まれた画像データを読み出してLD変調部104か
ら画像印刷部113に伝送する機能と,FIFOメモリ
102のデータ読出を制御する機能とを具備している。
Therefore, the print control unit 103 has a function of reading the image data written in the FIFO memory 102 from the image input unit 101 as described above and transmitting the image data from the LD modulation unit 104 to the image printing unit 113, and the FIFO memory. And a function of controlling data reading of the data.

【0063】まず,図4に示し前述したように,クロッ
ク発生回路114が発生する印刷画素クロックは,クロ
ック同期回路117で画像印刷部113から入力される
同期検知パルス信号XDEPTの入力タイミングに位相
が同期されてPCLKとなり,XDETPはPCLKと
同期されて所定のパルス幅のXDETP1信号になる。
そこで,クロック同期回路117が出力するXDETP
1信号は,XRRES信号としてFIFOメモリ102
に出力され,このFIFOメモリ102で読出リセット
信号XRRESとなって読出アドレスをリセットするこ
とになる。
First, as shown in FIG. 4 and described above, the print pixel clock generated by the clock generation circuit 114 has a phase at the input timing of the synchronization detection pulse signal XDEPT input from the image printing unit 113 in the clock synchronization circuit 117. Synchronized to become PCLK, and XDETP becomes synchronized with PCLK to become an XDETP1 signal having a predetermined pulse width.
Therefore, XDETP output by the clock synchronization circuit 117
One signal is the XRRES signal, which is the FIFO memory 102.
Is output to the FIFO memory 102 and the read address is reset by the read reset signal XRRES in the FIFO memory 102.

【0064】また,クロック同期回路117が出力する
XDETP1信号は,読出カウンタである主走査カウン
タ119のリセット端子にも出力され,主走査カウンタ
119もリセットすることになる。
The XDETP1 signal output from the clock synchronization circuit 117 is also output to the reset terminal of the main scanning counter 119 which is a read counter, and the main scanning counter 119 is also reset.

【0065】ここで,主走査カウンタ119は,XDE
TP1信号でリセットされてPCLKでインクリメント
されるバイナリーカウンタで,そのカウント値によりレ
ーザビームの主走査位置が判明するようになっている。
そして,主走査カウンタ119は,1ラインの走査中に
オーバーフローしないビット数を具備しており,この時
のビット数は,画像印刷部113が縦送りするA3サイ
ズの印刷用紙に800dpiで画像を印刷するならば1
4ビット必要となる。
Here, the main scanning counter 119 uses the XDE
A binary counter that is reset by the TP1 signal and incremented by PCLK is used to determine the main scanning position of the laser beam from the count value.
The main scanning counter 119 has a bit number that does not overflow during the scanning of one line. At this time, the image printing unit 113 prints an image at 800 dpi on an A3 size printing paper which is vertically fed. If you do 1
4 bits are required.

【0066】そして,主走査カウンタ119には,3個
のコンパレータ120,121,122が接続されてお
り,第1のコンパレータ120は,同期検知のためのL
D105の強制駆動信号を発生するようになっている。
そこで,第1のコンパレータ120には,これに数値を
可変自在に設定する数値設定手段であるCPU123が
I/Fレジスタ124を介して接続されており,主走査
カウンタ119のカウント値AとCPU123で可変自
在にあらかじめ設定された数値Bとを比較し,設定した
数値Bをカウント値Aが超過すると出力がアクティブに
なる。そこで,この出力はBD(Beam Detec
t)信号として論理和手段である論理和ゲート125で
画像データと論理和され,この出力によってLD105
は強制的に発光駆動される。
The main scanning counter 119 is connected with three comparators 120, 121, 122, and the first comparator 120 has an L level for detecting synchronization.
The forced drive signal of D105 is generated.
Therefore, to the first comparator 120, a CPU 123, which is a numerical value setting means for variably setting a numerical value, is connected via the I / F register 124, and the count value A of the main scanning counter 119 and the CPU 123 are connected. The value is variably compared with a preset value B, and when the count value A exceeds the set value B, the output becomes active. Therefore, this output is BD (Beam Detect)
t) signal is logically ORed with the image data by a logical OR gate 125 which is a logical OR means, and this output causes the LD 105
Is forcibly driven to emit light.

【0067】この時,LD105の強制駆動のタイミン
グは,主走査光が有効印刷領域を通過してから次の主走
査光が同期検知器106に到達する以前とする必要があ
り,また,フレアを防止する必要もあるので,通常は同
期検知器106より数(mm)から十数(mm)ほど手
前に設定する。そして,上述のようにして強制的に駆動
されるLD105の主走査光が同期検知器106に入射
すると,同期検知器106が出力する同期検知パルス信
号XDEPTがアクティブとなって主走査カウンタ11
9がリセットされる。そこで,主走査カウンタ119が
リセットされるとカウントを再開するので,このカウン
トは画像印刷部113のライン周期毎に繰り返されるこ
とになる。
At this time, the timing of forced driving of the LD 105 must be set after the main scanning light passes through the effective printing area and before the next main scanning light reaches the synchronous detector 106. Since it is necessary to prevent it, it is usually set several (mm) to ten and several (mm) before the sync detector 106. When the main scanning light of the LD 105 that is forcibly driven as described above enters the synchronization detector 106, the synchronization detection pulse signal XDEPT output from the synchronization detector 106 becomes active and the main scanning counter 11
9 is reset. Therefore, when the main scanning counter 119 is reset, the counting is restarted, and this counting is repeated every line cycle of the image printing unit 113.

【0068】また,第2のコンパレータ121は,画像
データの印刷タイミングと有効印刷領域とを規定するた
めに設けられており,CPU123であらかじめ可変自
在に設定される2つの数値C,D(C<D)と主走査カ
ウンタ119のカウント値Aとを比較する。そして,カ
ウント値Aが設定した数値Cを超過すると,出力信号X
RGATEがアクティブになり,また,カウント値Aが
設定した数値Dを超過すると出力信号XRGATEがネ
ガティブとなる。この出力信号XRGATEは反転信号
であり,この反転とFIFOメモリ102から読み出さ
れる画像データとを論理積ゲート126で論理積するこ
とで,画像データが選択的にマスクされて有効印刷領域
より外方の位置の画像データは遮断される。また,出力
信号XRGATEは,XREF信号としてFIFOメモ
リ102に出力され,このFIFOメモリ102で読出
イネーブル信号XREとなって読出動作をイネーブルす
ることになる。つまり,設定した数値Cにより画像デー
タの主走査の開始位置が決定され,設定した数値Dによ
り主走査の終了位置が決定されるので,これらの数値は
印刷用紙の横幅や搬送位置により変更され,機械誤差の
調整にも利用される。
The second comparator 121 is provided for defining the print timing of the image data and the effective print area, and has two numerical values C and D (C <C <which are variably set by the CPU 123 in advance. D) is compared with the count value A of the main scanning counter 119. When the count value A exceeds the set numerical value C, the output signal X
When RGATE becomes active and the count value A exceeds the set numerical value D, the output signal XRGATE becomes negative. This output signal XRGATE is an inversion signal, and the inversion and the image data read from the FIFO memory 102 are logically ANDed by the AND gate 126 so that the image data is selectively masked and is located outside the effective print area. Positional image data is blocked. Further, the output signal XRGATE is output to the FIFO memory 102 as an XREF signal, and this FIFO memory 102 becomes a read enable signal XRE to enable the read operation. That is, since the set position of the image data determines the start position of the main scan of the image data and the set value of D determines the end position of the main scan, these values are changed according to the width of the printing paper and the conveyance position. It is also used to adjust the mechanical error.

【0069】さらに,第3のコンパレータ122は,C
PU123で可変自在にあらかじめ設定される数値Eと
主走査カウンタ119のカウント値Aとを比較し,これ
が一致するとパルス信号を発生し,書込開始信号である
ポリゴンミラー同期パルス信号XPMSYNCとして画
像入力部101に入力される。
Further, the third comparator 122 has a C
The numerical value E variably set by the PU 123 is compared with the count value A of the main scanning counter 119, and if they match, a pulse signal is generated, and the image input unit outputs the polygon mirror synchronization pulse signal XPMSYNC as a writing start signal. 101 is input.

【0070】なお,上述のようなコンパレータ120,
121,122の設定した数値B,C,D,EはCPU
123で可変自在に設定することができる。
The comparator 120 as described above,
Numerical values B, C, D and E set by 121 and 122 are CPUs
It can be variably set by 123.

【0071】テストデータ発生回路108は,FIFO
メモリ102のデータ書込部に接続され,書込開始信号
XLSYNC,主走査有効領域信号XLGATE,書込
クロックWCLKが入力される。テストデータ発生回路
108では,主走査有効領域信号XLGATEがアクテ
ィブな期間,試験データを発生し,試験データは,FI
FOメモリ102の書込データ入力端子Dinに出力さ
れる。
The test data generation circuit 108 is a FIFO
It is connected to the data writing section of the memory 102, and the write start signal XLSYNC, the main scanning effective area signal XLGATE, and the write clock WCLK are input. The test data generation circuit 108 generates test data while the main scanning effective area signal XLGATE is active, and the test data is FI.
It is output to the write data input terminal Din of the FO memory 102.

【0072】なお,試験データは,多ビットのデータで
もよいが,後述するようなデータの場合,1ビットのデ
ータでもよい。その場合,FIFOメモリ102の書込
データ入力端子Dinの1ビットのみを接続する。
The test data may be multi-bit data, but may be 1-bit data in the case of data described later. In that case, only one bit of the write data input terminal Din of the FIFO memory 102 is connected.

【0073】データ比較回路109は,FIFOメモリ
102のデータ読出部に接続され,読出開始信号XRR
ES,読出イネーブル信号XRE,読出クロックRCL
K,FIFOメモリ102の読出画像データ出力端子D
outから出力される読出データが入力される。
The data comparison circuit 109 is connected to the data read section of the FIFO memory 102, and has a read start signal XRR.
ES, read enable signal XRE, read clock RCL
Read image data output terminal D of K, FIFO memory 102
The read data output from out is input.

【0074】データ比較回路109では,読出イネーブ
ル信号XREがアクティブな期間,FIFOメモリ10
2の読出画像データ出力端子Doutから出力される読
出データを,期待値と比較し,一致しなければエラー信
号を発生する。FIFOメモリ102の読出画像データ
出力端子Doutからデータ比較回路109に接続され
るデータのビットは,試験データのビットと同じビット
である。エラー信号はCPU(図示せず)に接続され,
CPUはデータ転送が正しく行えるかどうかを検知する
ことができる。
In the data comparison circuit 109, the FIFO memory 10 is activated while the read enable signal XRE is active.
The read data output from the second read image data output terminal Dout is compared with the expected value, and if they do not match, an error signal is generated. The bits of the data connected from the read image data output terminal Dout of the FIFO memory 102 to the data comparison circuit 109 are the same as the bits of the test data. The error signal is connected to the CPU (not shown),
The CPU can detect whether the data transfer can be performed correctly.

【0075】図5にデータ比較回路109の一実施例を
示す。読出開始信号XRRES,読出イネーブル信号X
RE,読出クロックRCLKが接続されている第2のテ
ストデータ発生回路128は,書込開始信号XLSYN
C,主走査有効領域信号XLGATE,書込クロックW
CLKが接続される前述のテストデータ発生回路108
と同じもので,読出側の制御信号のタイミングで,前述
のテストデータ発生回路108が書込側の制御信号のタ
イミングで出力するのと同じテストデータを期待値とし
て出力する。この期待値はコンパレータ129に接続さ
れる。
FIG. 5 shows an embodiment of the data comparison circuit 109. Read start signal XRRES, read enable signal X
The second test data generation circuit 128, to which RE and the read clock RCLK are connected, receives the write start signal XLSYN.
C, main scanning effective area signal XLGATE, write clock W
The above-mentioned test data generation circuit 108 to which CLK is connected
The same test data as that output by the test data generating circuit 108 at the timing of the control signal on the reading side is output as the expected value. This expected value is connected to the comparator 129.

【0076】一方,FIFOメモリ102から読み出さ
れたデータもコンパレータ129に接続され,前述の期
待値と比較され,一致しなければ不一致信号を出力す
る。不一致信号はアンドゲート137に入力され,アン
ドゲート137の他方の入力には,読出イネーブル信号
XREをインバータ138で反転した信号が接続され,
読出イネーブル信号XREがアクティブな期間のみ,ア
ンドゲート130から不一致信号が出力される。
On the other hand, the data read from the FIFO memory 102 is also connected to the comparator 129 and compared with the above-mentioned expected value. If they do not match, a mismatch signal is output. The mismatch signal is input to the AND gate 137, and a signal obtained by inverting the read enable signal XRE by the inverter 138 is connected to the other input of the AND gate 137,
The mismatch signal is output from the AND gate 130 only while the read enable signal XRE is active.

【0077】この出力信号は,オアゲート131とDフ
リップフロップ132により構成されるラッチ回路(図
示せず)に入力され,エラー信号として出力される。エ
ラー信号はCPU(図示せず)に接続され,CPUはデ
ータ転送が正しく行えるか否かを検知するとができる。
またDフリップフロップ132のリセット端子にはCP
Uからのリセット信号が接続され,エラー信号の解除が
できるようになっている。
This output signal is input to a latch circuit (not shown) composed of an OR gate 131 and a D flip-flop 132 and output as an error signal. The error signal is connected to the CPU (not shown), and the CPU can detect whether the data transfer can be performed correctly.
Also, CP is connected to the reset terminal of the D flip-flop 132.
The reset signal from U is connected and the error signal can be released.

【0078】FIFOメモリ102の記憶容量が,1ラ
イン以上ある場合は,非常に簡単な方法で本発明が実現
できる。画像印刷部113が縦送りするA3サイズの印
刷用紙に400dpiで画像を印刷する場合で,約5k
ワードのライン長のFIFOメモリ102を用いた場合
について,図6〜9を用いて説明する。この場合の有効
印刷画素数は次式で求められ4677になる。
When the storage capacity of the FIFO memory 102 is one line or more, the present invention can be realized by a very simple method. Approximately 5k when printing an image at 400 dpi on A3 size printing paper that the image printing unit 113 feeds vertically
A case where the FIFO memory 102 having a word line length is used will be described with reference to FIGS. The number of effective print pixels in this case is calculated by the following equation and is 4677.

【0079】[0079]

【数5】 (Equation 5)

【0080】一方,5kワードのFIFOメモリ102
のワード数が5048ドットであるとすれば,FIFO
メモリ102は有効印刷画素数以上あることになる。
On the other hand, a 5 kword FIFO memory 102
If the number of words is 5048 dots, the FIFO
The memory 102 has more than the number of effective print pixels.

【0081】図6はそのテストデータ発生回路108の
一実施例である。JKフリップフロップ133のJ入力
とK入力はハイレベルに固定されている。出力端子Qは
FIFOメモリ102の書込データ入力端子Dinの1
ビットに接続される。JKフリップフロップ133は,
クロック入力端子Cに接続された書込開始信号XLSY
NCによりトグル動作をする。そして,1ラインおきに
0と1が交互にFIFOメモリ102に書き込まれる。
1ライン中にはデータの変化はない。
FIG. 6 shows an embodiment of the test data generating circuit 108. The J and K inputs of the JK flip-flop 133 are fixed to high level. The output terminal Q is 1 of the write data input terminal Din of the FIFO memory 102.
Connected to a bit. The JK flip-flop 133 is
Write start signal XLSY connected to clock input terminal C
Toggle operation by NC. Then, 0s and 1s are alternately written into the FIFO memory 102 every other line.
There is no change in data within one line.

【0082】図7は,データ比較回路109の一実施例
である。FIFOメモリ102の読出画像データ出力端
子Doutの1ビットは,第1のDフリップフロップ1
34のD入力端子とエクスクルーシブオア(排他的論理
和)135に入力され,前述のテストデータ発生回路1
08によりFIFOメモリ102に書き込まれたデータ
が読み出される。
FIG. 7 shows an embodiment of the data comparison circuit 109. 1 bit of the read image data output terminal Dout of the FIFO memory 102 is the first D flip-flop 1
The D input terminal of 34 and the exclusive OR (exclusive OR) 135 are input to the test data generating circuit 1 described above.
At 08, the data written in the FIFO memory 102 is read.

【0083】第1のDフリップフロップ134のクロッ
ク入力端子Cには,読出クロックRCLKが接続される
ので,第1のDフリップフロップ134の出力に1画素
遅れたデータが出力される。その出力はエクスクルーシ
ブオア135の入力端子に入力されるので,主走査方向
に隣接する画素が異なる場合にエクスクルーシブオア1
35の出力はハイになる。
Since the read clock RCLK is connected to the clock input terminal C of the first D flip-flop 134, the data delayed by one pixel is output from the output of the first D flip-flop 134. Since the output is input to the input terminal of the exclusive OR 135, when the adjacent pixels in the main scanning direction are different, the exclusive OR 1
The output of 35 goes high.

【0084】すなわち,FIFOメモリ102の読出デ
ータが0か1,あるいは1から0に変化すると信号がア
クティブになる。これが,前述の不一致信号となる。第
2のDフリップフロップ136のD入力端子には読出イ
ネーブル信号XREが接続され,クロック入力端子Cに
は,読出クロックRCLKが接続されるので,第2のD
フリップフロップ136のXQ出力端子は読出イネーブ
ル信号XREが1画素遅れて反転して出力される。
That is, when the read data of the FIFO memory 102 changes from 0 or 1, or from 1 to 0, the signal becomes active. This becomes the above-mentioned mismatch signal. Since the read enable signal XRE is connected to the D input terminal of the second D flip-flop 136 and the read clock RCLK is connected to the clock input terminal C, the second D flip-flop 136 is connected.
The read enable signal XRE is inverted and output from the XQ output terminal of the flip-flop 136 with a delay of one pixel.

【0085】この出力とエクスクルーシブオア135の
出力はアンドゲート137に入力され,読出イネーブル
信号XREがアクティブな期間のみ,アンドゲート13
7から不一致信号が出力される。
This output and the output of the exclusive OR 135 are input to the AND gate 137, and the AND gate 13 is operated only while the read enable signal XRE is active.
An inconsistency signal is output from 7.

【0086】FIFOメモリ102に書き込んだテスト
データは1ライン中に変化しないので,不一致信号がア
クティブになったということは,FIFOメモリ102
からデータを正しく読めなかったことになる。その出力
信号は,オアゲート139とDフリップフロップ140
により構成されるラッチ回路に入力され,エラー信号と
して出力される。
Since the test data written in the FIFO memory 102 does not change during one line, it means that the mismatch signal becomes active.
Therefore, the data could not be read correctly. The output signal is OR gate 139 and D flip-flop 140.
Is input to the latch circuit configured by and is output as an error signal.

【0087】エラー信号はCPU(図示せず)に接続さ
れ,CPUはデータ転送が正しく行えるか否かを検知す
ることができる。Dフリップフロップ140のリセット
端子にはCPUからのリセット信号が接続され,エラー
信号の解除ができるようになっている。また,エラー信
号は第3のDフリップフロップ141のクロック入力端
子Cに入力される。第3のDフリップフロップ141の
入力端子Dには,主走査カウンタ119の出力が接続さ
れており,エラー信号がアクティブになるタイミングで
主走査カウンタ119の値をラッチする。第3のDフリ
ップフロップ141の出力をCPUが読める構成にする
ことにより,CPUはエラーの起きた主走査位置を知る
ことができる。主走査位置が分かるということは,FI
FOメモリ102のアドレスも容易に知ることができ
る。この値により,位相変化量を制御することも可能で
ある。
The error signal is connected to the CPU (not shown), and the CPU can detect whether the data transfer can be performed correctly. A reset signal from the CPU is connected to the reset terminal of the D flip-flop 140 so that the error signal can be released. The error signal is also input to the clock input terminal C of the third D flip-flop 141. The output of the main scanning counter 119 is connected to the input terminal D of the third D flip-flop 141, and the value of the main scanning counter 119 is latched at the timing when the error signal becomes active. By making the output of the third D flip-flop 141 readable by the CPU, the CPU can know the main scanning position where the error occurred. Knowing the main scanning position means that FI
The address of the FO memory 102 can be easily known. It is also possible to control the amount of phase change with this value.

【0088】ここで,FIFOメモリ102の画像デー
タのアドレスを縦軸として画像印刷部113の画像印刷
の主走査位置を横軸としたグラフをタイムチャートと共
に特性図として図8および図9に例示する。なお,これ
らのグラフでは,破線はFIFOメモリ102に書き込
む画像データの書込アドレスを意味しており,実線はF
IFOメモリ102から読み出す画像データの読出アド
レスを意味している。また,これらのグラフは,最大サ
イズの印刷用紙の場合を示している。さらに,これらの
グラフは,データ書込の書込クロックWCLKの周波数
が,データ読出の読出クロックRCLKの周波数よりも
低い場合を例示しているが,データ書込の書込クロック
WCLKの周波数が,データ読出の読出クロックRCL
Kの周波数よりも高い場合も同じ構成で実現できる。
Here, a graph in which the vertical axis is the address of the image data in the FIFO memory 102 and the horizontal axis is the main scanning position of the image printing of the image printing unit 113 is shown in FIGS. . In these graphs, the broken line means the write address of the image data to be written in the FIFO memory 102, and the solid line shows F.
The read address of the image data read from the IFO memory 102 is meant. Further, these graphs show the case of the maximum size printing paper. Further, although these graphs exemplify the case where the frequency of the write clock WCLK for data writing is lower than the frequency of the read clock RCLK for data reading, the frequency of the write clock WCLK for data writing is Read clock RCL for data read
Even if the frequency is higher than K, the same configuration can be used.

【0089】そこで,印刷制御部103がFIFOメモ
リ102から1ラインの画像データを読み出す場合は,
最初に読出リセット信号XRRESで読出アドレスをリ
セットしてから,読出イネーブル信号XREがアクティ
ブな状態で読出クロックRCLKにしたがって読出アド
レスで画像データを読み出し,この読出動作を実行する
毎に読出アドレスをインクリメントする。そして,読出
イネーブル信号XREがアクティブな期間,読出アドレ
スポインタはインクリメントする。A3サイズの短辺の
400dpiに対応する画素数である4677画素を読
み出すこの例の場合,読出アドレスポインタが4677
に達するまでインクリメントされる。
Therefore, when the print control unit 103 reads one line of image data from the FIFO memory 102,
First, the read address is reset by the read reset signal XRRES, then image data is read at the read address according to the read clock RCLK while the read enable signal XRE is active, and the read address is incremented every time this read operation is executed. . Then, the read address pointer is incremented while the read enable signal XRE is active. In the case of reading 4677 pixels, which is the number of pixels corresponding to 400 dpi on the short side of A3 size, in this example, the read address pointer is 4677.
Is incremented until is reached.

【0090】ここで,読出イネーブル信号XREは,印
刷用紙の主走査方向幅に対応して開始と終了とのタイミ
ングが制御されるので,印刷用紙が最大サイズの場合に
は,図8および図9に示すように,有効走査期間の最初
にアクティブとなって最後にネガティブとなる。また,
印刷用紙が小サイズの場合には,主走査動作と感光ドラ
ム116との中央が一致するようアクティブとネガティ
ブとのタイミングが調整される。したがって,印刷用紙
が小サイズの場合には,読み出す画像の画素数が少なく
なるので読出イネーブル信号XREのアクティブな時間
は短くなる。
Here, the read enable signal XRE controls the start and end timings corresponding to the width of the printing paper in the main scanning direction. Therefore, when the printing paper has the maximum size, the read enable signal XRE shown in FIGS. As shown in, the signal becomes active at the beginning of the effective scanning period and becomes negative at the end. Also,
When the printing paper is small in size, the timings of active and negative are adjusted so that the main scanning operation and the center of the photosensitive drum 116 coincide with each other. Therefore, when the printing paper has a small size, the number of pixels of the image to be read is small, and the active time of the read enable signal XRE is short.

【0091】一方,FIFOメモリ102に1ラインの
画像データを書き込む場合は,書込アドレスは,同期検
知パルス信号XDEPTを遅延して作られた書込リセッ
ト信号XWRESにより書込アドレスがリセットされて
から,書込イネーブル信号XWEがアクティブな状態で
書込クロックWCLKにしたがってFIFOメモリ10
2に画像データが書き込まれ,この書込動作を実行する
毎に書込アドレスがインクリメントされる。そして,書
込イネーブル信号XWEがアクティブな期間,書込アド
レスポインタはインクリメントする。A3サイズの短辺
の400dpiに対応する画素数である4677画素を
書き込むこの例の場合,書込アドレスポインタが467
7に達するまでのインクリメントされる。
On the other hand, when writing one line of image data in the FIFO memory 102, the write address is set after the write address is reset by the write reset signal XWRES generated by delaying the sync detection pulse signal XDEPT. , The FIFO memory 10 according to the write clock WCLK while the write enable signal XWE is active.
Image data is written in No. 2, and the write address is incremented every time this write operation is executed. Then, the write address pointer is incremented while the write enable signal XWE is active. In the case of writing 4677 pixels, which is the number of pixels corresponding to 400 dpi on the short side of A3 size, in this example, the write address pointer is 467.
It is incremented until it reaches 7.

【0092】ここで,書込イネーブル信号XWEは,読
出イネーブル信号XREと同様に印刷用紙の主走査方向
幅に対応した期間アクティブになる。印刷用紙が大サイ
ズの場合には,書き込む画像データの画素数が多くなる
ので,書込イネーブル信号XWEのアクティブ期間は長
くなり,印刷用紙が小サイズの場合には,読み出す画像
の画素数が少なくなるので,書込イネーブル信号XWE
のアクティブな時間は短くなる。
Here, the write enable signal XWE is active for a period corresponding to the width of the printing paper in the main scanning direction, like the read enable signal XRE. When the printing paper is large size, the number of pixels of the image data to be written increases, so the active period of the write enable signal XWE becomes long, and when the printing paper is small size, the number of pixels of the image to be read out is small. Therefore, the write enable signal XWE
Will have less active time.

【0093】上述のようなFIFOメモリ102のデー
タ書込とデータ読出とをアドレスで表現すると図8およ
び図9のグラフとなる。これらの例示したグラフでは,
書込クロックWCLKの周波数が最低で画像入力部10
1の有効画像が100(%)に近い場合となっているの
で,破線として例示するように,書込アドレスの図示の
傾斜が最も緩慢となっている。つまり,この書込アドレ
スの傾斜は書込周波数fwと読出周波数frとの比率で
決定されるので,例えば,書込周波数fwが高くなるに
したがい書込アドレスの傾斜は順次増大する。
When the data writing and data reading of the FIFO memory 102 as described above are expressed by addresses, the graphs of FIGS. 8 and 9 are obtained. In these illustrated graphs,
When the frequency of the write clock WCLK is the lowest, the image input unit 10
Since the effective image of No. 1 is close to 100 (%), the illustrated inclination of the write address is the slowest, as illustrated by the broken line. That is, since the slope of the write address is determined by the ratio of the write frequency fw and the read frequency fr, for example, the slope of the write address gradually increases as the write frequency fw increases.

【0094】図8および図9のグラフにおいて,FIF
Oメモリ102の書込動作を示す破線と読出動作を示す
実線が交差することがないようにすれば,同時に独立し
て実行するデータ書込とデータ読出とが干渉しないこと
になる。
In the graphs of FIGS. 8 and 9, the FIF
If the broken line indicating the write operation of the O memory 102 and the solid line indicating the read operation do not intersect with each other, data writing and data reading that are independently executed at the same time do not interfere with each other.

【0095】図8は,位相変化量がほとんどない場合
で,書込動作を示す破線と読出動作を示す実線が交差し
ている。前述のように,書込テストデータは書込リセッ
ト信号XWRESでトグルしている。この図の場合,左
側の書込サイクルでは1ラインにわたって0を,右側の
書込サイクルでは1ラインから1を書き込んでいる。こ
の図の範囲外になるのがさらに前の書込サイクルでは1
を1ライン書き込んでいる。書込動作と読出動作の交差
する前は,書込動作が読出動作に先行しているので,0
が読め,書込動作と読出動作が交差した後では,読出動
作が書込動作に先行しているので,前のラインのデー
タ,1が読める。
FIG. 8 shows a case where there is almost no phase change, and the broken line indicating the write operation and the solid line indicating the read operation intersect. As described above, the write test data is toggled by the write reset signal XWRES. In the case of this figure, 0 is written over 1 line in the left write cycle, and 1 is written from 1 line in the right write cycle. It is 1 in the previous write cycle that is out of the range of this figure.
Is writing 1 line. Before the write operation and the read operation intersect, the write operation precedes the read operation.
After the read operation and the write operation and the read operation intersect, the read operation precedes the write operation, so that the data 1 of the previous line can be read.

【0096】すなわち,読出データが1ラインの読出サ
イクルの中で変化する。そこでエラー信号がアクティブ
になるので,CPUはFIFOメモリ102によるデー
タ転送がエラーを起こしたことを検知することができ
る。また,前述のように,エラーの起きた主走査位置を
知ることできるので,この値により,位相変化量を制御
することも可能である。
That is, the read data changes in the read cycle of one line. Then, since the error signal becomes active, the CPU can detect that the data transfer by the FIFO memory 102 has caused an error. Further, as described above, since the main scanning position where the error has occurred can be known, it is also possible to control the phase change amount by this value.

【0097】図9は,位相変更回路107により,位相
を変化させて,書込動作を示す破線と読出動作を示す実
線が交差しないようにした場合のタイムチャートであ
る。書込側の制御は図8と同様である。書込動作と読出
動作が交差せず読出動作が書込動作に先行しているの
で,図の左側の読出サイクルでは,前のラインのデー
タ,1が1ラインの読出期間にわたって読める。すなわ
ち読出データが1ラインの読出サイクルの中で変化しな
い。そこでエラー信号はネガティブなままなので,CP
UはFIFOメモリ102によるデータ転送が正しく行
われたことを検知することができる。
FIG. 9 is a time chart when the phase is changed by the phase change circuit 107 so that the broken line showing the write operation and the solid line showing the read operation do not intersect. The control on the writing side is the same as in FIG. Since the write operation and the read operation do not intersect and the read operation precedes the write operation, in the read cycle on the left side of the figure, the data 1 of the previous line can be read over the read period of one line. That is, the read data does not change in the read cycle of one line. Therefore, the error signal remains negative, so CP
U can detect that the data transfer by the FIFO memory 102 has been performed correctly.

【0098】次に,画像印刷部113が縦送りするA3
サイズの印刷用紙に800dpiで画像を印刷する場合
で,約5kワードのライン長のFIFOメモリ102を
用いた場合について,グラフおよびタイムチャートを用
いて説明する。この場合の有効印刷画素数は次式で求め
られ9354になる。
Next, the image printing unit 113 feeds A3 vertically.
A case of printing an image at 800 dpi on a printing paper of a size and using the FIFO memory 102 having a line length of about 5 k words will be described with reference to graphs and time charts. In this case, the number of effective print pixels is calculated by the following equation and becomes 9354.

【0099】[0099]

【数6】 (Equation 6)

【0100】一方,5kワードのFIFOメモリ102
のワード数が5048ドットであるとすると,FIFO
メモリ102は有効印刷画素数の1/2強のライン長し
か持たないことになる。
On the other hand, a 5 kword FIFO memory 102
If the number of words is 5048 dots, the FIFO
The memory 102 has a line length which is a little more than ½ of the number of effective print pixels.

【0101】ここで,FIFOメモリ102の画像デー
タのアドレスを縦軸として画像印刷部113の画像印刷
の主走査位置を横軸としたグラフをタイムチャートと共
に特性図として図10および図11に例示する。なお,
これらのグラフの横軸の1周期Tは,画像印刷部113
のライン周期に相当し,これは副走査方向の画素密度と
線速とで決定される。また,これらのグラフの縦軸の最
大値APmaxはFIFOメモリ102のワード数,す
なわちアドレスポインタの最大値で決定される。アドレ
スポインタの最大値は,ワード数が5048のFIFO
メモリ102を使用したこの例では5047になる。
10 and 11 are graphs with the time axis of the address of the image data in the FIFO memory 102 as the vertical axis and the horizontal axis of the main scanning position of the image printing of the image printing unit 113 as characteristic charts together with the time chart. . In addition,
The one cycle T on the horizontal axis of these graphs indicates that
Corresponds to the line period of the line, and is determined by the pixel density in the sub-scanning direction and the line speed. The maximum value APmax on the vertical axis of these graphs is determined by the number of words in the FIFO memory 102, that is, the maximum value of the address pointer. The maximum value of the address pointer is a FIFO with 5048 words.
In this example using the memory 102, the number is 5047.

【0102】なお,これらのグラフでは,破線はFIF
Oメモリ102に書き込む画像データの書込アドレスを
意味しており,実線はFIFOメモリ102から読み出
す画像データの読出アドレスを意味している。また,こ
れらのグラフは,最大サイズの印刷用紙の場合を示して
いる。さらに,図10のグラフは,データ書込の書込ク
ロックWCLKの周波数が,データ読出の読出クロック
RCLKの周波数よりも低い場合を例示しており,図1
1のグラフは,データ書込の書込クロックWCLKの周
波数が,データ読出の読出クロックRCLKの周波数よ
りも高い場合を例示している。
In these graphs, the broken line indicates FIF.
This means the write address of the image data to be written in the O memory 102, and the solid line means the read address of the image data read from the FIFO memory 102. Further, these graphs show the case of the maximum size printing paper. Further, the graph of FIG. 10 exemplifies a case where the frequency of the write clock WCLK for data writing is lower than the frequency of the read clock RCLK for data reading.
The graph of 1 illustrates the case where the frequency of the write clock WCLK for data writing is higher than the frequency of the read clock RCLK for data reading.

【0103】そこで,印刷制御部103がFIFOメモ
リ102からnライン目の画像データを読み出す場合
は,最初に読出リセット信号XRRESで読出アドレス
をリセットしてから,読出イネーブル信号XREがアク
ティブな状態で読出クロックRCLKにしたがって読出
アドレスで画像データを読み出し,この読出動作を実行
する毎に読出アドレスをインクリメントする。そして,
読出アドレスがFIFOメモリ102の読出アドレスポ
インタの最大値に達すると,この例の場合,読出アドレ
スが5047になった次の読出クロックRCLKで,読
出アドレスポインタは“0”に復帰し,さらにインクリ
メントを続ける。そして,読出イネーブル信号XREが
アクティブな期間,読出アドレスポインタはインクリメ
ントする。A3サイズの短辺の800dpiに対応する
画素数である9354画素を読み出すこの例の場合,読
出アドレスポインタが4305に達するまでインクリメ
ントされる。
Therefore, when the print control unit 103 reads the image data of the nth line from the FIFO memory 102, the read address is first reset by the read reset signal XRRES, and then the read enable signal XRE is read in the active state. The image data is read at the read address according to the clock RCLK, and the read address is incremented each time the read operation is executed. And
When the read address reaches the maximum value of the read address pointer of the FIFO memory 102, in this example, at the next read clock RCLK when the read address becomes 5047, the read address pointer returns to "0" and further increment. to continue. Then, the read address pointer is incremented while the read enable signal XRE is active. In the case of reading 9354 pixels, which is the number of pixels corresponding to 800 dpi on the short side of A3 size, in this example, the read address pointer is incremented until it reaches 4305.

【0104】ここで,読出イネーブル信号XREは,印
刷用紙の主走査方向幅に対応して開始と終了とのタイミ
ングが制御されるので,印刷用紙が最大サイズの場合に
は,図10および図11に示すように,有効走査期間の
最初にアクティブとなって最後にネガティブとなる。ま
た,印刷用紙が小サイズの場合には,主走査動作と感光
ドラム142との中央が一致するようアクティブとネガ
ティブとのタイミングが調整される。したがって,印刷
用紙が小サイズの場合には,読み出す画像の画素数が少
なくなるので,読出イネーブル信号XREのアクティブ
な時間は短くなる。
Here, the read enable signal XRE controls the start and end timings corresponding to the width of the print sheet in the main scanning direction. Therefore, when the print sheet has the maximum size, the read enable signal XRE shown in FIGS. As shown in, the signal becomes active at the beginning of the effective scanning period and becomes negative at the end. When the printing paper is small, the timings of active and negative are adjusted so that the main scanning operation and the center of the photosensitive drum 142 coincide with each other. Therefore, when the printing paper has a small size, the number of pixels of the image to be read is small, and the active time of the read enable signal XRE is short.

【0105】一方,FIFOメモリ102にnライン目
の画像データを書き込む場合は,書込アドレスは,n−
1ライン目の同期検知パルス信号XDEPTを遅延して
作られた書込リセット信号XWRESにより書込アドレ
スがリセットされてから,書込イネーブル信号XWEが
アクティブな状態で書込クロックWCLKにしたがって
インクリメントされる。
On the other hand, when the image data of the nth line is written in the FIFO memory 102, the write address is n-
After the write address is reset by the write reset signal XWRES, which is generated by delaying the synchronization detection pulse signal XDEPT on the first line, the write enable signal XWE is incremented according to the write clock WCLK in the active state. .

【0106】そして,書込アドレスがFIFOメモリ1
02の書込アドレスポインタの最大値に達すると,この
例の場合,書込アドレスが5047になった次の書込ク
ロックWCLKで,書込アドレスポインタは“0”に復
帰し,さらにインクリメントを続ける。そして,書込イ
ネーブル信号XWEがアクティブな期間,書込アドレス
ポインタはインクリメントする。A3サイズの短辺の8
00dpiに対応する画素数である9354画素を書き
込むこの例の場合,書込アドレスポインタが4305に
達するまでインクリメントされる。
The write address is the FIFO memory 1
When the maximum value of the write address pointer 02 is reached, in this example, the write address pointer returns to “0” at the next write clock WCLK when the write address becomes 5047, and the increment is further continued. . Then, the write address pointer is incremented while the write enable signal XWE is active. 8 on the short side of A3 size
In the case of writing 9354 pixels, which is the number of pixels corresponding to 00 dpi, it is incremented until the write address pointer reaches 4305.

【0107】ここで,書込イネーブル信号XWEは,読
出イネーブル信号XREと同様に印刷用紙の主走査方向
幅に対応した期間アクティブになる。印刷用紙が大サイ
ズの場合には,書き込む画像データの画素数が多くなる
ので,書込イネーブル信号XWEのアクティブ期間は長
くなり,印刷用紙が小サイズの場合には,読み出す画像
の画素数が少なくなるので,書込イネーブル信号XWE
のアクティブな時間は短くなる。
Here, the write enable signal XWE is active for a period corresponding to the width of the printing paper in the main scanning direction, like the read enable signal XRE. When the printing paper is large size, the number of pixels of the image data to be written increases, so the active period of the write enable signal XWE becomes long, and when the printing paper is small size, the number of pixels of the image to be read out is small. Therefore, the write enable signal XWE
Will have less active time.

【0108】上述のようなFIFOメモリ102のデー
タ書込とデータ読出とをアドレスで表現すると図10お
よび図11のグラフとなる。図10に例示したグラフで
は,書込クロックWCLKの周波数が最低で画像入力部
101の有効画像が100(%)に近い場合となってい
るので,これは図10の破線として例示するように,書
込アドレスの図示の傾斜が最も緩慢となっている。つま
り,この書込アドレスの傾斜は書込周波数fwと読出周
波数frとの比率で決定されるので,例えば,書込周波
数fwが高くなるにしたがい,書込アドレスの傾斜は順
次増大する。書込周波数fwが読出周波数frより高い
場合を,図11に例示する。
When the data writing and data reading of the FIFO memory 102 as described above are expressed by addresses, the graphs of FIGS. 10 and 11 are obtained. In the graph illustrated in FIG. 10, since the frequency of the write clock WCLK is the lowest and the effective image of the image input unit 101 is close to 100 (%), this is as illustrated by the broken line in FIG. The slope of the write address shown is the slowest. That is, since the slope of the write address is determined by the ratio of the write frequency fw and the read frequency fr, for example, the slope of the write address gradually increases as the write frequency fw increases. A case where the writing frequency fw is higher than the reading frequency fr is illustrated in FIG.

【0109】図10および図11のグラフで,1ライン
の書込動作において,FIFOメモリ102の1度目の
書込動作を示す破線と2度目の書込動作を示す破線との
間に,FIFOメモリ102の1度目の読出動作を示す
実線が交差することがないようにし,また,2度目の書
込動作を示す破線の後に2度目の読出動作を示す実線が
交差することがないようにすれば,一度読み出した同じ
アドレスに新しいデータを書き込み,2度目の読出動作
時には新しい画像データを読み出すことが可能になるの
で,同時に独立して実行するデータ書込とデータ読出と
が干渉しないことになる。そこで,同図から容易に確認
できるように,書込リセット信号XWRESの出力タイ
ミングを適正に調整することで,FIFOメモリ102
のデータ書込にデータ読出が追い付くことを防止でき
る。
In the graphs of FIGS. 10 and 11, in the writing operation of one line, the FIFO memory 102 is shown between the broken line showing the first writing operation and the broken line showing the second writing operation. If the solid line indicating the first read operation of 102 does not cross and the solid line indicating the second read operation does not cross after the broken line indicating the second write operation. It is possible to write new data to the same address that has been read once and read new image data at the time of the second read operation, so that data writing and data reading that are independently executed at the same time do not interfere with each other. Therefore, the output timing of the write reset signal XWRES is adjusted appropriately so that the FIFO memory 102 can be easily confirmed from the figure.
It is possible to prevent the data reading from catching up with the data writing.

【0110】なお,実際にはFIFOメモリ102のデ
ータ書込からデータ読出までは若干の時間を必要とする
ので,これを考慮する必要がある。
It is necessary to take this into consideration because it actually takes some time from the writing of data to the reading of data in the FIFO memory 102.

【0111】図10および図11は,位相変更回路10
7の設定を適正にして,画像データの読出が正しく行わ
れる場合を表している。この位相変更回路107の設定
を正しく行うために,テストデータ発生回路108とデ
ータ比較回路109の動作を図12から図15のタイム
チャートを用いて説明する。
10 and 11 show the phase changing circuit 10
7 shows the case where the setting of 7 is made proper and the reading of the image data is performed correctly. The operations of the test data generation circuit 108 and the data comparison circuit 109 in order to correctly set the phase changing circuit 107 will be described with reference to the time charts of FIGS. 12 to 15.

【0112】図12から図15は,図10の場合と同様
の条件で,書込周波数fwが読出周波数frより低い場
合で,FIFOメモリ102を1ラインに2回転する場
合を示している。書込テストデータは,1ラインの書込
の内,1回目の書込データを0とし,FIFOメモリ1
02の書込アドレスが1周して0に戻ってからの2回目
の書込データは1としている。それによって読み出しが
正しく行われれば,読出データは,1ラインの読出の初
めは0で,FIFOメモリ102の記憶容量を越えたら
2回目から1になるはずである。そこで,データ比較回
路109の比較データをそのように発生する。
12 to 15 show the case where the write frequency fw is lower than the read frequency fr under the same conditions as in FIG. 10, and the FIFO memory 102 is rotated twice for one line. In the write test data, the first write data in the writing of one line is set to 0, and the FIFO memory 1
The second write data after the write address of 02 makes one round and returns to 0 is set to 1. If the reading is correctly performed by this, the read data should be 0 at the beginning of reading one line and become 1 from the second time when the storage capacity of the FIFO memory 102 is exceeded. Therefore, the comparison data of the data comparison circuit 109 is generated as such.

【0113】図12は,位相変化量がほとんどない場合
を示している。1回目の読出サイクルと1回目の書込サ
イクルで,書込動作を示す破線と読出動作を示す実線が
交差している。書込動作と読出動作の交差する前は書込
動作が読出動作に先行しているので0が読め,書込動作
と読出動作が交差した後では読出動作が書込動作に先行
しているので前のラインの2度目の書込データ1が読め
る。
FIG. 12 shows a case where there is almost no phase change amount. In the first read cycle and the first write cycle, the broken line showing the write operation and the solid line showing the read operation intersect. Before the write operation and the read operation intersect, the write operation precedes the read operation, so 0 can be read, and after the write operation and the read operation intersect, the read operation precedes the write operation. The second write data 1 on the previous line can be read.

【0114】2回目の書込はアドレス4035までしか
書き込まないので,1回目の読出のアドレス4036以
降は,前の1回目に書き込まれたデータ0が読める。さ
らに2回目の読出では,1回目に書き込まれたデータが
読めるので0が読める。読出データは,比較データと比
較され,一致しないと,そこでエラー信号がアクティブ
になるので,CPUはFIFOメモリ102によるデー
タ転送がエラーを起こしたことを検知することができ
る。この例の場合,書込動作と読出動作が交差したタイ
ミングで,エラー信号がアクティブになる。
Since the second writing is performed only up to the address 4035, the data 0 written in the previous first writing can be read after the address 4036 in the first reading. Further, in the second reading, the data written in the first reading can be read, so that 0 can be read. The read data is compared with the comparison data, and if they do not match, the error signal becomes active there, so that the CPU can detect that the data transfer by the FIFO memory 102 has caused an error. In the case of this example, the error signal becomes active at the timing when the write operation and the read operation intersect.

【0115】図13は,位相変更回路107の位相変更
量を図12より大きくし,1回目の読出サイクルと1回
目の書込サイクルで,書込動作を示す破線と読出動作を
示す実線が交差しないように制御した場合を示してい
る。ただし,FIFOメモリ102の1度目の書込動作
を示す破線と2度目の書込動作を示す破線との間に,F
IFOメモリ102の1度目の読出動作を示す実線が入
ってなく,FIFOメモリ102の2度目の読出動作が
入っているので正しい転送は行えない。FIFOメモリ
102の1度目の読出動作は1度目の書込動作に先行し
ているので,前のラインの2度目の書込データ1が読め
る。さらに,図12の場合と同様に,1回目の読出のア
ドレス4036以降は0が読め,2回目の読出でも0が
読める。この例の場合,1回目の読出で1が読めた時点
でエラー信号がアクティブになる。
In FIG. 13, the phase change amount of the phase change circuit 107 is made larger than that in FIG. 12, and the broken line showing the write operation and the solid line showing the read operation intersect in the first read cycle and the first write cycle. This shows the case where the control is performed so as not to. However, between the broken line showing the first write operation of the FIFO memory 102 and the broken line showing the second write operation, F
Since the solid line indicating the first read operation of the IFO memory 102 is not included and the second read operation of the FIFO memory 102 is included, correct transfer cannot be performed. Since the first read operation of the FIFO memory 102 precedes the first write operation, the second write data 1 of the previous line can be read. Further, as in the case of FIG. 12, 0 can be read after the address 4036 in the first read, and 0 can be read in the second read. In the case of this example, the error signal becomes active when 1 can be read in the first reading.

【0116】図14は,位相変更回路107の位相変更
量を図13よりさらに大きくした場合で,1回目の書込
サイクルと2回目の読出サイクルで,書込動作を示す破
線と読出動作を示す実線が交差する場合を示している。
図13と同様に,FIFOメモリ102の1度目の読出
動作は1度目の書込動作に先行しているので,前のライ
ンの2度目の書込データ1が読める。さらに,図12の
場合と同様に,1回目の読出のアドレス4036以降は
0が読め,2回目の読出でも書込動作と読出動作の交差
する前は書込動作が読出動作に先行しているので1回目
の書き込みの0が読め,書込動作と読出動作が交差した
後では読出動作が書込動作に先行しているので前のライ
ンの2度目の書込データ1が読める。この例の場合,図
13の場合と同様に1回目の読出で1が読めた時点でエ
ラー信号がアクティブになる。
FIG. 14 shows a broken line showing a write operation and a read operation in the first write cycle and the second read cycle when the phase change amount of the phase change circuit 107 is made larger than that in FIG. The case where the solid lines intersect is shown.
Similar to FIG. 13, since the first read operation of the FIFO memory 102 precedes the first write operation, the second write data 1 of the previous line can be read. Further, as in the case of FIG. 12, 0 can be read after the address 4036 of the first read, and the write operation precedes the read operation even before the crossing of the write operation and the read operation in the second read. Therefore, 0 of the first writing can be read, and after the writing operation and the reading operation intersect, the reading operation precedes the writing operation, so that the second writing data 1 of the previous line can be read. In this example, as in the case of FIG. 13, the error signal becomes active when 1 can be read in the first read.

【0117】図15は,位相変更回路107の位相変更
量を図14よりさらに大きくした場合で,正しくデータ
転送が行われる場合,すなわち,1ラインの書込動作に
おいて,FIFOメモリ102の1度目の書込動作を示
す破線と2度目の書込動作を示す破線との間に,FIF
Oメモリ102の1度目の読出動作を示す実線が交差し
ないようにし,2度目の書込動作を示す破線の後に2度
目の読出動作を示す実線が交差することがないようにし
た場合を示している。書込動作と読出動作が交互に行わ
れるので,比較データと同じデータが読み出せる。この
場合,エラー信号はネガティブなままなので,CPUは
FIFOメモリ102によるデータ転送が正しく行われ
たことを検知することができる。
FIG. 15 shows a case where the amount of phase change of the phase change circuit 107 is made larger than that of FIG. 14, and when data transfer is performed correctly, that is, in the write operation of one line, the first time of the FIFO memory 102. Between the broken line showing the write operation and the broken line showing the second write operation, the FIF
A case is shown in which the solid line indicating the first read operation of the O memory 102 is prevented from crossing, and the solid line indicating the second read operation is not crossed after the broken line indicating the second write operation. There is. Since the write operation and the read operation are alternately performed, the same data as the comparison data can be read. In this case, since the error signal remains negative, the CPU can detect that the data transfer by the FIFO memory 102 has been correctly performed.

【0118】図12から図15に示したように,位相変
更回路107の位相変更量を除々に変化させ,データ比
較回路109でエラー信号を発生しなくなるまで位相を
変化し,データ比較回路109で等しい結果が得られれ
ば位相の変更をやめることにより,適正な位相変更量を
決定することができる。
As shown in FIGS. 12 to 15, the phase change amount of the phase change circuit 107 is gradually changed, the phase is changed until the data comparison circuit 109 does not generate an error signal, and the data comparison circuit 109 changes the phase. If the same result is obtained, the phase change can be stopped and the appropriate amount of phase change can be determined.

【0119】これまでは,印刷用紙幅が最大の場合につ
いて説明したが,前述のように,印刷用紙の主走査方向
幅に対応してFIFOメモリ102への読出イネーブル
信号XREの開始と終了のタイミングが制御されるの
で,印刷用紙の主走査方向幅が小さい場合には,読出イ
ネーブル信号XREの開始タイミングは遅れ,終了タイ
ミングは早まることになる。この場合,FIFOメモリ
102への書込開始タイミングもあわせて遅らせない
と,書込アドレスと読出アドレスの交差が起き,エラー
が発生する可能性がある。そのため,書込開始信号のタ
イミングを印刷用紙の主走査方向幅に対応して調整す
る。
Up to now, the case where the width of the printing paper is maximum has been described, but as described above, the timing of the start and end of the read enable signal XRE to the FIFO memory 102 corresponding to the width of the printing paper in the main scanning direction. When the width of the printing paper in the main scanning direction is small, the start timing of the read enable signal XRE is delayed and the end timing thereof is advanced. In this case, unless the write start timing to the FIFO memory 102 is also delayed, the write address and the read address may cross each other and an error may occur. Therefore, the timing of the write start signal is adjusted according to the width of the printing paper in the main scanning direction.

【0120】このテストデータの書込,読出,エラーの
検出および位相変更量の設定は,印刷ジョブ間,すなわ
ち紙間の印字用紙幅や画素密度が変更されたときに実行
される。
The writing and reading of the test data, the detection of the error, and the setting of the phase change amount are executed between print jobs, that is, when the print paper width or pixel density between papers is changed.

【0121】なお,本実施例ではデータ処理装置として
デジタル複写機を例示し,CCDセンサ118で光学入
力する画像データをFIFOメモリ102にデータ書込
する画像入力部101をデータ書込手段として例示し,
FIFOメモリ102からデータ読出する画像データを
画像印刷部113で印刷出力する印刷制御部103をデ
ータ読出手段として例示したが,本発明は上記実施例に
限定されるものではない。例えば,ホストコンピュータ
から受信する画像データをFIFOメモリ102にデー
タ書込するものや,FIFOメモリ102からデータ読
出する画像データをディスプレイで表示出力するものを
具備したDTP(Desk Top Publishi
ng)システムなどもデータ処理装置として実現可能で
ある。
In this embodiment, a digital copying machine is exemplified as the data processing device, and the image input unit 101 for writing the image data optically input by the CCD sensor 118 into the FIFO memory 102 is exemplified as the data writing means. ,
The print control unit 103, which prints out the image data read out from the FIFO memory 102 by the image printing unit 113, is exemplified as the data reading unit, but the present invention is not limited to the above embodiment. For example, a DTP (Desk Top Publicity) equipped with a device for writing image data received from a host computer to the FIFO memory 102 and a device for displaying and outputting image data read out from the FIFO memory 102 on a display.
ng) system or the like can also be realized as a data processing device.

【0122】[0122]

【発明の効果】以上説明したように,本発明のデータ処
理装置(請求項1)によれば,所定周期の書込クロック
で書込アドレスに対応したデータ書込と前記書込クロッ
クとは独立した所定周期の読出クロックで読出アドレス
に対応したデータ読出とが同時に実行可能な記憶手段
と,前記記憶手段への前記データ書込を書込開始信号の
入力により開始するデータ書込手段と,前記記憶手段か
らの前記データ読出を読出開始信号の入力により開始す
るデータ読出手段と,前記データ読出手段の読出開始信
号と前記データ書込手段の書込開始信号との位相を相対
的に可変する開始信号位相可変手段と,前記記憶手段に
試験的に書き込む試験データを発生する試験書込データ
発生手段と,前記記憶手段から試験的に読み出したデー
タを前記試験データと比較し,等しくなければエラー信
号を発生する比較手段と,を備えたため,データ書込手
段が記憶手段に試験書込データ発生手段が発生した試験
データを書き込んで,データ読出手段がそれを読み出し
て,さらに,比較手段が比較することにより,記憶手段
のアドレスの逆転を検知することができる。
As described above, according to the data processor of the present invention (claim 1), the data write corresponding to the write address by the write clock of a predetermined cycle and the write clock are independent. Storage means capable of simultaneously performing data read corresponding to a read address with a read clock of a predetermined cycle; data writing means for starting the data writing to the storage means by inputting a write start signal; Data read means for starting the data read from the storage means by inputting a read start signal, and start for relatively varying the phases of the read start signal of the data read means and the write start signal of the data write means The signal phase varying means, the test write data generating means for generating test data to be written in the storage means on a trial basis, and the test data read out from the storage means as the test data. The data writing means writes the test data generated by the test write data generating means in the storage means, and the data reading means reads it out. Further, the comparison means compares, so that the reverse of the address of the storage means can be detected.

【0123】また,本発明のデータ処理装置(請求項
2)によれば,前記試験書込データ発生手段が,発生す
る試験データを,1ライン毎に変化させるため,1ライ
ン以上の記憶容量を持つ記憶手段の画像データのアドレ
スの逆転を検知することができる。
Further, according to the data processor of the present invention (claim 2), the test write data generating means changes the generated test data for each line, so that the storage capacity of one line or more is required. It is possible to detect the reversal of the address of the image data of the storage means that it has.

【0124】また,本発明のデータ処理装置(請求項
3)によれば,前記試験書込データ発生手段が,発生す
る試験データを,前記記憶手段の書込アドレスが0に戻
る毎に変化させるため,1ライン未満の記憶容量を持つ
記憶手段の画像データのアドレスの逆転を検知すること
ができる。
According to the data processor of the present invention (claim 3), the test write data generating means changes the generated test data every time the write address of the storage means returns to 0. Therefore, it is possible to detect the inversion of the address of the image data of the storage means having the storage capacity of less than one line.

【0125】また,本発明のデータ処理装置(請求項
4)によれば,所定周期の書込クロックで書込アドレス
に対応したデータ書込と前記書込クロックとは独立した
所定周期の読出クロックで読出アドレスに対応したデー
タ読出とが同時に実行可能な記憶手段と,前記記憶手段
への前記データ書込を書込開始信号の入力により開始す
るデータ書込手段と,前記記憶手段からの前記データ読
出を読出開始信号の入力により開始するデータ読出手段
と,前記データ読出手段の読出開始信号と前記データ書
込手段の書込開始信号との位相を相対的に可変する開始
信号位相可変手段と,前記記憶手段に試験的に書き込む
試験データを発生する試験書込データ発生手段と,前記
記憶手段から試験的に読み出したデータを前記試験デー
タと比較し等しくなければエラー信号を発生する比較手
段と,を備え,前記開始信号位相可変手段は,前記比較
手段の比較結果に基づいて,前記位相変更量を変更する
ため,データ書込手段が記憶手段に試験書込データ発生
手段が発生した試験データを書き込んで,データ読出手
段がそれを読み出して,さらに,比較手段が比較するこ
とにより,記憶手段のアドレスの逆転を検知することが
できるとともに,書込と読出の位相を制御するので,記
憶手段のアドレスの逆転が起きないようにすることがで
きる。
Further, according to the data processor of the present invention (claim 4), the data write corresponding to the write address with the write clock of the predetermined cycle and the read clock of the predetermined cycle independent of the write clock. Storage means capable of simultaneously performing data reading corresponding to the read address, data writing means for starting the data writing to the storage means by inputting a write start signal, and the data from the storage means Data read means for starting reading by inputting a read start signal; start signal phase varying means for relatively varying the phases of the read start signal of the data reading means and the write start signal of the data writing means; The test write data generating means for generating test data to be written in the storage means on a trial basis is compared with the test read data from the storage means and the test data is equalized. If so, the start signal phase changing means changes the phase change amount based on the comparison result of the comparing means, so that the data writing means tests the storage means. By writing the test data generated by the write data generating means, reading it by the data reading means, and comparing it by the comparing means, it is possible to detect the inversion of the address of the storing means, and at the same time write Since the read phase is controlled, it is possible to prevent the address inversion of the storage means from occurring.

【0126】また,本発明のデータ処理装置(請求項
5)によれば,前記試験書込データ発生手段の動作およ
び前記開始信号位相可変手段の位相変更を,印字用紙幅
または画素密度の変更時に行うため,記憶手段のアドレ
スの逆転が起きないように位相を適正に設定することが
できるので,記憶手段のアドレスの逆転が起きないよう
にすることができる。
Further, according to the data processor of the present invention (claim 5), the operation of the test write data generating means and the phase change of the start signal phase changing means are performed when the print paper width or the pixel density is changed. Therefore, the phase can be properly set so that the inversion of the address of the storage means does not occur, so that the inversion of the address of the storage means can be prevented.

【0127】また,本発明のデータ処理装置(請求項
6)によれば,前記開始信号位相可変手段が,前記位相
変更量の変化を除々に行なうとともに,前記比較手段で
エラー信号が発生しなくなるまで位相を変化し,前記比
較手段で比較した結果が等しければ変化をやめ,前記位
相変更量を決定する,すなわち,開始信号位相可変手段
の位相変更量を除々に変化させ,比較手段でエラー信号
の発生しなくなるまで位相を変化し,比較手段で等しい
結果が得られれば変化をやめ,位相変更量を決定するた
め,計算することない,換言すれば,容易に,記憶手段
のアドレスの逆転が起きないように位相を適正に設定す
ることができる。
Further, according to the data processor of the present invention (claim 6), the start signal phase varying means gradually changes the phase change amount, and the comparing means does not generate an error signal. If the result of comparison by the comparing means is equal, the change is stopped and the amount of phase change is determined, that is, the amount of phase change of the start signal phase changing means is gradually changed, and the error signal is compared by the comparing means. The phase is changed until no longer occurs, and if the comparison means obtains an equal result, the change is stopped and the amount of phase change is determined. Therefore, no calculation is performed. In other words, the address reversal of the storage means is easily reversed. The phase can be set properly so that it does not occur.

【0128】また,本発明のデータ処理装置(請求項
7)によれば,前記開始信号位相可変手段が,前記比較
手段でエラー信号の発生するタイミングに応じて,前記
位相変化量を決定する,すなわち,比較手段でエラー信
号を発生するタイミングに応じて,開始信号位相可変手
段が位相変化量を決定するため,早い動作で記憶手段の
アドレスの逆転が起きないように位相を適正に設定する
ことができる。
According to the data processor of the present invention (claim 7), the start signal phase varying means determines the phase change amount according to the timing at which the error signal is generated by the comparing means. That is, since the start signal phase varying means determines the phase change amount in accordance with the timing at which the comparing means generates an error signal, the phase should be properly set so that the inversion of the address of the storage means does not occur in a fast operation. You can

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

【図1】本実施例のデータ処理装置の全体を示した構成
図である。
FIG. 1 is a configuration diagram showing an entire data processing device of an embodiment.

【図2】画像入力部の入出力を示した説明図である。FIG. 2 is an explanatory diagram showing input / output of an image input unit.

【図3】データ処理装置の各信号のタイミングを示した
説明図である。
FIG. 3 is an explanatory diagram showing the timing of each signal of the data processing device.

【図4】印刷画素クロックPCLKの出力を示した説明
図である。
FIG. 4 is an explanatory diagram showing an output of a print pixel clock PCLK.

【図5】データ比較回路の一実施例を示した構成図であ
る。
FIG. 5 is a configuration diagram showing an embodiment of a data comparison circuit.

【図6】テストデータ発生回路の一実施例を示した構成
図である。
FIG. 6 is a configuration diagram showing an embodiment of a test data generating circuit.

【図7】データ比較回路の一実施例を示した構成図であ
る。
FIG. 7 is a configuration diagram showing an embodiment of a data comparison circuit.

【図8】位相変化量がほとんどない場合で,書込動作を
示す破線と読出動作を示す実線が交差している場合を示
した説明図である。
FIG. 8 is an explanatory diagram showing a case where a broken line indicating a write operation and a solid line indicating a read operation intersect each other when there is almost no phase change amount.

【図9】位相変更回路により位相を変化させて,書込動
作を示す破線と読出動作を示す実線が交差しないように
した場合のタイムチャートを示した説明図である。
FIG. 9 is an explanatory diagram showing a time chart when the phase is changed by the phase changing circuit so that the broken line showing the write operation and the solid line showing the read operation do not intersect.

【図10】データ書込の書込クロックWCLKの周波数
が,データ読出の読出クロックRCLKの周波数よりも
低い場合を示した説明図である。
FIG. 10 is an explanatory diagram showing a case where the frequency of the write clock WCLK for data writing is lower than the frequency of the read clock RCLK for data reading.

【図11】データ書込の書込クロックWCLKの周波数
が,データ読出の読出クロックRCLKの周波数よりも
高い場合を示した説明図である。
FIG. 11 is an explanatory diagram showing a case where the frequency of the write clock WCLK for data writing is higher than the frequency of the read clock RCLK for data reading.

【図12】位相変化量がほとんどない場合を示した説明
図である。
FIG. 12 is an explanatory diagram showing a case where there is almost no phase change amount.

【図13】位相変更回路の位相変更量を図12より大き
くし,1回目の読出サイクルと1回目の書込サイクル
で,書込動作を示す破線と読出動作を示す実線が交差し
ないように制御した場合を示した説明図である。
FIG. 13 is a control for increasing the phase change amount of the phase change circuit as compared with FIG. 12 so that the broken line showing the write operation and the solid line showing the read operation do not intersect in the first read cycle and the first write cycle. It is explanatory drawing which showed the case.

【図14】位相変更回路の位相変更量を図13よりさら
に大きくした場合で,1回目の書込サイクルと2回目の
読出サイクルで,書込動作を示す破線と読出動作を示す
実線が交差する場合を示した説明図である。
14 is a diagram illustrating a case in which the phase change amount of the phase change circuit is made larger than that in FIG. 13, the broken line indicating the write operation and the solid line indicating the read operation intersect in the first write cycle and the second read cycle. It is explanatory drawing which showed the case.

【図15】位相変更回路の位相変更量を図14よりさら
に大きくした場合で,正しくデータ転送が行われる場合
で,正しくデータ転送が行われる場合を示した説明図で
ある。
FIG. 15 is an explanatory diagram showing a case where the amount of phase change of the phase change circuit is made larger than that in FIG. 14, a case where data transfer is performed correctly, and a case where data transfer is performed correctly.

【図16】従来のデジタル複写機の構成図である。FIG. 16 is a block diagram of a conventional digital copying machine.

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

101 画像入力部 102 FIFOメモリ 103 印刷制御部 107 位相変更回路 108,128 テストデータ発生回路 109 データ比較回路 110 画像読取部 113 画像印刷部 114 クロック発生回路 117 クロック同期回路 PCLK 印刷画素クロック RCLK 読出クロック SCLK 入力画像クロック WCLK 書込クロック XWE 書込イネーブル信号 XRE 読出イネーブル信号 XWRES 書込リセット信号 XRRES 読出開始信号または読出リセット信号 XDEPT 同期検知信号または同期検知パルス信号 XLSYNC 書込開始信号 XLGATE 主走査有効領域信号 XRGATE 出力信号 XPMSYNC ポリゴンモータ同期信号またはポリ
ゴンミラー同期パルス信号
101 image input unit 102 FIFO memory 103 print control unit 107 phase change circuit 108, 128 test data generation circuit 109 data comparison circuit 110 image reading unit 113 image printing unit 114 clock generation circuit 117 clock synchronization circuit PCLK print pixel clock RCLK read clock SCLK Input image clock WCLK Write clock XWE Write enable signal XRE Read enable signal XWRES Write reset signal XRRES Read start signal or read reset signal XDEPT Sync detection signal or sync detection pulse signal XLSYNC Write start signal XLGATE Main scan effective area signal XRGATE Output signal XPMSYNC Polygon motor sync signal or polygon mirror sync pulse signal

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 3/12 G06F 3/12 K H04N 1/00 H04N 1/00 E 1/19 1/21 1/21 1/387 1/387 1/04 103Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06F 3/12 G06F 3/12 K H04N 1/00 H04N 1/00 E 1/19 1/21 1 / 21 1/387 1/387 1/04 103Z

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 所定周期の書込クロックで書込アドレス
に対応したデータ書込と前記書込クロックとは独立した
所定周期の読出クロックで読出アドレスに対応したデー
タ読出とが同時に実行可能な記憶手段と,前記記憶手段
への前記データ書込を書込開始信号の入力により開始す
るデータ書込手段と,前記記憶手段からの前記データ読
出を読出開始信号の入力により開始するデータ読出手段
と,前記データ読出手段の読出開始信号と前記データ書
込手段の書込開始信号との位相を相対的に可変する開始
信号位相可変手段と,前記記憶手段に試験的に書き込む
試験データを発生する試験書込データ発生手段と,前記
記憶手段から試験的に読み出したデータを前記試験デー
タと比較し,等しくなければエラー信号を発生する比較
手段と,を備えたことを特徴とするデータ処理装置。
1. A memory capable of simultaneously executing data writing corresponding to a write address with a write clock of a predetermined cycle and data reading corresponding to a read address with a read clock of a predetermined cycle independent of the write clock. Means, data writing means for starting the data writing to the storage means by inputting a write start signal, and data reading means for starting the data reading from the storage means by inputting a read start signal, Start signal phase changing means for relatively changing the phases of the read start signal of the data reading means and the write start signal of the data writing means, and a test document for generating test data to be written in the storage means on a trial basis. Embedded data generating means and comparing means for comparing the data read experimentally from the storage means with the test data and generating an error signal if they are not equal. A data processing device characterized by the following.
【請求項2】 前記試験書込データ発生手段は,発生す
る試験データを,1ライン毎に変化させることを特徴と
する請求項1記載のデータ処理装置。
2. The data processing apparatus according to claim 1, wherein the test write data generating means changes the generated test data for each line.
【請求項3】 前記試験書込データ発生手段は,発生す
る試験データを,前記記憶手段の書込アドレスが0に戻
る毎に変化させることを特徴とする請求項1記載のデー
タ処理装置。
3. The data processing apparatus according to claim 1, wherein the test write data generating means changes the generated test data every time the write address of the storage means returns to 0.
【請求項4】 所定周期の書込クロックで書込アドレス
に対応したデータ書込と前記書込クロックとは独立した
所定周期の読出クロックで読出アドレスに対応したデー
タ読出とが同時に実行可能な記憶手段と,前記記憶手段
への前記データ書込を書込開始信号の入力により開始す
るデータ書込手段と,前記記憶手段からの前記データ読
出を読出開始信号の入力により開始するデータ読出手段
と,前記データ読出手段の読出開始信号と前記データ書
込手段の書込開始信号との位相を相対的に可変する開始
信号位相可変手段と,前記記憶手段に試験的に書き込む
試験データを発生する試験書込データ発生手段と,前記
記憶手段から試験的に読み出したデータを前記試験デー
タと比較し等しくなければエラー信号を発生する比較手
段と,を備え,前記開始信号位相可変手段は,前記比較
手段の比較結果に基づいて,前記位相変更量を変更する
ことを特徴とするデータ処理装置。
4. A memory capable of simultaneously executing data writing corresponding to a write address with a write clock of a predetermined cycle and data reading corresponding to a read address with a read clock of a predetermined cycle independent of the write clock. Means, data writing means for starting the data writing to the storage means by inputting a write start signal, and data reading means for starting the data reading from the storage means by inputting a read start signal, Start signal phase changing means for relatively changing the phases of the read start signal of the data reading means and the write start signal of the data writing means, and a test document for generating test data to be written in the storage means on a trial basis. Embedded data generating means and comparing means for comparing the data read experimentally from the storage means with the test data and generating an error signal if they are not equal, A data processing device, wherein the start signal phase varying means changes the phase change amount based on a comparison result of the comparing means.
【請求項5】 前記試験書込データ発生手段の動作およ
び前記開始信号位相可変手段の位相変更は,印字用紙幅
または画素密度の変更時に行うことを特徴とする請求項
4記載のデータ処理装置。
5. The data processing apparatus according to claim 4, wherein the operation of the test write data generating means and the phase change of the start signal phase changing means are performed when the print paper width or the pixel density is changed.
【請求項6】 前記開始信号位相可変手段は,前記位相
変更量の変化を除々に行なうとともに,前記比較手段で
エラー信号が発生しなくなるまで位相を変化させ,前記
比較手段の比較結果が等しければ,位相の変化をやめ
て,前記位相変更量を決定することを特徴とする請求項
4記載のデータ処理装置。
6. The start signal phase changing means gradually changes the phase change amount and changes the phase until an error signal is not generated in the comparing means, and if the comparison result of the comparing means is equal. 5. The data processing apparatus according to claim 4, wherein the phase change amount is determined by stopping the phase change.
【請求項7】 前記開始信号位相可変手段は,前記比較
手段でエラー信号の発生するタイミングに応じて,前記
位相変化量を決定することを特徴とする請求項4記載の
データ処理装置。
7. The data processing apparatus according to claim 4, wherein the start signal phase varying means determines the phase change amount according to the timing at which the error signal is generated by the comparing means.
JP7352323A 1995-12-28 1995-12-28 Data processor Pending JPH09185132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7352323A JPH09185132A (en) 1995-12-28 1995-12-28 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7352323A JPH09185132A (en) 1995-12-28 1995-12-28 Data processor

Publications (1)

Publication Number Publication Date
JPH09185132A true JPH09185132A (en) 1997-07-15

Family

ID=18423280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7352323A Pending JPH09185132A (en) 1995-12-28 1995-12-28 Data processor

Country Status (1)

Country Link
JP (1) JPH09185132A (en)

Similar Documents

Publication Publication Date Title
US5677724A (en) Laser beam printing device with mirror rotation speed controlled by origin sensor signal
EP0416832A2 (en) Image forming apparatus
JP3585976B2 (en) Image reading device
JP4597719B2 (en) Beam light scanning device, image forming apparatus
JPH09130558A (en) Video data transfer system and video data transfer method
JPH09185132A (en) Data processor
JP3631512B2 (en) Data processing device
JP2000270162A (en) Image reader
JPH099021A (en) Picture data controller
US5764370A (en) Enlargement and reduction apparatus for an image forming apparatus
JP2882532B2 (en) Image data processing device
JPH07156443A (en) Image forming device
JPH0662199A (en) Reading device
JPH09275478A (en) Data processing unit
JP2003057578A (en) Picture recorder
JP2002152475A (en) Image data processor
JP2000137803A (en) Interface device and image forming device
JPH11306133A (en) Serial data transmitting and receiving device
JP2002273935A (en) Imaging apparatus
JPH09214711A (en) Data processor
JPH1075344A (en) Data processing unit
JPH09240056A (en) Apparatus and method for processing image
JPH047966A (en) Printer controller
JPH06227041A (en) Image processor
JP2001211292A (en) Scanner control method, scanner, copy printer, mediation device and storage medium