JPS62261278A - Parallel interface circuit for printer - Google Patents

Parallel interface circuit for printer

Info

Publication number
JPS62261278A
JPS62261278A JP61104165A JP10416586A JPS62261278A JP S62261278 A JPS62261278 A JP S62261278A JP 61104165 A JP61104165 A JP 61104165A JP 10416586 A JP10416586 A JP 10416586A JP S62261278 A JPS62261278 A JP S62261278A
Authority
JP
Japan
Prior art keywords
data
input
gradation
output
port
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
JP61104165A
Other languages
Japanese (ja)
Inventor
Fumio Nagasaka
文夫 長坂
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP61104165A priority Critical patent/JPS62261278A/en
Publication of JPS62261278A publication Critical patent/JPS62261278A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color, Gradation (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To attain the highly speedy execution by executing the binary processing by a dither method to image data having gradation with a hardware. CONSTITUTION:In order to handle gradation data, a CPU to control an interface part, first, sets an output A of a parallel input output IC12 to an H level. Thus, a three-state buffer 20 prohibits the input of character data and simultaneously, the input of 1 Bit data by a signal line 4 is permitted. When the data with the gradation are inputted to an 8-bit parallel data input port 1, the high order 4-bit appears at the R port of a magnitude comparator 15. By a strobe signal 16 to show the data input, one of the data of a ROM 10 is selected, inputted to the Q port of the magnitude comparator 15, and by the comparing with a P port, a binary output 4 can be obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 大発明はドツトマトリクスプリンタ装量に、階調表現さ
れた画像データが入力されt際、自動釣にディザ法によ
る2値化処理を行い、データを生反する並列入力回路に
関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The great invention is that when image data expressed in gradation is input to a dot matrix printer, binarization processing is performed using a dither method in an automatic calculation. This relates to a parallel input circuit that generates and processes data.

〔従来の技術〕[Conventional technology]

従来のプリンター用パラレルインターフェースは8bi
t、@で表現可能な符号データの受信を目的に考案され
た。このインターフェースでは、受信されるデータが文
字データか、数値データかの区別はない。従って、従米
階調付きのデータは、単なる数値データとして入力され
、プリンタ側で受信データを取り扱う方法は不足であっ
た。このためプリンタは、その機構に応じた階調処理に
適する様にデータをン7ト的、ハード的に加工する必要
があった。特にドツト径の大小による階調表現ができな
いドツトマトリクスプリンターにあっては、階調付き画
像データの2値化処理は必須であるが、従来のハード的
方法は高価であり、ソフト的フ法は処理時間を多く必要
とする欠点がちつ友。
The conventional parallel interface for printers is 8bi.
It was devised for the purpose of receiving coded data that can be expressed as t and @. This interface makes no distinction whether the received data is character data or numeric data. Therefore, data with standard gradation is input as mere numerical data, and there is a lack of a method for handling the received data on the printer side. For this reason, it has been necessary for printers to process data in terms of software and hardware so that it is suitable for gradation processing depending on the printer's mechanism. Particularly for dot matrix printers that cannot express gradation based on the size of the dot diameter, binarization processing of image data with gradation is essential, but conventional hardware methods are expensive, and software methods are The drawback is that it requires a lot of processing time.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

本発明は、階調付きの画像データが入力され几場合には
、インターフェース回路部分のハードウエアによりそれ
を2値化し、プリンタコントロール用のCPUの処遅速
度を下げることなく、ドツト階調表現のできないドツト
マトリクスプリンタにおいても、階調表現可能とするこ
とを目的とする。
According to the present invention, when image data with gradation is input, it is binarized by the hardware of the interface circuit section, and the data is expressed in dot gradation without reducing the processing speed of the CPU for controlling the printer. The purpose of the present invention is to enable gradation expression even in dot matrix printers that cannot do so.

〔問題点を解決する定めの手段〕[Defined means of solving problems]

大発明になるインターフェース回路は、パラレル入力バ
ツ7ア一部分、データラッチ、ROM及びマグニチュー
ドコンパレーターから成ル。ホスト側コンピューターか
ら転送される8 h 1 t@のデータは、プリンタ側
opoにより文字データとして取り扱うか、階調データ
として取り扱うべきか判断され、階調データとしての取
り扱いが指定された場合は、ROM化されたディザマト
リクスの各要素との比較により、2値化データとして取
り扱われることを特徴とする。
The interface circuit, which is a great invention, consists of a parallel input part, a data latch, a ROM, and a magnitude comparator. The 8 h 1 t@ data transferred from the host computer is judged by the printer side OPO as to whether it should be handled as character data or gradation data, and if handling as gradation data is specified, it is stored in the ROM. It is characterized in that it is treated as binarized data by comparing it with each element of the converted dither matrix.

また、多色データを扱うカラープリンタの場合は、色ご
とに異なるしきい値、異なるディザマトリクスを選べる
ことを特徴とする。
Further, in the case of a color printer that handles multicolor data, a feature is that a different threshold value and a different dither matrix can be selected for each color.

〔作用〕[Effect]

大発明は、階調付きの並列8bitデータを2値化した
後、入力XOに与える。この2値化の手法は何種句か知
らえているが、大発明は組織的ディザ法により2値化を
行うものである。組織的ディザ法を実現しfc場合Vc
%有の縞模様の発生を抑える几めに、ディザマトリクス
を一足の周期にそってずらしてあてはめる方法を実施す
るものとすると、ディザマトリクスの各々のしきい値が
周期的に現れることになる。この周期的な値と入力され
友階調付きデータとを遂次比較することにより2値化出
力が得られる。本発明はこれを実施するために、FIO
MとラッチによるFIOMジ−ケンサート、マグニチュ
ードコンパレーターを用いる。
The great invention is to binarize parallel 8-bit data with gradation and then apply it to the input XO. Several methods of this binarization are known, but the great invention is to perform binarization using a systematic dither method. If the systematic dithering method is realized and fc then Vc
If a method is implemented in which the dither matrix is applied by shifting it along the period of one foot in order to suppress the occurrence of a striped pattern with a certain percentage, each threshold value of the dither matrix will appear periodically. A binarized output is obtained by successively comparing this periodic value with the input data with gradation. In order to implement this, the present invention uses FIO
FIOM sequencer with M and latch, and magnitude comparator are used.

〔実施例〕〔Example〕

W、1図は本発明の実施例である。1は8bit並列の
入力信号線であり、2は1にデータが確定していること
を示すストローブ信号入力である。
W, Figure 1 is an embodiment of the present invention. 1 is an 8-bit parallel input signal line, and 2 is a strobe signal input indicating that data is fixed at 1.

8は水回路を制御するcpnが作業中であることを示″
f″BりSY信号である。18は、負論理ストローブ入
力2の立ち上りに作用を受け、ハード的に出力される信
号であり、19はapt+のソフトウェアの進行状態で
出力される信号である。9は木口W8側が、データ転送
を実行しているホスト側コンピューターに対し、次のデ
ータの転送を要求するアクルツジ信号である。13は実
行時エラーを示す信号である。14はプリンタ側が、ポ
ストコンピューターに対し、@無し状態であることを知
らせる信号である。17は回路状態を初期化する信号で
ある。信号@1,2,8,9,13゜44.171d従
来のプリンタ用8bit並列インターフェースと回等の
電気的特性を有するものとする。信号3は、インターフ
ェース部分の扱うデータが文字データが階調データかを
制御中るものである。
8 indicates that the CPN that controls the water circuit is working.
f''B is the SY signal. 18 is a signal that is output by hardware in response to the rise of the negative logic strobe input 2, and 19 is a signal that is output in the progress state of the apt+ software. 9 is a signal from which the Kiguchi W8 side requests the host computer executing the data transfer to transfer the next data. 13 is a signal indicating an error during execution. 14 is a signal from the printer side to the post computer. 17 is a signal that initializes the circuit state.Signal @1, 2, 8, 9, 13゜44.171d Conventional 8-bit parallel interface for printers and Signal 3 is used to control whether the data handled by the interface section is character data or gradation data.

第2図は木実流側が可能とするディザパターンの一例で
ちる。第2図のディザパターンのしきい値には周期性が
あり、その1周期は表1の様になる。
FIG. 2 shows an example of a dither pattern that is possible on the Kinomi style side. The threshold value of the dither pattern shown in FIG. 2 has periodicity, and one period thereof is as shown in Table 1.

ROM10のD7〜T)4に対応させる之め、表1中の
数値をNとして、(N−1)X16の操作を行った結果
の数値が表2である。表1に示される通り、6番めと1
7番めには同じ数値が現れるので、づらにRoyloの
T13ラインの0,1により区別する。表2の数値をR
OM上に実現するため、アドレスとデータを対応させた
ものが表3である。
In order to correspond to D7 to T)4 of the ROM 10, the numerical values in Table 1 are set as N, and the numerical values as a result of performing the operation of (N-1)X16 are shown in Table 2. As shown in Table 1, the 6th and 1st
Since the same numerical value appears in the 7th position, we simply distinguish them by 0 and 1 on Roylo's T13 line. The values in Table 2 are R
Table 3 shows the correspondence between addresses and data for implementation on OM.

