JPH0721119A - Data receiving device - Google Patents

Data receiving device

Info

Publication number
JPH0721119A
JPH0721119A JP18557393A JP18557393A JPH0721119A JP H0721119 A JPH0721119 A JP H0721119A JP 18557393 A JP18557393 A JP 18557393A JP 18557393 A JP18557393 A JP 18557393A JP H0721119 A JPH0721119 A JP H0721119A
Authority
JP
Japan
Prior art keywords
data
cpu
received
time
signal
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
JP18557393A
Other languages
Japanese (ja)
Inventor
Shinichi Fukunaga
真一 福永
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP18557393A priority Critical patent/JPH0721119A/en
Publication of JPH0721119A publication Critical patent/JPH0721119A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To decrease the frequency of interrupt processing at the time of data reception from a CPU and to shorten the processing time by outputting an interrupt signal to the CPU after received data are gathered by data width that the CPU handles. CONSTITUTION:This data receiving device is equipped with a data latch and control circuit 103 which outputs the interrupt signal to the CPU 104 after the received data are gathered by the data width that the CPU 104 handles. A transfer source 101 and the data latch and control circuit 103 are linked on a handshake basis. For example, when data sent from the transfer source 101 has 8-bit width and the CPU 104 is of 16-bit width constitution, data are latched by the bit width (16 bits) that the CPU 104 handles and then read in by the CPU 104. Consequently, generating circuits for interrupts due to data reception are decreased and the data can be received fast.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,パソコンやワープロ等
(送信側)から送信されてきたデータをプリンタ(受信
側)で出力する場合等に利用されるセントロニクス仕様
のデータ受信装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Centronics specification data receiving apparatus used when a printer (reception side) outputs data transmitted from a personal computer, a word processor or the like (transmission side). .

【0002】[0002]

【従来の技術】図4は,従来におけるセントロニクス仕
様準拠のパラレルI/Fのデータ受信装置における構成
を示すブロック図である。図において,101はデータ
を送信する転送元,102はコントローラ,401はデ
ータを受信するdata・latchおよびcontr
ol回路,402は16bit(32bit,64bi
tでも可)のCPUである。
2. Description of the Related Art FIG. 4 is a block diagram showing a configuration of a conventional parallel I / F data receiving apparatus conforming to the Centronics specification. In the figure, 101 is a transfer source for transmitting data, 102 is a controller, and 401 is data / latch and control for receiving data.
ol circuit, 402 is 16 bits (32 bits, 64 bits)
CPU may be t).

【0003】次に,以上の構成において,データをCP
U402が受け取るシーケンス動作について説明する。
まず,転送元101は,データバスDATA1−8に送
信するデータをのせてデータのSTROBE信号を出力
する。そして,データバスDATA1−8のデータをコ
ンローラ102内のlatchにラッチし,同時に,C
PU402に対してINTERRUPT(インタラプ
ト)信号を出力する。該INTERRUPT信号を受け
取ったCPU402は,INTERRUPTルーチンの
中でlatchの中のデータを読みにいく。すなわち,
CPU402は,read信号を出力すると共に,da
ta・latchおよびcontrol回路401はC
PU402に対してデータを出力する。
Next, in the above configuration, the data is CP
The sequence operation received by the U402 will be described.
First, the transfer source 101 puts data to be transmitted on the data buses DATA1-8 and outputs a STROBE signal of the data. Then, the data of the data bus DATA1-8 is latched in the latch in the controller 102, and at the same time, C
The INTERRUPT signal is output to the PU 402. The CPU 402, which has received the INTERRUPT signal, reads the data in the latch in the INTERRUPT routine. That is,
The CPU 402 outputs the read signal and at the same time, da
The ta-latch and control circuit 401 is C
The data is output to the PU 402.

【0004】転送元101から送られてくるデータは,
8bit幅で,CPU402は,この場合,16bit
幅のため,CPU402のバス上位8bitに,転送元
101から送られてくるデータをのせ,さらに,下位8
bitには“0”をのせる。read信号を受け取った
data・latchおよびcontrol回路401
は,INTERRUPT信号をクリアし,同時に,転送
元101に対してACK信号を返す。その後,本シーケ
ンスの開始処理に戻って同様の処理を繰り返し実行す
る。
The data sent from the transfer source 101 is
With an 8-bit width, the CPU 402 has 16 bits in this case.
Due to the width, the data sent from the transfer source 101 is placed on the upper 8 bits of the bus of the CPU 402, and the lower 8
Put "0" on the bit. A data latch and control circuit 401 which has received a read signal
Clears the INTERRUPT signal and at the same time returns an ACK signal to the transfer source 101. After that, the process returns to the start process of this sequence and the same process is repeatedly executed.

