JP2658887B2 - Printer controller - Google Patents

Printer controller

Info

Publication number
JP2658887B2
JP2658887B2 JP18094094A JP18094094A JP2658887B2 JP 2658887 B2 JP2658887 B2 JP 2658887B2 JP 18094094 A JP18094094 A JP 18094094A JP 18094094 A JP18094094 A JP 18094094A JP 2658887 B2 JP2658887 B2 JP 2658887B2
Authority
JP
Japan
Prior art keywords
signal
data
register
cpu
printer controller
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.)
Expired - Fee Related
Application number
JP18094094A
Other languages
Japanese (ja)
Other versions
JPH0822380A (en
Inventor
裕 志楽
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP18094094A priority Critical patent/JP2658887B2/en
Publication of JPH0822380A publication Critical patent/JPH0822380A/en
Application granted granted Critical
Publication of JP2658887B2 publication Critical patent/JP2658887B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はプリンタコントローラに
関し、特に、セントロニクスインターフェースを有する
プリンタコントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer controller, and more particularly, to a printer controller having a Centronics interface.

【0002】[0002]

【従来の技術】従来、この種のプリンタコントローラと
して図5に示すような技術がある。図6はこのプリンタ
コントローラの各信号のタイムチャート図である。この
プリンタコントローラは、これらの図に示すように、ホ
ストコンピュータ200とプリンタとの間に配設されて
おり、ホストコンピュータ200からセントロニクスコ
ネクタ100を介して入力した1バイト(8ビット)の
データDをストローブ信号Sに同期させてラッチ回路1
01に格納する。この動作と並行して、ストローブ信号
Sを入力したビジーレジスタ103がHレベルのビジー
信号Bをホストコンピュータ200に入力する。
2. Description of the Related Art Conventionally, there is a technique as shown in FIG. FIG. 6 is a time chart of each signal of the printer controller. The printer controller is disposed between the host computer 200 and the printer, as shown in these figures, and converts 1-byte (8-bit) data D input from the host computer 200 via the Centronics connector 100. Latch circuit 1 in synchronization with strobe signal S
01 is stored. In parallel with this operation, the busy register 103 to which the strobe signal S has been input inputs the H-level busy signal B to the host computer 200.

【0003】そして、ストローブ信号Sでセットされる
割込みレジスタ102から割込み信号IをCPU201
に出力し、この割込み信号Iを検知した図示しないCP
U201から読出し信号Oがラッチ回路101に出力さ
れる。この読出し信号Oの入力によって、データDがラ
ッチ回路101からCPU201に出力され、CPU2
01がこのデータDの読み込みを確認すると、CPU2
01からリセット信号Rがビジーレジスタ103に入力
される。ビジーレジスタ103はリセット信号Rを入力
すると、Lレベルのビジー信号Bをホストコンピュータ
200に出力して、次のデータDの受信可能を知らせ
る。
An interrupt signal I is sent from an interrupt register 102 set by a strobe signal S to the CPU 201.
(Not shown) that detects the interrupt signal I.
The read signal O is output to the latch circuit 101 from U201. In response to the input of the read signal O, the data D is output from the latch circuit 101 to the CPU 201,
01 confirms the reading of this data D, the CPU 2
From 01, the reset signal R is input to the busy register 103. Upon receiving the reset signal R, the busy register 103 outputs a low-level busy signal B to the host computer 200 to notify that the next data D can be received.

【0004】[0004]

【発明が解決しようとする課題】最近は処理の高速化を
図るためにホストコンピュータ200やプリンタコント
ローラに16ビット又は32ビットのCPUを採用して
いる。しかし、上述した従来のプリンタコントローラで
は、ホストコンピュータ200から1バイトのデータD
を受信して、1バイトのデータDをCPU201に送信
する構成となっているので、データDの転送速度がネッ
クとなって、16ビット又は32ビットのCPUを採用
した各装置の性能を十分に発揮できないという問題があ
る。
Recently, a 16-bit or 32-bit CPU has been adopted for the host computer 200 and the printer controller in order to increase the processing speed. However, in the above-described conventional printer controller, 1-byte data D
And the 1-byte data D is transmitted to the CPU 201. Therefore, the transfer speed of the data D becomes a bottleneck, and the performance of each device employing the 16-bit or 32-bit CPU is sufficiently improved. There is a problem that it cannot be demonstrated.

【0005】なお、上記従来のプリンタコントローラと
類似するものとして、特開平1−121921号公報記
載の技術があるが、この技術も同様に1バイトのデータ
を転送する構成となっており、上記の問題を解決するも
のではない。
[0005] A technique similar to the above-mentioned conventional printer controller is disclosed in Japanese Patent Application Laid-Open No. 1-121921. This technique is also configured to transfer 1-byte data. It does not solve the problem.

【0006】本発明は上記問題点にかんがみてなされた
もので、複数バイトのデータを送受信可能なプリンタコ
ントローラの提供を目的とする。
The present invention has been made in view of the above problems, and has as its object to provide a printer controller capable of transmitting and receiving a plurality of bytes of data.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、セントロニクスインターフェースを有し
ホストコンピュータからプリンタをコントロールするた
めのデータを受信するプリンタコントローラにおいて、
上記ホストコンピュータからの同期信号の前縁に同期し
て読み込まれるデータを格納する第1の記憶手段と、反
転手段で反転された上記同期信号の後縁に同期して読み
込まれるデータを格納する第2の記憶手段と、上記第1
及び第2の記憶手段に格納された複数のデータを同時に
読み出す読出し手段とを備える構成としてある。
In order to achieve the above object, the present invention provides a printer having a Centronics interface for controlling a printer from a host computer .
In the printer controller for receiving data fit,
Synchronize with the leading edge of the synchronization signal from the host computer
First storage means for storing data to be read and read, and reading in synchronization with the trailing edge of the synchronization signal inverted by the inversion means.
Second storage means for storing data to be written, the first
And reading means for simultaneously reading a plurality of data stored in the second storage means.

【0008】請求項2記載のプリンタコントローラは、
上記第1の記憶手段を、上記同期信号の立下り時に上記
データを格納する一以上の第1レジスタで形成し、上記
反転手段を、インバータで形成し、第2の記憶手段を、
上記インバータで反転された同期信号の立下り時にデー
タを格納する一以上の第2レジスタで形成し、上記読出
手段を、上記第1及び第2レジスタに格納された複数の
データを同時に読み出す複数バイトのCPUで形成した
構成としてある。
[0008] The printer controller according to claim 2 is
The first storage means is formed by one or more first registers for storing the data when the synchronization signal falls, the inversion means is formed by an inverter, and the second storage means is formed by:
A plurality of second registers for storing data at the time of the falling edge of the synchronization signal inverted by the inverter, wherein the read means comprises a plurality of bytes for simultaneously reading a plurality of data stored in the first and second registers; Of the CPU.

【0009】請求項3記載のプリンタコントローラは、
上記同期信号の立上り時にセットされて割込み信号を上
記CPUに出力すると共に、上記CPUからのアクノリ
ッジ信号を入力するとリセット状態になる割込みレジス
タを設け、上記CPUに、上記割込みレジスタからの割
込み信号を検知すると、データ出力信号を上記第1及び
第2レジスタに出力し、上記データの読み出し後に上記
ホストコンピュータと割込みレジスタとにアクノリッジ
信号を出力する機能を設けた構成としてある。
According to a third aspect of the present invention, there is provided a printer controller comprising:
An interrupt register which is set at the rising edge of the synchronization signal and outputs an interrupt signal to the CPU and which is reset when an acknowledge signal from the CPU is input is provided. The CPU detects the interrupt signal from the interrupt register. Then, the data output signal is output to the first and second registers, and after reading out the data, an acknowledge signal is output to the host computer and the interrupt register.

【0010】請求項4記載のプリンタコントローラは、
上記インバータで反転された同期信号の立上り時にHレ
ベルになり、かつ上記CPUからのリセット信号の入力
時にLレベルになるビジー信号を上記ホストコンピュー
タに出力するビジーレジスタを設けた構成としてある。
According to a fourth aspect of the present invention, there is provided a printer controller comprising:
A busy register is provided which outputs a busy signal which goes high when the synchronization signal inverted by the inverter rises and goes low when a reset signal is input from the CPU to the host computer.

【0011】[0011]

【作用】上記プリンタコントローラによれば、ホストコ
ンピュータからの同期信号の前縁に同期したデータが第
1の記憶手段に格納されると共に、反転手段で反転され
た同期信号の後縁に同期して読み込まれるデータが第2
の記憶手段に格納される。そして、読出し手段によっ
て、これら第1及び第2の記憶手段から複数のデータが
同時に読み出される。
According to the printer controller, data synchronized with the leading edge of the synchronization signal from the host computer is stored in the first storage means, and is synchronized with the trailing edge of the synchronization signal inverted by the inversion means. The data to be read is the second
Is stored in the storage means. Then, a plurality of data are simultaneously read from the first and second storage units by the reading unit.

【0012】請求項2記載のプリンタコントローラによ
れば、同期信号の立下り時に同期したデータが第1レジ
スタに格納され、インバータで反転された同期信号の
下り時に同期したデータが第2レジスタに格納される。
そして、第1及び第2レジスタに格納された複数のデー
タがCPUによって同時に読み出される。
According to the printer controller according to claim 2, wherein the synchronization data during the fall of the synchronizing signal is stored in the first register, the inverted sync signal at the inverter standing
Data synchronized at the time of downlink is stored in the second register.
Then, the plurality of data stored in the first and second registers are simultaneously read out by the CPU.

【0013】請求項3記載のプリンタコントローラによ
れば、同期信号の立上り時に割込みレジスタがセットさ
れ、割込み信号がCPUに出力される。CPUによって
この割込み信号が検知されると、データ出力信号が第1
及び第2レジスタに出力される。そして、データの読み
出し後に、CPUからホストコンピュータと割込みレジ
スタとにアクノリッジ信号が出力され、このアクノリッ
ジ信号を入力した割込みレジスタはリセット状態にな
る。
According to the printer controller of the third aspect, the interrupt register is set at the time of the rise of the synchronization signal, and the interrupt signal is output to the CPU. When this interrupt signal is detected by the CPU, the data output signal becomes the first signal.
And the second register. Then, after reading the data, an acknowledge signal is output from the CPU to the host computer and the interrupt register, and the interrupt register that has received the acknowledge signal is reset.

【0014】請求項4記載のプリンタコントローラによ
れば、インバータで反転された同期信号が立上ると、H
レベルのビジー信号がビジーレジスタからホストコンピ
ュータに出力される。そして、CPUからのリセット信
号が入力されると、Lレベルのビジー信号がビジーレジ
スタからホストコンピュータに出力される。
According to the printer controller of the fourth aspect, when the synchronizing signal inverted by the inverter rises , H becomes high.
A busy signal of a level is output from the busy register to the host computer. When a reset signal is input from the CPU, an L-level busy signal is output from the busy register to the host computer.

【0015】[0015]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。 第1実施例. 図1は、本発明の第1実施例に係るプリンタコントロー
ラを示すブロック図であり、図2は各信号のタイムチャ
ート図である。図1に示す本実施例のプリンタコントロ
ーラは、図示しないホストコンピュータとプリンタとの
間に介設されており、セントロニクスコネクタ1と第1
レジスタとしての下位バイトレジスタ2と第2レジスタ
としての上位バイトレジスタ3と割込みレジスタ5とビ
ジーレジスタ6とこれらの回路に図示しない周辺回路を
介して接続された16ビットのCPU7とを備えてい
る。
Embodiments of the present invention will be described below with reference to the drawings. First embodiment. FIG. 1 is a block diagram showing a printer controller according to a first embodiment of the present invention, and FIG. 2 is a time chart of each signal. The printer controller of this embodiment shown in FIG. 1 is interposed between a host computer (not shown) and a printer, and has a Centronics connector 1 and a first
It comprises a lower byte register 2 as a register, an upper byte register 3 as a second register, an interrupt register 5, a busy register 6, and a 16-bit CPU 7 connected to these circuits via a peripheral circuit (not shown).

【0016】セントロニクスコネクタ1は、ホストコン
ピュータから1バイトのデータN(N+1)とストロー
ブ信号Sとを入力するようになっている。このセントロ
ニクスコネクタ1の後段に、下位バイトレジスタ2と上
位バイトレジスタ3とが並設されている。
The Centronics connector 1 receives 1-byte data N (N + 1) and a strobe signal S from a host computer. A lower byte register 2 and an upper byte register 3 are arranged side by side at the subsequent stage of the Centronics connector 1.

【0017】下位バイトレジスタ2は、ストローブ信号
Sを受け、図2の(b)及び(c)に示すように、スト
ローブ信号Sの立下り時(前縁)にデータNを格納する
レジスタである。一方、上位バイトレジスタ3のストロ
ーブ信号S入力側前段には、インバータ4が設けられて
おり、このインバータ4で反転されたストローブ信号S
が上位バイトレジスタ3に入力されるようになってい
る。これにより、上位バイトレジスタ3は、反転された
ストローブ信号Sを受け、この反転されたストローブ信
号Sの立下り時(後縁)にデータN+1を格納する。ま
た、これらの下位バイトレジスタ2及び上位バイトレジ
スタ3は、図2の(h)及び(i)に示すように、CP
U7からのデータ出力信号Oを受けた時点で、同時にデ
ータNとデータN+1とを同時にCPU7に出力するよ
うになっている。
The lower byte register 2 is a register that receives the strobe signal S and stores data N when the strobe signal S falls (leading edge) as shown in FIGS. 2B and 2C. . On the other hand, an inverter 4 is provided at a stage preceding the strobe signal S input side of the upper byte register 3, and the strobe signal S inverted by the inverter 4 is provided.
Is input to the upper byte register 3. Thereby, the upper byte register 3 receives the inverted strobe signal S, and stores the data N + 1 at the falling (trailing edge) of the inverted strobe signal S. The lower byte register 2 and the upper byte register 3 are connected to the CP as shown in (h) and (i) of FIG.
When receiving the data output signal O from U7, data N and data N + 1 are simultaneously output to the CPU 7 at the same time.

【0018】割込みレジスタ5は、ストローブ信号Sを
入力し、図2の(b)及び(j)に示すように、ストロ
ーブ信号Sの立上り時にセットされ、割込み信号IをC
PU7に出力する機能を有している。そして、図2の
(e)及び(j)に示すように、割込みレジスタ5はC
PU7からのアクノリッジ信号Aを入力するとリセット
されるようになっている。
The interrupt register 5 receives the strobe signal S and is set when the strobe signal S rises as shown in FIGS. 2 (b) and 2 (j).
It has the function of outputting to PU7. Then, as shown in (e) and (j) of FIG.
When the acknowledge signal A from the PU 7 is input, the reset is performed.

【0019】CPU7は、割込みレジスタ5からの割込
み信号Iを検知すると、図2の(h)に示すように、デ
ータ出力信号Oを下位バイトレジスタ2と上位バイトレ
ジスタ3とに出力する。そして、下位バイトレジスタ2
及び上位バイトレジスタ3から同時に出力されたデータ
N,N+1を内容とする2バイト(16ビット)のデー
タMの読み込み終了後、図2の(e)に示すアクノリッ
ジ信号Aを割込みレジスタ5とセントロニクスコネクタ
1とに出力する機能を有する。さらに、CPU7は、図
2の(g)に示すように、アクノリッジ信号Aに対応し
たリセット信号Rをビジーレジスタ6に出力するように
なっている。
When detecting the interrupt signal I from the interrupt register 5, the CPU 7 outputs a data output signal O to the lower byte register 2 and the upper byte register 3 as shown in FIG. And the lower byte register 2
After the completion of the reading of the 2-byte (16-bit) data M containing the data N and N + 1 simultaneously output from the upper byte register 3 and the acknowledge signal A shown in FIG. 2E, the interrupt register 5 and the Centronics connector 1 is provided. Further, the CPU 7 outputs a reset signal R corresponding to the acknowledge signal A to the busy register 6, as shown in FIG.

【0020】ビジーレジスタ6は、インバータ4で反転
されたストローブ信号Sの立上り時にHレベルになり、
かつCPU7からのリセット信号Rの入力時にLレベル
になるビジー信号Bをセントロニクスコネクタ1を介し
てホストコンピュータに送信する機能を有している。
The busy register 6 goes high when the strobe signal S inverted by the inverter 4 rises ,
Further, it has a function of transmitting a busy signal B which becomes L level when the reset signal R is input from the CPU 7 to the host computer via the Centronics connector 1.

【0021】次に、本実施例の動作について説明する。
ホストコンピュータからの1バイトのデータN(N+
1)とストローブ信号Sとがセントロニクスコネクタ1
を介してプリンタコントローラに入力されると、ストロ
ーブ信号Sの立下り時にデータNが下位バイトレジスタ
2に格納され、インバータ4で反転されたストローブ信
号Sの立上り時にデータN+1が格納される(図2の
(b)〜(d)参照)。
Next, the operation of this embodiment will be described.
1-byte data N (N +
1) and the strobe signal S are connected to the Centronics connector 1
, The data N is stored in the lower byte register 2 when the strobe signal S falls, and the data N + 1 is stored when the strobe signal S inverted by the inverter 4 rises (FIG. 2). (B) to (d)).