表1 表2 表3 &に本実施例の動作について述べる。本インターフェー
ス部分を制御するcpuは、階調データを取り扱う友め
にまず並列入出カニC12の出力ht−mレベルに設定
する。これによりスリーステートバッファ20は文字デ
ータの入力を禁止し7、同時に信号線4による1hit
データの入力は許される。
Table 1 Table 2 Table 3 & describes the operation of this embodiment. The CPU that controls this interface section is first set to the output ht-m level of the parallel input/output crab C12 for handling gradation data. As a result, the three-state buffer 20 prohibits the input of character data 7, and at the same time, the signal line 4
Data entry is permitted.

8bit並列のデータ入力ポート1に、階調付きデータ
が入力されると、その上位4bitはマグニチュードコ
ンパレーター15のRポートに現れる。−刀データ入力
を示すストローブ信号16により、ROM10のデータ
の内の一つが選択さし、マグニチュードコンパレーター
15のQポートに入力され、Pボートとの比較により、
2値化出力4が得られる。
When gradation data is input to the 8-bit parallel data input port 1, its upper 4 bits appear at the R port of the magnitude comparator 15. - One of the data in the ROM 10 is selected by the strobe signal 16 indicating sword data input, and is input to the Q port of the magnitude comparator 15, and by comparison with the P boat,
Binarized output 4 is obtained.