【0005】[0005]

【発明が解決しようとする課題】しかしながら,上記に
示されるような従来におけるセントロニクス仕様準拠に
基づいたパラレルデータ通信方式にあっては,データを
受信する度(8bit毎)に,CPUに対してINTE
RRUPUT信号を出力するので,CPUが扱うbit
数が16bitであろうが,32bitであろうが一回
のreadサイクルで8bitしか取り扱うことができ
ないため,データ受信時における処理効率が上がらない
という問題点があった。
However, in the conventional parallel data communication system based on the Centronics specification as described above, an INTE is issued to the CPU every time data is received (every 8 bits).
Since the RRUPUT signal is output, the bit handled by the CPU
Regardless of whether the number is 16 bits or 32 bits, since only 8 bits can be handled in one read cycle, there is a problem that the processing efficiency at the time of receiving data cannot be improved.

【0006】本発明は,上記に鑑みてなされたものであ
って,セントロニクス仕様準拠のインタフェースを用い
たパラレルデータ通信方式において,CPUのデータ受
信時におけるINTERRUPT処理回数を減少させ
て,その処理時間の短縮化を図り,データ受信時におけ
る処理効率を向上させることを目的とする。
The present invention has been made in view of the above, and in the parallel data communication system using the interface conforming to the Centronics specification, the number of INTERRUPT processes at the time of data reception of the CPU is reduced to reduce the processing time. It aims at shortening and improving the processing efficiency at the time of data reception.

【0007】[0007]

【課題を解決するための手段】本発明は,上記の目的を
達成するために,セントロニクス仕様のパラレルデータ
通信方式を用いたデータ受信装置において,CPUの扱
うデータ幅分の受信データが揃ってから,該CPUに対
してインタラプト信号を出力するデータ制御手段を具備
するデータ受信装置を提供するものである。
In order to achieve the above object, the present invention provides a data receiving apparatus using a parallel data communication system of the Centronics specification, in which the received data for the data width handled by the CPU is prepared. , A data receiving device having a data control means for outputting an interrupt signal to the CPU.

【0008】また,前記データ制御手段は,決められた
コードを受信することにより,最後のデータを受信して
からCPUの扱うデータ幅に満たないデータを取り込む
までの時間を設定する。
Further, the data control means sets the time from the reception of the last data to the fetching of data less than the data width handled by the CPU by receiving the predetermined code.

【0009】また,前記データ制御手段は,データ受信
前に決められたコードを受信することにより,送られて
くるデータ量を予め知り,該データ量に基づいて処理を
実行する。
Also, the data control means knows the amount of data to be sent in advance by receiving the code determined before receiving the data, and executes the process based on the amount of data.

【0010】また,前記データ制御手段は,受信データ
の並びをlittle endian,あるいは,bi
g endianに指定する。
Further, the data control means sets the arrangement of received data to a little endian or bi.
Specify as g endian.

【0011】また,前記データ制御手段は,特定データ
を受信した場合にのみ,CPUの扱うデータ幅に満たな
くてもCPUにデータを受信したことを知らせる。
Further, the data control means informs the CPU that the data has been received even when the data width handled by the CPU is not satisfied, only when the specific data is received.

【0012】また,前記データ制御手段は,複数のイン
タラプト信号の中から1本を区別して出力することによ
りステータスを読むことなく,データの有効性を確認で
きる。
The data control means can confirm the validity of the data without reading the status by distinguishing and outputting one of the plurality of interrupt signals.

【0013】[0013]

【作用】本発明に係るデータ受信装置は,データを受信
する度に,CPUに対してインタラプト信号を出力せず
に,CPUの扱うデータ幅(ビット)分のデータが揃っ
てから,CPUに対してインタラプト信号を出力するこ
とにより,データ受信時におけるインタラプト処理を減
少させる。
The data receiving apparatus according to the present invention does not output an interrupt signal to the CPU each time the data is received, but collects data for the data width (bits) handled by the CPU, By outputting an interrupt signal by using this, the interrupt processing at the time of data reception is reduced.

【0014】[0014]

【実施例】以下,本発明に係るデータ受信装置の実施例
を図面に基づいて説明する。図1は,本発明を適用した
セントロニクス仕様準拠のパラレルI/Fのデータ受信
装置における構成を示すブロック図である。図におい
て,101はデータを送信する転送元,102はコント
ローラ,103はデータを受信するdata・latc
hおよびcontrol回路,104は16bitのC
PUである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of a data receiving apparatus according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a parallel I / F data receiving device conforming to the Centronics specification to which the present invention is applied. In the figure, 101 is a transfer source for transmitting data, 102 is a controller, and 103 is data / latc for receiving data.
h and control circuit, 104 is a 16-bit C
It is PU.

