JP3300016B2 - Communication interface, recording device, and communication control method - Google Patents

Communication interface, recording device, and communication control method

Info

Publication number
JP3300016B2
JP3300016B2 JP07459492A JP7459492A JP3300016B2 JP 3300016 B2 JP3300016 B2 JP 3300016B2 JP 07459492 A JP07459492 A JP 07459492A JP 7459492 A JP7459492 A JP 7459492A JP 3300016 B2 JP3300016 B2 JP 3300016B2
Authority
JP
Japan
Prior art keywords
signal
time interval
external device
receiving
response
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
JP07459492A
Other languages
Japanese (ja)
Other versions
JPH05282219A (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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP07459492A priority Critical patent/JP3300016B2/en
Publication of JPH05282219A publication Critical patent/JPH05282219A/en
Application granted granted Critical
Publication of JP3300016B2 publication Critical patent/JP3300016B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ通信インターフェ
イス及び記録装置に関する。更に詳しくは、接続された
外部機器とのデータ通信を行うためのデータ通信インタ
ーフェイスと、前記データ通信インターフェイスを備え
る記録装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication interface and a recording device. More specifically, the present invention relates to a data communication interface for performing data communication with a connected external device, and a recording apparatus including the data communication interface.

【0002】[0002]

【従来の技術】接続された外部電子機器より記録データ
を受信して、受信した記録データに基づいて画像を形成
し、記録媒体にこの画像を記録する記録装置がある。従
来のこの種の記録装置においては、外部電子機器と記録
装置間のデータ通信におけるハンドシェークのタイミン
グは、標準的な特定のタイミングに固定されている。そ
して、この標準的なタイミングにより、一般的な全ての
ホストコンピュータとのデータの通信を可能にするとい
う方法が採られている。
2. Description of the Related Art There is a recording apparatus that receives recording data from a connected external electronic device, forms an image based on the received recording data, and records this image on a recording medium. In a conventional recording apparatus of this type, the timing of a handshake in data communication between an external electronic device and the recording apparatus is fixed to a standard specific timing. Then, a method is adopted in which data communication with all general host computers is enabled by this standard timing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例ではハンドシェーク信号のタイミングが固定のた
め、次のような欠点がある。即ち、 1.新旧さまざまなホストコンピュータとの通信におい
て、同じデータ通信速度でしか通信が実行できない, 2.高速な通信速度のインターフェイスにデータ通信速
度を合わせると、低速な通信速度のインターフェイスを
もつものとは正しくデータ通信ができない, 3.低速な通信速度のインターフェイスにデータ通信速
度を合わせると、ホストコンピュータ,記録装置を含め
た記録システムとしては高速な通信速度で処理を実行す
る能力があっても、インターフェイスがボトルネックに
なって高速な通信処理ができない, という欠点を有する。
However, in the above conventional example, since the timing of the handshake signal is fixed, there are the following disadvantages. That is, 1. 1. In communication with various new and old host computers, communication can be executed only at the same data communication speed. 2. If the data communication speed is matched with the interface with the high communication speed, the data communication cannot be performed correctly with the interface having the low communication speed. If the data communication speed is matched to the low communication speed interface, the interface becomes a bottleneck even if the recording system including the host computer and the recording device has the ability to execute processing at the high communication speed. It has the disadvantage that communication processing cannot be performed.

【0004】また、上述のハンドシェーク信号のタイミ
ングを変更するにしても、ハードウエアの変更を伴うの
で多大な時間と経費が必要となってしまう。
[0004] Further, even if the timing of the handshake signal is changed, a great deal of time and expense is required because the hardware is changed.

【0005】本発明は上記の問題点に鑑みてなされたも
のであり、接続された外部機器のデータ通信速度に応じ
てハンドシェーク用の制御信号のタイミングを適切に設
定することを可能とし、外部機器と適切な通信速度でデ
ータ通信を行う通信インターフェイス及び記録装置及び
通信制御方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and has an advantage that the timing of a handshake control signal can be appropriately set according to the data communication speed of a connected external device. Communication interface and recording device for performing data communication at an appropriate communication speed with
An object of the present invention is to provide a communication control method .

【0006】[0006]

【課題を解決するための手段】上記の目的を達成する本
発明による通信インターフェイスは以下の構成を備え
る。すなわち、外部装置からの指示信号の受信に基づい
て該外部装置から通信データを取り込み、該外部装置に
対して応答信号を返す手順の繰り返しにより、該外部装
置から通信データを受信する通信インターフェイスであ
って、前記指示信号を受信した後であって、通信データ
を受信する時間を含む応答時間間隔の経過後に、前記応
答信号を前記外部装置に出力する出力手段と、前記指示
信号を受信する時間間隔が短くなるように、前記応答時
間間隔を変更する変更手段とを備え、前記変更手段は、
前記応答時間間隔の変更によって前記指示信号を受信す
る時間間隔が短くなるのに応じて、前記応答時間間隔を
変更することを特徴とする。
According to the present invention, there is provided a communication interface having the following configuration. That is, the communication interface receives communication data from the external device based on reception of an instruction signal from the external device, and receives communication data from the external device by repeating a procedure of returning a response signal to the external device. Outputting means for outputting the response signal to the external device after the response time interval including the time for receiving the communication data after receiving the instruction signal, and a time interval for receiving the instruction signal. And changing means for changing the response time interval, so that
The response time interval is changed as the time interval for receiving the instruction signal is shortened by changing the response time interval.

【0007】また、上記の目的を達成するための本発明
による記録装置は以下の構成を備える。すなわち、外部
装置からの指示信号の受信に基づいて該外部装置から通
信データを取り込み、該外部装置に対して応答信号を返
す手順の繰り返しにより、該外部装置から通信データを
受信する記録装置であって、前記指示信号を受信した後
であって、通信データを受信する時間を含む応答時間間
隔の経過後に前記応答信号を前記外部装置に出力する出
力手段と、前記指示信号を受信する時間間隔が短くなる
ように、前記応答時間間隔を変更する変更手段とを備
え、前記変更手段は、前記応答時間間隔の変更によって
前記指示信号を受信する時間間隔が短くなるのに応じ
て、前記応答時間間隔を変更することを特徴とする。ま
た、上記の目的を達成するための本発明による通信制御
方法は、外部装置からの指示信号の受信に基づいて該外
部装置から通信データを取り込み、該外部装置に対して
応答信号を返す手順の繰り返しにより、該外部装置から
通信データを受信する装置の通信制御方法であって、前
記指示信号を受信した後であって、通信データを受信す
る時間を含む応答時間間隔の経過後に、前記応答信号を
前記外部装置に出力する工程と、前記指示信号を受信す
る時間間隔が短くなるように、前記応答時間間隔を変更
する工程とを備え、前記変更する工程は、前記応答時間
間隔の変更によって前記指示信号を受信する時間間隔が
短くなるのに応じて、前記応答時間間隔を変更すること
を特徴とする。
A recording apparatus according to the present invention for achieving the above object has the following arrangement. In other words, the recording device receives communication data from the external device based on the reception of the instruction signal from the external device, and receives communication data from the external device by repeating a procedure of returning a response signal to the external device. Output means for outputting the response signal to the external device after a response time interval including a time for receiving communication data after receiving the instruction signal, and a time interval for receiving the instruction signal. Changing means for changing the response time interval so as to shorten the response time interval, wherein the changing means changes the response time interval so as to shorten the time interval for receiving the instruction signal by changing the response time interval. Is changed. Further, a communication control method according to the present invention for achieving the above object includes a procedure for receiving communication data from an external device based on reception of an instruction signal from the external device, and returning a response signal to the external device. A communication control method for a device that receives communication data from the external device by repetition, wherein after the response time interval including the time for receiving the instruction data and after receiving the communication data, the response signal Outputting to the external device, and the step of changing the response time interval so that the time interval for receiving the instruction signal is shortened, and the changing step is performed by changing the response time interval. The response time interval is changed as the time interval for receiving the instruction signal becomes shorter.

【0008】[0008]

【作用】上記の構成によれば、外部装置からの指示信号
の受信に基づいて該外部装置から通信データを取り込
み、該外部装置に対して応答信号を返すという手順の繰
り返しにより、該外部装置から通信データが受信され
る。ここで応答信号は、指示信号を受信した後であっ
て、通信データを受信する時間を含む応答時間間隔の経
過後に外部装置に出力される。この通信において、本発
明の通信インターフェース(或は記録装置、通信制御方
法)は、外部装置からの指示信号を受信する時間間隔が
短くなるように応答時間間隔を変更し、この応答時間間
隔の変更によって指示信号を受信する時間間隔が短くな
るのに応じて、応答時間間隔を変更する。
According to the above arrangement, an instruction signal from an external device is provided.
Captures communication data from the external device based on the
The procedure of returning a response signal to the external device.
The communication data is received from the external device by the return.
You. Here, the response signal is after receiving the instruction signal.
Response time interval, including the time to receive communication data.
Output to an external device after an error. In this communication,
Communication interface (or recording device, communication control method)
Method), the time interval for receiving the instruction signal from the external device is
Change the response time interval so that it is shorter
The time interval for receiving the indication signal is shortened by changing the interval.
Change the response time interval accordingly.

【0009】[0009]

【実施例】以下に添付の図面を参照して、本発明の好適
な実施例について詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0010】[実施例1]実施例1における記録装置
は、ホストコンピュータと通信ケーブルを介して接続さ
れ、ホストコンピュータからの記録データを受信して記
録媒体への記録を行うものである。そして、実施例1に
おいては、通信インターフェイスとしてセントロニクス
インターフェイスを例に挙げて説明する。
[First Embodiment] A recording apparatus according to a first embodiment is connected to a host computer via a communication cable, receives recording data from the host computer, and performs recording on a recording medium. In the first embodiment, a description will be given using a Centronics interface as an example of the communication interface.

