JP2003330881A - Data transfer system and signal timing correction method thereof - Google Patents
Data transfer system and signal timing correction method thereofInfo
- Publication number
- JP2003330881A JP2003330881A JP2002139599A JP2002139599A JP2003330881A JP 2003330881 A JP2003330881 A JP 2003330881A JP 2002139599 A JP2002139599 A JP 2002139599A JP 2002139599 A JP2002139599 A JP 2002139599A JP 2003330881 A JP2003330881 A JP 2003330881A
- Authority
- JP
- Japan
- Prior art keywords
- data
- signal
- line
- delay time
- output
- 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
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
(57)【要約】
【課題】 ストローブ信号あるいはデータ信号のタイミ
ング違反が生じても受信データのエラーが生じないよう
に補正することが可能なデータ転送システム及びその信
号タイミング補正方法を提供する。
【解決手段】 ホストコンピュータ1は、テストデータ
のデータ信号をデータライン3に出力するテストデータ
出力手段13を具備し、受信側装置2は、ストローブ信
号がアサートされてからデータラッチ手段17がデータ
信号をラッチするまでの遅延時間を設定する遅延量設定
手段20と、テストデータのデータ信号をデータラッチ
手段17がラッチすることによって出力する受信データ
と、テストデータとを比較して、両者が一致していない
場合には、遅延量設定手段20により遅延時間を所定の
時間だけ増加させるとともに、テストデータ出力手段1
3に対しテストデータ出力要求信号を出力する遅延時間
調整手段14とを具備する。
(57) Abstract: Provided is a data transfer system and a signal timing correction method capable of correcting received data so as not to cause an error even when a timing violation of a strobe signal or a data signal occurs. A host computer (1) includes test data output means (13) for outputting a data signal of test data to a data line (3), and a receiving side device (2) outputs data signals after a strobe signal is asserted. The delay amount setting means 20 for setting a delay time until the data is latched, the received data output by latching the data signal of the test data by the data latch means 17 are compared with the test data, and the two match. If not, the delay time is increased by a predetermined time by the delay amount setting means 20 and the test data output means 1
3 for outputting a test data output request signal.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、通信インタフェー
スにおいてストローブ信号あるいはデータ信号のタイミ
ング違反が生じても受信データのエラーが生じないよう
に補正することが可能なデータ転送システム及びその信
号タイミング補正方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system and a signal timing correction method therefor capable of correcting a received data error even when a timing violation of a strobe signal or a data signal occurs in a communication interface. It is about.
【0002】[0002]
【従来の技術】従来より、パーソナル・コンピュータや
ワークステーションとプリンタとの間で印字データの転
送を行うデータ転送システムとして、ハンドシェーク方
式によりデータの非同期転送を行うパラレル・インタフ
ェースを使用したものが多く使用されている。このよう
な、パラレル・インタフェースを使用したデータ転送シ
ステムは、パソコン等の送信側装置とプリンタ等の受信
側装置との間をデータバスラインと、ストローブ(nS
trobe)ライン、ビジー(Busy)ライン、及び
アック(nAck)ラインの3線のステータス・ライン
を用いて、3線ハンドシェークよりデータ転送が行われ
る。2. Description of the Related Art Conventionally, as a data transfer system for transferring print data between a personal computer or a workstation and a printer, a system using a parallel interface for asynchronously transferring data by a handshake method is often used. Has been done. In such a data transfer system using a parallel interface, a data bus line and a strobe (nS) are provided between a transmission side device such as a personal computer and a reception side device such as a printer.
Data transfer is performed by the 3-line handshake using the 3-line status line of the probe line, the busy line, and the ac (nAck) line.
【0003】図5は従来のパラレル・インタフェースを
用いたデータ転送システムのデータライン及びステータ
ス・ラインの信号のタイミングチャートである。FIG. 5 is a timing chart of signals on a data line and a status line of a data transfer system using a conventional parallel interface.
【0004】図5において、横軸は時間、縦軸は電圧を
表す。(a)は正常状態におけるデータバスライン(D
ata1〜Data8)に出力されるデータ信号であ
り、(b)はタイミング違反が生じたときのデータバス
ラインに出力されるデータ信号を表し、(c)はストロ
ーブラインに出力される信号を表し、(d)はビジーラ
インに出力されるビジー信号を表す。また、T
setupは、データ信号が出力されてからストローブ信号
がアサートされるまでの時間(データセットアップ時
間)であり、Tholdは、ストローブ信号がネゲートされ
てからデータ信号が切り替わるまでの時間(データホー
ルド時間)である。In FIG. 5, the horizontal axis represents time and the vertical axis represents voltage. (A) shows the data bus line (D
data1 to Data8), (b) represents a data signal output to a data bus line when a timing violation occurs, and (c) represents a signal output to a strobe line. (D) represents a busy signal output to the busy line. Also, T
setup is the time from the output of the data signal to the assertion of the strobe signal (data setup time), and T hold is the time from the negation of the strobe signal to the switching of the data signal (data hold time). Is.
【0005】正常な状態においては、図5(a)、
(c)、(d)に示すように、送信側装置は、データ信
号を切り替えると、一定のデータセットアップ時間T
setupが経過した時点でストローブ信号がアサートす
る。このセットアップ時間は、データ信号の切り替え時
に発生するリンギングや伝送路の反射等の雑音信号が充
分に減衰して、受信データのエラーが生じないような時
間がとられる。そして、ストローブ信号がアサートされ
ると、受信側装置は、データ信号をラッチし、ラッチし
たデータ信号を受信データとして出力する。また、デー
タ信号をラッチしてから受信データを出力し、受信デー
タに関する他の処理を行う間は、受信側装置はビジー信
号をアサートする。送信側装置は、ビジー信号がアサー
トされると、ストローブ信号をネゲートする。このよう
にして、データ転送システムは、ハンドシェーク方式に
よる非同期データ転送を行う。In a normal state, as shown in FIG.
As shown in (c) and (d), when the transmission side device switches the data signal, the transmission side device has a constant data setup time T.
The strobe signal is asserted when setup has elapsed. This setup time is set so that a noise signal such as ringing generated at the time of switching the data signal or a reflection on the transmission line is sufficiently attenuated and an error in the received data does not occur. When the strobe signal is asserted, the receiving side device latches the data signal and outputs the latched data signal as received data. In addition, the receiving side device asserts the busy signal while the data signal is latched, the received data is output, and other processing relating to the received data is performed. The transmitting device negates the strobe signal when the busy signal is asserted. In this way, the data transfer system performs asynchronous data transfer by the handshake method.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、例え
ば、送信側装置、受信側装置および両装置を接続するケ
ーブルの特性によっては、ストローブ信号とデータ信号
の位置関係がずれ、タイミング違反を生じる場合があ
る。However, the positional relationship between the strobe signal and the data signal may deviate depending on the characteristics of the transmitting side device, the receiving side device, and the cable connecting the two devices, which may cause a timing violation. .
【0007】図5(b)、(c)、(d)はタイミング
違反が発生した場合を示している。この場合、送信側装
置は、データ信号が切り替わる直前にストローブ信号を
アサートしている。従って、受信側装置は、データ信号
が切り替わる前又は切り替わっている時にデータ信号を
ラッチし、受信データとして出力する。従って、この場
合には受信データのエラーが生じる。例えば、受信側装
置がプリンタの場合には、誤印字が生じたり、印刷動作
が停止したりする。上記従来のデータでは、このような
ストローブ信号あるいはデータ信号のタイミング違反が
生じた場合に生じる受信データのエラーを防止すること
ができないという欠点を有していた。FIGS. 5 (b), 5 (c) and 5 (d) show the case where a timing violation occurs. In this case, the transmission side device asserts the strobe signal immediately before the data signal is switched. Therefore, the reception side device latches the data signal before or during the switching of the data signal and outputs the data signal as received data. Therefore, in this case, an error occurs in the received data. For example, if the receiving device is a printer, erroneous printing may occur or the printing operation may stop. The conventional data described above has a drawback in that it is impossible to prevent an error in the received data that occurs when such a timing violation of the strobe signal or the data signal occurs.
【0008】そこで、本発明は上記従来の課題を解決す
るもので、通信インタフェースにおいてストローブ信号
あるいはデータ信号のタイミング違反が生じても受信デ
ータのエラーが生じないように補正することが可能なデ
ータ転送システム及びその信号タイミング補正方法を提
供することを目的とする。Therefore, the present invention solves the above-mentioned conventional problems, and data transfer that can be corrected so that an error in received data does not occur even if a timing violation of a strobe signal or a data signal occurs in a communication interface. An object of the present invention is to provide a system and a signal timing correction method thereof.
【0009】[0009]
【課題を解決するための手段】上記課題を解決するため
に本発明のデータ転送システムは、データ信号が伝送さ
れるデータラインと、前記データ信号が利用可能である
ことを示すストローブ信号が伝送されるストローブライ
ンと、制御用ラインとを有するインタフェースにより接
続された送信側装置及び受信側装置を有し、前記送信側
装置は、前記データラインに対して前記データ信号を出
力するデータ出力手段、及び前記データラインに前記デ
ータ信号が出力されたときに、前記ストローブラインの
前記ストローブ信号をアサートするストローブ信号出力
手段を具備し、前記受信側装置は、前記ストローブ信号
がアサートされている期間内に、前記データラインのデ
ータ信号をラッチして受信データとして出力するデータ
ラッチ手段を具備しているデータ転送システムであっ
て、前記送信側装置は、所定のビットパターンからなる
テストデータの出力を要求するテストデータ出力要求信
号が入力された場合に、前記テストデータを生成し、前
記データ出力手段により前記テストデータのデータ信号
を前記データラインに出力するテストデータ出力手段を
具備し、前記受信側装置は、前記ストローブラインのス
トローブ信号がアサートされてから前記データラッチ手
段が前記データラインのデータ信号をラッチするまでの
遅延時間を設定する遅延量設定手段と、前記データライ
ンに出力された前記テストデータのデータ信号を前記デ
ータラッチ手段がラッチすることによって出力する受信
データのビットパターンと、前記テストデータのビット
パターンとを比較して、両者が一致していない場合に
は、前記遅延量設定手段により前記遅延時間を所定の時
間だけ増加させるとともに、前記制御用ラインを通じて
前記テストデータ出力手段に対しテストデータ出力要求
信号を出力する遅延時間調整手段とを具備していること
を特徴とするものである。In order to solve the above problems, the data transfer system of the present invention transmits a data line for transmitting a data signal and a strobe signal indicating that the data signal is available. A strobe line and a receiving side device connected by an interface having a control line, the transmitting side device outputting the data signal to the data line; When the data signal is output to the data line, a strobe signal output means for asserting the strobe signal of the strobe line is provided, and the receiving-side device, within a period in which the strobe signal is asserted, Data latch means for latching the data signal of the data line and outputting it as received data In the data transfer system, the transmission side device generates the test data and outputs the data when a test data output request signal requesting output of test data having a predetermined bit pattern is input. Means for outputting a data signal of the test data to the data line by means of the means, wherein the receiving side device is configured such that the data latch means operates after the strobe signal of the strobe line is asserted. A delay amount setting means for setting a delay time until a signal is latched, a bit pattern of received data output by the data latch means latching a data signal of the test data output to the data line, and Compare with the bit pattern of the test data and check that they match. If not, the delay amount setting means increases the delay time by a predetermined time, and the delay time adjusting means outputs a test data output request signal to the test data output means through the control line. It is characterized by doing.
【0010】この構成により、通信インタフェースにお
いてストローブ信号あるいはデータ信号のタイミング違
反が生じても受信データのエラーが生じないように補正
することが可能なデータ転送システムを提供することが
できる。With this configuration, it is possible to provide a data transfer system capable of performing correction so that an error in received data does not occur even if a timing violation of a strobe signal or a data signal occurs in a communication interface.
【0011】また、本発明のデータ転送システムの信号
タイミング補正方法は、データ信号が伝送されるデータ
ラインと、前記データ信号が利用可能であることを示す
ストローブ信号が伝送されるストローブラインと、制御
用ラインとによって接続された送信側装置及び受信側装
置を有し、前記送信側装置は、前記データラインに対し
て前記データ信号を出力するデータ出力手段、及び前記
データラインに前記データ信号が出力されているとき
に、前記ストローブラインの前記ストローブ信号をアサ
ート又はネゲートするストローブ信号出力手段を具備
し、前記受信側装置は、前記ストローブ信号がアサート
されている期間内に、前記データラインのデータ信号を
ラッチして受信データとして出力するデータラッチ手段
を具備しているデータ転送システムにおいて、前記デー
タラッチ手段がデータ信号をラッチするタイミングを補
正する信号タイミング補正方法であって、所定のビット
パターンからなるテストデータの出力を要求するテスト
データ出力要求信号が入力された場合に、前記送信側装
置が、前記テストデータを生成し、前記データ出力手段
により前記テストデータのデータ信号を前記データライ
ンに出力するテストデータ出力ステップと、前記ストロ
ーブ信号がアサートされてから所定の遅延時間が経過し
た時点で、前記データラッチ手段が、前記データライン
に出力された前記テストデータのデータ信号をラッチし
て受信データとして出力するデータ受信ステップと、前
記受信側装置が、前記受信データのビットパターンと前
記テストデータのビットパターンとを比較して、両者が
一致していない場合には、前記遅延時間を所定の時間だ
け増加させるとともに、前記制御用ラインを通じて前記
送信側装置に対しテストデータ出力要求信号を出力する
遅延時間調整ステップとを有することを特徴とするもの
である。The signal timing correction method for a data transfer system according to the present invention comprises a data line for transmitting a data signal, a strobe line for transmitting a strobe signal indicating that the data signal is available, and a control. A transmission side device and a reception side device which are connected by a data line, the transmission side device outputs the data signal to the data line, and the data signal is output to the data line. The strobe signal output means for asserting or negating the strobe signal of the strobe line when the strobe signal is asserted. Data having a data latch means for latching and outputting as received data In the transmission system, there is provided a signal timing correction method for correcting a timing at which the data latch means latches a data signal, when a test data output request signal requesting output of test data having a predetermined bit pattern is input. A test data output step in which the transmission side device generates the test data and outputs a data signal of the test data to the data line by the data output means, and a predetermined delay time after the strobe signal is asserted. When the time elapses, the data latching means latches the data signal of the test data output to the data line and outputs it as received data, and the receiving side device sets the bit of the received data. Compare the pattern with the bit pattern of the test data Then, when the two do not match, the delay time is increased by a predetermined time, and a delay time adjusting step of outputting a test data output request signal to the transmitting side device through the control line is performed. It is characterized by having.
【0012】この構成により、通信インタフェースにお
いてストローブ信号あるいはデータ信号のタイミング違
反が生じても受信データのエラーが生じないように補正
することが可能なデータ転送システムの信号タイミング
補正方法を提供することができる。With this configuration, it is possible to provide a signal timing correction method for a data transfer system which can correct a received data error even if a timing violation of a strobe signal or a data signal occurs in a communication interface. it can.
【0013】[0013]
【発明の実施の形態】本発明の請求項1に記載のデータ
転送システムは、データ信号が伝送されるデータライン
と、データ信号が利用可能であることを示すストローブ
信号が伝送されるストローブラインと、制御用ラインと
を有するインタフェースにより接続された送信側装置及
び受信側装置を有し、送信側装置は、データラインに対
してデータ信号を出力するデータ出力手段、及びデータ
ラインにデータ信号が出力されたときに、ストローブラ
インのストローブ信号をアサートするストローブ信号出
力手段を具備し、受信側装置は、ストローブ信号がアサ
ートされている期間内に、データラインのデータ信号を
ラッチして受信データとして出力するデータラッチ手段
を具備しているデータ転送システムであって、送信側装
置は、所定のビットパターンからなるテストデータの出
力を要求するテストデータ出力要求信号が入力された場
合に、テストデータを生成し、データ出力手段によりテ
ストデータのデータ信号をデータラインに出力するテス
トデータ出力手段を具備し、受信側装置は、ストローブ
ラインのストローブ信号がアサートされてからデータラ
ッチ手段がデータラインのデータ信号をラッチするまで
の遅延時間を設定する遅延量設定手段と、データライン
に出力されたテストデータのデータ信号をデータラッチ
手段がラッチすることによって出力する受信データのビ
ットパターンと、テストデータのビットパターンとを比
較して、両者が一致していない場合には、遅延量設定手
段により遅延時間を所定の時間だけ増加させるととも
に、制御用ラインを通じてテストデータ出力手段に対し
テストデータ出力要求信号を出力する遅延時間調整手段
とを具備していることを特徴とするものである。この構
成により、以下のような作用が得られる。A data transfer system according to claim 1 of the present invention includes a data line for transmitting a data signal and a strobe line for transmitting a strobe signal indicating that the data signal is available. , A transmission side device and a reception side device connected by an interface having a control line, and the transmission side device outputs a data signal to the data line and a data signal output to the data line. When the strobe signal is asserted, the strobe signal output means for asserting the strobe signal of the strobe line is provided, and the receiving side device latches the data signal of the data line and outputs it as the reception data within the period in which the strobe signal is asserted. The data transfer system is provided with a data latch means for A test data output means for generating test data and outputting the data signal of the test data to the data line by the data output means when the test data output request signal for requesting the output of the test data consisting of the pattern is inputted. The receiving side device has a delay amount setting means for setting a delay time from the assertion of the strobe signal of the strobe line to the latching of the data signal of the data line by the data latch means, and the test data output to the data line. The bit pattern of the received data output by latching the data signal by the data latch means is compared with the bit pattern of the test data. If they do not match, the delay amount setting means determines the delay time. The test data through the control line. And it is characterized in that it comprises a delay time adjustment means to the output means for outputting the test data output request signal. With this configuration, the following effects can be obtained.
【0014】通常は、データ出力手段がデータラインに
データ信号を出力した後、データラインのデータ信号の
切り替えによる妨害雑音の影響を除去するために、スト
ローブ信号出力手段は、所定の時間(以下、「データセ
ットアップ時間」という。)が経過した後にストローブ
信号をアサートする。そして、データラッチ手段は、ス
トローブ信号がアサートされている期間内においてデー
タ信号をラッチすることによりデータ出力手段から送信
されるデータ信号を受信し、受信データとして出力す
る。一方、ストローブ信号出力手段あるいはデータ出力
手段が、例えば送信側装置、受信側装置および両装置を
接続するケーブルの特性によって、ストローブ信号とデ
ータ信号の位置関係がずれることで、タイミング違反を
生じ、データ出力手段がデータラインにデータ信号を出
力する前又はデータラインのデータ信号における妨害雑
音の影響が充分に小さくなっていない時点においてスト
ローブ信号をアサートした場合、データラッチ手段がス
トローブ信号がアサートされてからすぐにデータライン
のデータ信号をラッチすると、誤ったデータがラッチさ
れ、受信エラーが生じる場合がある。Usually, after the data output means outputs the data signal to the data line, in order to remove the influence of the interference noise due to the switching of the data signal of the data line, the strobe signal output means has a predetermined time (hereinafter, Assume strobe signal after "data setup time") has elapsed. Then, the data latch means receives the data signal transmitted from the data output means by latching the data signal within the period in which the strobe signal is asserted, and outputs it as received data. On the other hand, the strobe signal output means or the data output means causes a timing violation due to the positional relationship between the strobe signal and the data signal being shifted due to the characteristics of the cable connecting the transmitting side device, the receiving side device, and both devices. If the strobe signal is asserted before the output means outputs the data signal to the data line or when the influence of the interfering noise on the data signal of the data line is not sufficiently reduced, the data latch means may be activated after the strobe signal is asserted. If the data signal of the data line is immediately latched, incorrect data may be latched and a reception error may occur.
【0015】このような場合、ユーザーの指示などによ
り、テストデータ出力要求信号がテストデータ出力手段
に対して入力されると、テストデータ出力手段は、テス
トデータを生成し、データ出力手段によりデータライン
にテストデータのデータ信号を出力する。当該データ信
号が出力された場合、ストローブ信号出力手段はストロ
ーブ信号をアサートする。ストローブ信号がアサートさ
れると、データラッチ手段は、当該データ信号をラッチ
し、受信データを出力する。このとき、ストローブ信号
がアサートされるタイミングが早すぎた場合、データラ
インにデータ信号が出力される前又はデータ信号の切り
替わり直後に発生するリンギング等の妨害雑音が充分に
小さくなっていない時点でデータ信号がラッチされるた
め、受信データのビットパターンとテストデータのビッ
トパターンとが一致しない。かかる場合、遅延時間調整
手段は、遅延量設定手段により遅延時間を所定の時間だ
け増加させるとともに、制御用ラインを通じてテストデ
ータ出力手段に対しテストデータ出力要求信号を出力す
る。テストデータ出力手段は、テストデータ出力要求信
号を受信すると、再びテストデータを生成してデータラ
インにテストデータのデータ信号を出力する。このよう
にして、受信データのビットパターンとテストデータの
ビットパターンとが一致するまで、上述の動作が繰り返
され、遅延時間が所定の時間ずつ延長される。受信デー
タのビットパターンとテストデータのビットパターンと
が一致した場合、遅延量設定手段は動作を終了し、適正
な遅延時間が設定される。In such a case, when a test data output request signal is input to the test data output means by a user's instruction or the like, the test data output means generates test data, and the data output means outputs the data line. The data signal of the test data is output to. When the data signal is output, the strobe signal output means asserts the strobe signal. When the strobe signal is asserted, the data latch means latches the data signal and outputs the received data. At this time, if the strobe signal is asserted too early, the data may not be output sufficiently before the data signal is output to the data line or immediately after the data signal is switched, when the disturbing noise such as ringing is not sufficiently small. Since the signal is latched, the bit pattern of the received data and the bit pattern of the test data do not match. In this case, the delay time adjusting means increases the delay time by the delay amount setting means by a predetermined time and outputs the test data output request signal to the test data output means through the control line. Upon receiving the test data output request signal, the test data output means generates test data again and outputs the data signal of the test data to the data line. In this way, the above-described operation is repeated until the bit pattern of the received data matches the bit pattern of the test data, and the delay time is extended by a predetermined time. When the bit pattern of the received data and the bit pattern of the test data match, the delay amount setting means ends the operation and the appropriate delay time is set.
【0016】ここで、「送信側装置」とは、データを送
信する側の装置をいい、例えば、パーソナル・コンピュ
ータやワークステーション等が使用される。「受信側装
置」とは、データを受信する側の装置をいい、例えば、
プリンタ、ファクシミリ等が使用される。「インタフェ
ース」としては、データライン、ストローブライン、及
び制用ラインを有するものであればよく、特に限定する
ものではないが、具体的にいえば、例えば、IEEE1
284に規定するパラレル・インタフェースやこれに準
ずるインタフェース等が使用される。「テストデータ」
とは、ストレーブ信号がアサートされてからデータラッ
チ手段がデータ信号をラッチするまでの遅延時間を調整
するために使用するデータをいう。テストデータを構成
する「所定のビットパターン」は、特に限定するもので
はないが、遅延時間の調整後のデータラッチ手段のラッ
チタイミングのマージンを最大限に大きくするようなパ
ターンを使用することが好ましい。具体的には、データ
信号の切り替わりが頻繁に生じるようなビットパター
ン、例えば、「0101」のように1ビットごとにデー
タ信号が切り替わり、リンギングの影響が大きくなりや
すいパターンが使用される。なお、このテストデータ
は、送信側装置と受信側装置との間であらかじめ決めら
れたものである。また、「テストデータ出力要求信号」
とは、テストデータ出力手段に対してテストデータの出
力を要求する信号をいう。「ストローブ信号をアサート
する」とは、ストローブ信号および論理を有効にするこ
とをいい、Hアクティブのストローブ信号をアサートす
ると、ディジタルHレベルになり、Lアクティブのスト
ローブ信号をアサートすると、ディジタルLレベルにな
る。また、「ストローブ信号をネゲートする」とは、ス
トローブ信号および論理が無効になることをいう。Here, the "transmission side device" means a device on the side of transmitting data, and for example, a personal computer or a workstation is used. "Reception side device" means a device on the side of receiving data, for example,
Printers, facsimiles, etc. are used. The “interface” is not particularly limited as long as it has a data line, a strobe line, and a control line, and specifically, for example, IEEE1
A parallel interface defined by H.284 or an interface conforming to this is used. "test data"
The term "data" is used to adjust the delay time from when the strobe signal is asserted to when the data latch means latches the data signal. The "predetermined bit pattern" constituting the test data is not particularly limited, but it is preferable to use a pattern that maximizes the margin of the latch timing of the data latch means after the adjustment of the delay time. . Specifically, a bit pattern in which data signals frequently change, for example, a pattern such as "0101" in which data signals are changed bit by bit and the influence of ringing is likely to be large is used. It should be noted that this test data is predetermined between the transmission side device and the reception side device. Also, "Test data output request signal"
Is a signal that requests the test data output means to output test data. "Assert a strobe signal" means validating a strobe signal and logic. When an H-active strobe signal is asserted, it becomes a digital H level, and when an L-active strobe signal is asserted, it becomes a digital L level. Become. Further, "to negate the strobe signal" means that the strobe signal and the logic become invalid.
【0017】請求項2に記載の発明は、請求項1に記載
のデータ転送システムであって、遅延時間調整手段は、
テストデータ出力手段によってデータラインに出力され
たテストデータのデータ信号をデータラッチ手段がラッ
チすることによって出力する受信データのビットパター
ンと、テストデータのビットパターンとが一致する適正
な遅延時間の最小値と最大値とを決定するタイミングマ
ージン決定手段と、マージン決定手段が決定した適正な
遅延時間の最小値と最大値との平均値を、遅延量設定手
段により遅延時間として設定するタイミングマージン最
大化手段とからなることを特徴とするものである。The invention according to claim 2 is the data transfer system according to claim 1, wherein the delay time adjusting means comprises:
The minimum value of an appropriate delay time at which the bit pattern of the received data output by the data latch means latching the data signal of the test data output to the data line by the test data output means and the bit pattern of the test data match And a maximum value and a timing margin maximizing means for setting an average value of the minimum value and the maximum value of the proper delay times determined by the margin determining means as the delay time by the delay amount setting means. It consists of and.
【0018】この構成により、タイミングマージン決定
手段は、適正な遅延時間の最小値と最大値とを決定し、
タイミングマージン最大化手段は、当該適正な遅延時間
の最小値と最大値との平均値を求め、この平均値を遅延
時間として設定する。これにより、データラッチ手段が
適正なタイミングでデータ信号をラッチするためのタイ
ミングマージンが最大となる遅延時間を設定することが
可能となり、偶発的にストローブ信号のアサートのタイ
ミングがずれた場合でも、受信データのエラーが生じる
確率を最小限に抑えることが可能となる。With this configuration, the timing margin determining means determines the minimum value and the maximum value of the appropriate delay time,
The timing margin maximizing means obtains an average value of the minimum value and the maximum value of the appropriate delay time, and sets this average value as the delay time. This makes it possible to set a delay time that maximizes the timing margin for the data latch means to latch the data signal at an appropriate timing, and even if the timing of asserting the strobe signal is accidentally deviated, It is possible to minimize the probability of data error.
【0019】ここで、「平均値」とは、適正な遅延時間
tminの最小値tmaxと最大値との和の1/2をいうが、
ここでは、遅延時間が離散的な値でしか設定できない場
合(例えば、受信側装置のシステムクロックの1クロッ
クごとにしか設定できない場合)には、「平均値」は
[(tmin+tmax)/2](但し、[ ]はガウス記
号)のように決定してもよい。Here, the "average value" means 1/2 of the sum of the minimum value t max and the maximum value of the appropriate delay time t min .
Here, when the delay time can be set only by discrete values (for example, when it can be set only for each one clock of the system clock of the receiving side device), the “average value” is [(t min + t max ) / 2] (however, [] is a Gaussian symbol).
【0020】請求項3に記載の発明は、請求項2に記載
のデータ転送システムであって、受信側装置は、タイミ
ングマージン決定手段が適正な遅延時間の最小値を検出
できない場合又は適正な遅延時間の最小値と最大値との
差が所定の閾値以下の場合において、制御用ラインに転
送モード変更要求信号を出力する転送モード変更要求手
段を具備し、送信側装置は、制御用ラインに転送モード
変更要求信号が出力された場合、データ出力手段の転送
モードを、現在の転送モードとは異なる転送モードに変
更する転送モード変更手段を具備していることを特徴と
するものであり、この構成により以下のような作用が得
られる。The invention according to a third aspect is the data transfer system according to the second aspect, wherein the receiving side device is such that the timing margin determining means cannot detect an appropriate minimum value of the delay time or an appropriate delay. When the difference between the minimum value and the maximum value of time is less than or equal to a predetermined threshold value, a transfer mode change request means for outputting a transfer mode change request signal to the control line is provided, and the transmission side device transfers to the control line. When the mode change request signal is output, the data output means is provided with transfer mode changing means for changing the transfer mode to a transfer mode different from the current transfer mode. As a result, the following effects are obtained.
【0021】例えば、データ信号の切り替え時にデータ
ラインに発生するリンギングにより、遅延時間を調整し
てもデータラッチ手段が適正なタイミングでデータ信号
をラッチすることができない場合には、タイミングマー
ジン決定手段は、適正な遅延時間の最小値を検出できな
い。また、データラッチ手段が適正なタイミングでデー
タ信号をラッチするためのタイミングマージンが所定の
閾値よりも狭い場合、データラッチ手段が誤った受信デ
ータを出力し、受信エラーが生じやすい。かかる場合、
受信側装置の転送モード変更要求手段は、制御用ライン
に転送モード変更要求信号を出力する。送信側装置の転
送モード変更手段は、現在の転送モードを、現在の転送
モードとは異なる転送モードに変更する。これにより、
転送モードが適正でないことが原因で生じる受信データ
のエラーを解消することが可能となる。For example, when the data latch means cannot latch the data signal at an appropriate timing even if the delay time is adjusted due to ringing occurring in the data line when the data signal is switched, the timing margin determining means is , The proper minimum delay time cannot be detected. Further, when the timing margin for the data latch means to latch the data signal at the proper timing is narrower than the predetermined threshold value, the data latch means outputs erroneous reception data, and a reception error is likely to occur. In such cases,
The transfer mode change request means of the receiving side device outputs a transfer mode change request signal to the control line. The transfer mode changing means of the transmitting side device changes the current transfer mode to a transfer mode different from the current transfer mode. This allows
It is possible to eliminate the error in the received data caused by the improper transfer mode.
【0022】ここで、「所定の閾値」は、実験的に受信
データのエラーレートがその受信側装置の補償値よりも
低くなるように決められる。「現在の転送モードとは異
なる転送モード」とは、特に限定するものではないが、
一般的には、現在の転送モードのデータ転送速度よりも
遅いデータ転送速度の転送モードに設定される。具体的
には、例えば、インタフェースとしてIEEE1284
に規定するパラレル・インタフェースを使用する場合に
おいて、現在の転送モードがECPモードやEPPモー
ドの場合、「現在の転送モードとは異なる転送モード」
として互換モードが使用される。また、送信側装置が転
送モードを変更する方法としては、転送モード変更要求
信号を受信すると、あらかじめ決められた所定の順序で
転送モードを変更する方法の他、送信側装置がディスプ
レイ等の表示画面上に転送モードの変更を促すメッセー
ジを表示し、ユーザーの選択により転送モードを変更す
るようにしてもよい。Here, the "predetermined threshold value" is experimentally determined so that the error rate of the received data becomes lower than the compensation value of the receiving side device. The "transfer mode different from the current transfer mode" is not particularly limited,
Generally, the transfer mode is set to a data transfer speed slower than the data transfer speed of the current transfer mode. Specifically, for example, IEEE1284 is used as the interface.
If the current transfer mode is the ECP mode or the EPP mode when using the parallel interface defined in Section 2, "Transfer mode different from the current transfer mode"
Compatible mode is used as. Further, as a method for the transmission side device to change the transfer mode, when the transmission mode change request signal is received, the transmission side device may change the transfer mode in a predetermined order, or the transmission side device may display a display screen such as a display. A message prompting the user to change the transfer mode may be displayed above, and the transfer mode may be changed by the user's selection.
【0023】請求項4に記載の発明は、請求項2に記載
のデータ転送システムにおいて、受信側装置は、タイミ
ングマージン決定手段が検出する適正な遅延時間の最小
値と最大値の差が所定の閾値以下の場合には、転送速度
変更要求信号を制御用ラインに出力する転送速度変更要
求手段を具備し、送信側装置は、制御用ラインに出力さ
れた転送速度変更要求信号に従って、データ出力手段の
データ転送速度を遅くする転送速度変更手段を具備して
いることを特徴としたものであり、この構成により以下
のような作用が得られる。According to a fourth aspect of the present invention, in the data transfer system according to the second aspect, the receiving side device has a predetermined difference between the minimum value and the maximum value of the proper delay time detected by the timing margin determining means. When it is less than or equal to the threshold value, it is provided with transfer rate change requesting means for outputting the transfer rate change request signal to the control line, and the transmitting side device outputs the data output means in accordance with the transfer rate change request signal output to the control line. It is characterized in that it is provided with a transfer rate changing means for slowing down the data transfer rate, and with this configuration, the following effects can be obtained.
【0024】タイミングマージン決定手段は、ストロー
ブ信号がアサートされてからデータラッチ手段がデータ
信号をラッチするまでの遅延時間を変化させ、テストデ
ータ出力手段によってデータラインに出力されたテスト
信号を受信し、データラッチ手段が出力する受信データ
とテストデータを比較することによって、適正な遅延時
間の最小値と最大値を求め、両者の差(マージン幅)を
求める。そして、マージン幅が所定の閾値以下の場合に
は、転送速度変更要求手段は、転送速度変更要求信号を
制御用ラインに出力する。転送速度変更手段は、転送速
度変更要求信号を受信すると、データ出力手段のデータ
転送速度を遅くする。これにより、マージン幅を広げる
ことができるため、データラッチ手段が誤ったタイミン
グでデータ信号をラッチし誤った受信データを出力する
ことを回避することが可能となる。The timing margin determining means changes the delay time from the assertion of the strobe signal until the data latch means latches the data signal, and receives the test signal output to the data line by the test data output means, By comparing the received data output from the data latch means and the test data, the minimum value and the maximum value of the appropriate delay time are obtained, and the difference (margin width) between them is obtained. When the margin width is less than or equal to the predetermined threshold value, the transfer rate change requesting means outputs a transfer rate change request signal to the control line. Upon receiving the transfer rate change request signal, the transfer rate changing means slows down the data transfer rate of the data output means. As a result, the margin width can be widened, so that it is possible to prevent the data latching means from latching the data signal at the wrong timing and outputting the wrong received data.
【0025】ここで、「所定の閾値」とは、実験的に受
信データのエラーレートがその受信側装置の補償値より
も低くなるように決められる。「転送速度変更要求信
号」とは、受信装置側から送信装置側へ、データライン
に出力されるデータの転送速度を変更する要求を行う信
号をいう。また、送信側装置が転送速度を変更する方法
としては、転送速度変更要求信号を受信すると、あらか
じめ決められた所定の値だけ転送速度を遅くする方法、
転送速度変更要求信号の中に適正な遅延時間の最小値と
最大値の差(マージン幅)の情報も含ませるようにし
て、当該マージン幅の大きさに基づき所定の計算式(例
えば、マージン幅に比例して転送速度を小さくする等)
により転送速度を決定し変更する方法などが使用され
る。Here, the "predetermined threshold value" is experimentally determined so that the error rate of the received data becomes lower than the compensation value of the receiving side device. The “transfer rate change request signal” refers to a signal from the receiving device side to the transmitting device side, which requests to change the transfer rate of the data output to the data line. As a method for the transmission side device to change the transfer rate, when the transfer rate change request signal is received, the transfer rate is decreased by a predetermined value.
Information on the difference (margin width) between the minimum value and the maximum value of the appropriate delay time is also included in the transfer rate change request signal, and a predetermined calculation formula (eg, margin width) is used based on the size of the margin width. (The transfer speed is reduced in proportion to
Is used to determine and change the transfer rate.
【0026】本発明の請求項5に記載のデータ転送シス
テムの信号タイミング補正方法は、データ信号が伝送さ
れるデータラインと、データ信号が利用可能であること
を示すストローブ信号が伝送されるストローブライン
と、制御用ラインとによって接続された送信側装置及び
受信側装置を有し、送信側装置は、データラインに対し
てデータ信号を出力するデータ出力手段、及びデータラ
インにデータ信号が出力されているときに、ストローブ
ラインのストローブ信号をアサート又はネゲートするス
トローブ信号出力手段を具備し、受信側装置は、ストロ
ーブ信号がアサートされている期間内に、データライン
のデータ信号をラッチして受信データとして出力するデ
ータラッチ手段を具備しているデータ転送システムにお
いて、データラッチ手段がデータ信号をラッチするタイ
ミングを補正する信号タイミング補正方法であって、所
定のビットパターンからなるテストデータの出力を要求
するテストデータ出力要求信号が入力された場合に、送
信側装置が、テストデータを生成し、データ出力手段に
よりテストデータのデータ信号をデータラインに出力す
るテストデータ出力ステップと、ストローブ信号がアサ
ートされてから所定の遅延時間が経過した時点で、デー
タラッチ手段が、データラインに出力されたテストデー
タのデータ信号をラッチして受信データとして出力する
データ受信ステップと、受信側装置が、受信データのビ
ットパターンとテストデータのビットパターンとを比較
して、両者が一致していない場合には、遅延時間を所定
の時間だけ増加させるとともに、制御用ラインを通じて
送信側装置に対しテストデータ出力要求信号を出力する
遅延時間調整ステップとを有することを特徴とするもの
である。According to a fifth aspect of the present invention, there is provided a signal timing correction method for a data transfer system, comprising a data line for transmitting a data signal and a strobe line for transmitting a strobe signal indicating that the data signal is available. And a transmission side device and a reception side device connected by a control line, the transmission side device is a data output means for outputting a data signal to the data line, and a data signal is output to the data line. When the strobe signal is asserted or negated, the receiving side device latches the data signal of the data line and receives it as received data while the strobe signal is asserted. In a data transfer system having a data latch means for outputting, a data latch A signal timing correction method for correcting the timing at which a stage latches a data signal, wherein when a test data output request signal requesting output of test data having a predetermined bit pattern is input, At the test data output step of generating the data and outputting the data signal of the test data to the data line by the data output means, and when the predetermined delay time elapses after the strobe signal is asserted, the data latch means changes the data line to the data line. The data receiving step of latching the data signal of the test data output to and outputting it as received data and the receiving side device compare the bit pattern of the received data with the bit pattern of the test data, and the two match. If not, the delay time is increased by the specified time and the control It is characterized in that it has a delay time adjustment step of outputting test data output request signal to the transmission side apparatus through a line.
【0027】この構成により、まず、ストローブ信号あ
るいはデータ信号が、例えば送信側装置、受信側装置お
よび両装置を接続するケーブルの特性によって、ストロ
ーブ信号とデータ信号の位置関係がずれることで、タイ
ミング違反を生じ、データ出力手段がデータラインにデ
ータ信号を出力する前又はデータラインのデータ信号に
おける妨害雑音の影響が充分に小さくなっていない時点
においてストローブ信号をアサートするような場合、ユ
ーザーの指示等により、送信側装置にテストデータ出力
要求信号を入力すると、送信側装置が、テストデータを
生成し、データ出力手段によりテストデータのデータ信
号をデータラインに出力する。このとき、ストローブ信
号出力手段はストローブ信号をアサートする。データラ
ッチ手段はストローブ信号がアサートされてから所定の
遅延時間が経過した後に、データラインのデータ信号を
ラッチし、受信データを出力する。このとき、受信デー
タがテストデータと一致しない場合、受信側装置は、遅
延時間を所定の時間だけ増加させるとともに、制御用ラ
インを通じて送信側装置に対しテストデータ出力要求信
号を出力する。送信側装置は、テストデータ出力要求信
号が入力されると、上記の動作と同様の動作を繰り返
す。そして、最終的に受信データがテストデータと一致
した場合にこれら一連の動作が終了する。このように、
テストデータを用いて遅延時間を調整することにより、
データラッチ手段が適正なタイミングでデータ信号をラ
ッチできるように調整できる。従って、送信側装置の発
信するストローブ信号あるいはデータ信号がタイミング
違反を生じている場合でも、受信データのエラーを防止
することが可能となる。With this configuration, first, the strobe signal or the data signal shifts in the positional relationship between the strobe signal and the data signal due to, for example, the characteristics of the transmitting side device, the receiving side device, and the cable connecting the both devices. When the strobe signal is asserted before the data output means outputs the data signal to the data line or when the influence of the interfering noise on the data signal of the data line is not sufficiently reduced, the user's instruction etc. When a test data output request signal is input to the transmission side device, the transmission side device generates test data, and the data output means outputs the data signal of the test data to the data line. At this time, the strobe signal output means asserts the strobe signal. The data latch means latches the data signal of the data line and outputs the received data after a predetermined delay time has elapsed since the strobe signal was asserted. At this time, if the received data does not match the test data, the receiving side device increases the delay time by a predetermined time and outputs a test data output request signal to the transmitting side device through the control line. When the test data output request signal is input, the transmission side device repeats the same operation as the above operation. Then, when the received data finally matches the test data, the series of operations is completed. in this way,
By adjusting the delay time using test data,
It can be adjusted so that the data latch means can latch the data signal at an appropriate timing. Therefore, even when the strobe signal or the data signal transmitted from the transmission side device causes a timing violation, it is possible to prevent an error in the received data.
【0028】請求項6に記載の発明は、請求項5に記載
のデータ転送システムの信号タイミング補正方法であっ
て、受信側装置が、テストデータ出力手段によってデー
タラインに出力されたテストデータのデータ信号をデー
タラッチ手段がラッチすることによって出力する受信デ
ータのビットパターンと、テストデータのビットパター
ンとが一致する適正な遅延時間の最小値と最大値とを決
定するタイミングマージン決定ステップと、受信側装置
が、マージン決定ステップにおいて決定した適正な遅延
時間の最小値と最大値との平均値を、遅延時間として設
定するタイミングマージン最大化ステップと、を有する
ことを特徴とするものである。A sixth aspect of the present invention is the signal timing correction method for a data transfer system according to the fifth aspect, wherein the receiving side device outputs the data of the test data output to the data line by the test data output means. A timing margin determining step of determining a minimum value and a maximum value of an appropriate delay time at which the bit pattern of the received data output by latching the signal by the data latch means and the bit pattern of the test data match; The apparatus has a timing margin maximizing step of setting, as a delay time, an average value of the minimum value and the maximum value of the appropriate delay times determined in the margin determining step.
【0029】この構成により、遅延時間を適正な遅延時
間の最小値と最大値との平均値に設定することが可能と
なり、データラッチ手段がデータ信号をラッチするタイ
ミングのマージンを最大にすることが可能となる。従っ
て、偶発的にストローブ信号のアサートのタイミングが
ずれた場合でも、受信データのエラーが生じる確率を最
小限に抑えることが可能となる。With this configuration, the delay time can be set to an appropriate average value of the minimum value and the maximum value of the delay time, and the margin of the timing at which the data latch means latches the data signal can be maximized. It will be possible. Therefore, even if the timing of asserting the strobe signal is accidentally deviated, it is possible to minimize the probability that an error occurs in the received data.
【0030】請求項7に記載の発明は、請求項6に記載
のデータ転送システムの信号タイミング補正方法であっ
て、タイミングマージン決定ステップにおいて、適正な
遅延時間の最小値を検出できない場合又は適正な遅延時
間の最小値と最大値との差が所定の閾値以下の場合にお
いて、受信側装置が、制御用ラインに転送モード変更要
求信号を出力する転送モード変更要求ステップと、制御
用ラインに転送モード変更要求信号が出力された場合、
送信側装置が、データ出力手段の転送モードを、現在の
転送モードとは異なる転送モードに変更する転送モード
変更ステップとを有することを特徴とするものである。The invention according to claim 7 is the signal timing correction method for a data transfer system according to claim 6, wherein in the timing margin determining step, an appropriate minimum value of the delay time cannot be detected or an appropriate delay time is detected. When the difference between the minimum value and the maximum value of the delay time is less than or equal to a predetermined threshold value, the receiving side device outputs a transfer mode change request signal to the control line, and a transfer mode change request step to the control line. When the change request signal is output,
The transmission side device has a transfer mode changing step of changing the transfer mode of the data output means to a transfer mode different from the current transfer mode.
【0031】この構成により、例えば、データ信号の切
り替え時にデータラインに発生するリンギングにより、
遅延時間を調整してもデータラッチ手段が適正なタイミ
ングでデータ信号をラッチすることができない場合や、
データラッチ手段が適正なタイミングでデータ信号をラ
ッチするためのタイミングマージンが所定の閾値よりも
狭く、データラッチ手段が誤った受信データを出力し、
受信エラーが生じやすい場合において、送信側装置の転
送モードを切り替えることによって、受信エラーを防止
することが可能となる。With this configuration, for example, due to ringing generated in the data line when the data signal is switched,
If the data latching means cannot latch the data signal at proper timing even if the delay time is adjusted,
The timing margin for the data latch means to latch the data signal at the proper timing is narrower than the predetermined threshold value, and the data latch means outputs erroneous received data,
When a reception error is likely to occur, it is possible to prevent the reception error by switching the transfer mode of the transmission side device.
【0032】請求項8に記載の発明は、請求項6に記載
のデータ転送システムの信号タイミング補正方法であっ
て、タイミングマージン決定ステップにおいて検出され
る適正な遅延時間の最小値と最大値の差が所定の閾値以
下の場合には、受信側装置が、転送速度変更要求信号を
制御用ラインに出力する転送速度変更要求ステップと、
制御用ラインに出力された転送速度変更要求信号に従っ
て、送信側装置が、データ出力手段のデータ転送速度を
遅くする転送速度変更ステップとを有していることを特
徴とするものである。The invention according to claim 8 is the signal timing correction method for a data transfer system according to claim 6, wherein the difference between the minimum value and the maximum value of the appropriate delay time detected in the timing margin determining step. Is less than or equal to a predetermined threshold value, the receiving side device, a transfer rate change request step of outputting a transfer rate change request signal to the control line,
According to the transfer rate change request signal output to the control line, the transmission side device has a transfer rate changing step of slowing the data transfer rate of the data output means.
【0033】この構成により、まず、タイミングマージ
ン決定手段は、ストローブ信号がアサートされてからデ
ータラッチ手段がデータ信号をラッチするまでの遅延時
間を変化させ、テストデータ出力手段によってデータラ
インに出力されたテスト信号を受信し、データラッチ手
段が出力する受信データとテストデータを比較すること
によって、適正な遅延時間の最小値と最大値を求め、両
者の差(マージン幅)を求める。そして、マージン幅が
所定の閾値以下の場合には、転送速度変更要求手段は、
転送速度変更要求信号を制御用ラインに出力する。転送
速度変更手段は、転送速度変更要求信号を受信すると、
データ出力手段のデータ転送速度を遅くする。これによ
り、マージン幅を広げることができるため、データラッ
チ手段が誤ったタイミングでデータ信号をラッチし誤っ
た受信データを出力することを回避することが可能とな
る。With this configuration, first, the timing margin determining means changes the delay time from the assertion of the strobe signal until the data latch means latches the data signal, and the test data output means outputs it to the data line. By receiving the test signal and comparing the received data output from the data latch means with the test data, the minimum value and the maximum value of the appropriate delay time are obtained, and the difference (margin width) between them is obtained. When the margin width is less than or equal to the predetermined threshold, the transfer rate change requesting means
The transfer rate change request signal is output to the control line. When the transfer rate change means receives the transfer rate change request signal,
The data transfer speed of the data output means is reduced. As a result, the margin width can be widened, so that it is possible to prevent the data latching means from latching the data signal at the wrong timing and outputting the wrong received data.
【0034】以下に本発明の一実施の形態について、図
面を参照しながら説明する。An embodiment of the present invention will be described below with reference to the drawings.
【0035】(実施の形態1)本実施の形態におけるデ
ータ転送システムは、データ信号が伝送されるデータラ
インと、データ信号が利用可能であることを示すストロ
ーブ信号が伝送されるストローブラインと、制御用ライ
ンとを有するインタフェースにより接続された送信側装
置及び受信側装置を有し、送信側装置は、データライン
に対してデータ信号を出力するデータ出力手段、及びデ
ータラインにデータ信号が出力されたときに、ストロー
ブラインのストローブ信号をアサートするストローブ信
号出力手段を具備し、受信側装置は、ストローブ信号が
アサートされている期間内に、データラインのデータ信
号をラッチして受信データとして出力するデータラッチ
手段を具備しているデータ転送システムであって、送信
側装置は、所定のビットパターンからなるテストデータ
の出力を要求するテストデータ出力要求信号が入力され
た場合に、テストデータを生成し、データ出力手段によ
りテストデータのデータ信号をデータラインに出力する
テストデータ出力手段と、制御用ラインに転送モード変
更要求信号が出力された場合、データ出力手段の転送モ
ードを、現在の転送モードとは異なる転送モードに変更
する転送モード変更手段とを具備し、受信側装置は、ス
トローブラインのストローブ信号がアサートされてから
データラッチ手段がデータラインのデータ信号をラッチ
するまでの遅延時間を設定する遅延量設定手段と、デー
タラインに出力されたテストデータのデータ信号をデー
タラッチ手段がラッチすることによって出力する受信デ
ータのビットパターンと、テストデータのビットパター
ンとを比較して、両者が一致していない場合には、遅延
量設定手段により遅延時間を所定の時間だけ増加させる
とともに、制御用ラインを通じてテストデータ出力手段
に対しテストデータ出力要求信号を出力する遅延時間調
整手段と、タイミングマージン決定手段が適正な遅延時
間の最小値を検出できない場合又は適正な遅延時間の最
小値と最大値との差が所定の閾値以下の場合において、
制御用ラインに転送モード変更要求信号を出力する転送
モード変更要求手段とを具備していることを特徴とする
ものである。(Embodiment 1) A data transfer system according to the present embodiment includes a data line for transmitting a data signal, a strobe line for transmitting a strobe signal indicating that the data signal is available, and a control. A transmission side device and a reception side device connected by an interface having a data line, and the transmission side device outputs a data signal to the data line, and a data signal is output to the data line. When the strobe signal output means for asserting the strobe signal of the strobe line is provided, the receiving side device latches the data signal of the data line and outputs it as the received data during the period when the strobe signal is asserted. A data transfer system comprising a latch means, wherein Test data output means for generating test data when a test data output request signal for requesting output of test data consisting of a test pattern is input, and outputting the data signal of the test data to the data line by the data output means; And a transfer mode changing means for changing the transfer mode of the data output means to a transfer mode different from the current transfer mode when the transfer mode change request signal is output to the strobe line. Delay amount setting means for setting the delay time from the assertion of the strobe signal of 1 to the data latch means latching the data signal of the data line, and the data latch means latches the data signal of the test data output to the data line. The received data bit pattern output by If the two do not match, the delay amount setting means increases the delay time by a predetermined time, and the test data output means requests the test data output means through the control line. In the case where the delay time adjusting means for outputting a signal and the timing margin determining means cannot detect the minimum value of the appropriate delay time or the difference between the minimum value and the maximum value of the appropriate delay time is less than or equal to a predetermined threshold value,
And a transfer mode change requesting means for outputting a transfer mode change request signal to the control line.
【0036】図1は本発明の一実施の形態におけるデー
タ転送システムのブロック図である。FIG. 1 is a block diagram of a data transfer system according to an embodiment of the present invention.
【0037】図1において、本実施の形態のデータ転送
システムは、送信側装置であるホストコンピュータ1と
受信側装置であるプリンタ2とが、データライン3、ス
トローブライン4、ビジーライン(図示せず)、及び制
御用ライン5,6を有するパラレル・インタフェース
(IEEE1284)によって接続されている。なお、
実際には、制御用ライン5,6には、パラレル・インタ
フェースにおけるフォルト(nFault)やイニシャ
ル(nInit)等のラインが使用される。Referring to FIG. 1, in the data transfer system according to the present embodiment, a host computer 1 as a transmission side device and a printer 2 as a reception side device have a data line 3, a strobe line 4 and a busy line (not shown). ), And a parallel interface (IEEE1284) having control lines 5 and 6. In addition,
Actually, lines for fault (nFault) and initial (nInit) in the parallel interface are used as the control lines 5 and 6.
【0038】ホストコンピュータ1は、システム制御手
段9、データ出力手段10、ストローブ信号出力手段1
1、タイミング補正開始信号出力手段12、テストデー
タ出力手段13、及びパラレル・インタフェース回路7
を有する。The host computer 1 has a system control means 9, a data output means 10, and a strobe signal output means 1.
1, timing correction start signal output means 12, test data output means 13, and parallel interface circuit 7
Have.
【0039】システム制御手段9は、中央演算装置(C
PU)、メモリ、プリンタドライバプログラム等で構成
されており、ホストコンピュータ1全体の制御を行う。
データ出力回路10は、パラレル・インタフェース回路
7を介してデータライン3に対してデータ信号を出力す
る。ストローブ信号出力手段10は、パラレル・インタ
フェース回路7を介してストローブライン4に出力され
ているストローブ信号をアサート又はネゲートする。こ
のストローブ信号は、データライン3に出力されたデー
タ信号が利用可能であることを示す信号である。タイミ
ング補正開始信号出力手段12は、パラレル・インタフ
ェース回路7を介してタイミング補正開始信号を制御用
ライン6に出力する。タイミング補正開始信号とは、ス
トローブラインのストローブ信号がアサートされてから
データラインのデータ信号を取り込むタイミング、すな
わち、ストローブ信号がアサートされてからデータ信号
をラッチするまでの遅延時間の補正プロセス(以下、
「信号タイミング補正プロセス」という。)を開始する
ことを、ホストコンピュータ1からプリンタ2に通知す
るための信号である。テストデータ出力手段13は、テ
ストデータ出力要求信号が入力された場合に、テストデ
ータを生成し、データ出力手段10により、テストデー
タのデータ信号をデータライン3に出力する。テストデ
ータとは、所定のビットパターンからなるデータであ
り、ストローブ信号がアサートされてからデータ信号を
ラッチするまでの遅延時間の補正の為に使用する信号で
ある。また、テストデータ出力要求信号とは、テストデ
ータ出力手段13に対してテストデータの出力を要求す
る信号をいう。The system control means 9 is a central processing unit (C
PU), memory, printer driver program, etc., and controls the entire host computer 1.
The data output circuit 10 outputs a data signal to the data line 3 via the parallel interface circuit 7. The strobe signal output means 10 asserts or negates the strobe signal output to the strobe line 4 via the parallel interface circuit 7. The strobe signal is a signal indicating that the data signal output to the data line 3 is available. The timing correction start signal output means 12 outputs the timing correction start signal to the control line 6 via the parallel interface circuit 7. The timing correction start signal is the timing of capturing the data signal of the data line after the strobe signal of the strobe line is asserted, that is, the delay time correction process from the assertion of the strobe signal to the latching of the data signal (hereinafter,
It is called the “signal timing correction process”. ) Is a signal for notifying the printer 2 from the host computer 1. The test data output unit 13 generates test data when the test data output request signal is input, and the data output unit 10 outputs the data signal of the test data to the data line 3. The test data is data having a predetermined bit pattern, and is a signal used for correcting the delay time from the assertion of the strobe signal to the latching of the data signal. The test data output request signal means a signal requesting the test data output means 13 to output test data.
【0040】プリンタ2は、システム制御手段14、デ
ータストローブ信号検出手段15、遅延手段16、デー
タラッチ手段17、受信データ格納手段18、タイミン
グ補正開始信号検出手段19、遅延量設定手段20、及
びテストデータ比較手段21を有する。The printer 2 includes a system control means 14, a data strobe signal detection means 15, a delay means 16, a data latch means 17, a received data storage means 18, a timing correction start signal detection means 19, a delay amount setting means 20, and a test. It has data comparison means 21.
【0041】システム制御手段14は、中央演算装置
(CPU)、メモリ、プリンタ制御プログラム等から構
成され、プリンタ2の全体を制御する。データストロー
ブ信号検出手段15は、パラレル・インタフェース回路
8を介してストローブライン4から入力されるストロー
ブ信号がアサート又はネゲートされたことを検出し、ス
トローブ検出信号を出力する。遅延手段16は、ストロ
ーブ検出信号が入力されると、該ストローブ検出信号が
入力された時点から所定の遅延時間だけ遅延させた時点
でデータラッチタイミング信号を出力する。データラッ
チ手段17は、データラッチタイミング信号が入力され
ると、パラレル・インタフェース回路8を介してデータ
ライン3から入力されるデータ信号をラッチし、受信デ
ータとして出力する。受信データ格納手段18は、入力
される受信データを記憶する。The system control means 14 comprises a central processing unit (CPU), a memory, a printer control program, etc., and controls the entire printer 2. The data strobe signal detecting means 15 detects that the strobe signal input from the strobe line 4 via the parallel interface circuit 8 is asserted or negated, and outputs a strobe detection signal. When the strobe detection signal is input, the delay means 16 outputs the data latch timing signal at the time point when the strobe detection signal is input and delayed by a predetermined delay time. When the data latch timing signal is input, the data latch means 17 latches the data signal input from the data line 3 via the parallel interface circuit 8 and outputs it as received data. The reception data storage means 18 stores the input reception data.
【0042】タイミング補正開始信号検出手段19は、
パラレル・インタフェース回路8を介して制御用ライン
6から入力されるタイミング補正開始信号を検出し、シ
ステム制御手段14に通知する。これにより、システム
制御手段14は、信号タイミング補正プロセスを開始す
る。遅延量設定手段20は、上記遅延手段16の遅延時
間の設定及び変更を行う。テストデータ比較手段21
は、データライン3に出力されたテストデータのデータ
信号をデータラッチ手段17がラッチすることによって
出力する受信データのビットパターンと、テストデータ
のビットパターンとを比較して、両者が一致しない場合
には、システム制御手段14にテストエラー信号を出力
する。システム制御手段14は、テストエラー信号が入
力された場合、パラレル・インタフェース回路8を介し
て制御用ライン5にテストデータ出力要求信号を出力す
るとともに、遅延量設定手段20により、遅延手段16
の遅延時間の変更を行う。The timing correction start signal detecting means 19 is
The timing correction start signal input from the control line 6 via the parallel interface circuit 8 is detected and notified to the system control means 14. This causes the system control means 14 to start the signal timing correction process. The delay amount setting means 20 sets and changes the delay time of the delay means 16. Test data comparison means 21
Compares the bit pattern of the received data output by the data latch means 17 latching the data signal of the test data output to the data line 3 with the bit pattern of the test data, and when they do not match. Outputs a test error signal to the system control means 14. When the test error signal is input, the system control means 14 outputs the test data output request signal to the control line 5 via the parallel interface circuit 8 and the delay amount setting means 20 causes the delay means 16 to operate.
Change the delay time of.
【0043】なお、本実施の形態においては、遅延時間
調整手段は、プリンタ2のシステム制御手段14及び遅
延量設定手段20によって実現される。また、転送モー
ド変更要求手段はプリンタ2のシステム制御手段14に
より実現され、転送モード変更手段はホストコンピュー
タ1のシステム制御手段9によって実現される。In the present embodiment, the delay time adjusting means is realized by the system control means 14 and the delay amount setting means 20 of the printer 2. The transfer mode change requesting means is realized by the system control means 14 of the printer 2, and the transfer mode changing means is realized by the system control means 9 of the host computer 1.
【0044】以上のように構成された本実施の形態のデ
ータ転送システムにおいて、以下その信号タイミング補
正方法について説明する。In the data transfer system of the present embodiment configured as described above, the signal timing correction method will be described below.
【0045】図2は本発明の実施の形態1に係るデータ
転送システムの信号タイミング補正方法を表すフローチ
ャートである。FIG. 2 is a flowchart showing a signal timing correction method for the data transfer system according to the first embodiment of the present invention.
【0046】図2において、まず、ホストコンピュータ
1のプリンタドライバプログラムによって、ホストコン
ピュータ1の入力画面に機能選択画面が表示される。ユ
ーザーが、当該機能選択画面から信号タイミング補正機
能を選択すると(S1)、システム制御手段9は、タイ
ミング補正開始信号出力手段12にその指示を通知し、
タイミング補正開始信号出力手段12は、パラレル・イ
ンタフェース回路7を介して、制御用ライン6にタイミ
ング補正開始信号を出力する(S2)。プリンタ2のタ
イミング補正開始信号検出手段19は、パラレル・イン
タフェース回路8を介して制御用ライン6からタイミン
グ補正開始信号を受信すると、システム制御手段14に
当該受信を通知する。システム制御手段14は、当該通
知を受けると、動作モードをキャリブレーション・モー
ドに変更する(S3)。ここで、「キャリブレーション
・モード」とは、プリンタ2のデータラッチ手段17が
データ信号をラッチするタイミングを校正する動作モー
ドのことをいう。In FIG. 2, first, the function selection screen is displayed on the input screen of the host computer 1 by the printer driver program of the host computer 1. When the user selects the signal timing correction function from the function selection screen (S1), the system control means 9 notifies the timing correction start signal output means 12 of the instruction,
The timing correction start signal output means 12 outputs the timing correction start signal to the control line 6 via the parallel interface circuit 7 (S2). When the timing correction start signal detection means 19 of the printer 2 receives the timing correction start signal from the control line 6 via the parallel interface circuit 8, it notifies the system control means 14 of the reception. Upon receiving the notification, the system control means 14 changes the operation mode to the calibration mode (S3). Here, the “calibration mode” refers to an operation mode in which the timing at which the data latch means 17 of the printer 2 latches the data signal is calibrated.
【0047】次に、プリンタ2のシステム制御手段14
は、遅延時間tdを0に設定し、テスト回数を表す内部
変数Loopを0に設定する。そして、遅延量設定手段
20により遅延時間tdを遅延手段16に設定する(S
4)。以上の準備ができると、プリンタ2のシステム制
御手段14は、パラレル・インタフェース回路8を介し
て制御用ライン5にテストデータ出力要求信号を出力す
る(S5)。ホストコンピュータ1のシステム制御手段
9は、パラレル・インタフェース回路7を介して制御用
ライン5からテストデータ出力要求信号を受信すると、
当該テストデータ出力要求信号をテストデータ出力手段
13に出力する。Next, the system control means 14 of the printer 2
Sets the delay time t d to 0 and the internal variable Loop indicating the number of tests to 0. Then, the delay amount setting means 20 sets the delay time t d in the delay means 16 (S
4). When the above preparation is completed, the system control means 14 of the printer 2 outputs a test data output request signal to the control line 5 via the parallel interface circuit 8 (S5). When the system control means 9 of the host computer 1 receives the test data output request signal from the control line 5 via the parallel interface circuit 7,
The test data output request signal is output to the test data output means 13.
【0048】テストデータ出力手段13は、テストデー
タ出力要求信号が入力されると、データ出力手段10に
より、パラレル・インタフェース回路7を介してデータ
ライン3にテストパターンを出力する(S6)。このと
き、ストローブ信号出力手段11は、ストローブライン
4のストローブ信号をアサートする。When the test data output request signal is input to the test data output means 13, the data output means 10 outputs a test pattern to the data line 3 via the parallel interface circuit 7 (S6). At this time, the strobe signal output means 11 asserts the strobe signal of the strobe line 4.
【0049】プリンタ2のデータストローブ検出手段1
5は、ストローブライン4のストローブ信号がアサート
されたことを検出すると、遅延手段16に対しストロー
ブ検出信号を出力する。遅延手段16は、ストローブ検
出信号が入力された時点から、遅延量設定手段20によ
り設定された遅延時間が経過した時点で、データラッチ
手段17に対しデータラッチタイミング信号を出力す
る。データラッチ手段17は、データラッチタイミング
信号が入力されると、データライン3に出力されたデー
タ信号をラッチし、ラッチしたデータ信号を受信データ
として受信データ格納手段18に出力するとともに、ビ
ジーライン(図示せず)のビジー信号をアサートする。
受信データ格納手段18は、データラッチ手段17から
入力された受信データを格納する(S7)。なお、ビジ
ーラインのビジー信号がアサートされると、ストローブ
信号出力手段11は、ストローブライン4のストローブ
信号をネゲートする。また、ビジー信号は、プリンタ2
における受信データの処理が終了するまではアサートさ
れ、当該処理が終了した時点でネゲートされる。Data strobe detecting means 1 of printer 2
When detecting that the strobe signal of strobe line 4 is asserted, 5 outputs a strobe detection signal to delay means 16. The delay means 16 outputs a data latch timing signal to the data latch means 17 at the time when the delay time set by the delay amount setting means 20 has elapsed from the time when the strobe detection signal was input. When the data latch timing signal is input, the data latch means 17 latches the data signal output to the data line 3, outputs the latched data signal to the received data storage means 18 as received data, and also the busy line ( Assert a busy signal (not shown).
The reception data storage means 18 stores the reception data input from the data latch means 17 (S7). When the busy signal on the busy line is asserted, the strobe signal output means 11 negates the strobe signal on the strobe line 4. Also, the busy signal is sent to the printer 2
It is asserted until the processing of the received data in (3) is completed, and is negated when the processing is completed.
【0050】データラッチ手段17が受信データを出力
すると、システム制御手段14は、テスト回数を表す内
部変数Loopをインクリメントする(S8)。次い
で、テストデータ比較手段21は、受信データ格納手段
18に記憶された受信データのビットパターンと、テス
トデータのビットパターンとを比較する(S9)。When the data latch means 17 outputs the received data, the system control means 14 increments the internal variable Loop indicating the number of tests (S8). Next, the test data comparison unit 21 compares the bit pattern of the reception data stored in the reception data storage unit 18 with the bit pattern of the test data (S9).
【0051】両者が一致する場合には(S10)、テス
トデータ比較手段21は、遅延時間t1に現在の遅延時
間tdを設定し(S11)、システム制御手段14は、
遅延量設定手段20により、遅延手段16に遅延時間t
1を設定し、キャリブレーション・モードを解除して信
号タイミング補正プロセスを終了する。If they match (S10), the test data comparison means 21 sets the current delay time t d to the delay time t 1 (S11), and the system control means 14
The delay amount setting means 20 causes the delay means 16 to apply the delay time t.
Set 1 to exit calibration mode and end the signal timing correction process.
【0052】一方、ステップS9において、テストデー
タ比較手段21が受信データ格納手段18に記憶された
受信データのビットパターンと、テストデータのビット
パターンとが異なると判断した場合は(S10)、デー
タラッチ手段17のラッチタイミングは適正ではない。
そこで、システム制御手段14は、まず、内部変数Lo
opの値が所定の制限値以上か否かを判定する(S1
2)。ここで、所定の制限値とは、遅延時間の最大値を
決めるものであり、内部変数Loopの値がこの制限値
以上になると、既に適正な遅延時間は設定できないと判
断される値である。この制限値は、実験的に得られた各
伝送モードのデータ転送周期と遅延量設定手段20の分
解能で決定され、例えば、(転送周期)÷(分解能)で
計算されるような値に決められる。内部変数Loopの
値が所定の制限値以下の場合には、システム制御手段1
4は、パラレル・インタフェース回路8を介して制御用
ライン5にテストデータ出力要求信号を出力し(S1
3)、tdの値を1クロックだけインクリメントし(S
14)、ステップS6の動作に戻る。すなわち、遅延時
間を1クロックだけ増加させて、再びテストデータによ
る遅延時間の調整動作を続ける。On the other hand, in step S9, when the test data comparing means 21 determines that the bit pattern of the received data stored in the received data storage means 18 and the bit pattern of the test data are different (S10), the data latch The latch timing of the means 17 is not proper.
Therefore, the system control means 14 firstly determines the internal variable Lo.
It is determined whether the value of op is greater than or equal to a predetermined limit value (S1
2). Here, the predetermined limit value is for determining the maximum value of the delay time, and is a value which is determined that the proper delay time cannot be already set when the value of the internal variable Loop becomes equal to or larger than the limit value. This limit value is determined by an experimentally obtained data transfer cycle of each transmission mode and the resolution of the delay amount setting means 20, and is determined by a value calculated by, for example, (transfer cycle) / (resolution). . If the value of the internal variable Loop is less than or equal to a predetermined limit value, the system control means 1
4 outputs a test data output request signal to the control line 5 via the parallel interface circuit 8 (S1
3), increment the value of t d by 1 clock (S
14) and returns to the operation of step S6. That is, the delay time is increased by one clock and the delay time adjusting operation based on the test data is continued again.
【0053】なお、ステップS12において、システム
制御手段14が、内部変数Loopの値が所定の制限値
以上であると判断した場合、現在の伝送モードでは、も
はや適正な遅延時間を設定することはできないと判断さ
れるため、プリンタ2のシステム制御手段14は、パラ
レル・インタフェース回路8を介して、制御用ライン5
に転送モード変更要求信号を出力する(S15)。ホス
トコンピュータ1のシステム制御手段9は、パラレル・
インタフェース回路7を介して、制御用ライン5から転
送モード変更要求信号を受信すると、ホストコンピュー
タ1の現在の転送モードを、異なる転送モードに切り替
える(S16)。例えば、現在の転送モードがECPモ
ード又はEPPモードの場合には、よりデータ転送速度
の遅い互換モードに切り替える。なお、この場合、シス
テム制御手段9は、ホストコンピュータ1の表示装置の
表示画面に、モード切替を促す画像を表示し、ユーザー
の指示により他のモードに切り替えるようにしてもよ
い。以上のような、モードの切り替えが終了すると、再
びステップS4の動作に戻り、新たな転送モードにおい
て、信号タイミング補正プロセスを行う。In step S12, when the system control means 14 determines that the value of the internal variable Loop is equal to or larger than the predetermined limit value, it is no longer possible to set an appropriate delay time in the current transmission mode. Therefore, the system control means 14 of the printer 2 controls the control line 5 via the parallel interface circuit 8.
The transfer mode change request signal is output to (S15). The system control means 9 of the host computer 1 is a parallel
When the transfer mode change request signal is received from the control line 5 via the interface circuit 7, the current transfer mode of the host computer 1 is switched to a different transfer mode (S16). For example, when the current transfer mode is the ECP mode or the EPP mode, the mode is switched to the compatible mode having a slower data transfer rate. In this case, the system control means 9 may display an image prompting mode switching on the display screen of the display device of the host computer 1 and switch to another mode according to a user's instruction. When the mode switching as described above is completed, the operation returns to step S4 again, and the signal timing correction process is performed in the new transfer mode.
【0054】(実施の形態2)本実施の形態におけるデ
ータ転送システムは、データ信号が伝送されるデータラ
インと、データ信号が利用可能であることを示すストロ
ーブ信号が伝送されるストローブラインと、制御用ライ
ンとを有するインタフェースにより接続された送信側装
置及び受信側装置を有し、送信側装置は、データライン
に対してデータ信号を出力するデータ出力手段、及びデ
ータラインにデータ信号が出力されたときに、ストロー
ブラインのストローブ信号をアサートするストローブ信
号出力手段を具備し、受信側装置は、ストローブ信号が
アサートされている期間内に、データラインのデータ信
号をラッチして受信データとして出力するデータラッチ
手段を具備しているデータ転送システムであって、送信
側装置は、所定のビットパターンからなるテストデータ
の出力を要求するテストデータ出力要求信号が入力され
た場合に、テストデータを生成し、データ出力手段によ
りテストデータのデータ信号をデータラインに出力する
テストデータ出力手段を具備し、受信側装置は、ストロ
ーブラインのストローブ信号がアサートされてからデー
タラッチ手段がデータラインのデータ信号をラッチする
までの遅延時間を設定する遅延量設定手段と、テストデ
ータ出力手段によってデータラインに出力されたテスト
データのデータ信号をデータラッチ手段がラッチするこ
とによって出力する受信データのビットパターンと、テ
ストデータのビットパターンとが一致する適正な遅延時
間の最小値と最大値とを決定するタイミングマージン決
定手段と、マージン決定手段が決定した適正な遅延時間
の最小値と最大値との平均値を、遅延量設定手段により
遅延時間として設定するタイミングマージン最大化手段
とを具備していることを特徴とするものである。(Embodiment 2) The data transfer system according to the present embodiment includes a data line for transmitting a data signal, a strobe line for transmitting a strobe signal indicating that the data signal is available, and a control. A transmission side device and a reception side device connected by an interface having a data line, and the transmission side device outputs a data signal to the data line, and a data signal is output to the data line. When the strobe signal output means for asserting the strobe signal of the strobe line is provided, the receiving side device latches the data signal of the data line and outputs it as the received data during the period when the strobe signal is asserted. A data transfer system comprising a latch means, wherein A test data output request signal for requesting output of test data composed of a test pattern, the test data is generated, and the data output means outputs the data signal of the test data to the data line. The receiving side device outputs a delay amount setting means for setting a delay time from the assertion of the strobe signal of the strobe line until the data latch means latches the data signal of the data line, and the test data output means for outputting to the data line. A timing margin that determines the minimum value and the maximum value of the appropriate delay time at which the bit pattern of the received data output by the data latch means latching the data signal of the tested test data matches the bit pattern of the test data. The deciding means and the margin deciding means are decided And the average of the minimum and maximum values of the appropriate delay time, is characterized in that it comprises a timing margin maximization means for setting a delay time by the delay amount setting unit.
【0055】なお、本実施の形態におけるデータ転送シ
ステムのブロック図は、図1と同様であるため、説明は
省略するが、図1において、上記タイミングマージン決
定手段及びタイミングマージン最大化手段はシステム制
御手段14により実現される。The block diagram of the data transfer system according to the present embodiment is the same as that shown in FIG. 1, and therefore its explanation is omitted. In FIG. 1, the timing margin determining means and the timing margin maximizing means are system controlled. It is realized by means 14.
【0056】図3は本発明の実施の形態2に係るデータ
転送システムの信号タイミング補正方法を表すフローチ
ャートである。FIG. 3 is a flow chart showing a signal timing correction method of the data transfer system according to the second embodiment of the present invention.
【0057】図3において、まず、ホストコンピュータ
1のプリンタドライバプログラムによって、ホストコン
ピュータ1の入力画面に機能選択画面が表示される。ユ
ーザーが、当該機能選択画面から信号タイミング補正機
能を選択すると(S21)、システム制御手段9は、タ
イミング補正開始信号出力手段12にその指示を通知
し、タイミング補正開始信号出力手段12は、パラレル
・インタフェース回路7を介して、制御用ライン6にタ
イミング補正開始信号を出力する(S22)。プリンタ
2のタイミング補正開始信号検出手段19は、パラレル
・インタフェース回路8を介して制御用ライン6からタ
イミング補正開始信号を受信すると、システム制御手段
14に当該受信を通知する。システム制御手段14は、
当該通知を受けると、動作モードをキャリブレーション
・モードに変更する(S23)。In FIG. 3, first, the function selection screen is displayed on the input screen of the host computer 1 by the printer driver program of the host computer 1. When the user selects the signal timing correction function from the function selection screen (S21), the system control means 9 notifies the timing correction start signal output means 12 of the instruction, and the timing correction start signal output means 12 causes the parallel A timing correction start signal is output to the control line 6 via the interface circuit 7 (S22). When the timing correction start signal detection means 19 of the printer 2 receives the timing correction start signal from the control line 6 via the parallel interface circuit 8, it notifies the system control means 14 of the reception. The system control means 14
When the notification is received, the operation mode is changed to the calibration mode (S23).
【0058】次に、プリンタ2のシステム制御手段14
は、遅延時間tdを0に設定し、テスト回数を表す内部
変数Loopを0に設定し、テストモードを表す内部変
数Modeを0に設定する。そして、量設定手段20に
より遅延時間tdを遅延手段16に設定する(S2
4)。ここで、テストモードとは、現在、適正な遅延時
間の最小値を調べているのか、最大値を調べているのか
を特定するものであり、Modeが0のときには適正な
遅延時間の最小値を調べるテストモード、Modeが1
のときには適正な遅延時間の最大値を調べるテストモー
ドを意味する。以上の準備ができると、プリンタ2のシ
ステム制御手段14は、パラレル・インタフェース回路
8を介して制御用ライン5にテストデータ出力要求信号
を出力する(S25)。ホストコンピュータ1のシステ
ム制御手段9は、パラレル・インタフェース回路7を介
して制御用ライン5からテストデータ出力要求信号を受
信すると、当該テストデータ出力要求信号をテストデー
タ出力手段13に出力する。Next, the system control means 14 of the printer 2
Sets the delay time t d to 0, the internal variable Loop indicating the number of tests to 0, and the internal variable Mode indicating the test mode to 0. Then, the delay time t d is set in the delay means 16 by the quantity setting means 20 (S2).
4). Here, the test mode is to identify whether the minimum value or the maximum value of the proper delay time is currently being investigated, and when the Mode is 0, the minimum value of the proper delay time is determined. Test mode to check, Mode is 1
In the case of, it means a test mode in which the appropriate maximum delay time is checked. When the above preparation is completed, the system control means 14 of the printer 2 outputs a test data output request signal to the control line 5 via the parallel interface circuit 8 (S25). Upon receiving the test data output request signal from the control line 5 via the parallel interface circuit 7, the system control means 9 of the host computer 1 outputs the test data output request signal to the test data output means 13.
【0059】テストデータ出力手段13は、テストデー
タ出力要求信号が入力されると、データ出力手段10に
より、パラレル・インタフェース回路7を介してデータ
ライン3にテストパターンを出力する(S26)。この
とき、ストローブ信号出力手段11は、ストローブライ
ン4のストローブ信号をアサートする。When the test data output request signal is input to the test data output means 13, the data output means 10 outputs the test pattern to the data line 3 via the parallel interface circuit 7 (S26). At this time, the strobe signal output means 11 asserts the strobe signal of the strobe line 4.
【0060】プリンタ2のデータストローブ信号検出手
段15は、ストローブライン4のストローブ信号がアサ
ートされたことを検出すると、遅延手段16に対しスト
ローブ検出信号を出力する。遅延手段16は、ストロー
ブ検出信号が入力された時点から、遅延量設定手段20
により設定された遅延時間が経過した時点で、データラ
ッチ手段17に対しデータラッチタイミング信号を出力
する。データラッチ手段17は、データラッチタイミン
グ信号が入力されると、データライン3に出力されたデ
ータ信号をラッチし、ラッチしたデータ信号を受信デー
タとして受信データ格納手段18に出力するとともに、
ビジーライン(図示せず)のビジー信号をアサートす
る。受信データ格納手段18は、データラッチ手段17
から入力された受信データを格納する(S27)。な
お、ビジーラインのビジー信号がアサートされると、ス
トローブ信号出力手段11は、ストローブライン4のス
トローブ信号をネゲートする。また、ビジー信号は、プ
リンタ2における受信データの処理が終了するまではア
サートされ、当該処理が終了した時点でネゲートされ
る。When the data strobe signal detection means 15 of the printer 2 detects that the strobe signal of the strobe line 4 is asserted, it outputs a strobe detection signal to the delay means 16. The delay unit 16 starts the delay amount setting unit 20 from the time when the strobe detection signal is input.
When the delay time set by is passed, the data latch timing signal is output to the data latch means 17. When the data latch timing signal is input, the data latch means 17 latches the data signal output to the data line 3, outputs the latched data signal to the received data storage means 18 as received data, and
Assert the busy signal on the busy line (not shown). The reception data storage means 18 is a data latch means 17.
The received data input from is stored (S27). When the busy signal on the busy line is asserted, the strobe signal output means 11 negates the strobe signal on the strobe line 4. Further, the busy signal is asserted until the processing of the received data in the printer 2 is completed, and is negated when the processing is completed.
【0061】データラッチ手段17が受信データを出力
すると、システム制御手段14は、テスト回数を表す内
部変数Loopをインクリメントする(S28)。次い
で、テストデータ比較手段21は、受信データ格納手段
18に記憶された受信データのビットパターンと、テス
トデータのビットパターンとを比較する(S29)。When the data latch means 17 outputs the received data, the system control means 14 increments the internal variable Loop indicating the number of tests (S28). Next, the test data comparison unit 21 compares the bit pattern of the reception data stored in the reception data storage unit 18 with the bit pattern of the test data (S29).
【0062】両者が一致しない場合には、データラッチ
手段17のラッチタイミングは適正ではない。そこで、
システム制御手段14は、まず、現在のテストモードM
odeを調べ(S31)、この場合、Modeが0なの
で、次に、内部変数Loopの値を所定の制限値と比較
し(S32)、Loopの値が所定の制限値未満であれ
ば、プリンタ2のシステム制御手段14は、パラレル・
インタフェース回路8を介して制御用ライン5にテスト
データ出力要求信号を出力し(S33)、tdの値を1
クロックだけインクリメントし(S34)、パラレル・
インタフェース回路8を介して制御用ライン5にテスト
データ出力要求信号を出力し、ステップS26の動作に
戻る。すなわち、遅延時間を1クロックだけ増加させ
て、再びテストデータによる遅延時間の調整動作を続け
る。If they do not match, the latch timing of the data latch means 17 is not proper. Therefore,
The system control means 14 first determines the current test mode M.
The value of the internal variable Loop is compared with a predetermined limit value (S32), and if the value of Loop is less than the predetermined limit value, the printer 2 is checked. The system control means 14 of
A test data output request signal is output to the control line 5 via the interface circuit 8 (S33), and the value of t d is set to 1
Only the clock is incremented (S34) and the parallel
A test data output request signal is output to the control line 5 via the interface circuit 8, and the operation returns to step S26. That is, the delay time is increased by one clock and the delay time adjusting operation based on the test data is continued again.
【0063】なお、ステップS32において、システム
制御手段14が、内部変数Loopの値が所定の制限値
以上であると判断した場合、現在の伝送モードでは、も
はや適正な遅延時間を設定することはできないと判断さ
れるため、プリンタ2のシステム制御手段14は、パラ
レル・インタフェース回路8を介して、制御用ライン5
にキャリブレーションエラー信号を出力する(S4
2)。そして、tdの値を0に設定して(S43)、信
号タイミング補正プロセスを終了する。When the system control means 14 determines in step S32 that the value of the internal variable Loop is equal to or greater than the predetermined limit value, it is no longer possible to set an appropriate delay time in the current transmission mode. Therefore, the system control means 14 of the printer 2 controls the control line 5 via the parallel interface circuit 8.
A calibration error signal is output to (S4
2). Then, the value of t d is set to 0 (S43), and the signal timing correction process ends.
【0064】ステップS30において、テストデータ比
較手段21が受信データ格納手段18に記憶された受信
データのビットパターンと、テストデータのビットパタ
ーンとが一致すると判断した場合は、システム制御手段
14は、内部変数Modeが0か否かを判断し(S3
5)、この場合、Modeは0なので、システム制御手
段14は、適正な遅延時間の最小値t1に現在の遅延時
間tdを設定するとともに、テストモードModeを、
適正な遅延時間の最大値をテストするモード(Mode
=1)に設定する(S36)。そして、システム制御手
段14は、tdの値をインクリメントし(S37)、パ
ラレル・インタフェース回路8を介して制御用ライン5
にテストデータ出力要求信号を出力し、ステップS26
の動作に戻る。すなわち、遅延時間を1クロックだけ増
加させて、今度は、適正な遅延時間の最大値を調べるテ
ストモード(Mode=1)により、テストデータによ
る遅延時間の調整動作を開始する。In step S30, if the test data comparison means 21 determines that the bit pattern of the received data stored in the received data storage means 18 matches the bit pattern of the test data, the system control means 14 internally It is determined whether or not the variable Mode is 0 (S3
5) In this case, since Mode is 0, the system control means 14 sets the present delay time t d to the minimum value t 1 of the appropriate delay time and sets the test mode Mode to
Mode to test the maximum value of the appropriate delay time (Mode
= 1) (S36). Then, the system control means 14 increments the value of t d (S37), and controls the control line 5 via the parallel interface circuit 8.
The test data output request signal to the step S26.
Return to operation. That is, the delay time is increased by one clock, and in this time, in the test mode (Mode = 1) for checking the appropriate maximum value of the delay time, the delay time adjusting operation based on the test data is started.
【0065】適正な遅延時間の最大値を調べるテストモ
ードにおいてもステップS26〜S30までの動作は同
じであるため、説明は省略する。The operations in steps S26 to S30 are the same in the test mode for checking the appropriate maximum value of the delay time, and therefore the description thereof will be omitted.
【0066】ステップS30において、テストデータ比
較手段21が受信データ格納手段18に記憶された受信
データのビットパターンと、テストデータのビットパタ
ーンとが一致すると判断した場合は、システム制御手段
14は、内部変数Modeが0か否かを判断し(S3
5)、この場合、Modeは1なので、システム制御手
段14は、tdの値をインクリメントし(S37)、パ
ラレル・インタフェース回路8を介して制御用ライン5
にテストデータ出力要求信号を出力し、ステップS26
の動作に戻る。すなわち、遅延時間を1クロックだけ増
加させて、再びテストデータによる遅延時間の調整動作
を続ける。In step S30, if the test data comparison means 21 determines that the bit pattern of the received data stored in the received data storage means 18 matches the bit pattern of the test data, the system control means 14 internally It is determined whether or not the variable Mode is 0 (S3
5), in this case, Mode is 1, so the system control unit 14 increments the value of t d (S37), the line control through a parallel interface circuit 8 5
The test data output request signal to the step S26.
Return to operation. That is, the delay time is increased by one clock and the delay time adjusting operation based on the test data is continued again.
【0067】一方、ステップS30において、テストデ
ータ比較手段21が受信データ格納手段18に記憶され
た受信データのビットパターンと、テストデータのビッ
トパターンとが一致しないと判断した場合は、システム
制御手段14は、現在のテストモードModeを調べ
(S31)、この場合、Modeが1なので、システム
制御手段14は、適正な遅延時間の最大値t2に現在の
遅延時間tdを設定する(S39)。次に、システム制
御手段14は、適正な遅延時間の最小値t1と最大値t2
との平均値[(t1−t2)/2](但し、[ ]はガウ
ス記号)を求めてこれを変数tdに設定し(S40)、
遅延量設定手段20により遅延手段16に遅延時間とし
てtdを設定する(S41)。すなわち、適正な遅延時
間の最小値t1と最大値t2との中央の値を遅延時間とす
ることにより、データラッチ手段17のデータ信号のラ
ッチタイミングのマージンを最大とする。以上の動作が
終了すると、システム制御手段14は、キャリブレーシ
ョン・モードを解除して信号タイミング補正プロセスを
終了する。On the other hand, in step S30, when the test data comparison means 21 determines that the bit pattern of the received data stored in the received data storage means 18 and the bit pattern of the test data do not match, the system control means 14 examines the current test mode mode (S31), in this case, mode is 1, so the system control unit 14 sets the current delay time t d to the maximum value t 2 of the appropriate delay time (S39). Next, the system control means 14 causes the minimum value t 1 and the maximum value t 2 of the appropriate delay time to be appropriate.
And the average value [(t 1 −t 2 ) / 2] (where [] is a Gaussian symbol) is calculated and set as a variable t d (S40),
The delay amount setting means 20 sets t d as the delay time in the delay means 16 (S41). That is, the margin of the latch timing of the data signal of the data latch means 17 is maximized by setting the middle value of the minimum value t 1 and the maximum value t 2 of the appropriate delay time as the delay time. When the above operation is completed, the system control means 14 releases the calibration mode and ends the signal timing correction process.
【0068】図4は実施の形態2における信号タイミン
グ補正方法によりデータラッチ手段の遅延時間の調整を
行った後の各信号のタイミングチャートである。FIG. 4 is a timing chart of each signal after the delay time of the data latch means is adjusted by the signal timing correction method according to the second embodiment.
【0069】図4において、(a)はタイミング違反が
生じた時におけるデータ信号であり、(b)は遅延時間
補正前のストローブ信号、(c)は遅延時間補正後のス
トローブ信号、(d)は遅延時間補正前のビジー信号、
(e)は遅延時間補正後のビジー信号を表している。In FIG. 4, (a) is a data signal when a timing violation occurs, (b) is a strobe signal before delay time correction, (c) is a strobe signal after delay time correction, and (d). Is a busy signal before delay time correction,
(E) represents the busy signal after delay time correction.
【0070】図4の例では、ストローブ信号は、データ
信号が切り替わる直前にアサートされており、タイミン
グ違反が発生している。従って、遅延時間補正前では、
データラッチ手段17は、ストローブ信号がアサートさ
れた直後のA点でデータ信号をラッチし、受信データの
エラーを生じる。しかし、遅延時間の補正後は、データ
ラッチ手段17は、ストローブ信号がアサートされてか
ら遅延時間tdが経過した時点(B点)で、データ信号
をラッチするため、受信データのエラーを防止すること
ができることがわかる。In the example of FIG. 4, the strobe signal is asserted immediately before the data signal is switched, and a timing violation has occurred. Therefore, before delay time correction,
The data latch means 17 latches the data signal at point A immediately after the strobe signal is asserted, and an error occurs in the received data. However, after the correction of the delay time, the data latch means 17 latches the data signal at the time point (point B) after the delay time t d has passed since the strobe signal was asserted, so that an error in the received data is prevented. You can see that you can.
【0071】[0071]
【発明の効果】以上のように本発明の請求項1に記載の
データ転送システムによれば、送信側装置のストローブ
信号出力手段あるいはデータ出力手段が、例えば送信側
装置、受信側装置および両装置を接続するケーブルの特
性によって、ストローブ信号とデータ信号の位置関係が
ずれることで、タイミング違反を生じ、正確なデータ転
送が行われないような場合であっても、テストデータを
用いてストローブ信号がアサートされてからデータラッ
チ手段がデータ信号をラッチするまでの遅延時間を調整
することにより、正確なデータ転送が行われるように修
復することが可能なデータ転送システムを提供すること
ができる。As described above, according to the data transfer system of the first aspect of the present invention, the strobe signal output means or the data output means of the transmitting side device is, for example, the transmitting side device, the receiving side device, or both devices. Depending on the characteristics of the cable that connects the strobe signal and the data signal, the positional relationship between the strobe signal and the data signal may deviate, causing timing violations and preventing accurate data transfer. By adjusting the delay time from the assertion until the data latch means latches the data signal, it is possible to provide a data transfer system capable of being repaired so that accurate data transfer is performed.
【0072】請求項2に記載の発明によれば、データラ
ッチ手段が適正なタイミングでデータ信号をラッチする
ためのタイミングマージンが最大となる遅延時間を設定
することが可能となるため、偶発的にストローブ信号の
アサートのタイミングがずれた場合でも、受信データの
エラーが生じる確率を最小限に抑えることが可能なデー
タ転送システムを提供することができる。According to the second aspect of the present invention, it is possible to set the delay time that maximizes the timing margin for the data latching means to latch the data signal at the proper timing, so that it happens accidentally. It is possible to provide a data transfer system capable of minimizing the probability of an error in received data even when the timing of asserting the strobe signal is deviated.
【0073】請求項3に記載の発明によれば、タイミン
グマージン決定手段が適正な遅延時間の最小値を検出で
きない場合又は適正な遅延時間の最小値と最大値との差
が所定の閾値以下の場合において、転送モード変更手段
が、現在の転送モードを、現在の転送モードとは異なる
転送モードに変更するため、転送モードが適正でないこ
とが原因で生じる受信データのエラーを解消することが
可能なデータ転送システムを提供することができる。According to the third aspect of the invention, when the timing margin determining means cannot detect the minimum value of the proper delay time or the difference between the minimum value and the maximum value of the proper delay time is less than or equal to a predetermined threshold value. In this case, since the transfer mode changing unit changes the current transfer mode to a transfer mode different from the current transfer mode, it is possible to eliminate the error in the received data caused by the improper transfer mode. A data transfer system can be provided.
【0074】請求項4に記載の発明によれば、適正な遅
延時間の最小値と最大値の差(マージン幅)が狭い場合
においても、転送速度変更手段が転送速度変更要求信号
を出力し、転送速度変更手段が当該転送速度変更要求信
号に応じてデータ出力手段のデータ転送速度を遅くする
ため、マージン幅を広げることができ、データラッチ手
段が誤ったタイミングでデータ信号をラッチし誤った受
信データを出力することを回避することが可能なデータ
転送システムを提供することができる。According to the invention described in claim 4, the transfer rate changing means outputs the transfer rate changing request signal even when the difference (margin width) between the minimum value and the maximum value of the appropriate delay time is narrow. Since the transfer rate changing means slows the data transfer rate of the data output means in response to the transfer rate change request signal, the margin width can be widened, and the data latching means latches the data signal at the wrong timing and receives the wrong signal. A data transfer system capable of avoiding outputting data can be provided.
【0075】本発明の請求項5に記載のデータ転送シス
テムの信号タイミング補正方法によれば、送信側装置の
発信するストローブ信号あるいはデータ信号がタイミン
グ違反を生じている場合でも、テストデータを用いて遅
延時間を適正な値に調整することにより、受信側装置の
受信データのエラーを防止することが可能なデータ転送
システムの信号タイミング補正方法を提供することがで
きる。According to the signal timing correction method for the data transfer system of the fifth aspect of the present invention, the test data is used even when the strobe signal or the data signal transmitted from the transmitting side device has a timing violation. By adjusting the delay time to an appropriate value, it is possible to provide a signal timing correction method for a data transfer system capable of preventing an error in received data of a receiving side device.
【0076】請求項6に記載の発明によれば、データラ
ッチ手段が適正なタイミングでデータ信号をラッチする
ためのタイミングマージンが最大となる遅延時間を設定
することが可能となるため、偶発的にストローブ信号の
アサートのタイミングがずれた場合でも、受信データの
エラーが生じる確率を最小限に抑えることが可能なデー
タ転送システムの信号タイミング補正方法を提供するこ
とができる。According to the invention described in claim 6, since it becomes possible to set the delay time which maximizes the timing margin for the data latch means to latch the data signal at the proper timing, it is possible to set it by accident. It is possible to provide a signal timing correction method for a data transfer system that can minimize the probability of an error in received data even when the strobe signal is asserted at a different timing.
【0077】請求項7に記載の発明によれば、データ信
号の切り替え時にデータラインに発生するリンギングに
より、遅延時間を調整してもデータラッチ手段が適正な
タイミングでデータ信号をラッチすることができない場
合や、データラッチ手段が適正なタイミングでデータ信
号をラッチするためのタイミングマージンが所定の閾値
よりも狭く受信エラーが生じやすい場合においても、送
信側装置の転送モードを切り替えることによって、受信
エラーを防止することが可能なデータ転送システムの信
号タイミング補正方法を提供することができる。According to the invention described in claim 7, even if the delay time is adjusted, the data latch means cannot latch the data signal at an appropriate timing due to the ringing generated in the data line when the data signal is switched. In some cases, even when the timing margin for the data latching means to latch the data signal at an appropriate timing is narrower than a predetermined threshold value and a reception error is likely to occur, the reception error can be eliminated by switching the transfer mode of the transmission side device. It is possible to provide a signal timing correction method for a data transfer system, which can be prevented.
【0078】請求項8に記載の発明によれば、適正な遅
延時間の最小値と最大値の差(マージン幅)が狭い場合
においても、受信側装置が転送速度変更要求信号を出力
し、送信側装置が当該転送速度変更要求信号に応じてデ
ータ出力手段のデータ転送速度を遅くするため、マージ
ン幅を広げることができ、データラッチ手段が誤ったタ
イミングでデータ信号をラッチし誤った受信データを出
力することを回避することが可能なデータ転送システム
の信号タイミング補正方法を提供することができる。According to the invention described in claim 8, even when the difference (margin width) between the minimum value and the maximum value of the appropriate delay time is narrow, the receiving side device outputs the transfer rate change request signal and transmits it. Since the device on the side slows the data transfer rate of the data output means in response to the transfer rate change request signal, the margin width can be widened, and the data latch means latches the data signal at an incorrect timing to output incorrect received data. A signal timing correction method for a data transfer system capable of avoiding output can be provided.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明の一実施の形態におけるデータ転送シス
テムのブロック図FIG. 1 is a block diagram of a data transfer system according to an embodiment of the present invention.
【図2】本発明の実施の形態1に係るデータ転送システ
ムの信号タイミング補正方法を表すフローチャートFIG. 2 is a flowchart showing a signal timing correction method of the data transfer system according to the first embodiment of the present invention.
【図3】本発明の実施の形態2に係るデータ転送システ
ムの信号タイミング補正方法を表すフローチャートFIG. 3 is a flowchart showing a signal timing correction method of the data transfer system according to the second embodiment of the present invention.
【図4】実施の形態2における信号タイミング補正方法
によりデータラッチ手段の遅延時間の調整を行った後の
各信号のタイミングチャートFIG. 4 is a timing chart of each signal after the delay time of the data latch means is adjusted by the signal timing correction method according to the second embodiment.
【図5】従来のパラレル・インタフェースを用いたデー
タ転送システムのデータライン及びステータス・ライン
の信号のタイミングチャートFIG. 5 is a timing chart of signals of a data line and a status line of a data transfer system using a conventional parallel interface.
1 ホストコンピュータ 2 プリンタ 3 データライン 4 ストローブライン 5,6 制御用ライン 7,8 パラレル・インタフェース回路 9 システム制御手段 10 データ出力手段 11 ストローブ信号出力手段 12 タイミング補正開始信号出力手段 13 テストデータ出力手段 14 システム制御手段 15 データストローブ信号検出手段 16 遅延手段 17 データラッチ手段 18 受信データ格納手段 19 タイミング補正開始信号検出手段 20 遅延量設定手段 21 テストデータ比較手段 1 Host computer 2 printer 3 data lines 4 Strobe line 5,6 control line 7,8 parallel interface circuit 9 System control means 10 Data output means 11 Strobe signal output means 12 Timing correction start signal output means 13 Test data output means 14 System control means 15 Data strobe signal detecting means 16 delay means 17 Data Latch Means 18 Received data storage means 19 Timing correction start signal detecting means 20 Delay amount setting means 21 Test data comparison means
Claims (8)
前記データ信号が利用可能であることを示すストローブ
信号が伝送されるストローブラインと、制御用ラインと
を有するインタフェースにより接続された送信側装置及
び受信側装置を有し、前記送信側装置は、前記データラ
インに対して前記データ信号を出力するデータ出力手
段、及び前記データラインに前記データ信号が出力され
たときに、前記ストローブラインの前記ストローブ信号
をアサートするストローブ信号出力手段を具備し、前記
受信側装置は、前記ストローブ信号がアサートされてい
る期間内に、前記データラインのデータ信号をラッチし
て受信データとして出力するデータラッチ手段を具備し
ているデータ転送システムであって、前記送信側装置
は、所定のビットパターンからなるテストデータの出力
を要求するテストデータ出力要求信号が入力された場合
に、前記テストデータを生成し、前記データ出力手段に
より前記テストデータのデータ信号を前記データライン
に出力するテストデータ出力手段を具備し、前記受信側
装置は、前記ストローブラインのストローブ信号がアサ
ートされてから前記データラッチ手段が前記データライ
ンのデータ信号をラッチするまでの遅延時間を設定する
遅延量設定手段と、前記データラインに出力された前記
テストデータのデータ信号を前記データラッチ手段がラ
ッチすることによって出力する受信データのビットパタ
ーンと、前記テストデータのビットパターンとを比較し
て、両者が一致していない場合には、前記遅延量設定手
段により前記遅延時間を所定の時間だけ増加させるとと
もに、前記制御用ラインを通じて前記テストデータ出力
手段に対しテストデータ出力要求信号を出力する遅延時
間調整手段と、を具備していることを特徴とするデータ
転送システム。1. A data line for transmitting a data signal,
The transmission side device and the reception side device are connected by an interface having a strobe line for transmitting a strobe signal indicating that the data signal is available, and a control line, the transmission side device, The reception device further comprises data output means for outputting the data signal to a data line, and strobe signal output means for asserting the strobe signal of the strobe line when the data signal is output to the data line. The side device is a data transfer system including a data latch means for latching the data signal of the data line and outputting it as received data during a period in which the strobe signal is asserted. Is a test data requesting output of test data consisting of a predetermined bit pattern. When the output request signal is input, the test data output means is provided for generating the test data and outputting the data signal of the test data to the data line by the data output means. A delay amount setting means for setting a delay time from the assertion of the strobe signal of the strobe line to the latching of the data signal of the data line by the data latch means, and the data signal of the test data output to the data line. The bit pattern of the received data output by the data latching means latching the data and the bit pattern of the test data are compared. If they do not match, the delay time setting means causes the delay time Is increased for a predetermined time, and the Data transfer system, characterized in that to Todeta output means are provided with a delay time adjusting means for outputting a test data output request signal.
タ出力手段によって前記データラインに出力された前記
テストデータのデータ信号を前記データラッチ手段がラ
ッチすることによって出力する受信データのビットパタ
ーンと、前記テストデータのビットパターンとが一致す
る適正な遅延時間の最小値と最大値とを決定するタイミ
ングマージン決定手段と、前記マージン決定手段が決定
した前記適正な遅延時間の最小値と最大値との平均値
を、前記遅延量設定手段により前記遅延時間として設定
するタイミングマージン最大化手段と、からなることを
特徴とする請求項1に記載のデータ転送システム。2. A bit pattern of received data output by the delay time adjusting means when the data signal of the test data output to the data line by the test data output means is latched by the data latch means, and A timing margin determining unit that determines a minimum value and a maximum value of an appropriate delay time that match the bit pattern of the test data; and a minimum value and a maximum value of the appropriate delay time that are determined by the margin determining unit. The data transfer system according to claim 1, further comprising: a timing margin maximizing unit that sets an average value as the delay time by the delay amount setting unit.
ン決定手段が前記適正な遅延時間の最小値を検出できな
い場合又は前記適正な遅延時間の最小値と最大値との差
が所定の閾値以下の場合において、前記制御用ラインに
転送モード変更要求信号を出力する転送モード変更要求
手段を具備し、前記送信側装置は、前記制御用ラインに
前記転送モード変更要求信号が出力された場合、前記デ
ータ出力手段の転送モードを、現在の転送モードとは異
なる転送モードに変更する転送モード変更手段を具備し
ていることを特徴とする請求項2に記載のデータ転送シ
ステム。3. The receiving side device, when the timing margin determining means cannot detect the minimum value of the proper delay time or when the difference between the minimum value and the maximum value of the proper delay time is less than or equal to a predetermined threshold value. In this case, the transmission side device comprises a transfer mode change request means for outputting a transfer mode change request signal to the control line, and the transmitting side device, when the transfer mode change request signal is output to the control line, 3. The data transfer system according to claim 2, further comprising transfer mode changing means for changing the transfer mode of the output means to a transfer mode different from the current transfer mode.
ン決定手段が検出する前記適正な遅延時間の最小値と最
大値の差が所定の閾値以下の場合には、転送速度変更要
求信号を前記制御用ラインに出力する転送速度変更要求
手段を具備し、前記送信側装置は、前記制御用ラインに
出力された転送速度変更要求信号に従って、前記データ
出力手段のデータ転送速度を遅くする転送速度変更手段
を具備していることを特徴とする請求項2に記載のデー
タ転送システム。4. The receiving side device controls the transfer rate change request signal when the difference between the minimum value and the maximum value of the appropriate delay time detected by the timing margin determining means is less than a predetermined threshold value. Transmission rate change requesting means for outputting to the control line, the transmission side device slows down the data transfer rate of the data output means in accordance with the transfer rate change request signal output to the control line. The data transfer system according to claim 2, further comprising:
前記データ信号が利用可能であることを示すストローブ
信号が伝送されるストローブラインと、制御用ラインと
によって接続された送信側装置及び受信側装置を有し、
前記送信側装置は、前記データラインに対して前記デー
タ信号を出力するデータ出力手段、及び前記データライ
ンに前記データ信号が出力されているときに、前記スト
ローブラインの前記ストローブ信号をアサート又はネゲ
ートするストローブ信号出力手段を具備し、前記受信側
装置は、前記ストローブ信号がアサートされている期間
内に、前記データラインのデータ信号をラッチして受信
データとして出力するデータラッチ手段を具備している
データ転送システムにおいて、前記データラッチ手段が
データ信号をラッチするタイミングを補正する信号タイ
ミング補正方法であって、所定のビットパターンからな
るテストデータの出力を要求するテストデータ出力要求
信号が入力された場合に、前記送信側装置が、前記テス
トデータを生成し、前記データ出力手段により前記テス
トデータのデータ信号を前記データラインに出力するテ
ストデータ出力ステップと、前記ストローブ信号がアサ
ートされてから所定の遅延時間が経過した時点で、前記
データラッチ手段が、前記データラインに出力された前
記テストデータのデータ信号をラッチして受信データと
して出力するデータ受信ステップと、前記受信側装置
が、前記受信データのビットパターンと前記テストデー
タのビットパターンとを比較して、両者が一致していな
い場合には、前記遅延時間を所定の時間だけ増加させる
とともに、前記制御用ラインを通じて前記送信側装置に
対しテストデータ出力要求信号を出力する遅延時間調整
ステップと、を有することを特徴とするデータ転送シス
テムの信号タイミング補正方法。5. A data line for transmitting a data signal,
A strobe line for transmitting a strobe signal indicating that the data signal is available, and a transmission side device and a reception side device connected by a control line,
The transmission side device asserts or negates the strobe signal of the strobe line when the data signal is output to the data line and the data output means that outputs the data signal to the data line. Data having a strobe signal output means, and the receiving side device having a data latch means for latching the data signal of the data line and outputting it as received data within a period in which the strobe signal is asserted. In a transfer system, there is provided a signal timing correction method for correcting the timing at which the data latch means latches a data signal, when a test data output request signal requesting output of test data having a predetermined bit pattern is input. , The transmitting device generates the test data At the test data output step of outputting the data signal of the test data to the data line by the data output means, and at a time point when a predetermined delay time has elapsed after the strobe signal was asserted, A data receiving step of latching the data signal of the test data output to the line and outputting it as received data, the receiving side device compares the bit pattern of the received data with the bit pattern of the test data, If the two do not match, the delay time is increased by a predetermined time, and a delay time adjusting step of outputting a test data output request signal to the transmitting side device through the control line is included. A method for correcting signal timing in a data transfer system, comprising:
手段によって前記データラインに出力された前記テスト
データのデータ信号を前記データラッチ手段がラッチす
ることによって出力する受信データのビットパターン
と、前記テストデータのビットパターンとが一致する適
正な遅延時間の最小値と最大値とを決定するタイミング
マージン決定ステップと、前記受信側装置が、前記マー
ジン決定ステップにおいて決定した前記適正な遅延時間
の最小値と最大値との平均値を、前記遅延時間として設
定するタイミングマージン最大化ステップと、を有する
ことを特徴とする請求項5に記載のデータ転送システム
の信号タイミング補正方法。6. A bit pattern of received data output by the data latch means latching the data signal of the test data output to the data line by the test data output means by the receiving side device, and A timing margin determining step of determining a minimum value and a maximum value of an appropriate delay time that matches a bit pattern of test data, and the receiving side device, the minimum value of the appropriate delay time determined in the margin determining step. 6. A signal timing correction method for a data transfer system according to claim 5, further comprising a timing margin maximizing step of setting an average value of the maximum value and the maximum value as the delay time.
いて、前記適正な遅延時間の最小値を検出できない場合
又は前記適正な遅延時間の最小値と最大値との差が所定
の閾値以下の場合において、前記受信側装置が、前記制
御用ラインに転送モード変更要求信号を出力する転送モ
ード変更要求ステップと、前記制御用ラインに前記転送
モード変更要求信号が出力された場合、前記送信側装置
が、前記データ出力手段の転送モードを、現在の転送モ
ードとは異なる転送モードに変更する転送モード変更ス
テップと、を有することを特徴とする請求項6に記載の
データ転送システムの信号タイミング補正方法。7. The reception when the minimum value of the proper delay time cannot be detected or the difference between the minimum value and the maximum value of the proper delay time is less than or equal to a predetermined threshold value in the timing margin determining step. The transmission side device outputs the transfer mode change request signal to the control line, and the transmission side device outputs the data when the transfer mode change request signal is output to the control line. 7. The signal timing correction method for a data transfer system according to claim 6, further comprising a transfer mode changing step of changing the transfer mode of the means to a transfer mode different from the current transfer mode.
いて検出される前記適正な遅延時間の最小値と最大値の
差が所定の閾値以下の場合には、前記受信側装置が、転
送速度変更要求信号を前記制御用ラインに出力する転送
速度変更要求ステップと、前記制御用ラインに出力され
た転送速度変更要求信号に従って、前記送信側装置が、
前記データ出力手段のデータ転送速度を遅くする転送速
度変更ステップと、を有していることを特徴とする請求
項6に記載のデータ転送システムの信号タイミング補正
方法。8. When the difference between the minimum value and the maximum value of the appropriate delay time detected in the timing margin determining step is less than or equal to a predetermined threshold value, the receiving side device sends a transfer rate change request signal to the transfer rate change request signal. According to the transfer rate change request signal output to the control line and the transfer rate change request signal output to the control line, the transmission side device,
7. A signal timing correction method for a data transfer system according to claim 6, further comprising: a transfer rate changing step of reducing a data transfer rate of the data output means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002139599A JP2003330881A (en) | 2002-05-15 | 2002-05-15 | Data transfer system and signal timing correction method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002139599A JP2003330881A (en) | 2002-05-15 | 2002-05-15 | Data transfer system and signal timing correction method thereof |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2003330881A true JP2003330881A (en) | 2003-11-21 |
Family
ID=29700699
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002139599A Pending JP2003330881A (en) | 2002-05-15 | 2002-05-15 | Data transfer system and signal timing correction method thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2003330881A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007041732A (en) * | 2005-08-01 | 2007-02-15 | Sharp Corp | Data receiving apparatus, data transmitting apparatus, data transfer system, program, and computer-readable recording medium |
| JP2007305112A (en) * | 2006-03-31 | 2007-11-22 | Nvidia Corp | Data interface calibration |
| JP2007304808A (en) * | 2006-05-10 | 2007-11-22 | Mitsubishi Electric Corp | Semiconductor integrated circuit device and data transfer failure analysis method |
| US7529712B2 (en) | 2002-07-16 | 2009-05-05 | Yangaroo Inc. | Content distribution system and method |
-
2002
- 2002-05-15 JP JP2002139599A patent/JP2003330881A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7529712B2 (en) | 2002-07-16 | 2009-05-05 | Yangaroo Inc. | Content distribution system and method |
| JP2007041732A (en) * | 2005-08-01 | 2007-02-15 | Sharp Corp | Data receiving apparatus, data transmitting apparatus, data transfer system, program, and computer-readable recording medium |
| JP2007305112A (en) * | 2006-03-31 | 2007-11-22 | Nvidia Corp | Data interface calibration |
| JP2007304808A (en) * | 2006-05-10 | 2007-11-22 | Mitsubishi Electric Corp | Semiconductor integrated circuit device and data transfer failure analysis method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6807907B2 (en) | Printing system for carrying out energy conservation operation | |
| KR20150055250A (en) | Timing controller, and display system including the same | |
| CN115967474B (en) | Error code detection device and error code detection method | |
| TWI781553B (en) | Security device and method for data security | |
| US10177893B2 (en) | Serial communication system | |
| US5680596A (en) | Data transfer apparatus with automatic transmission rate adjustment | |
| JP2003330881A (en) | Data transfer system and signal timing correction method thereof | |
| US20040105116A1 (en) | Method and apparatus for informing print error of a wireless printer | |
| JP7399146B2 (en) | Error detection device and error detection method | |
| CN101171788A (en) | Adjust the timing between the strobe signal and the data signal | |
| JP2012065306A (en) | Image processing system, image processing method, image processing program, and recording medium | |
| JP2003177639A (en) | Image forming device and method of operating the same | |
| US8245089B2 (en) | Transmission device, image data transmission system and transmission method | |
| TWI453588B (en) | Sampling phase calibratin method, storage system utilizing the sampling phase calibratin method | |
| JP2005182380A (en) | Recording device, electronic equipment | |
| JP5768540B2 (en) | Image processing apparatus and data transfer management method | |
| EP2416240B1 (en) | Terminal device | |
| JP2021057666A (en) | Transmission device, transmission method, and program | |
| US20180139350A1 (en) | Information processing apparatus, information processing method, and medium | |
| JP3423376B2 (en) | Information processing apparatus and control method therefor | |
| JP3658151B2 (en) | Printing device and printing method | |
| JPH0973373A (en) | Parallel interface | |
| CN116594820A (en) | Serial interface testing method, device, equipment and medium | |
| CN117520243A (en) | Method, device, equipment and medium for embedded UART serial double-line communication | |
| CN117031903A (en) | Fixing control method, device and image forming equipment |