【0022】この動作と並行して、ストローブ信号Sの
立上り時に割込みレジスタ5がセットされ、割込み信号
IがCPU7に出力される(図2の(b)及び(j)参
照)。そして、この割込み信号Iを検知したCPU7か
らデータ出力信号Oが下位バイトレジスタ2と上位バイ
トレジスタ3とに出力される(図2の(h)参照)。
In parallel with this operation, the interrupt register 5 is set when the strobe signal S rises, and the interrupt signal I is output to the CPU 7 (see (b) and (j) in FIG. 2). Then, the data output signal O is output from the CPU 7 that has detected the interrupt signal I to the lower byte register 2 and the upper byte register 3 (see (h) of FIG. 2).

【0023】このデータ出力信号Oが下位バイトレジス
タ2及び上位バイトレジスタ3に入力されると、データ
NとデータN+1とが同時にCPU7に出力される(図
2の(h)及び(i)参照)。すなわち、下位バイトレ
ジスタ2及び上位バイトレジスタ3から同時に出力され
たデータN,N+1を内容とする2バイト(16ビッ
ト)のデータMがCPU7に読み込まれる。このよう
に、2バイトのデータMを16ビットのCPU7に送信
することができるので、16ビットのCPU7を採用し
た本装置の性能を十分に発揮することができ、処理の高
速化を図ることができる。
When the data output signal O is input to the lower byte register 2 and the upper byte register 3, data N and data N + 1 are simultaneously output to the CPU 7 (see (h) and (i) of FIG. 2). . That is, 2-byte (16-bit) data M containing the data N and N + 1 simultaneously output from the lower byte register 2 and the upper byte register 3 is read into the CPU 7. As described above, since the 2-byte data M can be transmitted to the 16-bit CPU 7, the performance of the apparatus employing the 16-bit CPU 7 can be sufficiently exhibited, and the processing speed can be increased. it can.

【0024】CPU7におけるデータMの読み込みが終
了すると、アクノリッジ信号Aが割込みレジスタ5とセ
ントロニクスコネクタ1とに出力され、このアクノリッ
ジ信号Aの立下り時に割込みレジスタ5がリセットされ
る(図2の(e)及び(j)参照)。この動作と並行し
て、CPU7からアクノリッジ信号Aに対応したリセッ
ト信号Rがビジーレジスタ6に出力される(図2の
(g)参照)。これにより、インバータ4で反転された
ストローブ信号Sの立上り時にHレベルになっていたビ
ジー信号BがLレベルになってホストコンピュータに送
信され、プリンタコントローラによる次のデータの受信
可能がホストコンピュータに知らされる。
When the reading of the data M by the CPU 7 is completed, an acknowledgment signal A is output to the interrupt register 5 and the Centronics connector 1, and when the acknowledgment signal A falls, the interrupt register 5 is reset ((e in FIG. 2). ) And (j)). In parallel with this operation, a reset signal R corresponding to the acknowledge signal A is output from the CPU 7 to the busy register 6 (see (g) of FIG. 2). As a result, the busy signal B, which has been at the H level when the strobe signal S inverted by the inverter 4 rises , goes to the L level and is transmitted to the host computer, and the host computer is notified that the next data can be received by the printer controller. Is done.

【0025】第2実施例. 図3は本発明の第2実施例に係るプリンタコントローラ
を示すブロック図である。なお、図1と同一の要素につ
いては同一符号を付して説明する。本実施例は、32ビ
ットのCPUに4バイトのデータを読み込ますことがで
きるようにした点が上記第1実施例と異なる。
Second embodiment. FIG. 3 is a block diagram showing a printer controller according to a second embodiment of the present invention. Note that the same elements as those in FIG. This embodiment is different from the first embodiment in that 4-byte data can be read by a 32-bit CPU.

【0026】本実施例は、レジスタ2,3のデータ出力
信号入力端子を接地状態にし、レジスタ2,3の出力端
子側に各々レジスタ8,9を直列に接続した構造になっ
ている。レジスタ8も、レジスタ2と同様にデータ出力
信号入力端子が接地状態にされており、その同期信号入
力端子からストローブ信号S´を受けるようになってい
る。そして、このレジスタ8は、ストローブ信号S´の
立下り時にレジスタ2からのデータを入力する。レジス
タ9も、レジスタ3と同様にデータ出力信号入力端子が
接地状態にされており、インバータ4を介してストロー
ブ信号S´を受けるようになっている。そして、このレ
ジスタ9は、ストローブ信号S´の立上り時にレジスタ
3からのデータを入力する。
In this embodiment, the data output signal input terminals of the registers 2 and 3 are grounded, and the registers 8 and 9 are connected in series to the output terminals of the registers 2 and 3, respectively. Similarly to the register 2, the register 8 has its data output signal input terminal grounded and receives a strobe signal S 'from its synchronization signal input terminal. The register 8 inputs data from the register 2 when the strobe signal S 'falls. The register 9 has a data output signal input terminal grounded similarly to the register 3, and receives the strobe signal S 'via the inverter 4. The register 9 inputs data from the register 3 when the strobe signal S 'rises.

【0027】このようなレジスタ8,9の出力側には、
バッファ10が設けられている。このバッファ10は、
レジスタ8,9からの出力データとレジスタ2,3から
の出力データとを蓄える機能を有している。CPU7´
は32ビットのCPUであり、バッファ10にデータ出
力信号Oを出力することで、バッファ10に蓄えられて
いるデータが同時に読み出され、4バイトのデータM´
として出力されるようになっている。
On the output side of such registers 8 and 9,
A buffer 10 is provided. This buffer 10
It has a function of storing output data from the registers 8 and 9 and output data from the registers 2 and 3. CPU 7 '
Is a 32-bit CPU. By outputting a data output signal O to the buffer 10, the data stored in the buffer 10 is read out at the same time, and the 4-byte data M '
Is output.

【0028】次に、本実施例の動作について説明する。
図4はその動作を示すフローチャート図である。本図の
(a)及び(b)に示すように、セントロニクスコネク
タ1からはデータN,N+1,N+2,N+3と連続し
た2つのストローブ信号S´がレジスタ2,3に出力さ
れる。
Next, the operation of this embodiment will be described.
FIG. 4 is a flowchart showing the operation. As shown in FIGS. 3A and 3B, two strobe signals S ′ continuous with data N, N + 1, N + 2, and N + 3 are output from the Centronics connector 1 to the registers 2 and 3.

【0029】レジスタ2においては、ストローブ信号S
´の立下りに同期して順にデータN,N+2を格納する
ので、レジスタ2からは、図4の(g)に示すように、
以前のデータX,データNが順に出力され、最終的にデ
ータN+2が出力される。レジスタ8では、図4の
(i)に示すように、ストローブ信号S´の立下りに同
期してレジスタ2からのデータX,Nを順に格納するの
で、レジスタ8からは、最終的にデータNが出力され
る。
In the register 2, the strobe signal S
Since the data N and N + 2 are sequentially stored in synchronization with the falling edge of ', the register 2 outputs the data N as shown in FIG.
The previous data X and data N are sequentially output, and finally data N + 2 is output. The register 8 sequentially stores the data X and N from the register 2 in synchronization with the falling edge of the strobe signal S 'as shown in FIG. 4 (i). Is output.

【0030】この結果、レジスタ2からはデータN+2
がバッファ10に出力され、レジスタ8からはデータN
がバッファ10に出力される。レジスタ3,9において
もレジスタ2,8と同様の動作が行われ、図4の(h)
及び(j)に示すように、レジスタ3からデータN+3
がバッファ10に出力され、レジスタ9からはデータN
+1がバッファ10に出力される。
As a result, data N + 2 from register 2
Is output to the buffer 10 and the data N
Is output to the buffer 10. The same operation as that of the registers 2 and 8 is performed in the registers 3 and 9, and FIG.
As shown in (j) and (j), data N + 3
Is output to the buffer 10 and the data N is output from the register 9.
+1 is output to the buffer 10.

【0031】このようにデータN,N+1,N+2,N
+3が蓄えられたバッファ10は、CPU7´からのデ
ータ出力信号Oを入力した時点で、これらのデータN,
N+1,N+2,N+3を同時に4バイトのデータM´
としてCPU7´に出力する。このように本実施例によ
れば、4バイトのデータM´を32ビットのCPU7´
に送信することができるので、32ビットのCPU7´
を採用した本装置の性能を十分に発揮することができ、
処理の高速化を図ることができる。その他の構成,作用
効果は上記第1実施例と同様であるので、その記載は省
略する。
Thus, the data N, N + 1, N + 2, N
+3 is stored in the buffer 10 when the data output signal O from the CPU 7 'is input.
N + 1, N + 2, N + 3 are simultaneously written in 4-byte data M '
To the CPU 7 '. As described above, according to the present embodiment, the 4-byte data M ′ is converted to the 32-bit CPU 7 ′.
Can be transmitted to the 32-bit CPU 7 '.
Can fully demonstrate the performance of this device that employs
The processing can be speeded up. The other configuration, operation, and effect are the same as those of the first embodiment, and the description is omitted.

【0032】[0032]

【発明の効果】以上のように本発明のプリンタコントロ
ーラによれば、第1及び第2の記憶手段から複数のデー
タが同時に読み出される。すなわち、各データを1バイ
トに設定すると、複数バイトのデータが同時に読み出さ
れるので、複数バイトのCPUを採用した装置の性能を
十分に発揮することができ、処理の高速化を図ることが
できるという優れた効果がある。
As described above, according to the printer controller of the present invention, a plurality of data are simultaneously read from the first and second storage means. That is, when each data is set to 1 byte, a plurality of bytes of data are read at the same time, so that the performance of an apparatus employing a CPU of a plurality of bytes can be sufficiently exhibited and the processing can be speeded up. Has an excellent effect.

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

【図1】本発明の第1実施例に係るプリンタコントロー
ラを示すブロック図である。
FIG. 1 is a block diagram illustrating a printer controller according to a first embodiment of the present invention.

【図2】第1実施例における各信号のタイムチャート図
である。
FIG. 2 is a time chart of each signal in the first embodiment.

【図3】本発明の第2実施例に係るプリンタコントロー
ラを示すブロック図である。
FIG. 3 is a block diagram illustrating a printer controller according to a second embodiment of the present invention.

【図4】第2実施例における各信号のタイムチャート図
である。
FIG. 4 is a time chart of each signal in the second embodiment.

【図5】従来例に係るプリンタコントローラを示すブロ
ック図である。
FIG. 5 is a block diagram showing a printer controller according to a conventional example.

【図6】従来例に係るプリンタコントローラの各信号を
示すタイムチャート図である。
FIG. 6 is a time chart illustrating signals of a printer controller according to a conventional example.

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

1 セントロニクスコネクタ 2 下位バイトレジスタ 3 上位バイトレジスタ 4 インバータ 5 割込みレジスタ 6 ビジーレジスタ 7 CPU 1 Centronics connector 2 Lower byte register 3 Upper byte register 4 Inverter 5 Interrupt register 6 Busy register 7 CPU

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 セントロニクスインターフェースを有し
ホストコンピュータからプリンタをコントロールするた
めのデータを受信するプリンタコントローラにおいて、 上記ホストコンピュータからの同期信号の前縁に同期し
て読み込まれるデータを格納する第1の記憶手段と、 反転手段で反転された上記同期信号の後縁に同期して読
み込まれるデータを格納する第2の記憶手段と、 上記第1及び第2の記憶手段に格納された複数のデータ
を同時に読み出す読出し手段と、 を備えることを特徴としたプリンタコントローラ。
1. A printer having a Centronics interface for controlling a printer from a host computer .
In the printer controller for receiving data fit, synchronized to the leading edge of the synchronizing signal from the host computer
First storage means for storing data to be read and read, and reading in synchronization with the trailing edge of the synchronization signal inverted by the inversion means.
Second storage means for storing data to be incorporated seen, the printer controller characterized by comprising a reading means for reading out simultaneously a plurality of data stored in said first and second storage means.
【請求項2】 上記第1の記憶手段を、上記同期信号の
立下り時に上記データを格納する一以上の第1レジスタ
で形成し、 上記反転手段を、インバータで形成し、 第2の記憶手段を、上記インバータで反転された同期信
号の立下り時にデータを格納する一以上の第2レジスタ
で形成し、 上記読出手段を、上記第1及び第2レジスタに格納され
た複数のデータを同時に読み出す複数バイトのCPUで
形成した請求項1記載のプリンタコントローラ。
2. The first storage means is formed by one or more first registers for storing the data when the synchronization signal falls, and the inversion means is formed by an inverter. Is formed by one or more second registers for storing data when the synchronization signal inverted by the inverter falls, and the reading means is configured to simultaneously read the plurality of data stored in the first and second registers. 2. The printer controller according to claim 1, wherein the printer controller is formed by a CPU of a plurality of bytes to be read.
【請求項3】 上記同期信号の立上り時にセットされて
割込み信号を上記CPUに出力すると共に、上記CPU
からのアクノリッジ信号を入力するとリセット状態にな
る割込みレジスタを設け、 上記CPUに、上記割込みレジスタからの割込み信号を
検知すると、データ出力信号を上記第1及び第2レジス
タに出力し、上記データの読み出し後に上記ホストコン
ピュータと割込みレジスタとにアクノリッジ信号を出力
する機能を設けた請求項2記載のプリンタコントロー
ラ。
3. An interrupt signal which is set when the synchronizing signal rises and which outputs an interrupt signal to the CPU;
An interrupt register which is reset when an acknowledge signal is input from the CPU is provided. When an interrupt signal from the interrupt register is detected, the CPU outputs a data output signal to the first and second registers and reads the data. 3. The printer controller according to claim 2, further comprising a function of outputting an acknowledge signal to the host computer and the interrupt register later.
【請求項4】 上記インバータで反転された同期信号の
立上り時にHレベルとなり、かつ上記CPUからのリセ
ット信号の入力時にLレベルとなるビジー信号を上記ホ
ストコンピュータに出力するビジーレジスタを設けた請
求項3記載のプリンタコントローラ。
4. The synchronizing signal inverted by said inverter.
4. The printer controller according to claim 3, further comprising a busy register that outputs a busy signal that goes high when the signal rises and goes low when a reset signal is input from the CPU to the host computer.
JP18094094A 1994-07-08 1994-07-08 Printer controller Expired - Fee Related JP2658887B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18094094A JP2658887B2 (en) 1994-07-08 1994-07-08 Printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18094094A JP2658887B2 (en) 1994-07-08 1994-07-08 Printer controller

Publications (2)

Publication Number Publication Date
JPH0822380A JPH0822380A (en) 1996-01-23
JP2658887B2 true JP2658887B2 (en) 1997-09-30

Family

ID=16091944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18094094A Expired - Fee Related JP2658887B2 (en) 1994-07-08 1994-07-08 Printer controller

Country Status (1)

Country Link
JP (1) JP2658887B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW365548B (en) 1997-05-09 1999-08-01 Nippon Steel Corp Metallic honeycomb body for supporting catalyst for purifying exhaust gas and process for producing the same

Also Published As

Publication number Publication date
JPH0822380A (en) 1996-01-23

Similar Documents

Publication Publication Date Title
US7328399B2 (en) Synchronous serial data communication bus
US5461701A (en) System and method for peripheral data transfer
JPH0277863A (en) Bus control system
US5796963A (en) System and method for converting VXI bus cycles to PCI burst cycles
JP2658887B2 (en) Printer controller
US6003096A (en) Host interface circuit for preventing data loss and improving interface speed for an image forming apparatus by latching received data in response to a strobe input signal
JP2000231539A (en) Data transfer system and data transfer method
JPH098989A (en) Parallel data transfer system and electronic device
JPH1063617A (en) Serial communication device
JP3052848B2 (en) Frame synchronization protection circuit
JP2759984B2 (en) Signal transfer device
JP2000330931A (en) Device and method for dma transfer control
KR100400933B1 (en) Apparatus for synchronization between CPU and external devices in keyphone system
JP3264336B2 (en) Image conversion processor
JP2630077B2 (en) Clock synchronous serial interface
JPH0581165A (en) Data transfer circuit
JP3256464B2 (en) Asynchronous transfer control method
JPH0267665A (en) Interface circuit
JP2511697B2 (en) Data receiver
JPH04369756A (en) Data transfer method
JPH08179893A (en) Information processor
JP2823625B2 (en) Data processing device
JPH05265698A (en) Information processor
JPH01315849A (en) Information processor
JPH08184633A (en) Hot line inserting/drawing system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees