JPH02213929A - Converter for data transfer speed - Google Patents

Converter for data transfer speed

Info

Publication number
JPH02213929A
JPH02213929A JP1033592A JP3359289A JPH02213929A JP H02213929 A JPH02213929 A JP H02213929A JP 1033592 A JP1033592 A JP 1033592A JP 3359289 A JP3359289 A JP 3359289A JP H02213929 A JPH02213929 A JP H02213929A
Authority
JP
Japan
Prior art keywords
data
circuit
parallel
serial
conversion
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
JP1033592A
Other languages
Japanese (ja)
Inventor
Katsuhiro Okuzawa
奥沢 勝広
Hiroshi Kouchi
古内 博
Kiyohiko Tanno
丹野 清彦
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.)
Hitachi Ltd
Hitachi Nuclear Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Nuclear Engineering 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 Hitachi Ltd, Hitachi Nuclear Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP1033592A priority Critical patent/JPH02213929A/en
Publication of JPH02213929A publication Critical patent/JPH02213929A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the line shifts and the color slurring of a color printer by using a control circuit which starts the parallel/serial conversion after the arrangement of conversion data and a monitoring circuit which monitors the state of the parallel/serial or serial/parallel conversion. CONSTITUTION:A conversion data monitoring circuit 102 monitors what number of bits of conversion data are stored in a serial/parallel conversion circuit 404 based on the NB-bit set value 106. This monitoring information is sent to a control circuit 103, and the circuit 404 is controlled by the output of the circuit 103. An NB data monitoring circuit 104 monitors what number of the NB data are sent to the outside based on the NB-bit set value. Then the next NB data is stored in a parallel/serial conversion circuit (2) 407 at every parallel/serial conversion by NB bits. Thus it is possible to control the data transfer speed with high fidelity and high reliability to the vertical and horizontal synchronous signals sent from a printer and the external clock signal. Then the line shifts can be corrected and the printing jobs are ensured with high contrasts to the wide range of printing conditions.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ転送速度変換装置に係り、特に転送速度
の異なる直列信号処理装置と並列信号処理装置間におい
て、高速でしかも信頼性の高いデータ転送を行うための
速度制御装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data transfer rate conversion device, and in particular, to convert data at high speed and with high reliability between a serial signal processing device and a parallel signal processing device with different transfer speeds. The present invention relates to a speed control device for performing transfer.

〔従来の技術〕[Conventional technology]

近年、デスクトップ・パブリッシングに見られるような
複合型プリンタシステムでは、イメージスキャナで読み
取った画像データや光プリンタで印刷するビデオデータ
は直列信号で扱われ、転送を開始するとこれらの直列信
号は、途中で止めることはできない、これに対し1画像
データを制御する中央処理装置(以下CPU)は8ビッ
トまたは16.32ビット単位で扱うため、データの直
列・並列および並列・直列変換が必要になる。たとえば
、CPUから光プリンタへデータを転送するいわゆる並
列/直列変換に関して、CPUが送信する1ワードあた
りの並列信号の転送速度をDp  (ワード7秒)、そ
の並列信号のビット数(バイト単位)をNB  (ビッ
ト/ワード)、光プリンタへ送信する直列信号の転送速
度をDs  (ビット/秒)とすると、 s が成立する必要がある。しかし複合型プリンタシステム
では両者の転送速度が異なるため、一般的に式(1)は
成立しない。
In recent years, in multifunction printer systems such as those seen in desktop publishing, image data read by an image scanner and video data printed by an optical printer are handled as serial signals, and once transfer begins, these serial signals are On the other hand, the central processing unit (hereinafter referred to as CPU) that controls one image data handles it in units of 8 bits or 16.32 bits, so it is necessary to perform serial/parallel and parallel/serial conversion of the data. For example, regarding the so-called parallel/serial conversion that transfers data from the CPU to an optical printer, the transfer speed of the parallel signal per word sent by the CPU is Dp (word 7 seconds), and the number of bits (in bytes) of the parallel signal is NB (bits/word), and if the transfer rate of the serial signal sent to the optical printer is Ds (bits/second), then s must hold true. However, in a multi-function printer system, the transfer speeds of the two systems are different, so generally equation (1) does not hold true.

