JPH05216985A - Data density conversion circuit - Google Patents

Data density conversion circuit

Info

Publication number
JPH05216985A
JPH05216985A JP4019616A JP1961692A JPH05216985A JP H05216985 A JPH05216985 A JP H05216985A JP 4019616 A JP4019616 A JP 4019616A JP 1961692 A JP1961692 A JP 1961692A JP H05216985 A JPH05216985 A JP H05216985A
Authority
JP
Japan
Prior art keywords
data
bit
parallel
conversion circuit
serial
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
JP4019616A
Other languages
Japanese (ja)
Inventor
Atsuo Matsunaga
淳雄 松永
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4019616A priority Critical patent/JPH05216985A/en
Publication of JPH05216985A publication Critical patent/JPH05216985A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To improve conversion speed by operating a data density conversion by a hardware, in a data density conversion circuit which converts m-bit parallel data into the m-bit parallel data in which one bit data are thinned out at every n-th bit. CONSTITUTION:The m-bit parallel data are converted into serial data by a parallel/serial conversion circuit 1, shifted by each one bit, and transferred to a serial/parallel conversion circuit 2. Then, the transferred data are shifted by each one bit by the serial/parallel conversion circuit 2, converted into the m-bit parallel data, and outputted. At that time, a data shift at the parallel/ serial conversion circuit 1 is operated synchronously with a clock, and the data shift at the serial/parallel conversion circuit 2 is stopped at every n-th bit.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ密度変換回路に関
する。CRTや液晶等の表示装置あるいはプリンタで
は、ドットデータによって画像表示あるいは印刷を行う
が、ドット密度の異なるデータを表示・印刷する場合あ
るいはドット密度が同一であっても画像の縮小拡大処理
を行う場合にはドットデータの変換を行わねばならな
い。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data density conversion circuit. A display device or printer such as a CRT or liquid crystal displays or prints an image according to dot data, but when displaying / printing data having different dot densities, or when performing image reduction / enlargement processing even if the dot densities are the same. Must convert the dot data.

【0002】[0002]

【従来の技術】データ密度の変換は、次々に入力される
並列データ、たとえば8ビット並列データから一定の割
合でデータを間引くか、あるいはデータを追加すること
によって行う。図6はデータ密度変換前後のパターンの
例を示したものである。同図におけるパターンは、それ
ぞれ1インチ当たりのデータ数を示すdpi によってデー
タ密度を表したものであり、240dpiから160dpiに変換す
る場合には、次々に入力される8ビット並列データを、
3ビット目ごとに1ビット分のデータが間引かれたデー
タに変換し、また、160dpiから240dpiに変換する場合に
は、次々に入力される8ビット並列データを、3ビット
目ごとに1ビット分のデータが追加されたデータに変換
する。図中に示した番号は個々のデータを区別するため
に付したものである。変換前のデータのうち図中点線で
囲んだ番号1から番号8までの8個のデータが最初に入
力される8ビット並列データ、番号9以降8個のデータ
が次に入力される8ビット並列データ・・・を示してい
る。同図に見られるように、変換後の8ビット並列デー
タは、3ビット目ごとにデータが間引きされたもの、あ
るいは3ビット目ごとにデータが追加されたものとなっ
ている。
2. Description of the Related Art Conversion of data density is performed by thinning out data at a constant rate or adding data from parallel data input one after another, for example, 8-bit parallel data. FIG. 6 shows an example of patterns before and after data density conversion. The pattern in the figure shows the data density in dpi indicating the number of data per inch, and when converting from 240 dpi to 160 dpi, the 8-bit parallel data that is input one after another is
When converting every 3rd bit into data with 1 bit thinned out, and when converting from 160dpi to 240dpi, the 8bit parallel data that is input one after another is converted into 1bit for every 3rd bit. Convert minute data to added data. The numbers shown in the figure are given to distinguish individual data. Of the data before conversion, 8 pieces of data from number 1 to number 8 enclosed by the dotted line in the figure are input first, 8-bit parallel data, and pieces of data after number 9 are input 8-bit parallel. Data ... is shown. As can be seen in the figure, the 8-bit parallel data after conversion is data in which data is thinned out every 3rd bit or data is added every 3rd bit.

【0003】従来は、データ密度変換のためのプログラ
ムをMPUに実行させることによって上述の変換を行っ
ていた。プログラムは一定量のデータシフトを行う命令
とデータシフトの都度データの間引きあるいは追加を行
う命令の繰り返しから構成される。
Conventionally, the above conversion was performed by causing the MPU to execute a program for data density conversion. The program is composed of an instruction for shifting a certain amount of data and a repeating instruction for thinning or adding data at each data shift.