【0011】図1は実施例1の記録装置における、ホス
トコンピュータとの通信用インターフェイス部の構成図
である。図1に於て、101から104の各信号線は、
通信ケーブルに含まれるものであり、ホストコンピュー
タとのデータ通信用のものである。信号線101は記録
データを転送するための信号線であり、信号線102は
データ受信のタイミングを知らせるデータストローブ信
号(DTSTB信号)用の信号線である。信号線10
3,104はそれぞれBUSY信号用,ACK信号用の
信号線である。
FIG. 1 is a configuration diagram of a communication interface unit with a host computer in the recording apparatus according to the first embodiment. In FIG. 1, each signal line 101 to 104 is
It is included in a communication cable and is for data communication with a host computer. The signal line 101 is a signal line for transferring print data, and the signal line 102 is a signal line for a data strobe signal (DTSTB signal) for notifying the data reception timing. Signal line 10
Reference numerals 3 and 104 denote signal lines for a BUSY signal and an ACK signal, respectively.

【0012】105はフリップフロップであり、ホスト
コンピュータより信号線101を介して転送される記録
データを保持する。106はタイマであり、DTSTB
信号の周期を計測する。107はBUSY信号発生回路
であり、ハンドシェーク用信号の一つであるBUSY信
号を発生する。108はACK信号発生回路であり、ハ
ンドシェーク用信号の一つであるACK信号を発生す
る。109はFiFoメモリであり、フリップフロップ
105に保持された記録データを一時的に記憶する。1
10はタイミング制御部であり、FiFoへの書き込み
パルスを発生して、FiFoの書き込みタイミングを制
御する。111はデータバスであり後述のCPUのデー
タバスへ接続される。112はFiFo書き込みパルス
信号用の信号線である。113はFiFoからの読み出
しを行うためのリード信号用の信号線、114はタイマ
の値を読み出すためのリード信号用の信号線、115は
BUSY信号をリセットするためのBUSYリセット信
号用の信号線、116はACK信号をセットするACK
セット信号用の信号線、117はACK信号をリセット
するACKリセット信号用の信号線である。また、11
8はタイマの駆動,タイミング制御回路の駆動を行なう
ためのクロック(CLK)用の信号線である。
Reference numeral 105 denotes a flip-flop, which holds recording data transferred from the host computer via the signal line 101. 106 is a timer, DTSTB
Measure the period of the signal. A BUSY signal generation circuit 107 generates a BUSY signal which is one of the handshake signals. An ACK signal generation circuit 108 generates an ACK signal which is one of handshake signals. Reference numeral 109 denotes a FIFO memory, which temporarily stores the recording data held in the flip-flop 105. 1
Reference numeral 10 denotes a timing control unit which generates a write pulse to the FIFO and controls the write timing of the FIFO. A data bus 111 is connected to a data bus of a CPU described later. Reference numeral 112 denotes a signal line for a FIFO write pulse signal. Reference numeral 113 denotes a signal line for a read signal for reading from the FIFO, 114 denotes a signal line for a read signal for reading a timer value, 115 denotes a signal line for a BUSY reset signal for resetting a BUSY signal, ACK 116 sets an ACK signal
A signal line 117 for the set signal is a signal line for an ACK reset signal for resetting the ACK signal. Also, 11
Reference numeral 8 denotes a signal line for a clock (CLK) for driving the timer and driving the timing control circuit.

【0013】図2は実施例1による記録装置のブロック
構成図である。同図において201はCPUであり、本
記録装置全体を制御する。202はI/O制御部であ
り、各種制御信号を発生してインターフェイス部203
を制御する。203はインターフェイス部であり、上述
の図1に示される構成を備える。204はRAMであ
り、CPU201のワークエリア、受信データの格納等
に使用される。205はROMであり、CPU201の
制御プログラム、フォント情報等が格納されている。2
06は画像発生部であり、記録画像データを発生し、記
録部207へ出力する。207は記録部であり、記録媒
体への記録出力を行う。208はCPU201のアドレ
スバスであり、209はデータバスである。上述の図1
のデータバス111はこのデータバス209と接続され
る。210はクロックジェネレータであり、タイミング
制御回路110及びタイマ106を駆動するCLK信号
を発生する。
FIG. 2 is a block diagram of the recording apparatus according to the first embodiment. In FIG. 1, reference numeral 201 denotes a CPU, which controls the entire recording apparatus. Reference numeral 202 denotes an I / O control unit which generates various control signals and
Control. Reference numeral 203 denotes an interface unit having the configuration shown in FIG. Reference numeral 204 denotes a RAM, which is used for a work area of the CPU 201, storage of received data, and the like. Reference numeral 205 denotes a ROM, which stores a control program of the CPU 201, font information, and the like. 2
Reference numeral 06 denotes an image generation unit which generates recording image data and outputs it to the recording unit 207. A recording unit 207 performs recording and output on a recording medium. Reference numeral 208 denotes an address bus of the CPU 201, and reference numeral 209 denotes a data bus. Figure 1 above
Is connected to the data bus 209. A clock generator 210 generates a CLK signal for driving the timing control circuit 110 and the timer 106.

【0014】CPU201はROM205上の制御プロ
グラムに従って各種の処理を実行する。更に、CPU2
01は、所定のアドレスに所定のデータをセットして読
み出し動作あるいは書き込み動作を行うことにより、I
/O制御部202を介して、各種制御信号をそれぞれの
信号線113〜117上に発生して、インターフェイス
部203をアクセスすることが可能となっている。
The CPU 201 executes various processes according to a control program on the ROM 205. Furthermore, CPU2
01 sets a predetermined data at a predetermined address to perform a read operation or a write operation,
Various control signals are generated on the respective signal lines 113 to 117 via the / O control unit 202, so that the interface unit 203 can be accessed.

【0015】以上のような構成において本記録装置にお
けるデータインターフェイス部203の動作について説
明する。
The operation of the data interface unit 203 in the recording apparatus having the above configuration will be described.

【0016】まず、ホストコンピュータはデータ用の信
号線101上に記録データをセットして、データストロ
ーブ用の信号線102にDTSTB信号を一定期間出力
する。このDTSTB信号の前縁で信号線101上の記
録データがフリップフロップ105に保持される。ま
た、タイミング制御部110は、前述のDTSTB信号
の前縁よりも若干おくれたタイミングでFiFo109
に対して書き込みパルスを発生する。この書き込みパル
スは信号線112を介してFiFo109へ入力され、
このときフリップフロップ105に保持された記録デー
タはFiFo109に書き込まれる。
First, the host computer sets recording data on a data signal line 101 and outputs a DTSTB signal to a data strobe signal line 102 for a certain period. The recording data on the signal line 101 is held in the flip-flop 105 at the leading edge of the DTSTB signal. Further, the timing control unit 110 controls the FiFo 109 at a timing slightly delayed from the leading edge of the DTSTB signal.
, A write pulse is generated. This write pulse is input to the FiFo 109 via the signal line 112,
At this time, the recording data held in the flip-flop 105 is written to the FiFo 109.

【0017】またDTSTB信号の前縁で、BUSY信
号がBUSY発生回路107により、信号線103を介
してホストコンピュータに出力される。さらに、このD
TSTB信号の前縁でタイマ106が起動し、今回のD
TSTB信号と次回のDTSTB信号との時間間隔を計
測する。
At the leading edge of the DTSTB signal, the BUSY signal is output by the BUSY generation circuit 107 to the host computer via the signal line 103. Furthermore, this D
At the leading edge of the TSTB signal, the timer 106 starts, and the current D
The time interval between the TSTB signal and the next DTSTB signal is measured.

【0018】CPU201は、後述のタイミングでAC
Kセット信号を信号線116上に出力し、これによりA
CK信号発生回路108はACK信号を出力する。その
後、後述のタイミングでBUSYリセット信号を信号線
115上に出力し、これによりBUSY信号発生回路1
07はBUSY信号をリセットする。更に、後述のタイ
ミングでACKリセット信号を信号線117上に出力
し、ACK信号発生回路108によりACK信号をリセ
ットする。また、CPU201はFiFoリード信号を
発生することにより、FiFo109内に記憶されたデ
ータを順次読み出すことができる。更に、CPU201
は、タイマリード信号を発生することにより、タイマ1
06の値を読み出すことができる。
The CPU 201 controls the AC at the timing described later.
A K set signal is output on a signal line 116, thereby
CK signal generation circuit 108 outputs an ACK signal. Thereafter, a BUSY reset signal is output on the signal line 115 at a later-described timing, whereby the BUSY signal generation circuit 1
07 resets the BUSY signal. Further, an ACK reset signal is output on the signal line 117 at a timing described later, and the ACK signal is reset by the ACK signal generation circuit 108. Also, the CPU 201 can sequentially read data stored in the FiFo 109 by generating a FiFo read signal. Further, the CPU 201
Generates a timer read signal,
06 can be read.

【0019】次に、ハンドシェーク用の信号線がホスト
コンピュータのデータ通信速度に適応する動作について
以下に説明する。
Next, an operation in which the signal line for handshaking adapts to the data communication speed of the host computer will be described below.

【0020】図3はDTSTB信号の周期から最適なB
USY信号,ACK信号のタイミングが設定されていく
様子を説明する図である。図3の(1)に示されるタイ
ミングチャートは第1回目のデータ通信のタイミングを
表しており、初期値B1 によるBUSY信号,ACK信
号のタイミングを表す図である。ホストコンピュータよ
りデータの送信が開始されるとまず、この初期値B1
よりBUSY信号,ACK信号を制御する。(1)に於
ては、BUSY信号のパルス幅B1 は十分長く設定され
ており、CPU201はDTSTB信号が来てから時間
1 後にBUSY信号をリセットし、次のDTSTB信
号を待つ。次のDTSTB信号が認識されたら、タイマ
106の値を読み出すことにより、DTSTB信号の周
期P1 を得る。
FIG. 3 shows an optimum B based on the cycle of the DTSTB signal.
FIG. 9 is a diagram for explaining how the timings of the USY signal and the ACK signal are set. Timing chart shown in FIG. 3 (1) represents the timing of the data communication in the first round, a diagram representing the timing of the BUSY signal, ACK signal by the initial value B 1. When the transmission of data from the host computer is started first, BUSY signal by the initial value B 1, it controls the ACK signal. Te is at the (1), the pulse width B 1 of the BUSY signal is set sufficiently long, CPU 201 is a BUSY signal is reset after time B 1 from coming DTSTB signal, wait for the next DTSTB signal. When the following DTSTB signal is recognized by reading the value of the timer 106 to obtain the period P 1 of the DTSTB signal.