マ几、ストローブ信号16が入つ九段階で8bitラツ
チ11の出力は、次に比較すべきディザ・データのスト
アされているアドレスを指し示すことになる。
The output of the nine-step, 8-bit latch 11, which receives the strobe signal 16, will point to the address where the next dither data to be compared is stored.

並列入出力IC12の出力ポート5,6.7によりRO
M上で8糧類の異なるアドレス領域をアクセスする。こ
れにより8糧類の異なるディザマトリクスを設定できる
RO by output ports 5, 6.7 of parallel input/output IC12
Access eight different address areas on M. This allows different dither matrices to be set for eight food types.

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

本回路は、階調付き画像データに対するディザ法による
2値化処理をハードウェアにより行うたぬ、従来のソフ
トウェア処理に対し、高速実行が可能となる。
This circuit can perform faster execution than conventional software processing, which does not perform binarization processing using the dither method on gradation image data using hardware.

使用するR、0M領域の選択により、色ごとく、あるい
は印字モードごとに異なるディザパターンを用いること
が可能であり、その処理について−もソフトウェアによ
る方法と異なり、全く時間的差を生じない。
By selecting the R and 0M areas to be used, it is possible to use a different dither pattern for each color or for each print mode, and unlike the software method, there is no time difference in the processing.

ま11図から明らかな様に、マグニチュードコンパレー
ター1.5の修練により、処理可能な階調に+1を数に
対する自由間が高く、回路は構成は容易である。
As is clear from FIG. 11, by training the magnitude comparator 1.5, the free interval for the number of +1 is high in the gradation that can be processed, and the circuit configuration is easy.

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

第1図は本発明の実施例の1つを実現する回路図。 第2図は本発明の実施可能なディザパターンの1例を示
すディザマトリクス図。   −1はabtt並烈入並
線入力線データが確定していることを示すストローブ信
号、3は文字並列入力、画像データ入力の選択信号、4
は2値化出力、5.6,7はディザパターン選択、8は
BU8Y信号、9は負論理ACK、IQはディザパター
ンROM、11はデータラッチ、12は並列入出力IC
,13け負論理エラー信号、14は紙無し出力信号、1
s74sbttマグ二千ニードコンパレータ、16はデ
ィザパターン更新信号、17はディザパターンの初期化
信号、18.19はBUSY信号、20け入力切り換え
用のスリーステートバッファ。 以上
FIG. 1 is a circuit diagram implementing one embodiment of the present invention. FIG. 2 is a dither matrix diagram showing one example of a dither pattern that can be implemented according to the present invention. -1 is a strobe signal indicating that abtt parallel input parallel line input data has been determined, 3 is a selection signal for character parallel input and image data input, 4
is binary output, 5.6, 7 is dither pattern selection, 8 is BU8Y signal, 9 is negative logic ACK, IQ is dither pattern ROM, 11 is data latch, 12 is parallel input/output IC
, 13 is the negative logic error signal, 14 is the paper out output signal, 1
s74sbtt mag 2000 need comparator, 16 is a dither pattern update signal, 17 is a dither pattern initialization signal, 18.19 is a BUSY signal, and 20 input switching three-state buffers. that's all

Claims (1)

【特許請求の範囲】[Claims] 8bit並列入力線にROM、ラッチ、マグニチュード
コンパレータを用い、ディザ法による階調表現回路を付
加したことを特徴とするプリンター用パラレルインター
フェース回路。
A parallel interface circuit for a printer, characterized in that a ROM, a latch, and a magnitude comparator are used in an 8-bit parallel input line, and a gradation expression circuit using a dither method is added.
JP61104165A 1986-05-07 1986-05-07 Parallel interface circuit for printer Pending JPS62261278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61104165A JPS62261278A (en) 1986-05-07 1986-05-07 Parallel interface circuit for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61104165A JPS62261278A (en) 1986-05-07 1986-05-07 Parallel interface circuit for printer

Publications (1)

Publication Number Publication Date
JPS62261278A true JPS62261278A (en) 1987-11-13

Family

ID=14373435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61104165A Pending JPS62261278A (en) 1986-05-07 1986-05-07 Parallel interface circuit for printer

Country Status (1)

Country Link
JP (1) JPS62261278A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002166600A (en) * 2000-10-30 2002-06-11 Xerox Corp Method for calibrating printer for halftone screen

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002166600A (en) * 2000-10-30 2002-06-11 Xerox Corp Method for calibrating printer for halftone screen

Similar Documents

Publication Publication Date Title
US4776026A (en) Apparatus for rotating a dot matrix pattern by 90 degrees
GB2205219A (en) Color conversion apparatus and method
JPS62261278A (en) Parallel interface circuit for printer
US4692944A (en) Image data processing system
US3713109A (en) Diminished matrix method of i/o control
JPH06253134A (en) Picture processing device
US20020073053A1 (en) Method and circuits for associating a complex operator to each component of an input pattern presented to an artificial neural network
JP3110746B2 (en) Image processing method
US6473530B2 (en) Encoding and decoding apparatuses and image processing apparatus using the same
JPS62259858A (en) Parallel interface for printer
JPH02273878A (en) Noise eliminating circuit
JP2953405B2 (en) Method for speeding up logic simulation and logic simulation apparatus
JPS62208176A (en) Image processor
JPH04316277A (en) Multicolor printer
JPS6137441A (en) High-speed printing processing system of dot printer
JPH0326558A (en) Smooth printing system in printer
JPS6142184Y2 (en)
JPS627558A (en) Slant character printing by serial printer
JPH0411283A (en) Patter converting device
JPS6399963A (en) Printing control circuit
JPH1029340A (en) Image forming device
JPH01235643A (en) Video interface circuit of color hard copy
JPS6254374A (en) Picture processor
JPH04148951A (en) Printing apparatus
JPH0370006A (en) Sequence controller