【0004】[0004]

【発明が解決しようとする課題】ソフトウェアによりデ
ータ密度の変換を行う方式では、特別の回路を設ける必
要がないという利点があるものの、パターンを表すデー
タ数が一般には膨大であるため命令数もそれに伴って膨
大なものとなる。そのため変換処理に時間を要し、プリ
ンタの印字速度の低下あるいは表示装置における描画速
度の低下をもたらすという問題があった。
The method of converting the data density by software has the advantage that no special circuit needs to be provided, but since the number of data representing a pattern is generally enormous, the number of instructions also increases. It becomes enormous. Therefore, there is a problem that the conversion process requires a long time, and the printing speed of the printer is reduced or the drawing speed of the display device is reduced.

【0005】そこで本発明は、データ密度変換をハード
ウェアで行うことによって変換速度の向上を図ることを
目的とする。
Therefore, an object of the present invention is to improve conversion speed by performing data density conversion by hardware.

【0006】[0006]

【課題を解決するための手段】上記課題の解決は、mビ
ット並列データを、nビット目ごとに1ビット分のデー
タが間引かれたmビット並列データに変換するデータ密
度変換回路であって、mビット並列データを直列データ
に変換した後クロックと同期して1ビットづつシフトさ
せる並直列変換回路1と、該並直列変換回路1から転送
されたデータをクロックと同期して1ビットづつシフト
した後mビット並列データに変換する直並列変換回路2
と、該並直列変換回路1におけるデータシフト量がmビ
ットになったとき該並直列変換回路1に新たなmビット
並列データを入力させる入力制御回路3と、該直並列変
換回路2におけるデータシフトをnビット目ごとに停止
させるシフト制御回路4と、該直並列変換回路2におけ
るデータシフト量がmビットになったとき該直並列変換
回路2からmビット並列データを出力させる出力制御回
路5を備えたことを特徴とするデータ密度変換回路、あ
るいは、mビット並列データを、nビット目ごとに1ビ
ット分のデータが追加されたmビット並列データに変換
するデータ密度変換回路であって、mビット並列データ
を直列データに変換した後クロックと同期して1ビット
づつシフトさせる並直列変換回路1と、該並直列変換回
路1から転送されたデータをクロックと同期して1ビッ
トづつシフトした後mビット並列データに変換する直並
列変換回路2と、該並直列変換回路1におけるデータシ
フト量がmビットになったとき該並直列変換回路1に新
たなmビット並列データを入力させる入力制御回路3
と、該並直列変換回路1におけるデータシフトをnビッ
ト目ごとに停止させるシフト制御回路4と、該直並列変
換回路2におけるデータシフト量がmビットになったと
き該直並列変換回路2からmビット並列データを出力さ
せる出力制御回路5を備えたことを特徴とするデータ密
度変換回路によって達成される。
A solution to the above problems is a data density conversion circuit for converting m-bit parallel data into m-bit parallel data in which 1-bit data is thinned out every nth bit. , A parallel-serial conversion circuit 1 for converting m-bit parallel data into serial data and then shifting by 1 bit in synchronization with a clock, and data transferred from the parallel-serial conversion circuit 1 in synchronization with a clock by 1 bit Serial-to-parallel conversion circuit 2 for converting to m-bit parallel data
An input control circuit 3 for inputting new m-bit parallel data to the parallel-serial conversion circuit 1 when the amount of data shift in the parallel-serial conversion circuit 1 becomes m bits; and a data shift in the serial-parallel conversion circuit 2. A shift control circuit 4 for stopping every nth bit and an output control circuit 5 for outputting m-bit parallel data from the serial-parallel conversion circuit 2 when the data shift amount in the serial-parallel conversion circuit 2 becomes m bits. A data density conversion circuit characterized by being provided, or a data density conversion circuit for converting m-bit parallel data into m-bit parallel data in which 1-bit data is added for every n-th bit. A parallel-to-serial conversion circuit 1 for converting bit-parallel data into serial data and then shifting by 1 bit in synchronization with a clock, and transferred from the parallel-to-serial conversion circuit 1. A serial-parallel conversion circuit 2 for converting data into 1-bit parallel data after shifting by 1 bit in synchronization with a clock, and a parallel-serial conversion circuit 1 when the data shift amount in the parallel-serial conversion circuit 1 becomes m bits. Input control circuit 3 for inputting new m-bit parallel data to
A shift control circuit 4 for stopping the data shift in the parallel-serial conversion circuit 1 every nth bit, and the serial-parallel conversion circuits 2 to m when the data shift amount in the serial-parallel conversion circuit 2 becomes m bits. This is achieved by a data density conversion circuit having an output control circuit 5 for outputting bit parallel data.

【0007】[0007]

【作用】図1は本発明の原理を示すブロック図である。
mビット並列データを、nビット目ごとに1ビット分の
データが間引かれたmビット並列データに変換する場合
には、並直列変換回路1に入力されたmビット並列デー
タを直列データに変換した後、クロックに同期して1ビ
ットづつデータのシフトを行い直並列変換回路2に転送
する。そして直並列変換回路2においてシフト制御回路
4からの信号に同期してnビット目ごとにデータのシフ
トを停止するようにしている。そのため、転送されてき
たデータのうちnビット目のデータは直並列変換回路2
に入力されないこととなる。即ち、直並列変換回路2に
はnビットごとに1ビット分のデータが間引きされたデ
ータが入力されることになる。また、並直列変換回路1
におけるデータシフト量がmビットになったときに、並
直列変換回路1に最初にセットされたmビット並列デー
タがシフトによって全て転送され、また、直並列変換回
路2におけるデータシフト量がmビットになったとき
に、直並列変換回路2にmビット分のデータがセットさ
れたことになる。従って、入力制御回路3および出力制
御回路5からの信号に同期して並直列変換回路1へのデ
ータの入力および直並列変換回路2からのデータの出力
を行うことによって、次々に入力されるmビット並列デ
ータからnビット目ごとに1ビット分のデータが間引さ
れたmビット並列データが出力されることになる。
1 is a block diagram showing the principle of the present invention.
When converting m-bit parallel data into m-bit parallel data in which 1-bit data is thinned out every nth bit, the m-bit parallel data input to the parallel-serial conversion circuit 1 is converted into serial data. After that, the data is shifted bit by bit in synchronization with the clock and transferred to the serial-parallel conversion circuit 2. Then, in the serial-parallel conversion circuit 2, the data shift is stopped every nth bit in synchronization with the signal from the shift control circuit 4. Therefore, the n-th bit data of the transferred data is the serial-parallel conversion circuit 2
Will not be entered in. That is, the serial-parallel conversion circuit 2 receives the data obtained by thinning out 1-bit data for every n bits. In addition, the parallel-serial conversion circuit 1
When the amount of data shift in m becomes m bits, the m-bit parallel data initially set in the parallel-serial conversion circuit 1 is all transferred by shift, and the amount of data shift in the serial-parallel conversion circuit 2 becomes m bits. When this happens, the m-bit data has been set in the serial-parallel conversion circuit 2. Therefore, by inputting data to the parallel-serial conversion circuit 1 and outputting data from the serial-parallel conversion circuit 2 in synchronization with the signals from the input control circuit 3 and the output control circuit 5, m is input one after another. This means that m-bit parallel data in which 1-bit data is thinned out every nth bit from the bit-parallel data is output.

【0008】また、mビット並列データを、nビット目
ごとに1ビット分のデータが追加されたmビット並列デ
ータに変換する場合には上記構成において、並直列変換
回路1におけるデータのシフトを入力制御回路3の信号
に同期させてnビット目ごとに停止するとともに、直並
列変換回路2におけるデータのシフトをクロックに同期
させて行うようにすれば、直並列変換回路2には、nビ
ット目ごとに前のビットが繰り返されたデータが入力さ
れることになり、そのため、次々に入力されるmビット
並列データからnビット目ごとに1ビット分のデータが
追加されたmビット並列データを出力させることができ
る。
Further, in the case of converting m-bit parallel data into m-bit parallel data in which 1-bit data is added for every n-th bit, the data shift in the parallel-serial conversion circuit 1 is input in the above configuration. If the data is shifted in the serial-parallel conversion circuit 2 in synchronism with the signal of the control circuit 3 every n-th bit, and the data is shifted in the serial-parallel conversion circuit 2 in synchronism with the clock, the serial-parallel conversion circuit 2 has the n-th bit. Data in which the previous bit is repeated is input for each, and therefore, m-bit parallel data in which 1-bit data is added every nth bit from the m-bit parallel data that is input sequentially is output. Can be made

【0009】[0009]

【実施例】図2は本発明の第1の実施例を示す回路図、
図3は第1の実施例におけるタイミング図である。本実
施例は、MPU(図示せず)から順次入力される8ビッ
ト並列データを、3ビット目ごとに1ビット分のデータ
が間引きされた8ビット並列データに変換して出力する
ものである。また、8ビット並列データとともにクロッ
クおよびスタート信号がMPUから送出されるものとす
る。
1 is a circuit diagram showing a first embodiment of the present invention,
FIG. 3 is a timing chart in the first embodiment. In this embodiment, 8-bit parallel data sequentially input from an MPU (not shown) is converted into 8-bit parallel data in which one bit of data is thinned out every third bit and then output. Further, it is assumed that the clock and the start signal are sent from the MPU together with the 8-bit parallel data.

【0010】図2において、並直列変換回路は8個のA
NDゲート11と8ビットのシフトレジスタ12からなる。
信号aによりANDゲート11がオン状態になったとき、
MPUより入力された8ビット並列データがシフトレジ
スタ12にセットされる。シフトレジスタ12にセットされ
たデータはクロックと同期して1ビットづつ矢印方向に
シフトされ順次直並列変換回路に送られる。
In FIG. 2, the parallel-serial conversion circuit has eight A's.
It comprises an ND gate 11 and an 8-bit shift register 12.
When the AND gate 11 is turned on by the signal a,
The 8-bit parallel data input from the MPU is set in the shift register 12. The data set in the shift register 12 is shifted bit by bit in the arrow direction in synchronism with the clock and is sequentially sent to the serial-parallel conversion circuit.

【0011】直並列変換回路は8ビットのシフトレジス
タ14と8個のANDゲート15からなる。シフトレジスタ
12から転送されてきたデータはシフトレジスタ14に入力
し、信号bが“1”のときクロックにより矢印方向に1
ビットづつシフトされる。そして信号cによってAND
ゲート15がオン状態になったとき外部へ出力される。
The serial-parallel conversion circuit comprises an 8-bit shift register 14 and eight AND gates 15. Shift register
The data transferred from 12 is input to the shift register 14, and when the signal b is "1", it is set to 1 in the direction of the arrow by the clock.
It is shifted bit by bit. AND with signal c
It is output to the outside when the gate 15 is turned on.

【0012】信号a、b、cは以下に述べる入力制御回
路、シフト制御回路、出力制御回路により供給される。
入力制御回路はORゲート16と8進カウンタ17からな
る。ORゲート16には、スタート信号と8進カウンタ17
のキャリ信号が入力し、その出力は信号aとしてAND
ゲート11に送られる。また、8進カウンタ17はスタート
信号の到来とともにクロックのカウントを開始する。以
上の構成から、スタート信号の到来によってANDゲー
ト11がオン状態となり最初の8ビット並列データがシフ
トレジスタ12にセットされるとともに8進カウンタ17が
クロックのカウントを開始する。シフトレジスタ12にセ
ットされたデータはクロックと同期して1ビットづつ矢
印方向にシフトするため、スタート信号が入力された後
8カウント目にシフトレジスタ12内のデータは全て出払
うこととなる。そして、8進カウンタ17が出力するキャ
リ信号によって次の8ビット並列データがシフトレジス
タ12にセットされることになる。
The signals a, b and c are supplied by the input control circuit, shift control circuit and output control circuit described below.
The input control circuit comprises an OR gate 16 and an octal counter 17. The OR gate 16 has a start signal and an octal counter 17
Carry signal is input and the output is ANDed as signal a
Sent to gate 11. Further, the octal counter 17 starts counting clocks when a start signal arrives. With the above configuration, the AND gate 11 is turned on by the arrival of the start signal, the first 8-bit parallel data is set in the shift register 12, and the octal counter 17 starts counting the clock. Since the data set in the shift register 12 is shifted bit by bit in the arrow direction in synchronization with the clock, all the data in the shift register 12 is discharged at the 8th count after the start signal is input. Then, the carry signal output from the octal counter 17 sets the next 8-bit parallel data in the shift register 12.

【0013】シフト制御回路は3進カウンタ18、NOT
ゲート19およびANDゲート13により構成されている。
3進カウンタ18はスタート信号の到来とともにクロック
のカウントを開始し3カウント目ごとにキャリ信号を出
力する。このキャリ信号はNOTゲート19によって反転
されてANDゲート13に送られ、ANDゲート13の出力
信号bによってシフトレジスタ14におけるデータシフト
が制御される。即ち、b=“1”のときデータをシフト
させ、b=“0”のときデータのシフトを停止させる。
従って、3進カウンタ18のキャリ信号が出力される都度
シフトレジスタ14におけるデータのシフトが停止する。
そのため、シフトレジスタ12から転送されてきたデータ
は、3ビット目ごとにシフトレジスタ14に入力されない
こととなり、その結果、3ビット目のデータが間引かれ
てシフトレジスタ14に入力され順次矢印方向にシフトす
ることになる。
The shift control circuit includes a ternary counter 18, NOT
It is composed of a gate 19 and an AND gate 13.
The ternary counter 18 starts counting clocks with the arrival of the start signal and outputs a carry signal at every third count. The carry signal is inverted by the NOT gate 19 and sent to the AND gate 13, and the data shift in the shift register 14 is controlled by the output signal b of the AND gate 13. That is, when b = “1”, the data is shifted, and when b = “0”, the data shift is stopped.
Therefore, the shift of the data in the shift register 14 is stopped every time the carry signal of the ternary counter 18 is output.
Therefore, the data transferred from the shift register 12 is not input to the shift register 14 every third bit, and as a result, the data of the third bit is thinned out and input to the shift register 14 in the arrow direction. It will be shifted.

【0014】出力制御回路は8進カウンタ20から構成さ
れている。8進カウンタ20はスタート信号の到来ととも
にクロックのカウントを開始するが3進カウンタ18から
キャリ信号が出力される都度クロックのカウントを停止
する。従って、シフトレジスタ14における正味のデータ
シフト量が8ビット分になったときに8進カウンタ20の
キャリ信号が出力され、このときシフトレジスタ14内に
8ビット分のデータがセットされることになる。従っ
て、この8進カウンタ20のキャリ信号を信号cとしてA
NDゲート15に送りオン状態とすることによりシフトレ
ジスタ14から8ビット並列データが出力される。
The output control circuit comprises an octal counter 20. The octal counter 20 starts counting the clock with the arrival of the start signal, but stops counting the clock every time the carry signal is output from the ternary counter 18. Therefore, when the net data shift amount in the shift register 14 reaches 8 bits, the carry signal of the octal counter 20 is output, and at this time, 8 bits of data are set in the shift register 14. .. Therefore, the carry signal of the octal counter 20 is used as the signal c.
By sending the data to the ND gate 15 and turning it on, 8-bit parallel data is output from the shift register 14.

【0015】以下同様な過程を繰り返すことにより、次
々に入力される8ビット並列データを、3ビット目ごと
に間引きされた8ビット並列データに変換して出力させ
ることができる。
By repeating the same process thereafter, it is possible to convert 8-bit parallel data input one after another into 8-bit parallel data thinned out every third bit and output it.

【0016】図4は本発明の第2の実施例を示す回路図
であり、図2と同一機能を有するものには同一番号を付
した。図5は第2の実施例におけるタイミング図であ
る。本実施例は、MPUから順次入力される8ビット並
列データを、3ビット目ごとに1ビット分のデータが追
加された8ビット並列データに変換して出力するもので
ある。また、8ビット並列データとともにクロックおよ
びスタート信号がMPUから送出されるものとする。
FIG. 4 is a circuit diagram showing a second embodiment of the present invention. Components having the same functions as those in FIG. 2 are designated by the same reference numerals. FIG. 5 is a timing chart in the second embodiment. In this embodiment, 8-bit parallel data sequentially input from the MPU is converted into 8-bit parallel data in which 1-bit data is added every third bit and then output. Further, it is assumed that the clock and the start signal are sent from the MPU together with the 8-bit parallel data.

【0017】図4において、並直列変換回路は8個のA
NDゲート11と8ビットのシフトレジスタ12からなり、
信号aによりANDゲート11がオン状態になったとき、
MPUより入力された8ビット並列データがシフトレジ
スタ12にセットされる。シフトレジスタ12にセットされ
たデータは信号b=“1”のときクロックにより1ビッ
トづつ矢印方向にシフトされ順次直並列変換回路に送ら
れる。
In FIG. 4, the parallel-serial conversion circuit includes eight A's.
It consists of ND gate 11 and 8-bit shift register 12,
When the AND gate 11 is turned on by the signal a,
The 8-bit parallel data input from the MPU is set in the shift register 12. The data set in the shift register 12 is shifted bit by bit in the direction of the arrow by the clock when the signal b = "1", and is sequentially sent to the serial-parallel conversion circuit.

【0018】直並列変換回路は8ビットのシフトレジス
タ14と8個のANDゲート15からなる。シフトレジスタ
12から転送されてきたデータはシフトレジスタ14に入力
し、クロックと同期して矢印方向に1ビットづつシフト
される。そして信号cによってANDゲート15がオン状
態になったとき外部へ出力される。
The serial-parallel conversion circuit comprises an 8-bit shift register 14 and eight AND gates 15. Shift register
The data transferred from 12 is input to the shift register 14 and is shifted by 1 bit in the arrow direction in synchronization with the clock. When the AND gate 15 is turned on by the signal c, it is output to the outside.

【0019】信号a、b、cは以下に述べる入力制御回
路、シフト制御回路、出力制御回路により供給される。
入力制御回路はORゲート16と8進カウンタ17からな
る。ORゲート16には、スタート信号と8進カウンタ17
のキャリ信号が入力され、その出力は信号aとしてAN
Dゲート11に送られる。8進カウンタ17はスタート信号
の到来とともにクロックのカウントを開始するが3進カ
ウンタ18からキャリ信号が出力される都度クロックのカ
ウントを停止する。従って、後述するシフトレジスタ12
における正味のデータシフト量が8ビットになったとき
に8進カウンタ17のキャリ信号が出力されることにな
り、このときシフトレジスタ12にセットされたデータは
全て出払うこととなる。従って、この8進カウンタ17の
キャリ信号をANDゲート11に送りオン状態とすること
により空になったシフトレジスタ12に次の8ビット並列
データがセットされる。
The signals a, b and c are supplied by the input control circuit, shift control circuit and output control circuit described below.
The input control circuit comprises an OR gate 16 and an octal counter 17. The OR gate 16 has a start signal and an octal counter 17
Carry signal is input and the output is AN as signal a
It is sent to the D gate 11. The octal counter 17 starts counting clocks when the start signal arrives, but stops counting clocks each time a carry signal is output from the ternary counter 18. Therefore, the shift register 12 described later
The carry signal of the octal counter 17 is output when the net data shift amount at 8 is 8 bits, and at this time, all the data set in the shift register 12 is discharged. Therefore, by sending the carry signal of the octal counter 17 to the AND gate 11 to turn it on, the next 8-bit parallel data is set in the empty shift register 12.

【0020】シフト制御回路は3進カウンタ18、NOT
ゲート19およびANDゲート13により構成されている。
3進カウンタ18はスタート信号の到来とともにクロック
のカウントを開始し3カウント目ごとにキャリ信号を出
力する。このキャリ信号はNOTゲート19によって反転
されてANDゲート13に送られ、ANDゲート13の出力
信号bによってシフトレジスタ12におけるデータシフト
が制御される。即ち、b=“1”のときデータをシフト
させ、b=“0”のときデータのシフトを停止させる。
従って、3進カウンタ18のキャリ信号が出力される都度
シフトレジスタ12におけるデータのシフトが停止する。
一方、シフトレジスタ14はクロックに同期してデータの
シフトを行うため、シフトレジスタ12から転送されてき
たデータのうち3ビット目ごとに前のデータが続けてシ
フトレジスタ14に入力され、順次矢印方向にシフトする
ことになる。
The shift control circuit comprises a ternary counter 18, NOT
It is composed of a gate 19 and an AND gate 13.
The ternary counter 18 starts counting clocks with the arrival of the start signal and outputs a carry signal at every third count. This carry signal is inverted by the NOT gate 19 and sent to the AND gate 13. The output signal b of the AND gate 13 controls the data shift in the shift register 12. That is, when b = “1”, the data is shifted, and when b = “0”, the data shift is stopped.
Therefore, every time the carry signal of the ternary counter 18 is output, the shift of the data in the shift register 12 is stopped.
On the other hand, since the shift register 14 shifts the data in synchronization with the clock, the previous data is continuously input to the shift register 14 every 3rd bit of the data transferred from the shift register 12, and is sequentially input in the arrow direction. Will be shifted to.

【0021】出力制御回路は8進カウンタ20から構成さ
れている。8進カウンタ20はスタート信号の到来ととも
にクロックのカウントを開始する。一方、シフトレジス
タ14に入力されたデータはクロックに同期して1ビット
づつ矢印方向にシフトするため、スタート信号が入力さ
れた後8カウント目にシフトレジスタ14におけるデータ
シフト量が8ビットとなり8進カウンタ20のキャリ信号
が出力される。従って、この8進カウンタ20のキャリ信
号を信号cとしてANDゲート15に送りオン状態とする
ことによりシフトレジスタ20から8ビット並列データを
出力させることができる。
The output control circuit comprises an octal counter 20. The octal counter 20 starts counting clocks when a start signal arrives. On the other hand, since the data input to the shift register 14 is shifted bit by bit in the direction of the arrow in synchronization with the clock, the data shift amount in the shift register 14 becomes 8 bits at the 8th count after the start signal is input. The carry signal of the counter 20 is output. Therefore, by sending the carry signal of the octal counter 20 to the AND gate 15 as the signal c to turn it on, 8-bit parallel data can be output from the shift register 20.

【0022】以下同様な過程を繰り返すことにより、8
ビット並列データを、3ビット目ごとに1ビット分のデ
ータが追加された8ビット並列データに変換して出力さ
せることができる。
By repeating the same process thereafter, 8
It is possible to convert the bit parallel data into 8-bit parallel data in which 1-bit data is added for every 3rd bit and output.

【0023】なお、上記実施例から明らかなように、本
発明は、任意のビット数の並列データから任意のビット
数ごとにデータを間引く場合あるいは追加する場合に適
用することができる。
As is apparent from the above-mentioned embodiment, the present invention can be applied to the case of thinning out or adding the data for every arbitrary number of bits from the parallel data of the arbitrary number of bits.

【0024】[0024]

【発明の効果】以上のように本発明によれば、データ密
度の変換をハードウエアのみで行うことができ、変換速
度の向上を図る上で有益である。
As described above, according to the present invention, the data density can be converted only by hardware, which is useful for improving the conversion speed.

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

【図1】 本発明の原理を示すブロック図、FIG. 1 is a block diagram showing the principle of the present invention,

【図2】 第1の実施例を示す回路図、FIG. 2 is a circuit diagram showing a first embodiment,

【図3】 第1の実施例を示すタイミング図、FIG. 3 is a timing chart showing the first embodiment,

【図4】 第2の実施例を示す回路図、FIG. 4 is a circuit diagram showing a second embodiment,

【図5】 第2の実施例を示すタイミング図、FIG. 5 is a timing diagram showing a second embodiment,

【図6】 データ密度変換前後のパターンを示す図、FIG. 6 is a diagram showing patterns before and after data density conversion,

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

1 並直列変換回路、 5 シフト制御回路、2
データ転送回路、 6 出力制御回路、3 直
並列変換回路、 11、13、15 ANDゲート、4
入力制御回路、 12、14 シフトレジスタ、
16 ORゲート、 18 3進カウンタ、17、
20 8進カウンタ、 19 NOTゲート、
1 parallel-serial conversion circuit, 5 shift control circuit, 2
Data transfer circuit, 6 output control circuit, 3 serial-parallel conversion circuit, 11, 13, 15 AND gate, 4
Input control circuit, 12, 14 shift register,
16 OR gate, 18 ternary counter, 17,
20 octal counter, 19 NOT gate,

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 B41J 5/30 Z 8907−2C G09G 5/36 9177−5G H04N 1/387 101 4226−5C // G06F 5/00 E 9189−5B ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location B41J 5/30 Z 8907-2C G09G 5/36 9177-5G H04N 1/387 101 4226-5C // G06F 5/00 E 9189-5B

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 mビット並列データを、nビット目ごと
に1ビット分のデータが間引かれたmビット並列データ
に変換するデータ密度変換回路であって、 mビット並列データを直列データに変換した後クロック
と同期して1ビットづつシフトさせる並直列変換回路
(1) と、 該並直列変換回路(1) から転送されたデータをクロック
と同期して1ビットづつシフトした後mビット並列デー
タに変換する直並列変換回路(2) と、 該並直列変換回路(1) におけるデータシフト量がmビッ
トになったとき該並直列変換回路(1) に新たなmビット
並列データを入力させる入力制御回路(3) と、 該直並列変換回路(2) におけるデータのシフトをnビッ
ト目ごとに停止させるシフト制御回路(4) と、 該直並列変換回路(2) におけるデータシフト量がmビッ
トになったとき該直並列変換回路(2) からmビット並列
データを出力させる出力制御回路(5) を備えたことを特
徴とするデータ密度変換回路。
1. A data density conversion circuit for converting m-bit parallel data into m-bit parallel data in which 1-bit data is thinned out every nth bit, and the m-bit parallel data is converted into serial data. After that, a parallel-serial conversion circuit that shifts by 1 bit in synchronization with the clock
(1), a serial-parallel conversion circuit (2) for converting the data transferred from the parallel-serial conversion circuit (1) into m-bit parallel data after shifting by 1 bit in synchronization with a clock, and the parallel-serial conversion In the input control circuit (3) for inputting new m-bit parallel data to the parallel-serial conversion circuit (1) when the data shift amount in the circuit (1) becomes m bits, and in the serial-parallel conversion circuit (2) A shift control circuit (4) for stopping the data shift every nth bit, and an m-bit parallel circuit from the serial-parallel conversion circuit (2) when the data shift amount in the serial-parallel conversion circuit (2) becomes m bits. A data density conversion circuit comprising an output control circuit (5) for outputting data.
【請求項2】 mビット並列データを、nビット目ごと
に1ビット分のデータが追加されたmビット並列データ
に変換するデータ密度変換回路であって、 mビット並列データを直列データに変換した後クロック
と同期して1ビットづつシフトさせる並直列変換回路
(1) と、 該並直列変換回路(1) から転送されたデータをクロック
と同期して1ビットづつシフトした後mビット並列デー
タに変換する直並列変換回路(2) と、 該並直列変換回路(1) におけるデータシフト量がmビッ
トになったとき該並直列変換回路(1) に新たなmビット
並列データを入力させる入力制御回路(3) と、 該並直列変換回路(1) におけるデータのシフトをnビッ
ト目ごとに停止させるシフト制御回路(4) と、 該直並列変換回路(2) におけるデータシフト量がmビッ
トになったとき該直並列変換回路(2) からmビット並列
データを出力させる出力制御回路(5) を備えたことを特
徴とするデータ密度変換回路。
2. A data density conversion circuit for converting m-bit parallel data into m-bit parallel data in which 1-bit data is added every nth bit, wherein the m-bit parallel data is converted into serial data. A parallel-serial conversion circuit that shifts by 1 bit in synchronization with the subsequent clock
(1), a serial-parallel conversion circuit (2) for converting the data transferred from the parallel-serial conversion circuit (1) into m-bit parallel data after shifting by 1 bit in synchronization with a clock, and the parallel-serial conversion An input control circuit (3) for inputting new m-bit parallel data to the parallel-serial conversion circuit (1) when the data shift amount in the circuit (1) becomes m bits, and an input control circuit (3) for the parallel-serial conversion circuit (1). A shift control circuit (4) for stopping the data shift every nth bit, and an m-bit parallel circuit from the serial-parallel conversion circuit (2) when the data shift amount in the serial-parallel conversion circuit (2) becomes m bits. A data density conversion circuit comprising an output control circuit (5) for outputting data.
JP4019616A 1992-02-05 1992-02-05 Data density conversion circuit Pending JPH05216985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4019616A JPH05216985A (en) 1992-02-05 1992-02-05 Data density conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4019616A JPH05216985A (en) 1992-02-05 1992-02-05 Data density conversion circuit

Publications (1)

Publication Number Publication Date
JPH05216985A true JPH05216985A (en) 1993-08-27

Family

ID=12004123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4019616A Pending JPH05216985A (en) 1992-02-05 1992-02-05 Data density conversion circuit

Country Status (1)

Country Link
JP (1) JPH05216985A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012034348A (en) * 2010-07-02 2012-02-16 Olympus Corp Signal transfer circuit and imaging device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012034348A (en) * 2010-07-02 2012-02-16 Olympus Corp Signal transfer circuit and imaging device

Similar Documents

Publication Publication Date Title
US4536856A (en) Method of and apparatus for controlling the display of video signal information
US3641558A (en) Multiplexed video generation
JPH0552989B2 (en)
JPH05216985A (en) Data density conversion circuit
US3641559A (en) Staggered video-digital tv system
JPH0535442A (en) Image data converting circuit
US5627652A (en) Multibit RAM for parallel lookup of high resolution halftone screens
JPS61129975A (en) Printer control circuit
JP2538388B2 (en) Pattern conversion device
JPH09277500A (en) Image forming method and its apparatus
JPS57157685A (en) Picture signal converter
JP3222907B2 (en) Image data converter
JPH0225347A (en) Data density conversion control circuit
KR0155718B1 (en) Apparatus for generating synchronization data
JP2842210B2 (en) Image data transfer device
JPH0671942A (en) Printing device
JPH06164895A (en) Facsimile equipment
JPH01259963A (en) Data density converter circuit
JPH11184672A (en) Serial data holding circuit
JPS62286753A (en) Character pattern data converting apparatus
JPH0787435B2 (en) Multiplex channel receiver
JPH06214877A (en) Data processor
JPH07175434A (en) Data transfer circuit for matrix drive system video display device
JPS63141766A (en) Printing system
JPH06139030A (en) Parallel data transmitter

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000307