【0021】図3の(2)に於ては、(1)と同様に期
間B2 経過後にBUSY信号をリセットし、DTSTB
信号の周期P2 を得る。このときB2 はB1 より微少時
間だけ短く設定されており、このためP2 はP1 より微
少時間短くなる。
[0021] Te is at the (2) in FIG. 3, to reset the BUSY signal after Similarly period B 2 and course (1), DTSTB
Obtaining a period P 2 of the signal. At this time B 2 is set shorter by the short time than B 1, Therefore P 2 is shorter than P 1 minute time.

【0022】以上のようにしてBUSY信号のパルス幅
を次第に小さくしていき、例えば、m回目のデータスト
ローブ周期Pm とm+1回目のデータストローブ周期P
m+1とが等しくなったとすると、このときのBUSY信
号のパルス幅Bm が最適なBUSYパルス幅である。こ
の様子を図3の(m),(m+1)に示す。従ってm+
1回目以後は、BUSY信号のパルス幅をBm に設定し
て通信を行う。
As described above, the pulse width of the BUSY signal is gradually reduced. For example, the m-th data strobe period P m and the (m + 1) -th data strobe period P
When m + 1 and is assumed to equal the pulse width B m of the BUSY signal at this time is the optimal BUSY pulse width. This situation is shown in (m) and (m + 1) of FIG. Therefore m +
First after communicates by setting the pulse width of the BUSY signal to B m.

【0023】以上説明してきたBUSY信号の最適なパ
ルス幅を決定するための処理手順について、図4のフロ
ーチャートを用いて更に説明する。図4は最適なBUS
Y信号のパルス幅を決定する際のCPU201による処
理手順を表すフローチャートである。
The processing procedure for determining the optimum pulse width of the BUSY signal described above will be further described with reference to the flowchart of FIG. Figure 4 shows the optimal BUS
9 is a flowchart illustrating a processing procedure performed by a CPU 201 when determining a pulse width of a Y signal.

【0024】ステップS1においてnを1にセットし、
ステップS2においてデータストローブ周期Pn-1 即ち
0 を無限大とする。ステップS3でDTSTB信号を
認識するまでループし、ステップS4でBn 時間経過
後、BUSY信号をリセットする。ステップS5で次の
DTSTB信号を待ち、DTSTB信号が確認されたら
ステップS6でタイマの値を読み出しこれをPn とす
る。このPn がn回目の通信におけるDTSTB信号の
周期である。次にステップS7において、今回の通信に
おけるDTSTB信号の間隔Pn と、前回のDTSTB
信号の間隔Pn-1 とを比較し、Pn <Pn-1 だったらス
テップS9へ進み、そうでなければステップS8へ進
む。ステップS9ではn=n+1とし、ステップS10
へ進む。そして、ステップS10にてBn-1 より微少時
間Tだけ小さい値をBn にセットした後、ステップS3
に戻り、上述の処理を繰り返す。ステップS7において
n <P n-1 でなければステップS8へ進み、BUSY
信号のパルス幅をBn-1 に決定する。そして、これ以後
はパルス幅Bn-1 のBUSY信号でハンドシェークの処
理を行う。
In step S1, n is set to 1, and
In step S2, the data strobe period Pn-1 That is
P0 Is infinite. In step S3, the DTSTB signal is
Loop until it is recognized, and B in step S4n Time elapsed
Then, the BUSY signal is reset. Next in step S5
Wait for DTSTB signal, and if DTSTB signal is confirmed
In step S6, the value of the timer is read andn Toss
You. This Pn Is the DTSTB signal of the n-th communication.
It is a cycle. Next, in step S7, the current communication
DTSTB signal interval Pn And the previous DTSTB
Signal interval Pn-1 And Pn <Pn-1 If so
Proceed to step S9, otherwise proceed to step S8
No. In step S9, n = n + 1 is set, and in step S10
Proceed to. Then, in step S10, Bn-1 When it is smaller
A value smaller by T for Bn After setting in step S3
And the above processing is repeated. In step S7
Pn <P n-1 If not, the process proceeds to step S8 and BUSY
Set the signal pulse width to Bn-1 To decide. And after this
Is the pulse width Bn-1 Of handshake by BUSY signal
Work.

【0025】尚、ステップS3,ステップS5における
DTSTB信号の認識方法については、DTSTB信号
を割り込み手段により検出してもよいし、センス信号と
してDTSTB信号を扱ってもよい。
As for the method of recognizing the DTSTB signal in steps S3 and S5, the DTSTB signal may be detected by an interrupt means, or the DTSTB signal may be used as a sense signal.

【0026】また、説明を簡素化するために省略した
が、ある程度のDTSTB信号周期の誤差を考慮した方
法をとることは望ましいことである。例えば、同一のn
に対して複数回テストを行い、平均をとる方法などはこ
れに対して有効である。
Although omitted for the sake of simplicity, it is desirable to adopt a method that takes into account some errors in the DTSTB signal period. For example, the same n
For example, a method of performing a test multiple times and taking an average is effective for this.

【0027】以上説明してきた様に、DTSTB信号の
周期を検出する手段を設け、BUSY信号のパルス幅を
変化させることにより、接続された電子機器のデータ転
送速度に適応し、最適なBUSY信号,ACK信号周期
を自動的に設定することができる。
As described above, the means for detecting the cycle of the DTSTB signal is provided, and by changing the pulse width of the BUSY signal, it is adapted to the data transfer speed of the connected electronic device, and the optimum BUSY signal, The ACK signal cycle can be automatically set.

【0028】[実施例2]実施例2では、CPU201
(ソフトウエア)の介在無しで通信制御のタイミングの
最適化を行う通信インターフェイスについて説明する。
[Second Embodiment] In the second embodiment, the CPU 201
A communication interface for optimizing the timing of communication control without intervention of (software) will be described.

【0029】図5は、実施例2による記録装置のインタ
ーフェイス部を表わし、501はBUSY/ACK信号
発生回路であり、BUSY信号,ACK信号を発生す
る。502はカウンタであり、BUSY信号及びACK
信号のタイミングを発生する。503は減算器であり、
タイマ106からの出力値から定数Tを差し引くもので
ある。他は第1の実施例と同様であり、ここではその説
明は省略する。
FIG. 5 shows an interface section of a recording apparatus according to the second embodiment. Reference numeral 501 denotes a BUSY / ACK signal generation circuit which generates a BUSY signal and an ACK signal. Reference numeral 502 denotes a counter, which outputs a BUSY signal and an ACK signal.
Generate signal timing. 503 is a subtractor,
The constant T is subtracted from the output value from the timer 106. Others are the same as the first embodiment, and the description thereof is omitted here.

【0030】本実施例2においては、BUSY信号のパ
ルス幅制御はハードウェアのみによって行う。実施例1
と同様にしてタイマ106によりDTSTB信号の周期
nが計測される。そして、タイマ106から出力され
るDTSTB信号の周期Pnの値は、減算器503で所
定値Tが差し引かれた後、カウンタ502に入力され
る。カウンタ502ではCLKをカウントし、減算器5
03から出力された値によりBUSY信号,ACK信号
を制御する。
In the second embodiment, the pulse width control of the BUSY signal is performed only by hardware. Example 1
Period P n of DTSTB signal is measured by the timer 106 in the same manner as. The value of the period P n of DTSTB signal outputted from the timer 106, after the predetermined value T is subtracted by the subtracter 503 is input to the counter 502. The counter 502 counts the CLK, and the subtracter 5
The BUSY signal and the ACK signal are controlled by the value output from the control signal 03.

【0031】定数Tは、n回目のDTSTB信号の周期
n に対してn+1回目のDTSTB信号の周期Pn+1
が減少する様な値が選択される。従って、Pn に対して
n+ 1 は減少し、これによりBUSY信号のパルス幅B
n+1 も減少する。以上の操作を繰り返すうちにPn が変
化しなくなる。つまり、このときPn がBn に影響され
なくなったことを表し、Bn の減少もこのとき停止す
る。この様子を図6のタイミングチャートに示す。図6
の(a)においてn−1回目のDTSTB信号の周期P
n-1 が得られる。次に図6の(b)で、Pn-1 −Tのカ
ウント値を基にしてACK信号,BUSY信号を制御す
る。このときのDTSTB信号の周期をP n とする。次
に図6の(c)において、Pn −Tのカウント値を基に
してACK信号,BUSY信号を制御する。そして、こ
のときのDTSTB信号の周期Pn+ 1 が前述の(b)の
n と等しくなると、以後図6の(c)のタイミングチ
ャートにより通信が実行される。
The constant T is the cycle of the n-th DTSTB signal.
Pn , The period P of the (n + 1) -th DTSTB signaln + 1 
Is selected such that is reduced. Therefore, Pn Against
Pn + 1 Is reduced, thereby the pulse width B of the BUSY signal
n + 1 Also decreases. While repeating the above operation, Pn Is strange
No longer. That is, Pn Is Bn Affected by
It means that it is gone, Bn Also stops at this time
You. This situation is shown in the timing chart of FIG. FIG.
(A), the period P of the (n-1) -th DTSTB signal
n-1 Is obtained. Next, in FIG.n-1 -T
ACK signal and BUSY signal are controlled based on the count value.
You. The cycle of the DTSTB signal at this time is P n And Next
In FIG. 6 (c), Pn Based on the count value of -T
To control the ACK signal and the BUSY signal. And this
The period P of the DTSTB signal at the time ofn + 1 Is the above (b)
Pn When it is equal to, the timing chart of FIG.
Communication is performed by the chart.