そのため、従来は第2図に示すようにCPU201と光
プリンタ204の間にバッファメモリ202(以下BM
)を設け、あらかじめBMにデータを書き込んでおき、
徐々にデータを読み出すようにして両者の転送速度差を
解消している。すなわち、BMの書き込みデータ205
はCPUからのソフトウェア制御で書き込みアドレス2
09をもとに入力され、読み出しデータ206は光プリ
ンタからの外部クロック208をもとにアドレス発生回
路211の読み出しアドレス210でハードウェア制御
で転送される。また読み出されたデータ206は、並列
・直列変換器203で直列データ207に変換され光プ
リンタ204に転送される。このBMを用いた場合、B
Mに書き込むデータの転送速度をDw  (ワード7秒
)、読み出すデータの速度をDR(ワード7秒)とする
と−般的に、 が成立する必要があるs Dw =DRの場合はBMが
不要であるが、前述のように複合型プリンタシステムで
は成立しない。しかし、BMが有る場合は、Dw>DR
のときに外部へ連続した直列信号を転送することが可能
になる。
Therefore, conventionally, as shown in FIG. 2, a buffer memory 202 (hereinafter BM
) and write data to BM in advance.
Data is read out gradually to eliminate the difference in transfer speed between the two. In other words, the write data 205 of BM
is the write address 2 under software control from the CPU.
09, and the read data 206 is transferred under hardware control at the read address 210 of the address generation circuit 211 based on the external clock 208 from the optical printer. Further, the read data 206 is converted into serial data 207 by a parallel/serial converter 203 and transferred to an optical printer 204. When using this BM, B
If the transfer rate of data written to M is Dw (7 seconds per word) and the speed of data read is DR (7 seconds per word), - Generally speaking, the following must hold true: If Dw = DR, BM is unnecessary. However, as mentioned above, this does not hold true in a multifunction printer system. However, if there is a BM, Dw>DR
It becomes possible to transfer continuous serial signals to the outside.

第3図に第2図のBMの信号制御タイムシーケンスを示
す、BMの書き込みおよび読み出しの制御は、プリンタ
からの垂直同期信号31(ページ同期信号)と水平同期
信号33(ライン同期信号)を基準にして、1ライン単
位(行単位)で行っている。まず、BMにあらかじめ1
ラインのデータa(書き込みデータ32)をプログラム
制御で書き込む6次に、第1ライン目の水平同期信号で
Figure 3 shows the signal control time sequence of the BM in Figure 2. BM write and read control is based on the vertical synchronization signal 31 (page synchronization signal) and horizontal synchronization signal 33 (line synchronization signal) from the printer. This is done line by line. First, 1 in advance on BM.
6th line data a (write data 32) is written under program control using the horizontal synchronization signal of the first line.

先のデータa (読み出しデータ35)をプリンタのク
ロック34をもとにハードウェア制御で読み出し、それ
と同時に次のラインデータbをBMに書き込む、読み出
されたデータは、並列/直列変換された後プリンタのク
ロックと同期をとり、光プリンタへ転送される。
The previous data a (read data 35) is read out by hardware control based on the printer's clock 34, and at the same time, the next line data b is written to the BM.The read data is converted into parallel/serial data. It is synchronized with the printer's clock and transferred to the optical printer.

以上のようにBMは、書き込みはプログラムによるソフ
トウェア制御で、読み出しは外部クロックによるハード
ウェア制御でそれぞれ非同期に行われている。
As described above, in the BM, writing is performed under software control using a program, and reading is performed asynchronously under hardware control using an external clock.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

前記式(2)のデータ転送速度Dwは、CPUのマシン
サイクルやメモリのアクセスタイムなどに依存し、−力
先プリンタへの転送速度Dsは、プリンタの機種によっ
て決まる固有の値である。そのため、プリンタへ高速か
つ連続的に直列信号を送る場合、式(2)の関係を満足
しなければならない。
The data transfer speed Dw in the equation (2) depends on the CPU machine cycle, memory access time, etc., and the transfer speed Ds to the destination printer is a unique value determined by the printer model. Therefore, when serial signals are sent to the printer continuously at high speed, the relationship in equation (2) must be satisfied.

第4図は第2図の8M202と刃列・直列変換器2o3
(並列・直列変換回路(2)407と同様)の間に、任
意ビット数設定回路401を置き、NBのビット幅を任
意に設定して速度制御を行えるようにしたものである。
Figure 4 shows the 8M202 in Figure 2 and the blade array/serial converter 2o3.
An arbitrary bit number setting circuit 401 is placed between the circuits (similar to the parallel/serial conversion circuit (2) 407), and the bit width of NB can be arbitrarily set to perform speed control.

第5図は第4図の信号処理タイムシーケンスである。B
Mは前述のように、書き込みはプログラムによるソフト
ウェア制御で、読み出しは光プリンタのクロック信号2
08をもとに制御回路405で作成される読み出しアド
レス210に従って、ハードウェア制御で行われる。第
5図51のようにBMから読み出されたデータ206は
、ラッチ回路に一時保持される。
FIG. 5 is a signal processing time sequence of FIG. 4. B
As mentioned above, writing is controlled by software using a program, and reading is controlled by the clock signal 2 of the optical printer.
This is performed under hardware control according to the read address 210 created by the control circuit 405 based on 08. Data 206 read from the BM as shown in FIG. 51 is temporarily held in a latch circuit.

その後、並列・直列変換回路(1)403で8ビット毎
に52のように並列/直列変換し、直列・並列変換回路
404に1ビットずつ53のように蓄えられる。そして
直列・並列変換回路にデータがNtsビット分蓄えられ
ると、並列・直列変換回路(2)へNBビットだけ転送
し、その後外部クロックによって54のように並列/直
列変換を行う。変換した直列信号207は光プリンタ2
04へ送信される。
Thereafter, the parallel/serial conversion circuit (1) 403 performs parallel/serial conversion on every 8 bits as shown in 52, and the data is stored in the serial/parallel conversion circuit 404 one bit at a time as shown in 53. When Nts bits of data are stored in the serial/parallel conversion circuit, only NB bits are transferred to the parallel/serial conversion circuit (2), and then parallel/serial conversion is performed as shown in 54 using an external clock. The converted serial signal 207 is sent to the optical printer 2
Sent to 04.

直列・並列変換回路404はシフトレジスタに代表され
るような構成のものである。この直列・並列変換回路に
データが蓄積されていく経過を、第6図に示す。ただし
、NBの最大値は32ビットとしNBは20ビットに設
定した。データ入力前は、Aのようにランダムなデータ
が格納されている。並列・直列変換回路<1)403か
らデータが送られてくる毎にB、Cのようにデータが格
納され、n番目のデータが入力されるとDのようになる
。そして、Eのように20ビット(1〜20)転送され
ると、下から20ビット分が並列・直列変換回路(2)
へ転送されてしまうため。
The serial/parallel conversion circuit 404 has a configuration typified by a shift register. FIG. 6 shows the progress in which data is accumulated in this serial/parallel conversion circuit. However, the maximum value of NB was set to 32 bits, and NB was set to 20 bits. Before data is input, random data like A is stored. Each time data is sent from the parallel/serial conversion circuit <1) 403, the data is stored like B and C, and when the nth data is input, it becomes like D. Then, when 20 bits (1 to 20) are transferred as shown in E, the 20 bits from the bottom are transferred to the parallel/serial conversion circuit (2).
Because it will be transferred to.

直列信号の最初は意味のないデータを転送してしまう、
このことはラインずれの原因となり、1行目の文字の最
後が2行目の最初に出てしまうという現象を起こす。こ
れは、FAXやプリンタで発生することがある。またカ
ラープリンタの場合、ラインのずれは色ずれを引き起こ
す原因にもなる。
At the beginning of the serial signal, meaningless data is transferred,
This causes line misalignment, resulting in the phenomenon that the end of the character on the first line appears at the beginning of the second line. This can occur with faxes and printers. Furthermore, in the case of color printers, line misalignment can also cause color misalignment.

さらに、1枚の絵を4分の1に分割して印刷し。Furthermore, one picture is divided into quarters and printed.

おのおのの印刷したものをつなぎ合わせてもとの絵の拡
大したものを得ようとした場合、ラインのずれがあると
接合性が悪くなる。
If you try to create an enlarged version of the original picture by joining together the individual prints, if the lines are misaligned, the joining will be poor.

本発明はこのラインのずれを補正し、広範囲の印刷条件
に対して、鮮明な印刷が可能となるデータ転送速度変換
装置を提供することにある。
An object of the present invention is to provide a data transfer rate conversion device that corrects this line shift and enables clear printing under a wide range of printing conditions.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、第1図に示す構成で以下の処理を行うこと
により達成される。第7図にNBを20ビットとしたと
きの、直列・並列変換回路404の処理の経過を示す、
まず最初に第7図Bのように32ビットのデータ(1〜
32)を格納した後。
The above object is achieved by performing the following processing with the configuration shown in FIG. FIG. 7 shows the progress of processing in the serial/parallel conversion circuit 404 when NB is 20 bits.
First, as shown in Figure 7B, 32 bits of data (1~
32) after storing.

20ビットの並列データ(1〜20)を並列・直列変換
回路(2)407へ転送し、並列/直列変換を開始する
。その間に並列・直列変換回路(1)403から1ビッ
トずつデータが転送され、第7図Cのように20ビット
の直列データ(1〜20)が転送されると、並列・直列
変換回路(2)へ次の20ビットの並列データ(21〜
32,1〜8)が転送される。さらに、並列・直列変換
回路(1)から第7図りのように次の20ビットの直列
データ(21〜32,1〜8)が転送されると、並列・
直列変換回路(2)へ20ビットの並列データ(9〜2
8)が転送されるというように、プリンタへ随時直列信
号207が転送されていく。
The 20-bit parallel data (1 to 20) is transferred to the parallel/serial conversion circuit (2) 407, and parallel/serial conversion is started. During that time, data is transferred bit by bit from the parallel/serial conversion circuit (1) 403, and when 20 bits of serial data (1 to 20) are transferred as shown in Figure 7C, the parallel/serial conversion circuit (2) is transferred. ) to the next 20 bits of parallel data (21~
32, 1 to 8) are transferred. Furthermore, when the next 20 bits of serial data (21 to 32, 1 to 8) are transferred from the parallel to serial conversion circuit (1) as shown in Figure 7, the parallel to serial conversion circuit (1)
20-bit parallel data (9 to 2
8), the serial signal 207 is transferred to the printer as needed.

第8図は第7図の処理タイムシーケンスを示す。FIG. 8 shows the processing time sequence of FIG.

第7図Bの処理は、垂直同期信号81,108が有効(
ハイレベル)になってから、第1ライン目の水平同期信
号82,107が入力される間(T。
In the process of FIG. 7B, the vertical synchronization signals 81 and 108 are valid (
during the period from when the horizontal synchronizing signals 82, 107 of the first line are input (T).

時間内)に行う、そして第1ライン目の入力後は。time), and after inputting the first line.

第7図C,Dのように処理が継続する。ここで。The process continues as shown in FIGS. 7C and 7D. here.

垂直同期信号が有効になってから第1ライン目の水平同
期信号が入力されるまでの時間Toは光プリンタまたは
外部機器によって異っており、 T。
The time To from when the vertical synchronization signal becomes valid until the horizontal synchronization signal of the first line is input varies depending on the optical printer or external device.

時間内に第7図Bの処理が外部クロックで行った場合、
完了しない場合がある。また外部クロックも、機種によ
って随時連続して送られてくるものや、第8図84のよ
うにデータを転送する間だけ送られてくるものがあり、
後者の場合は第7図Bの処理は行えない、このため内部
に発振源(内部クロック109)を設け、プリンタのク
ロックや垂直および水平同期信号に影響を受けずに独立
に直列・並列変換の処理を行う。
If the process in Figure 7B is performed within the time using an external clock,
It may not be completed. Also, depending on the model, the external clock may be sent continuously at any time, or it may be sent only while data is being transferred, as shown in Figure 8 84.
In the latter case, the process shown in Figure 7B cannot be performed. Therefore, an oscillation source (internal clock 109) is provided internally to perform serial/parallel conversion independently without being affected by the printer clock or vertical and horizontal synchronization signals. Perform processing.

さらに第1図の構成では第5図に示すように直列・並列
変換回路に格納する直列データ53(以下変換データと
呼ぶ)を監視するための変換データ監視回路(l O2
)と第5図の54のように並列・直列変換回路(2)で
並列/直列変換を行う並列データ(以下NBデータと呼
ぶ)を監視するためのNBデータ監視回路(104,)
を持つ。また、制御回路(103)は変換データ監視回
路の情報を受け、第7図Bの操作とC以降の操作を制御
するための回路である。
Furthermore, in the configuration of FIG. 1, as shown in FIG. 5, a conversion data monitoring circuit (l O2
) and an NB data monitoring circuit (104,) for monitoring parallel data (hereinafter referred to as NB data) subjected to parallel/serial conversion by the parallel/serial conversion circuit (2) as shown in 54 in FIG.
have. Further, the control circuit (103) is a circuit for receiving information from the conversion data monitoring circuit and controlling the operation shown in FIG. 7B and the operations after C.

〔作用〕[Effect]

第1図において第7図のBの処理は、以下のように行わ
れる。垂直同期信号10Bが有効になると、変換データ
監視回路102の情報をもとに。
In FIG. 1, the process B in FIG. 7 is performed as follows. When the vertical synchronization signal 10B becomes valid, based on the information of the conversion data monitoring circuit 102.

制御回路103から読み出し信号105を作成し。A read signal 105 is generated from the control circuit 103.

BMからデータ(8ビット)を読み出す、このデータは
、並列・直列変換回路(1)403に一時格納され、直
ちに並列/直列変換される。−力制御回路103は、直
列・並列変換回路404を制御し、並列・直列変換回路
(1)で並列/直列変換されたデータを1ビットずつ格
納していき、第7図Bのように32ビットのデータが満
たされる。
Data (8 bits) is read from the BM. This data is temporarily stored in the parallel/serial conversion circuit (1) 403 and is immediately converted into parallel/serial. - The force control circuit 103 controls the serial/parallel conversion circuit 404 and stores the data parallel/serial converted by the parallel/serial conversion circuit (1) one bit at a time, as shown in FIG. 7B. Bit data is filled.

そして第1ライン目の水平同期信号107が入力される
と、NBデータ監視回路104で外部クロック208を
もとに作成するロード信号101によってNBビット分
のデータ406を並列・直列変換回路(2)407へ転
送し並列/直列変換を開始する。このような制御を行う
ことにより。
When the horizontal synchronization signal 107 of the first line is input, the load signal 101 created based on the external clock 208 by the NB data monitoring circuit 104 converts the data 406 for NB bits into the parallel/serial conversion circuit (2). 407 and start parallel/serial conversion. By performing such control.

NBデータの変換開始時点から正しいデータを転送する
ことが可能となる。
It becomes possible to transfer correct data from the start of conversion of NB data.

次に第7図CおよびC以降の制御は以下の通りである。Next, the control at C and after C in FIG. 7 is as follows.

変換データ監視回路はN8ビット設定値106をもとに
何ビットの変換データが直列・並列変換回路に格納され
たかを監視する。この情報は制御回路に送られ、制御回
路の出力によって直列・並列変換回路を制御する。また
、NBデータ監視回路はNBビット設定値をもとに、何
ビットのNBデータを外部へ転送したのかを監視し、N
Bビット分を並列/直列変換する毎に外部クロックをも
とに作成したロード信号で並列・直列変換回路(2)へ
次のNBデータを格納する。このような制御を行うこと
によって、プリンタから送られてくる。垂直および水平
同期信号や外部クロック信号に対して、忠実に信頼性高
くデータ転送速度制御が可能となる。
The conversion data monitoring circuit monitors how many bits of conversion data are stored in the serial/parallel conversion circuit based on the N8 bit setting value 106. This information is sent to the control circuit, and the output of the control circuit controls the serial/parallel conversion circuit. In addition, the NB data monitoring circuit monitors how many bits of NB data have been transferred to the outside based on the NB bit setting value, and
Every time B bits are parallel-to-serial converted, the next NB data is stored in the parallel-to-serial conversion circuit (2) using a load signal created based on an external clock. By performing such control, the information is sent from the printer. It is possible to control the data transfer rate faithfully and reliably with respect to vertical and horizontal synchronization signals and external clock signals.

〔実施例〕〔Example〕

以下本発明の一実施例を第9図に示す。第1図の直列・
並列変換回路404が第9図のデコーダ901およびフ
リップフロップ回路(以下F/F)902で、同じく変
換データ監視回路102は、カウンタ(1)905.カ
ウンタ(2)906およびコンパレータ(1)907、
NBデータ監視回路104はカウンタ(3)903およ
びコンパレータ(2)904にそれぞれ相当する。具体
例としてNBビット設定値106を20ビットとし。
An embodiment of the present invention is shown in FIG. 9 below. Series in Figure 1
The parallel conversion circuit 404 is a decoder 901 and a flip-flop circuit (hereinafter referred to as F/F) 902 in FIG. 9, and the conversion data monitoring circuit 102 is also a counter (1) 905 . Counter (2) 906 and comparator (1) 907,
The NB data monitoring circuit 104 corresponds to a counter (3) 903 and a comparator (2) 904, respectively. As a specific example, assume that the NB bit setting value 106 is 20 bits.

F/Fは32個用意するものとする。したがってカウン
タ(1)は用意したF/Fの分の32進。
It is assumed that 32 F/Fs are prepared. Therefore, the counter (1) is a 32-decimal number corresponding to the prepared F/F.

カウンタ(2)および(3)はNBビット設定値の20
進カウンタとする。
Counters (2) and (3) are 20 of the NB bit setting value.
It is a forward counter.

まず、最初に垂直同期信号108が有効になると、制御
回路1.03が出力する読み出し信号105によりBM
からデータを読み出し並列・直列変換回路(1)403
に一時保持する。その後直ちに並列/直列変換を行いF
/F (1)から順に格納していく、このとき制御回路
は、カウンタ(1)の情報を出力しデコーダを制御する
。デコーダの出力は、各F/Fのゲート端子に入ってお
りF/F(1)から順に選択し、F/F (32)まで
第7図Bのようにデータを格納した後−時停止する。
First, when the vertical synchronization signal 108 first becomes effective, the readout signal 105 output from the control circuit 1.03 causes the BM
Read data from parallel/serial conversion circuit (1) 403
temporarily held. After that, parallel/serial conversion is performed immediately.
/F (1) is stored in order. At this time, the control circuit outputs the information of the counter (1) and controls the decoder. The output of the decoder is input to the gate terminal of each F/F, and it is selected in order from F/F (1), and stops after storing data as shown in Figure 7B up to F/F (32). .

その後、第1ライン目の水平同期信号107が入力され
ると、並列・直列変換回路(2)に20ビットのデータ
(F/F (1)〜(20)の出力)が転送され、並列
/直列変換を開始する。この時点から制御回路はデコー
ダにF/F (32)のゲートだけを開くように指示し
、カウンタ(2)は変換データを、カウンタ(3)はN
Bデータの監視を開始する。
After that, when the horizontal synchronization signal 107 of the first line is input, 20-bit data (outputs of F/Fs (1) to (20)) is transferred to the parallel/serial conversion circuit (2), and the parallel/serial conversion circuit (2) is transferred to the parallel/serial conversion circuit (2). Start serial conversion. From this point on, the control circuit instructs the decoder to open only the gate of F/F (32), the counter (2) receives the conversion data, and the counter (3) receives the N
Start monitoring B data.

第10図に本時点からの信号の流れを示す。FIG. 10 shows the signal flow from this point on.

BMから10のように読み出されたデータは、並列・直
列変換回路(1)で11のように直列データに変換され
る。このデータは、まずF/F(32)に格納され、F
/F (32)のデータはF/F (31)に、F/F
 (31)のデータはF/F (30)にというように
順序よく次のF/Fにシフトされる。そして、第10図
12のように20ビットのデータが転送され第7図Cの
ようになると、コンパレータ(2)で作成するロード信
号101で同図Cの並列データ(21〜32および1〜
8)が並列・直列変換回路(2)へ格納され、第10図
13のように20ビットの並列/直列変換が行われる。
Data read out from the BM as 10 is converted into serial data as 11 by a parallel/serial conversion circuit (1). This data is first stored in F/F (32), and
/F (32) data is transferred to F/F (31), F/F
The data in (31) is shifted to the next F/F in order, such as F/F (30). Then, when the 20-bit data is transferred as shown in FIG. 10 and 12 and becomes as shown in FIG.
8) is stored in the parallel/serial conversion circuit (2), and 20-bit parallel/serial conversion is performed as shown in FIG. 10.

そして次の第7図りの状態に移り始める1以上の処理を
繰り返すことによって、光プリンタへ転送するデータが
、転送開始時点から有効なデータを転送することができ
る。
Then, by repeating one or more processes that start the transition to the next state shown in the seventh diagram, it is possible to transfer data to the optical printer that is valid from the time the transfer is started.

第11図に別の実施例を示す、第1図の並列・直列変換
回路(2)407が第11図のF/F902とセレクタ
120で、同じく変換データ監視回路102がカウンタ
(1)121およびコンパレータ(1)907.Nsデ
ータ監視回路104がカウンタ(2)903およびコン
パレータ(2)904にそれぞれ相当する。具体例とし
て先回と同様、NBビットを20ビットとしF/Fは3
2個用意する。カウンタ(1)および(2)は。
Another embodiment is shown in FIG. 11, in which the parallel/serial conversion circuit (2) 407 in FIG. 1 is the F/F 902 and selector 120 in FIG. Comparator (1) 907. The Ns data monitoring circuit 104 corresponds to a counter (2) 903 and a comparator (2) 904, respectively. As a specific example, as in the previous case, the NB bit is 20 bits and the F/F is 3.
Prepare two. Counters (1) and (2) are.

NBビット設定値106の20進カウンタである。It is a 20-decimal counter with an NB bit setting value of 106.

信号の流れおよび各回路の動作は、第9図と大きな違い
はない。まずセレクタ120は、Nsビット設定値で任
意に各F/Fの出力端子と接続することができ、この例
ではNsが20ビットであるため、MSBから20番目
のF/F (1)の出力を指している。直列・並列変換
回路404はシフトレジスタに代表される構成となって
おり、並列・直列変換回路(1)403から出力される
データは、M S B (Most Sighific
ant Bit)側から入力され、データが転送されて
くる毎にL S B (LeastSighifica
nt Bit)側にシフトされる。第9図では、垂直同
期信号108が有効になると、始めに直列・並列変換回
路内に32ビットの変換データを格納したが、本例では
20ビットでよい。そして第1ライン目の水平同期信号
107が入力されると先の20ビットのデータを第12
図BのようにF/F (20)〜(1)にNBデータを
格納する。
The signal flow and the operation of each circuit are not significantly different from those in FIG. First, the selector 120 can be arbitrarily connected to the output terminal of each F/F using the Ns bit setting value. In this example, since Ns is 20 bits, the output of the 20th F/F (1) from the MSB is pointing to. The serial/parallel converter circuit 404 has a configuration typified by a shift register, and the data output from the parallel/serial converter (1) 403 is MS B (Most Significant
ant Bit) side, and each time data is transferred, LSB (Least Significant
nt Bit) side. In FIG. 9, when the vertical synchronization signal 108 becomes valid, 32-bit conversion data is first stored in the serial/parallel conversion circuit, but in this example, 20-bit conversion data is sufficient. When the horizontal synchronizing signal 107 of the first line is input, the previous 20 bits of data are transferred to the 12th line.
As shown in Figure B, NB data is stored in F/Fs (20) to (1).

第12図は各F/Fのデータの流れを模式化したもので
、矢印はセレクタの出力を示している。各F/Fに格納
されたNBデータは、外部クロックによって第12図の
C,D、Eの順にシフトぎわ、セレクタからはシフトさ
れたデータが順序よく出力される。そして、20ビット
分シフトされると、次のNBデータをF/F (20)
〜(1)に新たに格納し、一連の処理を継続する。その
他、各制御回路の働きや制御方法は、第9図と同じであ
る。
FIG. 12 schematically shows the data flow of each F/F, and the arrows indicate the outputs of the selectors. The NB data stored in each F/F is shifted in the order of C, D, and E in FIG. 12 by an external clock, and the shifted data is output from the selector in order. Then, when shifted by 20 bits, the next NB data is F/F (20)
~(1), and continue the series of processing. Other than that, the functions and control methods of each control circuit are the same as in FIG. 9.

以上のように、第9図では初期設定として32ビットの
変換データを直列・並列変換回路にセットシ、その後2
0ビット毎に制御していたが、本例では最初から20ビ
ット毎にデータを処理すればよく、変換データ監視回路
のカウンタは一個で済む。
As described above, in Figure 9, 32-bit conversion data is set in the serial/parallel conversion circuit as an initial setting, and then
Although control was performed for each 0 bit, in this example, it is sufficient to process data every 20 bits from the beginning, and the conversion data monitoring circuit only needs one counter.

以上第1図をもとに構成した2つの実施例は、プリンタ
からの転送りロックや垂直同期信号および水平同期信号
に対して、忠実に信頼性の高いデータ転送速度制御が可
能となり、NBデータを並列/直列変換開始した時点か
ら正しいデータが転送されるため、カラープリンタの色
ずれおよびFAXやプリンタのラインずれが補正される
The two embodiments constructed based on FIG. Correct data is transferred from the moment parallel/serial conversion starts, so color shifts in color printers and line shifts in FAXs and printers are corrected.

〔発明の効果〕〔Effect of the invention〕

CPUなどの並列信号を扱う送信手段と光プリンタなど
の直列信号を扱う受信手段間のデータ転送において、並
列/直列変換を行う際、受信手段に送る直列データは正
確に送らなければならない。
When performing parallel/serial conversion in data transfer between a transmitting means such as a CPU that handles parallel signals and a receiving means that handles serial signals such as an optical printer, the serial data sent to the receiving means must be sent accurately.

本発明によれば、変換データを整理してから並列/直列
変換を開始するための制御回路およびデータの並列/直
列あるいは直列/並列変換の状態を監視するための監視
回路を設け、第7図に示す処理を行うことによって、プ
リンタからの転送りロックや垂直および水平同期信号に
忠実に信頼性の高いデータ転送速度変換が可能となる。
According to the present invention, a control circuit for organizing conversion data and then starting parallel/serial conversion, and a monitoring circuit for monitoring the state of parallel/serial or serial/parallel conversion of data are provided, as shown in FIG. By performing the processing shown in , it is possible to perform highly reliable data transfer rate conversion faithfully to the transfer lock and vertical and horizontal synchronization signals from the printer.

さらに変換開始時点から正しいデータが転送されるため
Furthermore, the correct data is transferred from the start of the conversion.

FAXやプリンタに見られるラインずれやカラープリン
タの色ずれを防止することができ、また1枚のサンプル
を分割して印刷し、それをつなぎ合わせて拡大したサン
プルを得ることも可能となる。
It is possible to prevent line misalignment seen in faxes and printers and color misalignment seen on color printers, and it is also possible to print a single sample in sections and connect them to obtain an enlarged sample.

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

第1図は本発明の基本ブロック図、第2図は従来の速度
変換例を示す図、第3図は第2図の制御タイムシーケン
スを示す図、第4図は従来の任意ビット数設定方式のブ
ロック図、第5図は第4図の処理タイムシーケンスを示
す図、第6図は第4図の変換データの動作推移を示す図
、第7図は第1図の変換データの動作推移を示す図、第
8図は第1図の処理タイムシーケンスを示す図、第9図
は本発明の一実施例を示す図、第10図は第9図の処理
タイムシーケンスを示す図、第11図は本発明の別の実
施例を示す図、第12図は第11図のN8データの動作
推移を示す図である。 101・・・ロード信号、102・・・変換データ監視
回路、103・・・制御回路、104・・・Nsデータ
監視回路、105・・・読み出し信号、106・・・N
Bビット設定値、107・・・水平同期信号、108・
・・垂直同期信号、201・・・CPU、202・・・
バッファメモリ、203・・・並列・直列変換器、20
7・・・直列信号、208・・・外部クロック、211
・・・アドレス発生回路、401・・・任意ビット数設
定回路、402・・・ラッチ回路、403・・・並列・
直列変換回路(1)、404・・・直列・並列変換回路
、405・・・制御回路、406・・・NBビット、4
o7・・・並列・直列変換回路(2)、901・・・デ
コーダ、902・・・フリップフロップ、903・・・
カウンタ(3)。 904・・・コンパレータ(2)、905・・・カウン
タ(1)、906・・・カウンタ(1)、907・・・
コンパレータ 120・・・セレクタ。 第 図 FLh出しデー735 $Eと出しデーysr (3ヒ゛−7ト) 走夕11訂・1傅如)52 wJ3図 第5図 」L 第4図 第6 図 第7図 チー7 テーク テーク テ′タ ハ 凸 第9図 0旧期件駐1 木早国鼎41q&2 外郭7に7N ′L列・鼾’I東癒full 第80 第10図 I 第11図 A 第12図 ε
Fig. 1 is a basic block diagram of the present invention, Fig. 2 is a diagram showing a conventional speed conversion example, Fig. 3 is a diagram showing the control time sequence of Fig. 2, and Fig. 4 is a conventional arbitrary bit number setting method. , FIG. 5 is a diagram showing the processing time sequence of FIG. 4, FIG. 6 is a diagram showing the operation transition of the converted data of FIG. 4, and FIG. 7 is a diagram of the operation transition of the converted data of FIG. 1. 8 is a diagram showing the processing time sequence of FIG. 1, FIG. 9 is a diagram showing an embodiment of the present invention, FIG. 10 is a diagram showing the processing time sequence of FIG. 9, and FIG. 11 is a diagram showing the processing time sequence of FIG. 12 is a diagram showing another embodiment of the present invention, and FIG. 12 is a diagram showing the operation transition of the N8 data in FIG. 11. 101... Load signal, 102... Conversion data monitoring circuit, 103... Control circuit, 104... Ns data monitoring circuit, 105... Read signal, 106... N
B bit setting value, 107...Horizontal synchronization signal, 108...
...Vertical synchronization signal, 201...CPU, 202...
Buffer memory, 203... Parallel/serial converter, 20
7...Serial signal, 208...External clock, 211
...Address generation circuit, 401...Arbitrary bit number setting circuit, 402...Latch circuit, 403...Parallel
Serial conversion circuit (1), 404...Serial/parallel conversion circuit, 405...Control circuit, 406...NB bit, 4
o7...Parallel/serial conversion circuit (2), 901...Decoder, 902...Flip-flop, 903...
Counter (3). 904... Comparator (2), 905... Counter (1), 906... Counter (1), 907...
Comparator 120...Selector. Figure FLh release date 735 $E and output date ysr (3 pages - 7 pages) Souyu 11th edition, 1st edition) 52 wJ3 Figure 5'L Figure 4 Figure 6 Figure 7 Q7 Take Take Te'taha Convex Figure 9 0 Old period parking 1 Kihaya Kokuden 41q & 2 Outer enclosure 7 7N 'L row/Snoring 'I East healing full No. 80 Figure 10 I Figure 11 A Figure 12 ε

Claims (1)

【特許請求の範囲】[Claims] 1、複合型プリンタシステムのインターフェイスはバッ
ファメモリ(BM)と並列・直列変換器から成るデータ
転送速換装置で、前記BMと前記並列・直列変換器の間
に並列信号の数を変えて信号の転送速度を変える任意ビ
ット数設定回路を設け、任意ビット数設定回路は、並列
・直列変換(P・S)回路(1)と前記並列・直列変換
器と同機能のP・S回路(2)、直列・並列変換(S・
P)回路および制御回路、変換データ監視回路、N_B
データ監視回路で構成され、送信手段から8又は16、
32ビットで読み出したデータを前記BMに一時格納し
、BMの出力データを前記任意ビット数設定回路内の8
又は16、32ビットの並列入力を有するP・S回路(
1)に送信後P・Sし、変換データ監視回路と制御回路
の制御により、P・S回路(1)の直列データを前記S
・P回路に1ビットずつ格納していき、S・P回路内に
データを満たした後、N_BビットだけP・S回路(2
)へ転送しP・Sを開始しプリンタへ直列データを送信
する一方、S・P回路には連続してデータを格納し、N
_Bビット分送られてくる毎に前記N_Bデータ監視回
路で作成される信号によつて、前記のP・S回路(2)
に新しい並列データを格納し再びP・Sをしプリンタに
送信する処理を繰り返し行うことによつて、速度制御を
行うことを特徴とするデータ転送速度変換装置。
1. The interface of the composite printer system is a data transfer rate converter consisting of a buffer memory (BM) and a parallel/serial converter, and the number of parallel signals is changed between the BM and the parallel/serial converter to convert the signal. An arbitrary bit number setting circuit that changes the transfer speed is provided, and the arbitrary bit number setting circuit includes a parallel-to-serial conversion (P/S) circuit (1) and a P/S circuit (2) having the same function as the parallel-to-serial converter. , serial/parallel conversion (S/
P) Circuit and control circuit, conversion data monitoring circuit, N_B
8 or 16 from the transmitting means, consisting of a data monitoring circuit;
The data read in 32 bits is temporarily stored in the BM, and the output data of the BM is stored in the 8 bits in the arbitrary bit number setting circuit.
Or P/S circuit with 16 or 32 bit parallel input (
1), the serial data of the P/S circuit (1) is transmitted to the S by the control of the conversion data monitoring circuit and the control circuit.
- Store one bit at a time in the P circuit, and after filling the S/P circuit with data, store only N_B bits in the P/S circuit (2
) to start P/S and send serial data to the printer, while continuously storing data in the S/P circuit and
The P/S circuit (2) is activated by the signal created by the N_B data monitoring circuit every time _B bits are sent.
1. A data transfer speed converting device characterized in that speed control is performed by repeatedly performing a process of storing new parallel data, performing P/S again, and transmitting the data to a printer.
JP1033592A 1989-02-15 1989-02-15 Converter for data transfer speed Pending JPH02213929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1033592A JPH02213929A (en) 1989-02-15 1989-02-15 Converter for data transfer speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1033592A JPH02213929A (en) 1989-02-15 1989-02-15 Converter for data transfer speed

Publications (1)

Publication Number Publication Date
JPH02213929A true JPH02213929A (en) 1990-08-27

Family

ID=12390772

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1033592A Pending JPH02213929A (en) 1989-02-15 1989-02-15 Converter for data transfer speed

Country Status (1)

Country Link
JP (1) JPH02213929A (en)

Similar Documents

Publication Publication Date Title
US4589020A (en) TV video data input apparatus
JPH02213929A (en) Converter for data transfer speed
JPS6231546B2 (en)
JP2937233B2 (en) Format converter
JPH09265367A (en) Device and method for printer control
JP2955301B2 (en) Image processing method
JP2955300B2 (en) Image processing method and apparatus
JP2001088369A (en) Image forming apparatus
JP2567428B2 (en) Data transfer rate converter
JPH01226024A (en) Data transfer speed converter
JP2704063B2 (en) CCD image sensor control circuit
JPS6016757A (en) Document transmission system
JP3165750B2 (en) Printing equipment
JP3427938B2 (en) Image forming device
JPS6039972A (en) Picture processing system
JPH0683759A (en) Information processor
JPH06143695A (en) Printing apparatus
JPS62297153A (en) Controller of page printer
JPH0484352A (en) Dma controller
JPH0661957B2 (en) Printer controller
JPS6050590A (en) Color conversion system for color hard copy
JPH05204367A (en) Output control system for character signal or the like
JPS60588A (en) Control system of copying machine
JPH07110018B2 (en) Serial communication device
JPS62242988A (en) Display unit