JPH0229357A - Interface for printer - Google Patents

Interface for printer

Info

Publication number
JPH0229357A
JPH0229357A JP63179928A JP17992888A JPH0229357A JP H0229357 A JPH0229357 A JP H0229357A JP 63179928 A JP63179928 A JP 63179928A JP 17992888 A JP17992888 A JP 17992888A JP H0229357 A JPH0229357 A JP H0229357A
Authority
JP
Japan
Prior art keywords
data
cpu
circuit
switching
buffer ram
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
JP63179928A
Other languages
Japanese (ja)
Inventor
Yoshihiko Hirayama
良彦 平山
Shinji Nureki
濡木 伸二
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 Instruments Inc
Original Assignee
Seiko Instruments Inc
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 Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP63179928A priority Critical patent/JPH0229357A/en
Publication of JPH0229357A publication Critical patent/JPH0229357A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Color, Gradation (AREA)

Abstract

PURPOSE:To enable image data to be transferred at extremely high speed through only hardware and not through software by providing a parallel I/O IC and a buffer RAM for storing printing data with an address counter and a switching circuit for switching between a strobe signal and a busy signal, in a parallel interface. CONSTITUTION:When a received instruction is an instruction for printing image data, a CPU 5 sets a switching circuit 2 through an I/O 6. When switching is finished, a busy signal is canceled, and a host computer starts transferring data. A strobe signal from the host computer increments an address counter 7, and causes the data to be written into a buffer RAM 8. When an output from the counter 7 becomes equal to a predetermined value, a detecting circuit 9 sets the switching circuit 2. The data from the buffer RAM 8 is transferred to a head data-transferring circuit 11 by high-speed DMA transfer, through changing over a switch 10 and in synchronism with a clock signal from the circuit 11. Thus, a data bus 4 for the CPU 5 is not occupied exclusively, so that the CPU can continue a required processing.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は階調表現可能な画像プリンタのインターフェー
ス回路の高速化に間する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is directed to increasing the speed of an interface circuit for an image printer capable of expressing gradations.

〔発明の概要〕[Summary of the invention]

セントロニクス等のパラレルインターフェースにおいて
、画像データを転送するコマンドによりCPUはインタ
ーフェースの信号をハードウェアでデータ受信回路へ切
換え、アドレスカウンタで、特定の画素数のデータを受
取った後に、通常のソフトウェアとCPUによりコマン
ドが受信状態にもどるようにしたものである。この様に
して画像データの受信を高速にする。
In a parallel interface such as Centronics, the CPU switches the interface signal to the data receiving circuit using hardware in response to a command to transfer image data, and after receiving data for a specific number of pixels using the address counter, normal software and CPU This allows the command to return to the receiving state. In this way, image data can be received at high speed.

〔従来の技術〕[Conventional technology]

プリンタのインターフェースとしては、セントロニクス
が最も一般的であり、はとんどのコンピュータが、この
パラレルインターフェースを持つている、又、計測器等
で使われる双方向性のGPIBインターフェースをプリ
ンタに用いたも゛のもあるが、1ドツトに1バイトのデ
ータが必要な12ドツト/l111の画像プリンタでは
A3.1画面に40メガバイトのデータ転送が必要であ
る。
Centronics is the most common printer interface, and most computers have this parallel interface, and printers also use the bidirectional GPIB interface used in measuring instruments. However, a 12 dot/l111 image printer, which requires 1 byte of data for 1 dot, requires 40 megabytes of data to be transferred to an A3.1 screen.

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

ところが、セントロニクスやCPNB等のインターフェ
ースは、受は取ったデータをCPUがソフトウェアの命
令に従って、データであるかプリンタを制御する命令(
コマンド)であるかを判断し、データの場合はメモリに
収める事を行う、この為、ハードウェアにくらべはるか
に遅いCPUの速度等に依存する。第2図は、ソフトウ
ェアによりプリンタのCPUがデータを受信している時
のタイミングを示すものであり、ホストコンピュータ側
のデータとストローク信号によりCPUに割込(P)を
発生し、処理する。さらに、プリンタはヘッドや、モー
タの制御も行っており、その為のタイマー割込(H)や
(M>が発生し、その処理も行っている。これらの処理
中CPUはホストコンピュータに対してビイズイ信号を
出力しており、その間は、ホストコンピュータはデータ
を送る事ができない、この様に、待ち時間とCPUの処
理時間がある為、データ転送が遅くなり、1ドツト当り
1画素+1バイトのデータを送るのに大変時間がかかる
という問題がある。さらに、データを受信しながらプリ
ントする場合には、プリント動作にデータ転送が間に合
わず、間欠的な印字動作となり送りむらを生じるという
問題があった。
However, with interfaces such as Centronics and CPNB, the CPU receives the received data according to software instructions, and determines whether it is data or instructions to control the printer (
If it is data, it is stored in memory. Therefore, it depends on the speed of the CPU, which is much slower than the hardware. FIG. 2 shows the timing when the CPU of the printer receives data by software, and an interrupt (P) is generated in the CPU by data and a stroke signal from the host computer side, and processing is performed. Furthermore, the printer also controls the head and motor, and for this purpose, timer interrupts (H) and (M> are generated and processed. During these processes, the CPU communicates with the host computer. During this time, the host computer cannot send data. Due to the waiting time and CPU processing time, data transfer is slow, and each dot has 1 pixel + 1 byte. There is a problem that it takes a lot of time to send data.Furthermore, when printing while receiving data, there is a problem that the data transfer cannot keep up with the printing operation, resulting in intermittent printing operation and uneven feeding. Ta.

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

パラレルインターフェースで、パラレルI/O用ICと
プリントデータを記憶するバッファRAM、、?″のバ
ッフr R,A Mにアドレスを出力するアドレスカウ
ンタ、ストローブ信号とビズィ信号を切換える切換回路
を備える。ホストコンピュータが制御コマンドを出力し
ている時は、パラレルI//O用ICを介してCPUに
コマンドを入力する。
A parallel interface with a parallel I/O IC and a buffer RAM that stores print data. Equipped with an address counter that outputs addresses to the buffers R and A M of ``, and a switching circuit that switches between strobe signals and busy signals.When the host computer is outputting control commands, the control commands are input commands to the CPU.

画像プリントのコマンドを受けるとCPUは切換回路を
ヒットシ特定の数の画像データを受取り終ると、切換回
路は自動的にリセットし、CPUへのコマンド入力状態
となる。切換回路が作動中は、ホストコンピュータのス
トローブ信号をクロックとして、ハードウェアのみで画
素データを読込む。
When the CPU receives a command to print an image, the CPU activates the switching circuit. After receiving a specific number of image data, the switching circuit automatically resets and enters a state for inputting commands to the CPU. While the switching circuit is in operation, pixel data is read only by hardware using the host computer's strobe signal as a clock.

〔作用〕[Effect]

この様にすると画素データの転送速度はTTL等の論理
ICの動作速度中50Mバイト/秒までの動作が可能と
なる2 〔実施例〕 第1図は本発明の原理を示すブロック図である。
In this way, the pixel data transfer speed can be up to 50 Mbytes/sec, which is the operating speed of logic ICs such as TTL.[Embodiment] FIG. 1 is a block diagram showing the principle of the present invention.

セントロニクスインターフェースのコネクタ1から切換
回路2から入力するホストコンピュータの信号は制御コ
マンド受信状態ではパラレルI/O用IC3とデータバ
ス4を介してCPU5に入力する。受信したコマンドが
画像データのプリントである時はCPU5は、l/O6
を介して切換回路2をセットする。切換回路2はスイッ
チの状態を図示と反対の下側へ接続する。この切換中は
、ホストコンピュータに対しビズィを出力している。
A host computer signal inputted from the switching circuit 2 through the connector 1 of the Centronics interface is inputted to the CPU 5 via the parallel I/O IC 3 and the data bus 4 in the control command receiving state. When the received command is to print image data, the CPU 5 outputs l/O6.
The switching circuit 2 is set via. The switching circuit 2 connects the state of the switch to the lower side opposite to that shown. During this switching, a busy signal is output to the host computer.

切換えが終了するとビズィが解除されホストコンピュー
タがデータ転送を開始する。ホストコンピュータからの
ストローブ信号はアンドレスカウンタ7をカウントアツ
プしながらバッファRAM 8にコネクタ1から入力し
たデータを書込んでいく。
When the switching is completed, the busy state is canceled and the host computer starts data transfer. The strobe signal from the host computer causes the ANDRES counter 7 to count up while writing the data input from the connector 1 into the buffer RAM 8.

アドレスカランタフの出力つまりバッファRAMに書込
んだデータ数が、あらかじめ定めた特定の値、たとえば
、1ライン分等のデータ数に等しくなった時、検出回路
9が1.切換回路2をリセットする。すると切換回路2
のスイッチは図示の状態にもどるが、もどるまでの間は
ホストコンピュータにビズィを出力してデータ等の送信
を保留させる。バッファRAM8からのデータ転送はス
イッチ/Oを図示と反対の向きに切り換え、ヘッドデー
タ転送回路11のメモリへ、ヘッドデータ転送回路のク
ロックに同期して高速DMA転送する。
When the output of the address cardant, that is, the number of data written to the buffer RAM, becomes equal to a predetermined specific value, for example, the number of data for one line, the detection circuit 9 detects 1. Reset switching circuit 2. Then switching circuit 2
The switch returns to the state shown in the figure, but until it returns, it outputs a busy signal to the host computer to suspend the transmission of data, etc. Data transfer from the buffer RAM 8 is performed by switching the switch /O in the opposite direction to that shown in the figure, and performing high-speed DMA transfer to the memory of the head data transfer circuit 11 in synchronization with the clock of the head data transfer circuit.

この転送はCPU5のデータバス4を専有しない為、転
送中もCP tJは必要な処理を継続可能である。尚、
ヘッドデータ転送回路11は内部のメモリのデータに従
い、階調数に応じたシリアルデータを作成しサーマルヘ
ッドへ転送し、プリントする。
Since this transfer does not monopolize the data bus 4 of the CPU 5, the CP tJ can continue necessary processing even during the transfer. still,
The head data transfer circuit 11 creates serial data according to the number of gradations according to the data in the internal memory, transfers it to the thermal head, and prints it.

第3図は、切換回路2が作動中にコネクタ1からバッフ
ァRAM8ヘデータ転送する様子を示すものである。第
2図のソフトウェアによるデータ転送と異り、高速にデ
ータが転送できる様子を示している。ここで、データの
受信はTTL等の動作用周波数=50メガバイト/秒の
転送が可能であり、一方、ホストコンピュータは高速C
PUを用いてもソフトウェアを使って送信する場合には
、数メガバイト7秒であるので、ビズィ信号は解除した
状態に固定していても、確実にデータ転送ができる。
FIG. 3 shows how data is transferred from the connector 1 to the buffer RAM 8 while the switching circuit 2 is in operation. This figure shows how data can be transferred at high speed, unlike the software-based data transfer shown in FIG. Here, data can be transferred at an operating frequency of 50 megabytes/second using TTL, etc., while the host computer uses high-speed C
Even when using a PU, when transmitting using software, it takes several megabytes and 7 seconds, so even if the busy signal is fixed in the canceled state, data can be transferred reliably.

尚、バッファRAM8のアドレスとデータに3ステート
バツフアを介してCPUのアドレスとデータのバスに接
続する事により、CPU5からバッファRAM8に直接
データを書込んだり、読出したりできる様になる。その
場合も本発明に含まれる。又、バッファRAM8のデー
タ入出力部にはコネクタ1及びヘッドデータ転送回路1
1に対してそれぞれ3ステートバツフア等のバス切換手
段が内蔵されており、バヅフyRAM8のリード/ライ
ト制御に合せてバス切換を行う。
By connecting the address and data of the buffer RAM 8 to the address and data bus of the CPU via a 3-state buffer, data can be directly written to and read from the buffer RAM 8 from the CPU 5. Such cases are also included in the present invention. In addition, the data input/output section of the buffer RAM 8 includes a connector 1 and a head data transfer circuit 1.
A bus switching means such as a 3-state buffer is built in for each bus, and bus switching is performed in accordance with the read/write control of the buffer RAM 8.

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

本発明によれば、次の効果を有する。 According to the present invention, the following effects are achieved.

0画像データの転送時はソフトウェアを介さずにバー・
ドウエアのみでデータを超高速転送ができる。
0 When transferring image data, the bar/
Data can be transferred at ultra-high speed using only software.

■データ転送しながらプリントするプリンタでは、デー
タ転送が間に合わない為のプリント中に起きるプリント
の瞬時停止がなくなり、送りむら等の画質劣化がなくな
る。
■A printer that prints while transferring data eliminates instantaneous printing stops that occur during printing due to insufficient data transfer, and eliminates image quality deterioration such as uneven feeding.

01975時間を速くできる。01975 Time can be made faster.

■セントロニクスはほとんどのパソコンに付いており、
本発明をセントロニクスに用いると極めて汎用性が高く
なり、ホストコンピュータの機種を問わずに使える。
■Centronics is included with most computers,
When the present invention is applied to Centronics, it becomes extremely versatile and can be used regardless of the model of the host computer.

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

第1図は本発明の原理を示すブロック図であり、第2図
はソフトウェアによりプリンタのCPUがデータを受信
している時のタイミング図であり、第3図は本発明のデ
ータ転送のタイミング図である。 コネクタ 切換回路 パラレルI/O用IC データバス CPU アドレスカウンタ バッファRAM 検出回路 スイッチ ヘッドデータ転送回路 以上 出願人 セイコー電子工業株式会社
FIG. 1 is a block diagram showing the principle of the present invention, FIG. 2 is a timing diagram when the CPU of the printer is receiving data by software, and FIG. 3 is a timing diagram of data transfer according to the present invention. It is. Connector switching circuit Parallel I/O IC Data bus CPU Address counter buffer RAM Detection circuit Switch head Data transfer circuit Applicant: Seiko Electronics Industries, Ltd.

Claims (1)

【特許請求の範囲】[Claims] パラレルデータを扱うインターフェースを介してホスト
コンピュータから1画素づつの階調データを受信してプ
リントする画像プリンタにおいて、中央処理装置(以下
CPUと呼ぶ)と、該CPUからアクセス可能なパラレ
ルI/O用ICと、プリントデータを記憶するバッファ
RAMと、前記インターフェースのデータ読込要求を入
力する信号(以下ストローブ信号とよぶ)及び、プリン
タ側のビズィ状態を出力する信号の流れを切換える切換
手段と、前記ストローブ信号を計数するアドレスカウン
タと、該アドレスカウンタの特定値を検出する検出回路
とを備え、前記切換手段がCPUおよび前記検出回路か
ら制御され、又、インターフェースのパラレルデータが
、前記パラレルI/O用ICと前記バッッファRAMに
直接又はバッファ等の回路を介して接続されている事を
特徴とするプリンタのインターフェース。
In an image printer that receives and prints gradation data pixel by pixel from a host computer via an interface that handles parallel data, a central processing unit (hereinafter referred to as CPU) and a parallel I/O that can be accessed from the CPU are used. an IC, a buffer RAM for storing print data, a signal for inputting a data read request of the interface (hereinafter referred to as a strobe signal), a switching means for switching the flow of a signal for outputting a busy state on the printer side, and the strobe. It includes an address counter that counts signals and a detection circuit that detects a specific value of the address counter, the switching means is controlled by the CPU and the detection circuit, and the parallel data of the interface is connected to the parallel I/O. A printer interface characterized in that an IC and the buffer RAM are connected directly or via a circuit such as a buffer.
JP63179928A 1988-07-19 1988-07-19 Interface for printer Pending JPH0229357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63179928A JPH0229357A (en) 1988-07-19 1988-07-19 Interface for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63179928A JPH0229357A (en) 1988-07-19 1988-07-19 Interface for printer

Publications (1)

Publication Number Publication Date
JPH0229357A true JPH0229357A (en) 1990-01-31

Family

ID=16074378

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63179928A Pending JPH0229357A (en) 1988-07-19 1988-07-19 Interface for printer

Country Status (1)

Country Link
JP (1) JPH0229357A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0456447A2 (en) * 1990-05-10 1991-11-13 Canon Kabushiki Kaisha Data processing apparatus utilizing CPU
US11894851B2 (en) 2017-12-22 2024-02-06 Sony Semiconductor Solutions Corporation Signal generation apparatus for time-of-flight camera with suppressed cyclic error

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0456447A2 (en) * 1990-05-10 1991-11-13 Canon Kabushiki Kaisha Data processing apparatus utilizing CPU
US5530792A (en) * 1990-05-10 1996-06-25 Canon Kabushiki Kaisha Data processing apparatus utilizing CPU
US11894851B2 (en) 2017-12-22 2024-02-06 Sony Semiconductor Solutions Corporation Signal generation apparatus for time-of-flight camera with suppressed cyclic error

Similar Documents

Publication Publication Date Title
US20040117516A1 (en) System controller using plural CPU's
US5426737A (en) Direct memory access for data transfer within an I/O device
JPH05221030A (en) Apparatus for controlling printing
US6373493B1 (en) Hardware graphics accelerator having access to multiple types of memory including cached memory
US5842044A (en) Input buffer device for a printer using an FIFO and data input method
JPH0229357A (en) Interface for printer
US6122699A (en) Data processing apparatus with bus intervention means for controlling interconnection of plural busses
JPS6312291B2 (en)
JPS6313551A (en) Reception controller for printer
JPH09179813A (en) Dma transfer device
JP3253115B2 (en) Printer
JPH03119484A (en) Picture processor
JP2001156955A (en) Image forming device and fax equipment
JPH0239383A (en) Image processor
JPH11110334A (en) Data processing circuit and image forming device provided with the circuit
JPH04268910A (en) Keyboard control device
JPH04284530A (en) Printing device
JP2001243170A (en) Data transfer device
JPS61175817A (en) Printer
JPH07501498A (en) printer video processor
JPH06301626A (en) Electronic control equipment
JPH11208037A (en) Device and method for controlling in image forming system
JPH03169580A (en) Printer buffer device
JP2000122964A (en) Processor, input/output processing circuit, instruction executing method for the processor, and memory access method for the input/output processing circuit
JPS6371766A (en) Buffer transferring system