【0032】上述の減算器503において使用される数
値Tは、BUSY信号のリセットから次のDTSTB信
号のセットまでの時間よりも大きい値である必要があ
る。即ち、BUSY信号のリセットから次のDTSTB
信号のセットまでの時間をtとすると、減算器の定数T
は、T=t+αとなる。そして、次のデータ通信では、
最大このα分だけDTSTB信号の間隔が狭くなる。
The numerical value T used in the above-described subtractor 503 needs to be a value larger than the time from the reset of the BUSY signal to the setting of the next DTSTB signal. That is, after the reset of the BUSY signal, the next DTSTB
Assuming that the time until signal setting is t, the subtractor constant T
Becomes T = t + α. And in the next data communication,
The interval between the DTSTB signals becomes narrower by the maximum of α.

【0033】以上説明してきたように、上述の各実施例
によれば、BUSY信号のパルス幅が自動的に最適な値
に収束し、最高の転送レートが得られる様になる。
As described above, according to each of the above embodiments, the pulse width of the BUSY signal automatically converges to the optimum value, and the highest transfer rate can be obtained.

【0034】尚、上述の実施例1においてはソフトウエ
アによりBUSY信号,ACK信号のタイミングを設定
しているが、ハードウエアにより実施例1に示される処
理手順を実行するように構成することも可能である。ま
た、実施例2においてはハードウエアのみによりBUS
Y信号,ACK信号のタイミングを設定しているが、ソ
フトウエアにより実施例2の処理手順を実行するように
構成することも可能である。
In the first embodiment, the timing of the BUSY signal and the ACK signal is set by software. However, the processing procedure shown in the first embodiment may be executed by hardware. It is. In the second embodiment, the BUS is used only by hardware.
Although the timings of the Y signal and the ACK signal are set, the processing procedure of the second embodiment may be executed by software.

【0035】[実施例3]実施例3においては、上述の
実施例1,2のような自動的な通信制御のタイミング設
定は行わず、あらかじめ所望のタイミング設定を行うこ
とにより種々のデータ通信速度を実現する記録装置につ
いて説明する。
[Third Embodiment] In the third embodiment, the automatic communication control timing is not set as in the first and second embodiments, but various data communication speeds are set in advance by setting desired timing. A recording device that realizes the above will be described.

【0036】実施例3における記録装置は、ホストコン
ピュータを通信ケーブルを介して接続し、ホストコンピ
ュータからの記録データを受信して記録媒体への記録を
行うものである。そして、本実施例においては、通信用
インターフェイスとしてセントロニクスインターフェイ
スを例に挙げて説明する。
The recording apparatus according to the third embodiment connects a host computer via a communication cable, receives recording data from the host computer, and performs recording on a recording medium. In the present embodiment, a description will be given by taking a Centronics interface as an example of the communication interface.

【0037】実施例3によるインターフェイス部の構成
について図7により説明する。
The configuration of the interface unit according to the third embodiment will be described with reference to FIG.

【0038】図7は実施例3による記録装置のインター
フェイス部の構成を表すブロック図である。701から
704の各信号線は、上記通信ケーブルに含まれるもの
であり、ホストコンピュータとの通信用の信号線であ
る。信号線701は記録データの伝送をするための信号
線である。信号線702はデータ受信のタイミングを知
らせるデータストローブ信号(DTSTB信号)用の信
号線である。703、704はそれぞれハンドシェーク
用の信号であるBUSY信号、ACK信号用の信号線で
ある。
FIG. 7 is a block diagram showing the configuration of the interface unit of the printing apparatus according to the third embodiment. Each of the signal lines 701 to 704 is included in the communication cable, and is a signal line for communication with the host computer. A signal line 701 is a signal line for transmitting recording data. A signal line 702 is a signal line for a data strobe signal (DTSTB signal) for notifying the data reception timing. 703 and 704 are signal lines for a BUSY signal and an ACK signal, respectively, which are signals for handshaking.

【0039】705はデマルチプレクサであり、DTS
TB信号を受けて各フリップフロップ(706〜70
9)に対してラッチ信号を発生する。また、信号線71
3,714を介して、ダイレクトメモリアクセス(DM
A)転送を制御するための信号DMAACK信号の入力
及びDMAREQ信号の出力を制御し、各フリップフロ
ップ706〜709のDMA転送制御を実行する。70
6〜709は第1〜第4フリップフロップであり、デマ
ルチプレクサ705からのラッチ信号により、受信デー
タを保持する。第1〜第4フリップフロップ706〜7
09に保持された受信データはデータバス712を介し
て後述のRAM205にDMA転送される。
Reference numeral 705 denotes a demultiplexer, and DTS
Each flip-flop (706 to 70) receives the TB signal.
9) A latch signal is generated. Also, the signal line 71
3,714 via direct memory access (DM
A) A signal for controlling transfer The input of the DMAACK signal and the output of the DMAREQ signal are controlled, and the DMA transfer control of each of the flip-flops 706 to 709 is executed. 70
Reference numerals 6 to 709 denote first to fourth flip-flops, which hold received data in response to a latch signal from the demultiplexer 705. First to fourth flip-flops 706 to 7
The received data held at 09 is DMA-transferred to a RAM 205 described later via a data bus 712.

【0040】710はカウンタスタータであり、DTS
TB信号を受けてカウンタ711を起動する。711は
カウンタであり、信号線715を介して供給されるクロ
ック(CLK)信号をカウントする。731はBUSY
カウントラッチであり、BUSYカウントの設定値を保
持する。732はACKセットカウントラッチであり、
ACKセットカウントの設定値を保持する。733はA
CKリセットカウントラッチであり、ACKリセットカ
ウントの設定値を保持する。
Reference numeral 710 denotes a counter starter, which has a DTS
Upon receiving the TB signal, the counter 711 is started. A counter 711 counts a clock (CLK) signal supplied via a signal line 715. 731 is BUSY
A count latch that holds a set value of a BUSY count. 732 is an ACK set count latch,
Holds the set value of ACK set count. 733 is A
A CK reset count latch that holds a set value of an ACK reset count.

【0041】728はBUSYコンパレータであり、B
USYカウントラッチに保持されている値と、信号線7
18を介して入力されるカウンタ711のカウント値と
を比較し、それぞれの値が一致すると信号線724を介
してコントロール部723へ一致信号を出力する。72
9はACKセットコンパレータであり、ACKセットカ
ウントラッチに保持されている値と、信号線718を介
して入力されるカウンタ711のカウント値とを比較
し、それぞれの値が一致すると信号線725を介してコ
ントロール部723へ一致信号を出力する。730はA
CKリセットコンパレータであり、ACKリセットカウ
ントラッチに保持されている値と、信号線718を介し
て入力されるカウンタ711のカウント値とを比較し、
それぞれの値が一致すると信号線726を介してコント
ロール部723へ一致信号を出力する。
Reference numeral 728 denotes a BUSY comparator.
The value held in the USY count latch and the signal line 7
The count value of the counter 711 input through the counter 18 is compared with the count value, and when the respective values match, a match signal is output to the control unit 723 via the signal line 724. 72
Reference numeral 9 denotes an ACK set comparator, which compares the value held in the ACK set count latch with the count value of the counter 711 input via the signal line 718, and when the values match each other, via the signal line 725. A match signal is output to the control unit 723. 730 is A
A CK reset comparator that compares a value held in an ACK reset count latch with a count value of a counter 711 input via a signal line 718;
When the values match, a match signal is output to the control unit 723 via the signal line 726.

【0042】723はコントロール部であり、DMA制
御信号,信号線724から726の各種一致信号等によ
り、BUSY信号、ACK信号のタイミングを制御す
る。737はBUSY信号発生回路であり、DTSTB
信号及び信号線720を介して入力されるコントロール
部723からのBUSY信号リセットパルスによりBU
SY信号をセット/リセットする。738はACK信号
発生回路であり、コントロール部723から信号線72
1を介して入力されるACKセットパルス信号と、コン
トロール部723から信号線722を介して入力される
ACKリセットパルス信号とによりACK信号をセット
/リセットする。
Reference numeral 723 denotes a control unit which controls the timing of the BUSY signal and the ACK signal in accordance with a DMA control signal, various coincidence signals on the signal lines 724 to 726, and the like. 737 is a BUSY signal generation circuit, and DTSTB
A BUSY signal reset pulse from the control unit 723 input through the signal and the signal line 720 causes the BU
Set / reset the SY signal. Reference numeral 738 denotes an ACK signal generation circuit which controls the signal line 72 from the control unit 723.
An ACK signal is set / reset by an ACK set pulse signal input via the control unit 1 and an ACK reset pulse signal input via the signal line 722 from the control unit 723.

【0043】更に、CPUによりデータ受信のシーケン
スを停止するために、コントロール部723へ一時停止
要求信号を入力するための信号線727及び、BUSY
信号発生回路737へBUSYセット信号を入力するた
めの信号線717を備えている。
Further, a signal line 727 for inputting a temporary stop request signal to the control unit 723 and a BUSY
A signal line 717 for inputting a BUSY set signal to the signal generation circuit 737 is provided.

【0044】図8は、実施例3による記録装置の構成図
である。同図において、801はCPUであり、記録装
置全体を制御する。802はI/O制御部であり、CP
U801によりインターフェイス部803を制御する際
に使用する各種の信号を発生する。803はインターフ
ェイス部であり、図7に示されるような構成を備える。
804はDMAコントロール部であり、受信したデータ
のRAM上へのDMA転送を制御する。805はRAM
であり、CPU801のワークエリアとして、また、受
信データの格納等さまざまな用途に用いられる。806
はROMであり、CPU801の制御プログラムやフォ
ント情報等を格納している。807は画像発生部であ
り、受信した記録データよりCPU801の制御のもと
で画像データを発生する。808は記録部であり、画像
発生部807にて発生された画像を記録媒体上に記録出
力する。
FIG. 8 is a configuration diagram of a recording apparatus according to the third embodiment. In the figure, reference numeral 801 denotes a CPU, which controls the entire recording apparatus. 802, an I / O control unit;
U801 generates various signals used when controlling the interface unit 803. An interface unit 803 has a configuration as shown in FIG.
A DMA control unit 804 controls the DMA transfer of the received data to the RAM. 805 is RAM
It is used as a work area for the CPU 801 and for various purposes such as storing received data. 806
Is a ROM, which stores a control program for the CPU 801, font information, and the like. An image generation unit 807 generates image data from the received recording data under the control of the CPU 801. A recording unit 808 records and outputs an image generated by the image generation unit 807 on a recording medium.