【0015】また,上記において,転送元101とda
ta・latchおよびcontrol回路103と
は,セントロニクス仕様でハンドシェイキングされてい
る。すなわち,転送元101からdata・latch
およびcontrol回路103に対して,データバス
DATA1−8,STROBE信号が出力されるライン
が接続されている。一方,data・latchおよび
control回路103から転送元101に対して,
ACK信号を返すラインが設けられている。
Further, in the above, the transfer source 101 and da
The ta-latch and control circuits 103 are handshaked according to the Centronics specification. That is, from the transfer source 101, data / latch
The data buses DATA1 to DATA8 and lines to which the STROBE signal is output are connected to the control circuit 103 and the control circuit 103. On the other hand, from the data / latch and control circuit 103 to the transfer source 101,
A line for returning an ACK signal is provided.

【0016】また,data・latchおよびcon
trol回路103はCPU104に対して,16bi
tのデータD15−0,INTERRUPT1,INT
ERRUPT2の各信号ラインが設けられている。ま
た,CPU104からdata・latchおよびco
ntrol回路103に対して,read信号のライン
が設けられている。
In addition, data, latch and con
The troll circuit 103 is 16 bi with respect to the CPU 104.
t data D15-0, INTERRUPT1, INT
Each signal line of ERRORP2 is provided. In addition, the CPU 104 outputs data, latch and co
A read signal line is provided for the control circuit 103.

【0017】図2および図3は,上記data・lat
chおよびcontrol回路103の詳細な構成を示
すブロック図である。図において,data・latc
hおよびcontrol回路103は,8bit・la
tch−1回路201と,8bit・latch−2回
路202と,LATCH信号選択回路203と,INT
ERRUPT発生回路およびtime・outカウンタ
204と,ACK発生回路205と,コマンドレジスタ
206と,time・out時間設定レジスタ207
と,データ量設定レジスタおよびカウンタ208と,特
殊データ設定レジスタおよび比較器209とから構成さ
れている。
2 and 3 show the data / lat.
3 is a block diagram showing a detailed configuration of a ch and control circuit 103. FIG. In the figure, data / latc
The h and control circuits 103 are 8 bit · la.
tch-1 circuit 201, 8-bit / latch-2 circuit 202, LATCH signal selection circuit 203, and INT
ERROR generation circuit and time / out counter 204, ACK generation circuit 205, command register 206, time / out time setting register 207
And a data amount setting register and counter 208, and a special data setting register and comparator 209.

【0018】次に,以上の構成において,データをCP
U104が受け取るシーケンス動作について説明する。 〔実施例1〕転送元101は,データバスDATA1−
8に送信するデータをのせて,1byte目データのS
TROBE信号を出力する。そして,このSTROBE
信号を受けてLATCH信号選択回路203は,1by
te目のlatchを8bit・latch−1回路2
01に設定する。このとき,8bit・latch−1
回路201あるいは8bit・latch−2回路20
2の何れを使用するかの初期値は,コマンドレジスタ2
06に設定された初期latch選択信号に基づいて設
定される。
Next, in the above configuration, the data is CP
The sequence operation received by U104 will be described. [Embodiment 1] The transfer source 101 is a data bus DATA1-
Put the data to be sent to No.8, S of the 1st byte data
Output the TROBE signal. And this STROBE
Upon receipt of the signal, the LATCH signal selection circuit 203 is set to 1 by
The latch of the te eye is an 8-bit latch-1 circuit 2
Set to 01. At this time, 8 bit-latch-1
Circuit 201 or 8-bit latch-2 circuit 20
The initial value of which of 2 is used is the command register 2
It is set based on the initial latch selection signal set to 06.

【0019】次に,データバスDATA1−8のデータ
を8bit・latch−1回路201にラッチする。
なお,LATCH信号選択回路203は,STROBE
信号に同期して,8bit・latch−1回路201
にCK1を出力する。そして,このラッチと同時に,A
CK発生回路205は,転送先101に対してACK信
号を出力する。このとき,ACK信号のLOWレベルで
ある時間は,コマンドレジスタ206のACK幅設定信
号に基づいて制御される。
Next, the data on the data bus DATA1-8 is latched in the 8-bit latch-1 circuit 201.
Note that the LATCH signal selection circuit 203 uses the STROBE
In synchronization with the signal, the 8-bit latch-1 circuit 201
CK1 is output to. And at the same time with this latch, A
The CK generation circuit 205 outputs an ACK signal to the transfer destination 101. At this time, the LOW level time of the ACK signal is controlled based on the ACK width setting signal of the command register 206.

【0020】STROBE信号のニゲートされるタイミ
ングでLATCH信号選択回路203は,次に,STR
OBE信号が送られてきたときにCK2に信号を出力す
るように設定する。
At the timing when the STROBE signal is negated, the LATCH signal selection circuit 203
It is set to output a signal to CK2 when the OBE signal is sent.

【0021】次に,転送元101は,データバスDAT
A1−8に送信するデータをのせて,2byte目デー
タのSTROBE信号を出力する。そして,STROB
E信号に同期してLATCH信号選択回路203は,C
K2を8bit・latch−2回路202に出力す
る。これにより,データバスDATA1−8のデータを
8bit・latch−2回路202にラッチする。ま
た,このラッチと同時に,INTERRUPT発生回路
およびtime・outカウンタ204は,CPU10
4に対してINTERRUPT信号(1あるいは2)を
発生する。
Next, the transfer source 101 is the data bus DAT.
The data to be transmitted is placed on A1-8, and the STROBE signal of the second byte data is output. And STROB
In synchronization with the E signal, the LATCH signal selection circuit 203
K2 is output to the 8-bit latch-2 circuit 202. As a result, the data on the data bus DATA1-8 is latched in the 8-bit latch-2 circuit 202. At the same time as this latch, the INTERRUPT generation circuit and the time-out counter 204 are
4 generates an INTERRUPT signal (1 or 2).

【0022】上記INTERRUPT信号を受け取った
CPU104は,INTERRUPTルーチンの中でラ
ッチの中のデータを読みにいく。このとき,CPU10
4は,read信号を出力し,8bit・latch−
1回路201および8bit・latch−2回路20
2は,CPU104に対してデータを出力する。
Upon receipt of the INTERRUPT signal, the CPU 104 reads the data in the latch in the INTERRUPT routine. At this time, the CPU 10
4 outputs a read signal, and 8 bit latch-
1 circuit 201 and 8 bit latch-2 circuit 20
2 outputs data to the CPU 104.

【0023】このようにして1byte目に受信したデ
ータは,上位byte(D15−8)に割り振られ,さ
らに,2byte目に受信したデータは,下位byte
(D7−0)に割り振られる。
In this way, the data received in the first byte is allocated to the upper byte (D15-8), and the data received in the second byte is the lower byte.
It is allocated to (D7-0).

【0024】read信号を受け取ったINTERRU
PT発生回路およびtime・outカウンタ204
は,INTERRUPT信号をクリアし,さらに,AC
K発生回路205は転送元101に対してACK信号を
出力する。このとき,ACK信号のLOWレベルである
時間は,コマンドレジスタ206のACK幅設定信号に
基づいて設定される。そして,上記一連のシーケンス処
理を実行した後,再度スタート時に戻って同様の処理を
繰り返し実行する。
INTERRURU receiving the read signal
PT generation circuit and time-out counter 204
Clears the INTERRUPT signal, and
The K generation circuit 205 outputs an ACK signal to the transfer source 101. At this time, the LOW level time of the ACK signal is set based on the ACK width setting signal of the command register 206. Then, after the series of sequence processing described above is executed, the same processing is repeated by returning to the start time.

【0025】したがって,上記実施例によれば,CPU
104の扱うbit幅(本実施例では,16bit)だ
けデータをラッチしてCPU104が読み込むことによ
り,データ受信によるINTERRUPTの発生回数
は,n/8(nはCPU104の扱うデータのbit
幅)となる。これにより,従来におけるデータ受信方式
に対して,高速にデータの受信を実行することができ
る。また,1byte目のデータをラッチし,すぐにA
CK信号を返すことにより,2byte目のデータをよ
り早く送り始めることができるため,高速にデータを転
送することができる。
Therefore, according to the above embodiment, the CPU
The number of occurrences of INTERRUPT due to data reception is n / 8 (n is a bit of data handled by the CPU 104) by latching data by the bit width handled by 104 (16 bits in this embodiment) and reading by the CPU 104.
Width). As a result, it is possible to receive data at a higher speed than the conventional data receiving method. Also, latch the 1st byte data and immediately
By returning the CK signal, the data of the second byte can be started to be sent earlier, so that the data can be transferred at high speed.

【0026】〔実施例2〕次に,第2の実施例について
説明する。上記第1の実施例において,奇数byteの
データを転送した場合は,最後の1byteのデータを
受信することができず,CPU104にて最後の1by
teをreadする必要がある。このため,本実施例で
は,決められたコードを受信することにより,最後のデ
ータを受信してから,CPU104の扱うデータ幅に満
たないデータを取り込むまでの時間を設定する。
[Second Embodiment] Next, a second embodiment will be described. In the first embodiment, when the odd byte data is transferred, the last 1 byte data cannot be received, and the CPU 104 receives the last 1 byte data.
It is necessary to read te. Therefore, in the present embodiment, by receiving a predetermined code, the time from the reception of the last data to the acquisition of data that is less than the data width handled by the CPU 104 is set.

【0027】この設定について詳細に説明する。tim
e・out時間設定レジスタ207に,奇数byte目
受信時からINTERRUPT発生までの時間を設定す
る。time・out時間設定レジスタ207の値は,
INTERRUPT発生回路およびtime・outカ
ウンタ204に接続され,該INTERRUPT発生回
路およびtime・outカウンタ204はCK1を受
信してから,time・out時間設定レジスタ207
で設定された値をダウンカウントを開始し,該ダウンカ
ウントを終了すると,INTERRUPT1の信号を出
力する。このとき,ダウンカウント終了以前にCK2が
受信した場合は,カウント値をtime・out時間設
定レジスタ207によって設定された値に設定しなお
す。
This setting will be described in detail. tim
In the e-out time setting register 207, the time from the reception of odd bytes to the occurrence of INTERRUPT is set. The value of the time-out time setting register 207 is
The INTERRUPT generation circuit and the time-out counter 204 are connected, and the INTERRUPT generation circuit and the time-out counter 204 receive the CK1 and then the time-out time setting register 207.
When the down count is started for the value set in step 1 and the down count is finished, the signal INTERRUPT1 is output. At this time, if CK2 is received before the end of the down count, the count value is reset to the value set by the time-out time setting register 207.

【0028】上記実施例によれば,time・out時
間設定レジスタ207に奇数byte受信時からINT
ERRUPT発生までの時間を設定することにより,設
定時間を経過したときにINTERRUPTが発生する
ため,最後の1byteも確実に受信することができ
る。したがって,実施例1における奇数byteのデー
タを転送した場合に,最後の1byteを受信するまで
永遠に待ち状態となるケースを回避することができる。
According to the above-described embodiment, the time-out time setting register 207 is set to INT when the odd bytes are received.
By setting the time until the occurrence of ERRORP, INTERRUPT is generated when the set time has elapsed, so that the last 1 byte can be surely received. Therefore, when the odd number of bytes of data in the first embodiment is transferred, it is possible to avoid the case of waiting forever until the last one byte is received.

【0029】〔実施例3〕次に,第3の実施例について
説明する。本実施例では,上記第1の実施例において,
決められたコードを受信することにより,事前に送るデ
ータ量を知り,効率よくデータを受信するようにする。
これを具体的に説明する。第1の実施例において,転送
元101が大量のデータを送る前に予め決まったフォー
マット,例えば,ESC+XXXXXXをコマンド列と
して,コントローラ102に知らせる。つまり,そのコ
マンドの内容によって送るデータ量を知ることができ
る。データ量はCPU104によってデータ量設定レジ
スタおよびカウンタ208に設定され,この設定が実行
された後にデータを受信する。
[Third Embodiment] Next, a third embodiment will be described. In the present embodiment, in the above first embodiment,
By receiving the predetermined code, know the amount of data to be sent in advance and receive the data efficiently.
This will be specifically described. In the first embodiment, before the transfer source 101 sends a large amount of data, a predetermined format, for example, ESC + XXXXXXX is notified to the controller 102 as a command string. That is, the amount of data to be sent can be known from the content of the command. The data amount is set in the data amount setting register and the counter 208 by the CPU 104, and the data is received after this setting is executed.

【0030】上記において,データ量が偶数byteの
ときには特に処理を実行せずに,奇数byteのときだ
け処理を実行する。データ量設定レジスタおよびカウン
タ208に設定された値は,カウンタにてSTROBE
信号が送られてくる毎に,ダウンカウントされて奇数b
yteに設定され,しかも,ダウンカウントを終了した
場合のみ,データ終了信号をINTERRUPT発生回
路およびtime・outカウンタ204に出力する。
そして,データ終了信号を受け取ったINTERRUP
T発生回路およびtime・outカウンタ204は,
すぐにINTERRUPT1の信号を発生する。
In the above, when the amount of data is an even number of bytes, no particular process is executed, but only when the amount of data is an odd number of bytes. The value set in the data amount setting register and the counter 208 is transferred to the STROBE
Every time a signal is sent, it is down-counted and an odd number b
The data end signal is output to the INTERRUPT generation circuit and the time-out counter 204 only when the down count is completed.
Then, the INTERRUUP that received the data end signal
The T generation circuit and the time-out counter 204 are
Immediately generate the INTERRUPT1 signal.

【0031】上記実施例によれば,事前にデータ量がわ
かっているため,奇数byte受信時における最後の1
byte受信時に,上記実施例2でのtime out
時間を待つことをせずに,最後のデータをreadする
ことができる。
According to the above-described embodiment, since the data amount is known in advance, the last 1 at the time of receiving an odd byte.
At the time of receiving the byte, the time out in the second embodiment described above
The last data can be read without waiting for time.

【0032】〔実施例4〕次に,第4の実施例について
説明する。本実施例では,受信データの並びをlitt
le endian,あるいは,big endian
に指定する。すなわち,第1の実施例において,コマン
ドレジスタ206に,8bit・latch−1回路2
01あるいは8bit・latch−2回路202の何
れかを使用するかの初期値を設定することにより,li
ttle endian,あるいは,big endi
anにデータの並びを設定する。
[Fourth Embodiment] Next, a fourth embodiment will be described. In this embodiment, the arrangement of received data is set to the litt
le endian or big endian
Specify in. That is, in the first embodiment, the command register 206 is provided with the 8-bit latch-1 circuit 2
By setting the initial value of whether 01 or 8 bit latch-2 circuit 202 is used,
title endian or big endi
Set the data sequence to an.

【0033】上記実施例によれば,使用するCPUの種
類によって処理のし易いデータが決まっており,例え
ば,モトローラ社68000ではbig endia
n,インテル社8086ではlittle endia
nに設定することにより,効率のよいデータ処理を実行
することができる。
According to the above-described embodiment, the data that can be easily processed is determined depending on the type of CPU used. For example, Motorola 68000 has big endia.
n, Intel 8086, little endia
By setting to n, efficient data processing can be executed.

【0034】〔実施例5〕次に,第5の実施例について
説明する。上記第1の実施例において,特定データを受
信した場合にのみ,CPU104の扱うデータ幅に満た
なくても,CPU104にデータを受信したことを知ら
せる。具体的に説明すると,特殊データ設定レジスタお
よび比較器209にデータを設定し,常に,8bit・
latch−1回路201および8bit・latch
−2回路202のデータとを特殊データ設定レジスタお
よび比較器209にて比較する。その結果,一致した場
合は,奇数byte受信時においても,もう1byte
の受信を待たずにINTERRUPT1の信号を発生さ
せる。すなわち,特殊データ設定レジスタおよび比較器
209よりデータ一致信号を,INTERRUPT発生
回路およびtime・outカウンタ204に出力し,
INTERRUPT1の信号を発生させる。
[Fifth Embodiment] Next, a fifth embodiment will be described. In the first embodiment, only when the specific data is received, the CPU 104 is notified that the data is received, even if the data width handled by the CPU 104 is not satisfied. More specifically, data is set in the special data setting register and the comparator 209, and 8 bit
latch-1 circuit 201 and 8 bit latch
-2 The data of the circuit 202 is compared with the special data setting register and the comparator 209. As a result, if they match, even if an odd number of bytes are received, another 1 byte is received.
The signal of INTERRUPT1 is generated without waiting for the reception of. That is, the data matching signal is output from the special data setting register and the comparator 209 to the INTERRUPT generating circuit and the time-out counter 204,
Generates the signal INTERRUPT1.

【0035】プリンタにおいては,記録紙のフィードコ
マンドやプリントコマンドはすぐに受信したことを知る
必要があり,上記実施例によれば,特殊データ設定レジ
スタおよび比較器209にデータを設定し,常に,8b
it・latch−1回路201および8bit・la
tch−2回路202のデータとを特殊データ設定レジ
スタおよび比較器209にて比較することにより,奇数
byte目に受信した場合であっても,すぐにデータを
readすることができる。
In the printer, it is necessary to know that the feed command for the recording paper and the print command have been received immediately. According to the above-mentioned embodiment, the data is set in the special data setting register and the comparator 209, and always, 8b
it • latch-1 circuit 201 and 8 bit • la
By comparing the data of the tch-2 circuit 202 with the special data setting register and the comparator 209, the data can be immediately read even when it is received at the odd byte.

【0036】〔実施例6〕次に,第6の実施例について
説明する。本実施例では,上記第1の実施例において,
複数のINTERRUPT信号の中から1本を区別する
ことにより,そのステータスをreadすることなく,
どのデータが有効であるかを知らせるものである。これ
を具体的に説明すると,実施例1において,CPU10
4に対して,偶数byte受信時に,INTERRUP
T2の信号を区別して知らせ,一方,最後の奇数byt
e受信時に,INTERRUPT1の信号を知らせる。
これにより,16bit中8bitが有効か,あるいは
16bitが有効であるかをステータスのreadを実
行せずに知ることができる。
[Sixth Embodiment] Next, a sixth embodiment will be described. In the present embodiment, in the above first embodiment,
By distinguishing one from multiple INTERRUPT signals, without reading its status,
It informs which data is valid. This will be specifically described. In the first embodiment, the CPU 10
4 for INTERRUP when receiving an even byte
The signal of T2 is distinguished and notified, while the last odd byt
Notify the signal of INTERRUPT1 when receiving e.
This makes it possible to know whether 8 bits out of 16 bits are valid or whether 16 bits are valid without executing the status read.

【0037】上記実施例によれば,第1の実施例におい
て,CPU104に対して偶数byte受信時に,IN
TERRUPT2の信号を区別して知らせ,最後の奇数
byte受信時に,INTERRUPT1の信号を知ら
せることにより,INTERRUPTルーチンを2種類
持たせることができる。また,ステータスをread
し,判断する時間を節約することにより,より高速なデ
ータの受け渡しが実現する。
According to the above-described embodiment, in the first embodiment, when receiving an even byte to the CPU 104, the IN
Two types of INTERRUPT routines can be provided by distinguishing the signal of TERRUPT2 and notifying the signal of INTERRUPT1 when the last odd byte is received. Also read the status
However, by saving the judgment time, faster data transfer can be realized.

【0038】[0038]

【発明の効果】以上説明したように,本発明によるデー
タ受信装置によれば,データを受信する度に,CPUに
対してインタラプト信号を出力せずに,CPUの扱うデ
ータ幅(ビット)分のデータが揃ってから,CPUに対
してインタラプト信号を出力するため,セントロニクス
仕様準拠のインタフェースを用いたパラレルデータ通信
方式において,CPUのデータ受信時におけるインタラ
プト処理回数が減少し,その処理の短縮化を図り,デー
タ受信後における処理効率を向上させることができる。
As described above, according to the data receiving apparatus of the present invention, each time data is received, an interrupt signal is not output to the CPU, and the data width (bit) handled by the CPU is equivalent. Since the interrupt signal is output to the CPU after the data is gathered, in the parallel data communication method using the interface conforming to the Centronics specification, the number of interrupt processing at the time of CPU data reception is reduced and the processing is shortened. As a result, the processing efficiency after receiving the data can be improved.

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

【図1】本発明を適用したセントロニクス仕様準拠のパ
ラレルI/Fのデータ受信装置における構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of a parallel I / F data receiving device conforming to the Centronics specification to which the present invention is applied.

【図2】図1に示したdata・latchおよびco
ntrol回路の詳細な構成を示すブロック図である。
FIG. 2 shows the data, latch and co shown in FIG.
It is a block diagram which shows the detailed structure of a control circuit.

【図3】図1に示したdata・latchおよびco
ntrol回路の詳細な構成を示すブロック図である。
FIG. 3 shows data • latch and co shown in FIG.
It is a block diagram which shows the detailed structure of a control circuit.

【図4】従来におけるセントロニクス仕様準拠のパラレ
ルI/Fのデータ受信装置における構成を示すブロック
図である。
FIG. 4 is a block diagram showing a configuration of a conventional parallel I / F data receiving device conforming to the Centronics specification.

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

101 送信元 102 コントローラ 103 data・latchおよびcontrol回
路 104 CPU 201 8bit latch−1回路 202 8bit・latch−2回路 203 LATCH信号選択回路 204 INTERRUPT発生回路およびtime・
outカウンタ 205 ACK発生回路 206 コマンドレジスタ 207 time・out時間設定レジスタ 208 データ量設定レジスおよびカウンタ 209 特殊データ設定レジスタおよび比較器
101 Source 102 Controller 103 data latch and control circuit 104 CPU 201 8 bit latch-1 circuit 202 8 bit latch-2 circuit 203 LATCH signal selection circuit 204 INTERRUPT generation circuit and time
out counter 205 ACK generation circuit 206 command register 207 time / out time setting register 208 data amount setting register and counter 209 special data setting register and comparator

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 セントロニクス仕様のパラレルデータ通
信方式を用いたデータ受信装置において,CPUの扱う
データ幅分の受信データが揃ってから,該CPUに対し
てインタラプト信号を出力するデータ制御手段を具備す
ることを特徴とするデータ受信装置。
1. A data receiving device using a parallel data communication system of the Centronics specification, comprising a data control means for outputting an interrupt signal to the CPU after the received data for the data width handled by the CPU are prepared. A data receiving device characterized by the above.
【請求項2】 前記データ制御手段は,決められたコー
ドを受信することにより,最後のデータを受信してから
CPUの扱うデータ幅に満たないデータを取り込むまで
の時間を設定することを特徴とする請求項1記載のデー
タ受信装置。
2. The data control means, by receiving a predetermined code, sets the time from the reception of the last data to the fetching of data that is less than the data width handled by the CPU. The data receiving device according to claim 1.
【請求項3】 前記データ制御手段は,データ受信前に
決められたコードを受信することにより,送られてくる
データ量を予め知り,該データ量に基づいて処理を実行
することを特徴とする請求項1記載のデータ受信装置。
3. The data control means, by receiving a code determined before data reception, knows in advance the amount of data to be sent, and executes processing based on the data amount. The data receiving device according to claim 1.
【請求項4】 前記データ制御手段は,受信データの並
びをlittleendian,あるいは,big e
ndianに指定することを特徴とする請求項1記載の
データ受信装置。
4. The data control means arranges a sequence of received data into a little endian or a big e
The data receiving apparatus according to claim 1, wherein the data receiving apparatus is designated as ndian.
【請求項5】 前記データ制御手段は,特定データを受
信した場合にのみ,CPUの扱うデータ幅に満たなくて
もCPUにデータを受信したことを知らせることを特徴
とする請求項1記載のデータ受信装置。
5. The data according to claim 1, wherein the data control means informs the CPU that the data has been received even if the data width handled by the CPU is not satisfied, only when the specific data is received. Receiver.
【請求項6】 前記データ制御手段は,複数のインタラ
プト信号の中から1本を区別して出力することによりス
テータスを読むことなく,データの有効性を確認できる
ことを特徴とする請求項1記載のデータ受信装置。
6. The data according to claim 1, wherein the data control means can confirm the validity of the data without reading the status by distinguishing and outputting one of the plurality of interrupt signals. Receiver.
JP18557393A 1993-06-29 1993-06-29 Data receiving device Pending JPH0721119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18557393A JPH0721119A (en) 1993-06-29 1993-06-29 Data receiving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18557393A JPH0721119A (en) 1993-06-29 1993-06-29 Data receiving device

Publications (1)

Publication Number Publication Date
JPH0721119A true JPH0721119A (en) 1995-01-24

Family

ID=16173179

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18557393A Pending JPH0721119A (en) 1993-06-29 1993-06-29 Data receiving device

Country Status (1)

Country Link
JP (1) JPH0721119A (en)

Similar Documents

Publication Publication Date Title
US5581669A (en) System and method for peripheral data transfer
US4631666A (en) Data transfer network for variable protocol management
US4761800A (en) Method and apparatus for detecting a rate of data transmission
EP0105688A2 (en) Line support processor for data transfer system
US5652848A (en) Low latency cadence selectable interface for data transfers between busses of differing frequencies
US6138184A (en) System for parallel port with direct memory access controller for developing signal to indicate packet available and receiving signal that packet has been accepted
US5461701A (en) System and method for peripheral data transfer
EP0424095A2 (en) Clocking control circuit for a computer system
US5079696A (en) Apparatus for read handshake in high-speed asynchronous bus interface
EP0352080A2 (en) Method and apparatus for optimizing inter-processor instruction transfers
US6170027B1 (en) LPC/ISA bridge and its bridging method
US5268906A (en) Method and apparatus for high speed parallel communications
US5592685A (en) Synchronous/asynchronous partitioning of an asynchronous bus interface
EP0088618B1 (en) Byte-oriented line adapter system
JPH0721119A (en) Data receiving device
CA1191617A (en) Automatic calling unit control system
US6408346B1 (en) System for communicating with an external device using a parallel port with DMA capabilities and for developing a signal to indicate the availability of data
US4751632A (en) Data processor having multiple cycle operand cycles
CN102668444B (en) Information processing apparatus or information processing method
JPS63228856A (en) Communication controller
JPS62269539A (en) Communication controller
JP3266034B2 (en) Communication control device
JP2581041B2 (en) Data processing device
JPS60195657A (en) Data processing system
JPS63228855A (en) Communication controller