【0045】809はCPU801のアドレスバスであ
る。信号線810は、HOLD信号用の信号線であり
る。HOLD信号はDMAコントロール部804からC
PU801に対して出力されるバス要求を意味する信号
である。信号線811は、HACK信号用の信号線であ
り、HACK信号はCPU801からDMAコントロー
ル部804に対して出力されるバス使用許可信号であ
る。812はクロックジェネレータであり、信号線71
5を介してインターフェイス部803へカウンタ用のク
ロック(CLK)信号を供給する。
Reference numeral 809 denotes an address bus of the CPU 801. The signal line 810 is a signal line for a HOLD signal. The HOLD signal is output from the DMA control unit 804 to C
This signal is output to the PU 801 and indicates a bus request. The signal line 811 is a signal line for a HACK signal, and the HACK signal is a bus use permission signal output from the CPU 801 to the DMA control unit 804. 812 is a clock generator, and the signal line 71
5, a clock (CLK) signal for the counter is supplied to the interface unit 803.

【0046】本記録装置においてはインターフェイス部
803により受信された記録データをDMAコントロー
ラ804の制御によりRAM805へDMA転送する。
CPU801はROM806上の制御プログラムによ
り、RAM805に転送された記録データを画像発生部
807に送る。画像発生部807により発生された画像
は記録部808へ送られ、記録される。
In this recording apparatus, the recording data received by the interface unit 803 is DMA-transferred to the RAM 805 under the control of the DMA controller 804.
The CPU 801 sends the print data transferred to the RAM 805 to the image generator 807 according to the control program on the ROM 806. The image generated by the image generation unit 807 is sent to the recording unit 808 and recorded.

【0047】I/O制御部802はCPU801のアド
レスバス809、データバス712に接続される。CP
U801はROM806に格納されている制御プログラ
ムにより、特定のアドレスに特定のデータをセットする
ことによりインターフェイス部803に対してアクセス
することが可能である。
The I / O control unit 802 is connected to the address bus 809 and the data bus 712 of the CPU 801. CP
The U 801 can access the interface unit 803 by setting specific data at a specific address by a control program stored in the ROM 806.

【0048】以上の構成において、本記録装置における
インターフェイス部803の動作について説明する。
The operation of the interface unit 803 in the recording apparatus having the above configuration will be described.

【0049】まず、BUSY信号,ACK信号のタイミ
ングを決定するために、BUSYカウントラッチ73
1,ACKセットカウントラッチ732,ACKリセッ
トカウントラッチ733の各々に所定の設定値がCPU
801によりセットされる。この設定値は、所定の操作
手段と操作手順とにより使用者が指定するものである。
First, in order to determine the timing of the BUSY signal and the ACK signal, the BUSY count latch 73
The ACK set count latch 732 and the ACK reset count latch 733 each have a predetermined set value stored in the CPU.
801 is set. The set value is specified by the user using a predetermined operation means and operation procedure.

【0050】次に外部ホストコンピュータからのデータ
の送信を開始すると、外部ホストコンピュータはデータ
線701に8ビットのデータをセットして、DSTB信
号を一定期間出力する。DTSTB信号が出力される
と、デマルチプレクサ705が第1フリップフロップ7
06にパルスを送り、データ線701上のデータが第1
フリップフロップ706に保持される。このとき、カウ
ンタスタータ710はカウンタ711を起動するので、
カウンタ711はCLK信号によりカウントを開始す
る。また、BUSY信号発生回路737はBUSY信号
を発生し、本記録装置がBUSY状態であることをホス
トコンピュータに知らせる。
Next, when data transmission from the external host computer is started, the external host computer sets 8-bit data to the data line 701 and outputs a DSTB signal for a certain period. When the DTSTB signal is output, the demultiplexer 705 switches the first flip-flop 7
06, and the data on the data line 701 becomes the first
The data is held in the flip-flop 706. At this time, since the counter starter 710 activates the counter 711,
The counter 711 starts counting by the CLK signal. The BUSY signal generation circuit 737 generates a BUSY signal to notify the host computer that the recording apparatus is in the BUSY state.

【0051】カウンタ711によるCLK信号のカウン
ト値は、BUSYコンパレータ728,ACKセットコ
ンパレータ729,ACKリセットコンパレータ730
に出力される。BUSYコンパレータ728はBUSY
カウントラッチ731に設定されている設定値と、カウ
ンタ711からのカウント値とを比較し、カウント値と
設定値とが等しいときBUSYカウント一致信号をコン
トロール部723へ出力する。同様にして、ACKセッ
トコンパレータ729はACKセットラッチ732の設
定値とカウンタ711のカウント値とを比較し、これら
が一致しているときはACKセットカウント一致信号を
コントロール部723へ出力する。同様にして、ACK
リセットコンパレータ730はACKリセットラッチ7
33の設定値とカウンタ711のカウント値とを比較
し、これらが一致しているときはACKリセットカウン
ト一致信号をコントロール部723へ出力する。
The count value of the CLK signal by the counter 711 is determined by a BUSY comparator 728, an ACK set comparator 729, and an ACK reset comparator 730.
Is output to BUSY comparator 728 is BUSY
The set value set in the count latch 731 is compared with the count value from the counter 711, and when the count value is equal to the set value, a BUSY count match signal is output to the control unit 723. Similarly, the ACK set comparator 729 compares the set value of the ACK set latch 732 with the count value of the counter 711, and outputs an ACK set count match signal to the control unit 723 when they match. Similarly, ACK
The reset comparator 730 is connected to the ACK reset latch 7
The set value of the counter 33 is compared with the count value of the counter 711, and when they match, an ACK reset count match signal is output to the control unit 723.

【0052】コントロール部723においては、受信シ
ーケンスを一時停止する要因がないとき上述の各々の一
致信号をBUSYリセットパルス,ACKセットパル
ス,ACKリセットパルスとして、BUSY信号発生回
路737,ACK信号発生回路738へ出力する。BU
SY信号発生回路では、DTSTB信号によりBUSY
信号をセットし、BUSYリセットパルスによりBUS
Y信号をリセットする。また、ACK信号発生回路で
は、ACKセット信号によりACK信号をセットし、A
CKリセット信号によりACK信号をリセットする。ま
た、上述の各一致信号のうち最終の一致信号が発生する
と、コントロール部723はシーケンスクリアパルスを
発生し、カウンタスタータ710とカウンタ711をリ
セットし初期状態に戻る。
In the control section 723, when there is no cause for temporarily stopping the reception sequence, the above-mentioned respective coincidence signals are used as a BUSY reset pulse, an ACK set pulse, and an ACK reset pulse, and a BUSY signal generation circuit 737 and an ACK signal generation circuit 738 are provided. Output to BU
In the SY signal generation circuit, the BUSY signal is
Set signal and BUSY reset pulse to BUS
Reset the Y signal. In the ACK signal generation circuit, an ACK signal is set by an ACK set signal.
The ACK signal is reset by the CK reset signal. When the last match signal among the above match signals is generated, the control unit 723 generates a sequence clear pulse, resets the counter starter 710 and the counter 711, and returns to the initial state.

【0053】また、受信シーケンスの停止要因があると
きは、カウンタ711に対してコントロール部723よ
りSTOP信号が出力され、カウンタ711がカウント
を停止することにより受信シーケンスが一時停止する。
When there is a cause for stopping the reception sequence, the control unit 723 outputs a STOP signal to the counter 711, and the counter 711 stops counting, whereby the reception sequence is temporarily stopped.

【0054】上述のインターフェイス部803の動作と
ハンドシェーク用信号のタイミングについて、図9、図
10のタイミングチャートを用いて更に詳しく説明す
る。
The operation of the interface unit 803 and the timing of the handshake signal will be described in more detail with reference to the timing charts of FIGS.

【0055】図9は上述のインターフェイス部803に
よる受信シーケンスを表すタイミングチャートである。
901は入力される受信データであり、DTSTB信号
902の前縁でフリップフロップに保持される。903
はカウンタ711がCLK信号のカウントを実行してい
る状態を表す。904はACKセットカウント一致信号
の発生時点を表す。即ち、このときACKカウントラッ
チの設定値とカウンタ711のカウント値とが一致して
いる。同様にして、905はBUSYカウント一致信
号,906はACKリセットカウント一致信号の発生時
点を表す。また、907はBUSY信号を、908はA
CK信号を表す。
FIG. 9 is a timing chart showing a reception sequence by the interface unit 803 described above.
Reference numeral 901 denotes input reception data, which is held in a flip-flop at the leading edge of the DTSTB signal 902. 903
Represents a state where the counter 711 is counting the CLK signal. Reference numeral 904 denotes a point in time at which an ACK set count match signal is generated. That is, at this time, the set value of the ACK count latch matches the count value of the counter 711. Similarly, reference numeral 905 denotes a BUSY count coincidence signal, and reference numeral 906 denotes an ACK reset count coincidence signal. 907 is a BUSY signal, 908 is A
Represents the CK signal.

【0056】上述のBUSY信号及びACK信号によ
り、ホストコンピュータは記録装置の受信状態を認識
し、1回目のデータの送信が完了すると2回目のデータ
の送信を実行する。このときデマルチプレクサ705は
第2フリップフロップ707にラッチ信号を送出し、フ
リップフロップ707にデータが保持される。そして上
述の1回目のデータ送信と同様の処理が実行さる。続い
て3回目のデータの送信が実行され、3回目のデータ送
信では、デマルチプレクサ705により、第3フリップ
フロップ708にデータが保持される。同様にして4回
目のデータ送信が実行されるとデマルチプレクサ705
により第4フリップフロップ709にデータが保持され
る。
Based on the BUSY signal and the ACK signal, the host computer recognizes the reception state of the recording device, and executes the second data transmission when the first data transmission is completed. At this time, the demultiplexer 705 sends a latch signal to the second flip-flop 707, and the flip-flop 707 holds data. Then, the same processing as the above-described first data transmission is performed. Subsequently, the third data transmission is performed. In the third data transmission, the data is held in the third flip-flop 708 by the demultiplexer 705. Similarly, when the fourth data transmission is executed, the demultiplexer 705
As a result, data is held in the fourth flip-flop 709.

【0057】4回目のデータ受信のときはフリップフロ
ップからRAM806へのDMA転送が実行される。以
下にこのDMA転送について説明する。
At the time of the fourth data reception, DMA transfer from the flip-flop to RAM 806 is executed. Hereinafter, the DMA transfer will be described.

【0058】デマルチプレクサ705よりDMAコント
ロール部804に対してDMA転送の要求をDMARE
Q信号により実施する。DMAコントロール部804で
はHOLD信号をCPU801に対して出力し、バスの
解放を要求する。CPU801がバスを解放し、HAC
K信号がDMAコントロール部804に入力されると、
デマルチプレクサ705に対してDMAACK信号を出
力する。このDMAACK信号によりフリップフロップ
は保持しているデータをデータ線712上へ出力し、デ
ータがRAM805に書き込まれる。以上のようにして
DMA転送が実行され、DMA転送が終了するとDMA
ACK信号はリセットされる。そして、DMAREQ信
号とDMAACK信号とにより、DMA転送中か否かが
認識される。即ち、DMAREQ信号がセットされてか
ら、DMAACK信号がセットされ、リセットされるま
での間はDMA転送中であることがわかる。
The demultiplexer 705 sends a DMA transfer request to the DMA control unit 804 as DMARE.
This is performed by the Q signal. The DMA control unit 804 outputs a HOLD signal to the CPU 801 to request the release of the bus. The CPU 801 releases the bus and the HAC
When the K signal is input to the DMA control unit 804,
A DMAACK signal is output to the demultiplexer 705. In response to the DMAACK signal, the flip-flop outputs the held data to the data line 712, and the data is written to the RAM 805. The DMA transfer is executed as described above.
The ACK signal is reset. Then, it is recognized from the DMAREQ signal and the DMAACK signal whether or not the DMA transfer is being performed. That is, it can be understood that the DMA transfer is being performed from the time when the DMAREQ signal is set to the time when the DMAACK signal is set and reset.

【0059】上記のDMAREQ信号及びDMAACK
信号によりコントロール部723はDMA転送中か否か
を判断し、BUSY信号,ACK信号を制御する。4回
目のデータ送信によるデータが受信されたとき、1〜3
回目のシーケンスと同様にカウンタ711が起動され、
BUSY信号,ACK信号の制御が進行する。各一致信
号のうち最初に発生した一致信号がコントロール部72
3に入力されたとき、DMA転送中である場合はSTO
P信号を出力し、カウンタ711を一時停止する。そし
てコントロール部723はBUSYリセットパルス,A
CKセットパルス,ACKリセットパルスを出力せず
に、受信シーケンスを一時停止する。そして、DMAA
CK信号によりDMA転送の終了が認識されると、ST
OP信号をリセットし、カウンタは再びカウントを開始
する。また、コントロール部723はBUSYリセット
パルス,ACKセットパルス,ACKリセットパルスを
各一致信号に応じて出力し、受信シーケンスが再開され
る。以上のシーケンスが終了するとデマルチプレクサ7
05は初期の状態に戻り、次のデータを再び1回目の送
信データとして扱うようになる。以上説明した4回のデ
ータ受信を1つのセットとして繰り返すことにより通信
を実行する。
The above DMAREQ signal and DMAACK
Based on the signal, the control unit 723 determines whether or not the DMA transfer is being performed, and controls the BUSY signal and the ACK signal. When data from the fourth data transmission is received,
The counter 711 is activated in the same manner as the first sequence,
The control of the BUSY signal and the ACK signal proceeds. The match signal generated first among the match signals is sent to the control unit 72.
3, when the DMA transfer is in progress, STO
The P signal is output, and the counter 711 is temporarily stopped. The control unit 723 outputs a BUSY reset pulse, A
The reception sequence is temporarily stopped without outputting the CK set pulse and the ACK reset pulse. And DMAA
When the end of the DMA transfer is recognized by the CK signal, ST
The OP signal is reset, and the counter starts counting again. Further, the control unit 723 outputs a BUSY reset pulse, an ACK set pulse, and an ACK reset pulse in accordance with each coincidence signal, and the reception sequence is restarted. When the above sequence is completed, the demultiplexer 7
05 returns to the initial state, and the next data is handled again as the first transmission data. Communication is executed by repeating the above-described four data receptions as one set.

【0060】図10は4番目のデータが受信されたとき
のシーケンスを表すタイミングチャートである。記録デ
ータ1001はDTSTB信号1002の前縁でフリッ
プフロップに保持される。また、このDTSTB信号1
002の前縁でカウンタ703が動作を開始するととも
に、デマルチプレクサ705よりDMAREQ信号が出
力される(DMA転送中となる)。DMAコントロール
部804からのDMAACK信号によりDMA転送の終
了が認識されるまでは、最初の一致信号(本例ではAC
Kセットカウント一致信号1004)が発生した時点で
カウンタを停止する。また、DMAACK信号が出力さ
れてDMA転送が終了すると、カウンタ711は再びカ
ウントを開始すると同時にACK信号を出力する。以
後、BUSYカウント一致信号1005、ACKリセッ
トカウント一致信号1006の発生により、それぞれB
USY信号、ACK信号のリセットを実行する。また、
ACKリセットカウント一致信号1006の発生によ
り、カウンタ711はクリアされ、受信シーケンスが初
期化される。
FIG. 10 is a timing chart showing a sequence when the fourth data is received. The recording data 1001 is held in a flip-flop at the leading edge of the DTSTB signal 1002. Also, this DTSTB signal 1
At the leading edge of 002, the counter 703 starts operating, and the demultiplexer 705 outputs a DMAREQ signal (during DMA transfer). Until the end of the DMA transfer is recognized by the DMAACK signal from the DMA control unit 804, the first match signal (AC in this example)
When the K set count match signal 1004) is generated, the counter is stopped. When the DMA ACK signal is output and the DMA transfer ends, the counter 711 starts counting again and simultaneously outputs the ACK signal. Thereafter, when the BUSY count match signal 1005 and the ACK reset count match signal 1006 are generated,
The USY signal and the ACK signal are reset. Also,
When the ACK reset count coincidence signal 1006 is generated, the counter 711 is cleared, and the reception sequence is initialized.

【0061】また、図7において、信号線727はソフ
トウエアによるシーケンス停止要求信号用の信号線であ
る。CPU801によりI/O制御部802を介してコ
ントロール部723へ出力される。図11に示されるよ
うに、このシーケンス停止要求信号1011がセットさ
れると、前述の4回目のデータ受信におけるカウンタ7
11の一時停止動作と同様に、最初の一致信号の入力を
待ち、カウンタ711にSTOP信号を出力する。こう
して受信のシーケンスはソフトウエアによっても一時停
止可能となる。そして、このシーケンス停止要求信号1
011がリセットされると、受信シーケンスを再開す
る。
In FIG. 7, a signal line 727 is a signal line for a sequence stop request signal by software. The data is output to the control unit 723 by the CPU 801 via the I / O control unit 802. As shown in FIG. 11, when this sequence stop request signal 1011 is set, the counter 7 in the fourth data reception described above is set.
As in the case of the temporary stop operation of No. 11, a wait for the input of the first coincidence signal is performed, and a STOP signal is output to the counter 711. Thus, the reception sequence can be temporarily stopped by software. Then, the sequence stop request signal 1
When 011 is reset, the receiving sequence is restarted.

【0062】上述の受信シーケンスにおけるCPU80
1の処理動作を図12のフローチャートを参照して更に
詳しく説明する。
CPU 80 in the above-described reception sequence
The first processing operation will be described in more detail with reference to the flowchart of FIG.

【0063】ステップS21においてBUSYリセット
のカウント数をBUSYリセットカウントラッチ731
にセットする。また、ステップS22においてACKセ
ットのカウント数をACKセットカウントラッチ732
にセットする。更に、ステップS23においてACKリ
セットのカウント数をACKリセットカウントラッチ7
33にセットする。続いてステップS24にてDMAコ
ントロール部804を初期化し、受信シーケンスが開始
される。受信シーケンス自体はハードウエアによりDM
A転送まで終了し、RAM805上に記録データが転送
される。CPU801はステップS25においてDMA
転送の完了したRAM805上の記録データに対して所
定の処理を実行する。
In step S21, the count of BUSY reset is counted by the BUSY reset count latch 731.
Set to. In step S22, the count number of the ACK set is stored in the ACK set count latch 732.
Set to. Further, in step S23, the ACK reset count number is stored in the ACK reset count latch 7.
Set to 33. Subsequently, in step S24, the DMA control unit 804 is initialized, and the reception sequence is started. The receive sequence itself is DM
The process is completed up to the A transfer, and the recording data is transferred to the RAM 805. The CPU 801 determines in step S25 that the DMA
A predetermined process is performed on the recording data on the RAM 805 to which the transfer has been completed.

【0064】ステップS26においてシーケンスを停止
する要因があればステップS27で停止要求信号を出力
し、更にBUSY信号をセットして受信シーケンスを停
止する。また、受信シーケンスを停止する必要がなけれ
ばステップS25へ戻る。ステップS27にて受信シー
ケンスを停止するとステップS28へ進み、シーケンス
停止の要因が残っていればここでループし、シーケンス
停止の要因がなくなるのを待つ。シーケンス停止の要因
がなくなればステップS29へ進み、停止要求信号をリ
セットし、受信シーケンスを再開する。
If there is a factor for stopping the sequence in step S26, a stop request signal is output in step S27, and the BUSY signal is set to stop the reception sequence. If it is not necessary to stop the reception sequence, the process returns to step S25. When the reception sequence is stopped in step S27, the process proceeds to step S28, and if there is a factor for stopping the sequence, the process loops and waits until the factor for stopping the sequence disappears. When the cause of the sequence stop is eliminated, the process proceeds to step S29, where the stop request signal is reset, and the reception sequence is restarted.

【0065】尚、実施例3においては、信号発生の順序
はACKセット→BUSYリセット→ACKリセットの
順で発生させているが、これに限られるものではない。
ACKセットがACKリセットよりも早いという条件を
満たしておればどんな順序でもよい。
In the third embodiment, the signal is generated in the order of ACK set → BUSY reset → ACK reset, but is not limited to this.
Any order may be used as long as the condition that the ACK set is earlier than the ACK reset is satisfied.

【0066】以上説明してきたように、実施例3によれ
ばソフトウエアにより設定されたタイミングによってハ
ードウエアが受信シーケンスを実行するので、外部ホス
トコンピュータのデータ通信スピードに応じて適切な受
信シーケンスのタイミングを設定できる。
As described above, according to the third embodiment, the hardware executes the reception sequence according to the timing set by the software. Therefore, the timing of the reception sequence can be appropriately adjusted according to the data communication speed of the external host computer. Can be set.

【0067】[実施例4]図13は実施例4における記
録装置のインターフェイス部のブロック構成図である。
図13においては、図7のコントロール部723が省略
されている。1301はシーケンスクリアパルス発生回
路であり、1302〜1304はそれぞれの一致パルス
を保持するフリップフロップである。1305はSTO
P信号発生回路であり、DMAREQ信号とDMAAC
K信号とによりDMA転送が実行中か否かを判断し、D
MA転送が実行中であればSTOP信号をカウンタ71
1に出力する。他の構成は実施例3の図7と同様であ
り、ここではその説明は省略する。
[Fourth Embodiment] FIG. 13 is a block diagram of an interface section of a recording apparatus according to a fourth embodiment.
13, the control unit 723 in FIG. 7 is omitted. Reference numeral 1301 denotes a sequence clear pulse generation circuit, and reference numerals 1302 to 1304 denote flip-flops holding respective coincidence pulses. 1305 is STO
The P signal generation circuit includes a DMAREQ signal and a DMAAC signal.
It is determined whether or not DMA transfer is being executed based on the K signal.
If the MA transfer is in progress, the STOP signal is output to the counter 71.
Output to 1. Other configurations are the same as those in FIG. 7 of the third embodiment, and the description thereof is omitted here.

【0068】受信シーケンスについても、受信シーケン
スのタイミング設定及び第1回目から第3回目までの受
信動作は実施例3と同様であるので、ここではその説明
は省略することとし、第4回目の受信動作について、図
14を参照して以下に説明する。
As for the reception sequence, the timing setting of the reception sequence and the first to third reception operations are the same as those in the third embodiment, so that the description thereof is omitted here, and the fourth reception is performed. The operation will be described below with reference to FIG.

【0069】4回目の受信シーケンスにおいても、DM
A転送処理については実施例3と同様であるがDMA転
送中の受信シーケンスの停止方法が異なる。図14に実
施例4による4回目のデータ受信の受信シーケンスのタ
イミングチャートを示す。実施例4のインターフェイス
部では、カウンタ711のカウンタ停止のためのSTO
P信号1401は、DMAREQ信号1010がセット
されるタイミングでSTOP信号発生回路1305によ
り発生する。そしてDMAACK信号1011によりD
MA転送の終了を検出し、STOP信号発生回路130
5はSTOP信号1401をリセットすることでカウン
タ711の動作を再開し、受信シーケンス動作を再開す
る。
In the fourth reception sequence, the DM
The A transfer processing is the same as that of the third embodiment, but the method of stopping the reception sequence during the DMA transfer is different. FIG. 14 is a timing chart of the reception sequence of the fourth data reception according to the fourth embodiment. In the interface unit according to the fourth embodiment, the STO for stopping the counter of the counter 711 is used.
The P signal 1401 is generated by the STOP signal generation circuit 1305 at the timing when the DMAREQ signal 1010 is set. Then, DACK is given by DMAACK signal 1011.
The end of the MA transfer is detected, and the STOP signal generation circuit 130
5 restarts the operation of the counter 711 by resetting the STOP signal 1401, and restarts the reception sequence operation.

【0070】全てのカウント一致信号(BUSYリセッ
トカウント一致,ACKセットカウント一致,ACKリ
セットカウント一致信号)が、各々のフリップフロップ
1302〜1304に保持されていることをクリアパル
ス発生回路1301が検出すると、クリアパルス発生回
路1301よりクリアパルス信号が発生する。このクリ
アパルス信号により、カウンタ711のリセット、フリ
ップフロップ1302〜1304のリセットが実行さ
れ、1サイクル分の受信シーケンスを終了する。
When the clear pulse generation circuit 1301 detects that all the count match signals (BUSY reset count match, ACK set count match, ACK reset count match signal) are held in each of the flip-flops 1302 to 1304, it is cleared. A clear pulse signal is generated from the pulse generation circuit 1301. With this clear pulse signal, the reset of the counter 711 and the reset of the flip-flops 1302 to 1304 are executed, and the reception sequence for one cycle ends.

【0071】実施例4によれば、実施例3に比べて、4
回目の受信シーケンスにおけるDMA転送時に、最初の
カウント一致信号の入力を待たずにDMAREQ信号に
より即時にカウントを停止する分だけカウンタの停止期
間が長くなることを除いては実施例3と同様であり、コ
ントロール部723が省略されるので構成が簡素化され
る。
According to the fourth embodiment, compared to the third embodiment,
This is the same as the third embodiment except that the counter stop period is lengthened by the amount by which the count is immediately stopped by the DMAREQ signal without waiting for the input of the first count match signal at the time of the DMA transfer in the second reception sequence. Since the control unit 723 is omitted, the configuration is simplified.

【0072】尚、上述の実施例3及び4においては、B
USY信号及びACK信号の各タイミングの設定値の組
み合わせを複数登録しておき、ホストコンピュータのデ
ータ通信速度に応じて登録された組み合わせを選択する
ようにもできる。
In the third and fourth embodiments, B
A plurality of combinations of the set values of each timing of the USY signal and the ACK signal may be registered, and the registered combination may be selected according to the data communication speed of the host computer.

【0073】尚、上述の各実施例においてはデータ通信
インターフェイスとしてセントロニクス方式を用いてい
るがこれに限定されるものではない。
In each of the above embodiments, the Centronics system is used as the data communication interface, but the present invention is not limited to this.

【0074】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【0075】[0075]

【発明の効果】以上説明したように本発明によれば、
続された外部機器のデータ通信速度に応じてハンドシェ
ーク用の制御信号のタイミングを適切に設定することが
可能となり、接続された外部機器と適切な通信速度でデ
ータ通信を行うことができる。特に、外部装置より指示
信号を受けてから応答信号を発行するまでの、データの
受信時間を含む応答時間間隔が適切に制御されるので、
外部装置の通信速度に応じた通信インターフェースを自
動的に確立することができ、便利である。
As described above, according to the present invention, it is possible to appropriately set the timing of a control signal for handshaking in accordance with the data communication speed of a connected external device, and And data communication at an appropriate communication speed. In particular, instructed by an external device
From receiving the signal to issuing the response signal
Since the response time interval including the reception time is properly controlled,
The communication interface according to the communication speed of the external device
It can be established dynamically and is convenient.

【0076】[0076]

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

【図1】実施例1の記録装置におけるホストコンピュー
タとの通信用インターフェイス部のブロック構成図であ
る。
FIG. 1 is a block diagram of a communication interface unit with a host computer in a recording apparatus according to a first embodiment.

【図2】実施例1による記録装置のブロック構成図であ
る。
FIG. 2 is a block diagram of a recording apparatus according to a first embodiment.

【図3】DTSTB信号の周期から最適なBUSY信
号,ACK信号のタイミングが設定されるまでのタイミ
ングチャートである。
FIG. 3 is a timing chart from the cycle of a DTSTB signal to the setting of optimal timing of a BUSY signal and an ACK signal.

【図4】最適なBUSY信号のパルス幅を決定するため
の処理手順を表すフローチャートである。
FIG. 4 is a flowchart illustrating a processing procedure for determining an optimum pulse width of a BUSY signal.

【図5】実施例2による記録装置のインターフェイス部
のブロック構成図である。
FIG. 5 is a block diagram of an interface unit of a printing apparatus according to a second embodiment.

【図6】実施例2のインターフェイス部による通信のタ
イミングチャートである。
FIG. 6 is a timing chart of communication by an interface unit according to the second embodiment.

【図7】実施例3の記録装置におけるホストコンピュー
タとの通信用インターフェイス部のブロック構成図であ
る。
FIG. 7 is a block diagram of a communication interface unit with a host computer in a printing apparatus according to a third embodiment.

【図8】実施例3による記録装置のブロック構成図であ
る。
FIG. 8 is a block diagram of a recording apparatus according to a third embodiment.

【図9】実施例3のインターフェイス部におけるデータ
通信のタイミングチャートである。
FIG. 9 is a timing chart of data communication in the interface unit according to the third embodiment.

【図10】実施例3のインターフェイス部におけるデー
タ通信のタイミングチャートである。
FIG. 10 is a timing chart of data communication in the interface unit according to the third embodiment.

【図11】実施例3のインターフェイス部におけるデー
タ通信のタイミングチャートである。
FIG. 11 is a timing chart of data communication in the interface unit according to the third embodiment.

【図12】実施例3の受信シーケンスにおける処理動作
を表すフローチャートである。
FIG. 12 is a flowchart illustrating a processing operation in a reception sequence according to the third embodiment.

【図13】実施例4のインターフェイス部のブロック構
成図である。
FIG. 13 is a block diagram of an interface unit according to a fourth embodiment.

【図14】実施例4の第4回目の通信動作のタイミング
チャートである。
FIG. 14 is a timing chart of a fourth communication operation according to the fourth embodiment.

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

105 フリップフロップ 106 タイマ 107 BUSY発生回路 108 ACK発生回路 201 CPU 202 IO制御部 203 インターフェイス部 204 RAM 205 ROM 206 画像発生部 207 記録部 105 flip-flop 106 timer 107 BUSY generation circuit 108 ACK generation circuit 201 CPU 202 IO control unit 203 interface unit 204 RAM 205 ROM 206 image generation unit 207 recording unit

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 13/38 - 13/42 G06F 3/12 G06K 15/00 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 13/38-13/42 G06F 3/12 G06K 15/00

Claims (11)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 外部装置からの指示信号の受信に基づい
て該外部装置から通信データを取り込み、該外部装置に
対して応答信号を返す手順の繰り返しにより、該外部装
置から通信データを受信する通信インターフェイスであ
って、 前記指示信号を受信した後であって、通信データを受信
する時間を含む応答時間間隔の経過後に、前記応答信号
を前記外部装置に出力する出力手段と、 前記指示信号を受信する時間間隔が短くなるように、前
記応答時間間隔を変更する変更手段とを備え、 前記変更手段は、前記応答時間間隔の変更によって前記
指示信号を受信する時間間隔が短くなるのに応じて、前
記応答時間間隔を変更することを特徴とする通信インタ
ーフェイス。
1. A communication for receiving communication data from an external device by repeating a procedure of fetching communication data from the external device based on reception of an instruction signal from the external device and returning a response signal to the external device. An interface, comprising: an output unit that outputs the response signal to the external device after a response time interval including a time for receiving communication data after receiving the instruction signal; and receiving the instruction signal. Changing means for changing the response time interval, so that the time interval for receiving the instruction signal is shortened by changing the response time interval, A communication interface, wherein the response time interval is changed.
【請求項2】 前記応答信号は、前記外部装置が次の指
示信号を送信する前に、前記外部装置によって受信され
る信号であることを特徴とする請求項1に記載の通信イ
ンターフェイス。
2. The communication interface according to claim 1, wherein the response signal is a signal received by the external device before the external device transmits a next instruction signal.
【請求項3】 前記指示信号を受信する時間間隔を計測
する計測手段を更に備え、 前記変更手段は、前記計測手段により計測された時間間
隔が短くなるのに応じて前記応答時間間隔を短くするこ
とを特徴とする請求項1又は2に記載の通信インターフ
ェイス。
3. A measuring device for measuring a time interval for receiving the instruction signal, wherein the changing device shortens the response time interval as the time interval measured by the measuring device becomes shorter. The communication interface according to claim 1 or 2, wherein:
【請求項4】 前記応答時間間隔が前記変更手段によっ
て変更された前後において、前記計測手段により計測さ
れた時間間隔が等しくなったことを検知する検知手段を
更に備えることを特徴とする請求項3に記載の通信イン
ターフェイス。
4. The apparatus according to claim 3, further comprising detecting means for detecting that the time intervals measured by said measuring means become equal before and after said response time interval is changed by said changing means. Communication interface as described in.
【請求項5】 前記変更手段は、前記計測された時間間
隔が等しくなったことが前記検知手段によって検知され
た後は、前記応答時間間隔を変更しないことを特徴とす
る請求項4に記載の通信インターフェイス。
5. The apparatus according to claim 4, wherein the change unit does not change the response time interval after the detection unit detects that the measured time intervals have become equal. Communication interface.
【請求項6】 外部装置からの指示信号の受信に基づい
て該外部装置から通信データを取り込み、該外部装置に
対して応答信号を返す手順の繰り返しにより、該外部装
置から通信データを受信する記録装置であって、 前記指示信号を受信した後であって、通信データを受信
する時間を含む応答時間間隔の経過後に前記応答信号を
前記外部装置に出力する出力手段と、 前記指示信号を受信する時間間隔が短くなるように、前
記応答時間間隔を変更する変更手段とを備え、 前記変更手段は、前記応答時間間隔の変更によって前記
指示信号を受信する時間間隔が短くなるのに応じて、前
記応答時間間隔を変更することを特徴とする記録装置。
6. A record for receiving communication data from an external device by repeating a procedure of fetching communication data from the external device based on reception of an instruction signal from the external device and returning a response signal to the external device. An output unit configured to output the response signal to the external device after a response time interval including a time for receiving communication data after receiving the instruction signal; and receiving the instruction signal. Changing means for changing the response time interval so as to shorten the time interval, wherein the changing means changes the response time interval so that the time interval for receiving the instruction signal is shortened, A recording apparatus characterized by changing a response time interval.
【請求項7】 前記応答信号は、前記外部装置が次の指
示信号を送信する前に、前記外部装置によって受信され
る信号であることを特徴とする請求項6に記載の記録装
置。
7. The recording apparatus according to claim 6, wherein the response signal is a signal received by the external device before the external device transmits a next instruction signal.
【請求項8】 前記指示信号を受信する時間間隔を計測
する計測手段を更に備え、 前記変更手段は、前記計測手段により計測された時間間
隔が短くなるのに応じて前記応答時間間隔を短くするこ
とを特徴とする請求項6又は7に記載の記録装置。
8. The apparatus according to claim 1, further comprising a measuring unit that measures a time interval for receiving the instruction signal, wherein the changing unit shortens the response time interval as the time interval measured by the measuring unit decreases. 8. The recording apparatus according to claim 6, wherein
【請求項9】 前記応答時間間隔が前記変更手段によっ
て変更された前後において、前記計測手段により計測さ
れた時間間隔が等しくなったことを検知する検知手段を
更に備えることを特徴とする請求項8に記載の記録装
置。
9. The apparatus according to claim 8, further comprising detecting means for detecting that the time intervals measured by said measuring means become equal before and after said response time interval is changed by said changing means. The recording device according to claim 1.
【請求項10】 前記変更手段は、時間間隔が等しくな
ったことが前記検知手段によって検知された後は、前記
応答時間間隔を変更しないことを特徴とする請求項9に
記載の記録装置。
10. The recording apparatus according to claim 9, wherein the change unit does not change the response time interval after the detection unit detects that the time intervals have become equal.
【請求項11】 外部装置からの指示信号の受信に基づ
いて該外部装置から通信データを取り込み、該外部装置
に対して応答信号を返す手順の繰り返しにより、該外部
装置から通信データを受信する装置の通信制御方法であ
って、 前記指示信号を受信した後であって、通信データを受信
する時間を含む応答時間間隔の経過後に、前記応答信号
を前記外部装置に出力する工程と、 前記指示信号を受信する時間間隔が短くなるように、前
記応答時間間隔を変更する工程とを備え、 前記変更する工程は、前記応答時間間隔の変更によって
前記指示信号を受信する時間間隔が短くなるのに応じ
て、前記応答時間間隔を変更することを特徴とする通信
制御方法。
11. An apparatus for receiving communication data from an external device by repeating a procedure of fetching communication data from the external device based on reception of an instruction signal from the external device and returning a response signal to the external device. Outputting the response signal to the external device after receiving the instruction signal and after a response time interval including a time for receiving communication data has elapsed, and the instruction signal Changing the response time interval so that the time interval for receiving the command signal is shortened, and the changing step is performed in response to the time interval for receiving the instruction signal being shortened by changing the response time interval. And changing the response time interval.
JP07459492A 1992-03-30 1992-03-30 Communication interface, recording device, and communication control method Expired - Fee Related JP3300016B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07459492A JP3300016B2 (en) 1992-03-30 1992-03-30 Communication interface, recording device, and communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07459492A JP3300016B2 (en) 1992-03-30 1992-03-30 Communication interface, recording device, and communication control method

Publications (2)

Publication Number Publication Date
JPH05282219A JPH05282219A (en) 1993-10-29
JP3300016B2 true JP3300016B2 (en) 2002-07-08

Family

ID=13551639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07459492A Expired - Fee Related JP3300016B2 (en) 1992-03-30 1992-03-30 Communication interface, recording device, and communication control method

Country Status (1)

Country Link
JP (1) JP3300016B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6522416B1 (en) 1997-09-24 2003-02-18 Canon Kabushiki Kaisha Printing apparatus and method capable of flexibly controlling response signal
US6721799B1 (en) * 1999-09-15 2004-04-13 Koninklijke Philips Electronics N.V. Method for automatically transmitting an acknowledge frame in canopen and other can application layer protocols and a can microcontroller that implements this method

Also Published As

Publication number Publication date
JPH05282219A (en) 1993-10-29

Similar Documents

Publication Publication Date Title
EP0378427B1 (en) High speed data transfer on a computer system bus
EP0378426B1 (en) Data transfer using bus address lines
JP3134819B2 (en) Data processing device
JP2750315B2 (en) Method of specifying identifier and computer system
US6681269B2 (en) Data processing apparatus, external storage apparatus, data processing system and data transmitting method
JPH06110617A (en) Disk control method
US4651277A (en) Control system for a magnetic disk drive unit
JP3300016B2 (en) Communication interface, recording device, and communication control method
US6728813B1 (en) Method and apparatus for converting non-burst write cycles to burst write cycles across a bus bridge
JP3241034B2 (en) External storage device
JPS61177564A (en) Shared storage device
JP2004046891A (en) Data processing system, data processor, external device, and data transmission method
JPH0612537A (en) Ic memory card
JP3193155B2 (en) DMA control method
JP2000105734A (en) Method for controlling memory, memory device, and controller
JPH02181886A (en) Straight line plotting controller
JP3395762B2 (en) Data processing system and data transmission method
JPS63223822A (en) Control system for disk device
JPH10116245A (en) Dma controller
JP3501660B2 (en) Signal processing device and signal processing method
JP3334682B2 (en) Method and apparatus for detecting gap between blocks in magnetic tape device
JP2001175544A (en) Device and method for information communication
JP2000357062A (en) Device and system for processing data, external storage device and data transmitting method
JP2730275B2 (en) High-speed thermal waveform recorder
JPH07182266A (en) Interface device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010406

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020329

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090419

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090419

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100419

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees