JPH09230968A - Data communication device and external interface control method - Google Patents

Data communication device and external interface control method

Info

Publication number
JPH09230968A
JPH09230968A JP3492696A JP3492696A JPH09230968A JP H09230968 A JPH09230968 A JP H09230968A JP 3492696 A JP3492696 A JP 3492696A JP 3492696 A JP3492696 A JP 3492696A JP H09230968 A JPH09230968 A JP H09230968A
Authority
JP
Japan
Prior art keywords
signal
data
external
buffer
data transfer
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.)
Withdrawn
Application number
JP3492696A
Other languages
Japanese (ja)
Inventor
Atsushi Otani
篤志 大谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP3492696A priority Critical patent/JPH09230968A/en
Publication of JPH09230968A publication Critical patent/JPH09230968A/en
Withdrawn legal-status Critical Current

Links

Abstract

(57)【要約】 【課題】 オープンコレクタタイプのバッファを用いた
系では、外部i/f上で高速なデータ転送を行うことが
難しく、またトーテムポールタイプのバッファを用いた
系では、接続ケーブルとレシーバー側の条件によっては
駆動能力を上回る過渡電流又は定常電流が流れてしま
う。 【解決手段】 パラレルインターフェース(i/f)を
介して接続された相手機のレシーバ条件に応じて、パラ
レルポート制御部102にてバッファIC部A,B10
1の何れかを選択し、選択されたバッファIC部A10
1a又はバッファIC部B101bを介してデータ転送
を行う。
(57) Abstract: It is difficult to perform high-speed data transfer on an external i / f in a system using an open collector type buffer, and in a system using a totem pole type buffer, a connection cable Depending on the conditions on the receiver side and the receiver side, a transient current or a steady current that exceeds the driving capability will flow. SOLUTION: Buffer IC sections A and B10 are provided in a parallel port control section 102 according to a receiver condition of a partner machine connected via a parallel interface (i / f).
1 is selected, and the selected buffer IC unit A10
Data is transferred via 1a or the buffer IC unit B101b.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、少なくとも2つの
外部インターフェース(i/f)を有するデータ通信装
置及び外部インターフェース制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication device having at least two external interfaces (i / f) and an external interface control method.

【0002】[0002]

【従来の技術】パーソナルコンピュータ等の端末と接続
し、データ転送を行うファクシミリ、プリンター等にお
いて、セントロニクスi/fとして知られるパラレルi
/fを用いたものでは、データ転送に関するハンドシェ
イクタイミングでは、固定又はユーザーの設定によって
いくつかのタイミング設定が可能となっている。
2. Description of the Related Art In a facsimile, a printer or the like which is connected to a terminal such as a personal computer to transfer data, a parallel i known as Centronics i / f.
With / f, some handshake timings related to data transfer can be fixed or set by the user.

【0003】また、セントロニクスi/fの信号駆動用
のバッファICとしては、一般的にオープンコレクタタ
イプのバッファが用いられている。
An open collector type buffer is generally used as the buffer IC for driving the Centronics i / f signal.

【0004】[0004]

【発明が解決しようとしている課題】しかし、オープン
コレクタタイプのバッファでは、外付けの抵抗器とレシ
ーバ側の終端条件により、信号レベルのスイッチング速
度が大きく変化してしまう。スイッチング速度の高速化
方法として、外付け抵抗器の抵抗値を小さくすることが
あげられるが、消費電力が増加する上、大幅な高速化は
見込めない。
However, in the open collector type buffer, the switching speed of the signal level greatly changes depending on the external resistor and the termination condition on the receiver side. As a method of increasing the switching speed, it is possible to reduce the resistance value of the external resistor. However, the power consumption increases and the speed cannot be significantly increased.

【0005】このため、オープンコレクタタイプのバッ
ファを用いた系では、外部i/f上で高速なデータ転送
を行うことが難しく、データ転送に係わる信号変化の間
隔を大きく取る必要性も加わり、データの転送速度が遅
くなってしまう。
For this reason, in a system using an open collector type buffer, it is difficult to perform high-speed data transfer on the external i / f, and it is necessary to increase the interval between signal changes related to data transfer. Transfer speed will be slower.

【0006】そこで、信号レベルのスイッチング速度を
高速化するために、トーテムポール出力のバッファを用
いても良いが、接続ケーブルとレシーバー側の条件によ
っては駆動能力を上回る過渡電流又は定常電流が流れて
しまう可能性があった。
Therefore, in order to increase the switching speed of the signal level, a totem pole output buffer may be used. However, depending on the conditions of the connection cable and the receiver side, a transient current or a steady current exceeding the driving capability may flow. There was a possibility that it would end.

【0007】このような事情により、スイッチング速度
を犠牲にしても、全てのパーソナルコンピュータとの接
続性を考慮してオープンコレクタタイプのバッファを用
いていたが、近年ではパラレルポートを用いて高速な双
方向の通信を行いたいという要求が増えてきている。
Under these circumstances, even if the switching speed is sacrificed, an open collector type buffer has been used in consideration of the connectivity with all personal computers, but in recent years, a parallel port has been used to achieve both high speed operation. There is an increasing demand for communication aimed at people.

【0008】本発明は、上記課題を解決するためになさ
れたもので、接続された相手機器のレシーバ条件に応じ
て所望の外部インターフェースを選択し、高速なデータ
転送を可能とするデータ通信装置及び外部インターフェ
ース制御方法を提供することを目的とする。
The present invention has been made to solve the above problems, and selects a desired external interface according to the receiver condition of a connected partner device, and a data communication device which enables high-speed data transfer. It is intended to provide an external interface control method.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明は少なくとも2つの外部インターフェース
(i/f)を有する装置の外部インターフェース制御方
法であって、接続された相手機器のレシーバ条件に応じ
て所望の外部i/fを選択し、選択された外部i/fを
介してデータ転送を行う、各工程を有することを特徴と
する。
In order to achieve the above object, the present invention is a method for controlling an external interface of an apparatus having at least two external interfaces (i / f), which is a receiver condition of a connected counterpart device. It is characterized by including respective steps of selecting a desired external i / f according to the above, and performing data transfer via the selected external i / f.

【0010】また、本発明は、少なくとも2つの外部イ
ンターフェース(i/f)を有するデータ通信装置であ
って、接続された相手機器のレシーバ条件に応じて所望
の外部i/fを選択する選択手段と、前記選択手段によ
り選択された外部i/fを介してデータ通信を行う通信
手段とを有することを特徴とする。
The present invention is also a data communication apparatus having at least two external interfaces (i / f), and selecting means for selecting a desired external i / f according to the receiver condition of the connected counterpart device. And communication means for performing data communication via the external i / f selected by the selection means.

【0011】かかる構成において、接続された相手機器
のレシーバ条件に応じて所望の外部i/fを選択し、選
択された外部i/fを介して高速なデータ通信を行う。
In such a configuration, a desired external i / f is selected according to the receiver condition of the connected counterpart device, and high-speed data communication is performed via the selected external i / f.

【0012】[0012]

【発明の実施の形態】以下、図面を参照しながら本発明
に係る実施の形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0013】図1は、双方向セントロ・インターフェー
ス(i/f)を有するファクシミリ装置の構成を示すブ
ロック図である。図において、101aはパラレルポー
ト制御部とi/f入出力との間でバッファリングを行う
バッファIC部a、101bはパラレルポート制御部と
i/f入出力との間でバッファリングを行うバッファI
C部b、102はパラレルポートのデータ転送制御を行
うパラレルポート制御部である。103は原稿の読み取
りを行う読取り部、104はデータの符号化/復号化を
行うコーデック(CODEC)である。
FIG. 1 is a block diagram showing the configuration of a facsimile apparatus having a bidirectional Centro interface (i / f). In the figure, 101a is a buffer IC section a which performs buffering between the parallel port control section and i / f input / output, and 101b is a buffer I which performs buffering between the parallel port control section and i / f input / output.
C units b and 102 are parallel port control units that perform data transfer control of the parallel port. Reference numeral 103 is a reading unit for reading an original, and 104 is a codec (CODEC) for encoding / decoding data.

【0014】105は一般公衆回線との網制御を行うN
CU、106は送受信データの変調・復調を行うモデム
(MODEM)である。107は各部からのDMA転送
要求に対して後述する主制御部とのバス使用調停とDM
A転送を制御するDMA制御部、108は画像データを
蓄積する画像メモリ、109はシステム全体の制御を行
う主制御部である。110は画像データの記録を行う記
録部、そして、111はオペレータがシステムの操作を
行う操作部である。
Reference numeral 105 denotes N for performing network control with a general public line.
The CU 106 is a modem (MODEM) that modulates / demodulates transmission / reception data. Reference numeral 107 denotes a bus use arbitration with a main control unit (to be described later) and DM in response to a DMA transfer request from each unit
A DMA control unit that controls A transfer, 108 is an image memory that stores image data, and 109 is a main control unit that controls the entire system. Reference numeral 110 is a recording unit for recording image data, and 111 is an operation unit for an operator to operate the system.

【0015】また、図中のBUFSELはバッファIC
部101に対するバッファタイプの切り替えを行うバッ
ファ選択信号、XPIFENはバッファIC部101に
対してi/fバスの活性を指示するi/fバスイネーブ
ル信号、PIFDIRはバッファIC部101に対して
i/fバスの入出力方向を指定するためのi/fバス方
向指定信号、HLDREQは主制御部109に対するバ
ス使用要求信号、XHLDACKは主制御部109から
のバス使用要求受付信号である。DMAREQ1はパラ
レルポート制御部102からDMA制御部107に対す
るDMA転送要求信号、XDMAACK1はDMA制御
部107からのDMA転送受付信号、DMAREQ2は
CODEC104からDMA制御部107に対するDM
A転送要求信号、XDMAACK2はDMA制御部10
7からのDMA転送受付信号、LASTはDMA制御部
107からの最終データ転送終了信号、INTPIFは
主制御部109への割り込み要求信号、INTDKCは
割り込み信号INTPIFの発生を遅延させる割り込み
要求信号遅延クロックである。そして、STSO−4:
0はi/f出力ステータス信号(0−4)、STSI−
3:0はi/f入力ステータス(0−3)、DATA−
7:0はi/fパラレルデータバス(8)である。
BUFSEL in the figure is a buffer IC
Buffer selection signal for switching the buffer type for the unit 101, XPIFEN is an i / f bus enable signal for instructing the buffer IC unit 101 to activate the i / f bus, and PIFDIR is i / f for the buffer IC unit 101. An i / f bus direction designation signal for designating the input / output direction of the bus, HLDREQ is a bus use request signal to the main control unit 109, and XHLDACK is a bus use request acceptance signal from the main control unit 109. DMAREQ1 is a DMA transfer request signal from the parallel port control unit 102 to the DMA control unit 107, XDMAACK1 is a DMA transfer acceptance signal from the DMA control unit 107, and DMAREQ2 is a DM from the CODEC 104 to the DMA control unit 107.
The A transfer request signal and XDMAACK2 are DMA control units 10
7 is a DMA transfer acceptance signal, LAST is a final data transfer end signal from the DMA control unit 107, INTPIF is an interrupt request signal to the main control unit 109, INTDKC is an interrupt request signal delay clock that delays the generation of the interrupt signal INTPIF. is there. And STSO-4:
0 is the i / f output status signal (0-4), STSI-
3: 0 indicates i / f input status (0-3), DATA-
7: 0 is an i / f parallel data bus (8).

【0016】図2は、パラレルポート制御部102の詳
細な構成を示すブロック図である。図において、201
は受信時のデータ転送に関わるハンドシェイクを行う受
信制御部、202は送信時のデータ転送に関わるハンド
シェイクを行う送信制御部、203は送受信時のタイミ
ングを生成するTPIタイマである。204はi/fス
テータス信号の生成を行うステータス制御部、205は
主制御部への割り込み信号を生成する割り込み制御部、
206は送受信データのバッファリングを行うデータバ
ッファである。207はDMA要求の制御を行うDMA
制御部、208は制御レジスタの設定により動作モード
の生成を行うモード生成部、209は制御レジスタとデ
ータバッファのリード/ライトを制御するR/W制御
部、そして、210は送受信データ及び動作指定のため
の制御レジスタである。
FIG. 2 is a block diagram showing a detailed configuration of the parallel port control unit 102. In the figure, 201
Is a reception control unit that performs a handshake related to data transfer during reception, 202 is a transmission control unit that performs a handshake related to data transfer during transmission, and 203 is a TPI timer that generates timing during transmission and reception. Reference numeral 204 is a status control unit that generates an i / f status signal, 205 is an interrupt control unit that generates an interrupt signal to the main control unit,
Reference numeral 206 denotes a data buffer that buffers transmitted / received data. 207 is a DMA for controlling a DMA request
A control unit, 208 is a mode generation unit that generates an operation mode by setting a control register, 209 is an R / W control unit that controls read / write of the control register and the data buffer, and 210 is transmission / reception data and operation designation Is a control register for.

【0017】また、図中のIFMODはパラレルポート
制御部の動作モードを指定するインターフェースモード
指示信号、R/Wは主制御部109からパラレルポート
制御部102に対するリード/ライト信号である。
IFMOD in the drawing is an interface mode instruction signal for designating the operation mode of the parallel port control unit, and R / W is a read / write signal from the main control unit 109 to the parallel port control unit 102.

【0018】次に、実施形態におけるパラレルポート制
御部102の動作を説明する。尚、実施形態では、IE
EE−P1284規格に規定されるデータの転送方法の
うち、次の4つの動作モードに準拠した動作が可能であ
る。
Next, the operation of the parallel port control unit 102 in the embodiment will be described. In the embodiment, the IE
Among the data transfer methods defined in the EE-P1284 standard, the operation based on the following four operation modes is possible.

【0019】(1)コンパチビリティ(Compatibility
)モード (2)ニブル(NIBBLE)モード (3)バイト(BYTE)モード (4)ECP(ECP Fwd/ECP Rev)モード 上記の各モードに対応して動作を行うために、パラレル
ポート制御部102内の動作モードは制御レジスタ21
0の設定に従って、モード生成部208が生成するIF
MOD信号によって指定される。パラレルポート制御部
102はIFMOD信号によってデータ送/受信の切り
替えとデータ転送に関わる外部機器とのハンドシェイク
の形式の切り替えを行う。バッファIC部101A、1
01Bの切り替えはパラレルポート制御部102内の制
御レジスタ210の設定により、生成されるBUFSE
L信号によって行われる。
(1) Compatibility
) Mode (2) Nibble mode (3) Byte (BYTE) mode (4) ECP (ECP Fwd / ECP Rev) mode In the parallel port control unit 102 in order to operate in accordance with each of the above modes. The operation mode of the control register 21
The IF generated by the mode generation unit 208 according to the setting of 0
It is specified by the MOD signal. The parallel port control unit 102 performs switching of data transmission / reception and switching of the handshake format with an external device related to data transfer by the IFMOD signal. Buffer IC section 101A, 1
01B is switched by the BUFSE generated by the setting of the control register 210 in the parallel port control unit 102.
It is performed by the L signal.

【0020】表1は、上記の各モードにおける入出力ス
テータス信号(STSO−4:0,STSI−3:0)
の信号名と信号定義の対応表である。
Table 1 shows the input / output status signals (STSO-4: 0, STSI-3: 0) in each of the above modes.
3 is a correspondence table of signal names and signal definitions of.

【0021】[0021]

【表1】 [Table 1]

【0022】以下、各モード毎にデータの転送レート規
定方法について説明する。
The data transfer rate defining method for each mode will be described below.

【0023】[コンパチビリティモード]制御レジスタ
210に対応するモード設定を行うことにより、パラレ
ルポート制御部102内の動作モードがコンパチビリテ
ィモードとなる。
[Compatibility Mode] By setting the mode corresponding to the control register 210, the operation mode in the parallel port control unit 102 becomes the compatibility mode.

【0024】図3は、データストローブのタイミングと
してnStrobe信号の立上がり/立ち下がりに設定
したときのBusy信号の応答タイミングを示す図であ
る。図3に示す(A)は立ち下がり、同(B)は立上が
り設定時の応答タイミングである。
FIG. 3 is a diagram showing the response timing of the Busy signal when the rising / falling of the nStrobe signal is set as the data strobe timing. FIG. 3A shows the response timing at the fall, and FIG. 3B shows the response timing at the time of the rise setting.

【0025】ホスト側からの信号nStrobe信号の
変化によってデータのストローブは行われるが、変化エ
ッジの立ち下がり・立ち上がりの選択は制御レジスタ2
10の設定により変更することができる。またBusy
信号は、上述の立ち上がり・下がりの設定に応じたnS
trobe信号の変化と同期してHになる。
Although the data strobe is performed by the change of the signal nStrobe signal from the host side, the control register 2 selects the falling edge or the rising edge of the change edge.
It can be changed by setting 10. Busy again
The signal is nS according to the above-mentioned rising / falling setting.
It goes high in synchronization with the change in the probe signal.

【0026】また、Busy,nAck信号の応答タイ
ミングはTP1タイマで指定される時間(T1≧0.5
uS)とBusy,nAck信号それぞれに対して割り
当てられる、4ビットのシフトレジスタの設定によって
決定される。図3には、TP1タイマと2つの4ビット
シフトレジスタの設定による応答タイミングの変化も示
されている。シフトレジスタはT1時間毎に1ビットシ
フトし、最上位ビットの値がBusy,nAck信号の
出力に対応する。TP1タイマのカウント開始はnSt
robe信号がHになってからであるため、Busy信
号L→Hの変化以降の、Busy,nAck信号の応答
タイミングはストローブエッジの設定によらない。この
タイミング制御はデータバッファ部206に空きが無い
ときには即時には行われず、Busy状態のステータス
を送出し、データバッファ206に空きができると、設
定に従った応答を行う。このように、Busy,nAc
k信号の応答タイミングを制御することにより、最大の
受信レートを規定することができる。
The response timing of the Busy, nAck signal is the time designated by the TP1 timer (T1 ≧ 0.5).
uS) and Busy, nAck signals, respectively, and is determined by the setting of a 4-bit shift register. FIG. 3 also shows changes in the response timing due to the settings of the TP1 timer and the two 4-bit shift registers. The shift register shifts by one bit every T1 time, and the value of the most significant bit corresponds to the output of the Busy, nAck signal. Start of counting of TP1 timer is nSt
Since the robe signal becomes H, the response timing of the Busy and nAck signals after the change of the Busy signal L → H does not depend on the strobe edge setting. This timing control is not performed immediately when there is no free space in the data buffer unit 206. A status in the busy state is sent out, and when there is free space in the data buffer unit 206, a response according to the setting is performed. In this way, Busy, nAc
The maximum reception rate can be defined by controlling the response timing of the k signal.

【0027】[ニブルモード]制御レジスタ210に対
応するモード設定を行うことにより、パラレルポート制
御部102内の動作モードがニブルモードとなる。
[Nibble Mode] By setting the mode corresponding to the control register 210, the operation mode in the parallel port control unit 102 becomes the nibble mode.

【0028】図4は、データ送信時のステータス応答の
タイミングを示す図である。以下、ニブルモードにおい
てデータ送信時の処理について説明する。
FIG. 4 is a diagram showing the timing of the status response at the time of data transmission. The process of transmitting data in the nibble mode will be described below.

【0029】データを送信バッファに書き込み後、ホス
ト側のステータスがアイドリングになると下位Nibb
leをセットし、基本周期を生成するTP1タイマで指
定された時間(Tp≧0.5uS)経過後、Ptrcl
k信号をLにする。ホストからHostBusy信号の
応答があると、直ちにPtrClk信号をHにする。こ
れと同時に、送出ステータスラインの送出信号をデータ
からプリンタステータスに切り替える。そして、ホスト
のHostBusy信号がLになると、上位Nibbl
eデータをセットし、TP時間経過後、Ptrclk信
号をLにする。また、ホストからHostBusy信号
の応答があると、その時点からTP時間経過後に、送出
ステータスラインの送出信号をデータからプリンタステ
ータスに切り替える。複数バイトを送信するにはこの処
理を繰り返す。このように、TP時間を制御することに
より、最大の送信レートを規定することができる。
After the data is written in the transmission buffer, when the status on the host side becomes idling, the lower Nibb
After le is set and the time (Tp ≧ 0.5uS) specified by the TP1 timer for generating the basic period has elapsed, Ptrcl
The k signal is set to L. When the HostBus signal is returned from the host, the PtrClk signal is immediately set to H. At the same time, the transmission signal on the transmission status line is switched from data to printer status. Then, when the host Busy signal of the host becomes L, the upper Nibbl
e data is set, and the Ptrclk signal is set to L after the TP time has elapsed. When the Host Busy signal is returned from the host, the sending signal of the sending status line is switched from data to printer status after the TP time has elapsed from that point. Repeat this process to send multiple bytes. In this way, by controlling the TP time, the maximum transmission rate can be defined.

【0030】[バイトモード]制御レジスタ210に対
応するモード設定を行うことにより、パラレルポート制
御部102内の動作モードがバイトモードとなる。
[Byte mode] By setting the mode corresponding to the control register 210, the operation mode in the parallel port control unit 102 becomes the byte mode.

【0031】図5は、送信時のステータス応答のタイミ
ングを示す図である。以下、バイトモードにおけるデー
タ送信時の処理について説明する。
FIG. 5 is a diagram showing the timing of status response during transmission. Hereinafter, a process at the time of transmitting data in the byte mode will be described.

【0032】データを送信バッファに書き込み後、ホス
ト側のステータスがアイドリングになるとデータバスに
データをセットし、基本周期を生成するTP1タイマで
規定された時間(Tp≧0.5uS)経過後、Ptrc
lk信号をLにする。そして、ホストのHostBus
y信号の応答からTP時間経過後にPtrclk信号を
Hにする。このホストのHostBusy信号がHの間
に、HostClkのL→Hヘ立ち上がりが有ると、1
バイトの転送が終了する。また、複数バイトを送信する
時は、HostBusy信号がLになるのを待ってデー
タをセットし、以降同じ処理を繰り返す。このように、
TP時間を制御することにより、最大の送信レートを規
定することができる。
After writing the data in the transmission buffer, when the status on the host side becomes idling, the data is set in the data bus, and after the time (Tp ≧ 0.5 uS) specified by the TP1 timer for generating the basic period elapses, Ptrc
The lk signal is set to L. And the host HostBus
The Ptrclk signal is set to H after TP time has elapsed from the response of the y signal. While the HostBusy signal of this host is H, if there is a rise of HostClk from L to H, 1
The byte transfer ends. Further, when transmitting a plurality of bytes, data is set after waiting for the HostBusy signal to become L, and the same processing is repeated thereafter. in this way,
By controlling the TP time, the maximum transmission rate can be defined.

【0033】[ECPモード]制御レジスタ210に対
応するモード設定を行うことにより、パラレルポート制
御部102内の動作モードがECPモードとなる。EC
Pモードには、送・受信の2モードが定義されており、
ECPモードの設定に合わせて送受信の設定をする必要
がある。以下、図6を参照しながらECPモードのデー
タの送受信制御について述べる。
[ECP mode] By setting the mode corresponding to the control register 210, the operation mode in the parallel port control unit 102 becomes the ECP mode. EC
Two modes of transmission and reception are defined in P mode,
It is necessary to set the transmission / reception according to the setting of the ECP mode. Hereinafter, transmission / reception control of data in the ECP mode will be described with reference to FIG.

【0034】(ECP Fwd)−受信− 図6に示す(A)は、ECP Fwdモード時のステー
タス応答タイミングを示す図であり、この図をもとに、
ECP Fwdモードのデータ受信時の制御を説明す
る。
(ECP Fwd) -Reception- (A) shown in FIG. 6 is a diagram showing the status response timing in the ECP Fwd mode. Based on this diagram,
The control when receiving data in the ECP Fwd mode will be described.

【0035】ホスト側からの信号HostClk信号の
変化によってデータをストローブするが、変化エッジの
立ち下がり・立ち上がりの選択は制御レジスタ210の
設定により変更することができる。また、PtrBus
y信号は上述の立ち上がり・下がりの設定によらず、H
ostClk信号の立ち下がりに同期してHになる。ま
た、前述したコンパチビリティモードと同様に、Ptr
Busy信号の応答タイミングはTP1タイマで指定さ
れる時間(T1≧0uS)とBusy信号制御に対して
割り当てられる4ビットのシフトレジスタの設定によっ
て決定される(T1×1〜4の範囲)。タイミング制御
は、データバッファ206に空きが無いときには即座に
は行われず、Busy状態のステータスを送出し、デー
タバッファ206に空きができると、設定に従った応答
を行う。このように、Busy信号の応答タイミングを
制御することにより、最大の受信レートを規定すること
ができる。
The data is strobed by the change of the signal HostClk signal from the host side, and the selection of the falling edge or the rising edge of the change edge can be changed by the setting of the control register 210. Also, PtrBus
The y signal does not depend on the above-mentioned rising and falling settings, and is H
It goes high in synchronization with the fall of the ostClk signal. Also, as in the compatibility mode described above, Ptr
The response timing of the Busy signal is determined by the time designated by the TP1 timer (T1 ≧ 0 uS) and the setting of the 4-bit shift register assigned for Busy signal control (range of T1 × 1 to 4). Timing control is not performed immediately when there is no free space in the data buffer 206, the status in the Busy state is sent out, and when there is free space in the data buffer 206, a response according to the setting is performed. In this way, by controlling the response timing of the Busy signal, the maximum reception rate can be defined.

【0036】(ECP Rev)−送信− 図6に示す(B)は、ECP Revモード時のステー
タス応答タイミングを示す図であり、この図をもとに、
ECP Revモードのデータ送信時の制御について説
明する。
(ECP Rev) -Transmission- (B) shown in FIG. 6 is a diagram showing the status response timing in the ECP Rev mode. Based on this diagram,
Control during data transmission in the ECP Rev mode will be described.

【0037】データを送信バッファに書き込み後、ホス
ト側のステータスがアイドリングになるとデータバスに
データをセットし、基本周期を生成するTP1タイマで
指定された時間(TP≧0us)経過後に、Ptrcl
k信号をLにする。そして、Ptrclk信号をLにし
てからTP時間経過し、かつ、ホストのHostBus
y信号の応答があると、Ptrclk信号をHにし、1
バイトの転送が終了する。複数バイトを送信する時に
は、HostBusy信号がLになるのを待ってデータ
をセットし、以降同じ処理を繰り返す。このように、T
P時間を制御することにより、最大の送信レートを規定
することができる。
After writing the data in the transmission buffer, when the status on the host side becomes idling, the data is set on the data bus, and after the time designated by the TP1 timer for generating the basic period (TP ≧ 0 us) has passed, Ptrcl
The k signal is set to L. Then, TP time has elapsed since the Ptrclk signal was set to L, and the HostBus of the host
When there is a response from the y signal, the Ptrclk signal is set to H and 1
The byte transfer ends. When transmitting a plurality of bytes, data is set after waiting for the HostBusy signal to become L, and the same processing is repeated thereafter. Thus, T
By controlling the P time, the maximum transmission rate can be defined.

【0038】尚、バッファ部102A、102Bの切り
替えはユーザの設定によって行われ、その設定に応じて
ハンドシェーク上のタイミングが自動的に切り替えられ
る。表2は、バッファ部101A、Bの選択とファクシ
ミリの動作モードに応じたハンドシェークタイミングの
制御値の設定例である。
The switching of the buffer units 102A and 102B is performed by the user's setting, and the handshake timing is automatically switched according to the setting. Table 2 is an example of setting the control value of the handshake timing according to the selection of the buffer units 101A and 101B and the operation mode of the facsimile.

【0039】[0039]

【表2】 [Table 2]

【0040】このように、実施形態によれば、インター
フェース信号線駆動用のバッファとしてトーテムポール
タイプとオープンコレクタタイプの2種類のバッファを
備え、高速で信号線をスイッチングする必要があり、レ
シーバ側の条件が上記のような高速データ転送を行うた
めに考慮されたものであるときには、トーテムポールタ
イプのバッファを使用し、更に信号変化の間隔を短く設
定することで、データ転送の高速化を図ることができ
る。
As described above, according to the embodiment, two types of buffers, the totem pole type and the open collector type, are provided as buffers for driving the interface signal line, and it is necessary to switch the signal line at high speed, and the buffer on the receiver side is required. When the conditions are those considered for high-speed data transfer as described above, use a totem-pole type buffer and set the signal change interval short to speed up data transfer. You can

【0041】更に、トーテムポールタイプのバッファを
使用するときには、ハンドシェイク上のタイミング設定
をデータ転送が高速に行えるように設定してやれば、通
信系に応じてデータ転送の高速化を図ることができる。
Further, when the totem pole type buffer is used, if the timing setting on the handshake is set so that the data transfer can be performed at high speed, the data transfer can be speeded up according to the communication system.

【0042】[他の実施形態]前述した実施形態では、
バッファの切り替えをユーザによるマニュアルの切り替
えとしたが、ホストから情報取得が可能であれば、その
情報によって自動的にバッファ101A、Bの切り替え
及びデータ転送上のハンドシェイクタイミングを設定す
るようにしても良い。
[Other Embodiments] In the above-described embodiment,
Although the buffer switching is manual switching by the user, if information can be obtained from the host, the buffers 101A and 101B may be automatically switched and handshake timing for data transfer may be set according to the information. good.

【0043】また、適当なデータ転送試験を行い、その
結果により自動的にバッファ101A,Bの切り替え及
びデータ転送上のハンドシェイクタイミングを設定する
ようにしても良い。
It is also possible to perform an appropriate data transfer test and automatically switch the buffers 101A and 101B and set handshake timing for data transfer according to the result.

【0044】ここで、上述のデータ転送試験の詳細を以
下に説明する。
The details of the above-mentioned data transfer test will be described below.

【0045】通常のPCでは、データバス出力はトーテ
ムポールバッファを用いていることを利用し、データ転
送試験を行うことで、制御信号線がオープンコレクタタ
イプのバッファかトーテムポールタイプのバッファを判
定するようにすることも可能である。
In a normal PC, the data bus output uses a totem pole buffer, and a data transfer test is performed to determine whether the control signal line is an open collector type buffer or a totem pole type buffer. It is also possible to do so.

【0046】これは、データバスの駆動バッファがトー
テムポールタイプであれば、データバスの信号変化を基
準として、制御信号の変化遅延を判定することで、制御
信号線を駆動するバッファのタイプを判定するものであ
る。
This is because if the drive buffer of the data bus is a totem pole type, the type of the buffer that drives the control signal line is determined by determining the change delay of the control signal based on the signal change of the data bus. To do.

【0047】図7は、コンパチビリティモードのテスト
実行時のハンドシェークタイミングを示す図である。ホ
スト側出力信号nStrobe(SEND)は、受信端
では遅延のため、nStrobe(RECIVE)とし
て観測される(遅延量はTdとして示されている)。
FIG. 7 is a diagram showing the handshake timing during the test execution in the compatibility mode. The host-side output signal nStrobe (SEND) is observed as nStrobe (RECIVE) due to the delay at the receiving end (the delay amount is shown as Td).

【0048】ホスト側からのnStrobe信号の変化
によってデータのストローブは行われるが、ここでは制
御レジスタ210の設定を、strobe信号の立ち上
がりに設定する。そして、テストデータ転送はホストP
Cからデータバスに送出するデータを、例えばFFHと
し、nStrobe信号の立ち上がりからデータホール
ドタイム(Th*で示される)時間後に00Hに変化さ
せて行う。このとき、ThよりもTd時間が小さければ
ストローブされるデータはFFHになり、ThよりもT
d時間が大きければストローブされるデータは00Hと
なる。そこで、データホールドタイムを段階的に短くし
ていき、データ転送試験を行えば、系での信号遅延時間
を見積もることができる。
Although the data strobe is performed by the change of the nStrobe signal from the host side, the setting of the control register 210 is set to the rising edge of the strobe signal here. Then, the test data transfer is performed by the host P.
The data sent from C to the data bus is FFH, for example, and is changed to 00H after a data hold time (indicated by Th *) from the rising of the nStrobe signal. At this time, if Td time is smaller than Th, the strobed data becomes FFH, and T is smaller than Th.
If d time is large, the strobe data is 00H. Therefore, if the data hold time is gradually reduced and a data transfer test is performed, the signal delay time in the system can be estimated.

【0049】即ち、この値が、予め定めた第1の値より
も大きいときには(nStrobe信号の遅延量大)、
制御線の駆動バッファタイプをオープンコレクタと判定
し、予め定めた第2の値よりも小さいときには、トーテ
ムポールタイプのバッファと判定する。PC側送出の制
御信号をオープンコレクタタイプと判定したときには、
レシーバ側もオープンコレクタ出力からの信号を受ける
ように設定されているとの判定を、トーテムポールタイ
プと判定したときには、レシーバ側もトーテムポール出
力からの信号を受けるように設定されているとの判定を
行う。
That is, when this value is larger than the predetermined first value (large delay amount of nStrobe signal).
The drive buffer type of the control line is determined to be an open collector, and when it is smaller than the second value set in advance, it is determined to be a totem pole type buffer. When the control signal sent from the PC side is judged to be an open collector type,
When it is judged that the receiver side is also set to receive the signal from the open collector output and it is judged to be the totem pole type, it is judged that the receiver side is also set to receive the signal from the totem pole output. I do.

【0050】そして、ファクシミリ側のバッファ101
A,Bの切り替えは上述した判定に従って自動的に行
う。また、第1及び第2の値が異なり、その間の値が遅
延値として得られた場合は、前もってユーザにより指定
された判定結果に従って自動的に切り替えを行う。
Then, the buffer 101 on the facsimile side
Switching between A and B is automatically performed according to the above determination. Further, when the first and second values are different and a value between them is obtained as the delay value, the switching is automatically performed according to the determination result designated by the user in advance.

【0051】このように、他の実施形態によれば、ホス
ト情報の取得やデータ転送試験によりバッファの切り替
えを自動的に行わせることで、ユーザに煩雑な設定を行
わせることなく、レシーバ条件に応じたバッファの切り
替えが可能となる。
As described above, according to another embodiment, the buffer is automatically switched by the acquisition of the host information and the data transfer test, so that the receiver condition can be set without the user making complicated settings. It is possible to switch the buffers accordingly.

【0052】尚、本発明は、複数の機器(例えばホスト
コンピュータ,インタフェイス機器,リーダ,プリンタ
など)から構成されるシステムに適用しても、一つの機
器からなる装置(例えば、複写機,ファクシミリ装置な
ど)に適用してもよい。
Even when the present invention is applied to a system composed of a plurality of devices (eg, host computer, interface device, reader, printer, etc.), a device composed of one device (eg, copier, facsimile). Device).

【0053】[0053]

【発明の効果】以上説明したように、本発明によれば、
接続された相手機器のレシーバ条件に応じて所望の外部
インターフェースを選択することにより、高速なデータ
転送が可能となり、また所望の外部インターフェースを
自動的に選択することにより、装置及びユーザの利便性
を向上させることも可能となる。
As described above, according to the present invention,
High-speed data transfer is possible by selecting the desired external interface according to the receiver conditions of the connected partner device, and the convenience of the device and the user is improved by automatically selecting the desired external interface. It also becomes possible to improve.

【0054】[0054]

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

【図1】双方向セントロ・i/fを有するファクシミリ
装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a facsimile apparatus having a bidirectional Centro.i / f.

【図2】図1に示すパラレルポート制御部の詳細な構成
を示すブロック図である。
FIG. 2 is a block diagram showing a detailed configuration of a parallel port control unit shown in FIG.

【図3】コンパチビリティモードでのデータ転送タイミ
ングを示す図である。
FIG. 3 is a diagram showing a data transfer timing in a compatibility mode.

【図4】ニブルモードでのデータ転送タイミングを示す
図である。
FIG. 4 is a diagram showing a data transfer timing in a nibble mode.

【図5】バイトモードでのデータ転送タイミングを示す
図である。
FIG. 5 is a diagram showing a data transfer timing in a byte mode.

【図6】ECPモードでのデータ転送タイミングを示す
図である。
FIG. 6 is a diagram showing a data transfer timing in an ECP mode.

【図7】データ転送試験時のタイミングを示す図であ
る。
FIG. 7 is a diagram showing a timing in a data transfer test.

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

101A バッファIC部A 101B バッファIC部B 102 パラレルポート制御部 103 読取り部 104 CODEC 105 NCU 106 モデム 107 DMA制御部 108 画像メモリ 109 主制御部 110 記録部 111 操作部 BUFSEL バッファ選択信号 XPIFEN i/fバスイネーブル信号 PIFDIR i/fバス方向指定信号 HLDREQ バス使用要求信号 XHLDACK バス使用要求受付信号 DMAREQ1 DMA転送要求信号1 XDMAACK1 DMA転送受付信号1 DMAREQ2 DMA転送要求信号2 XDMAACK2 DMA転送受付信号2 LAST 最終データ転送終了信号 INTPIF 割り込み要求信号 INTDKC 割り込み要求信号遅延クロック 201 受信制御部 202 送信制御部 203 TPIタイマ 204 ステータス制御部 205 割り込み制御部 206 データバッファ 207 DMA制御部 208 モード生成部 209 R/W制御部 210 制御レジスタ IFMOD インターフェースモード指示信号 R/W リード/ライト信号 101A buffer IC unit A 101B buffer IC unit B 102 parallel port control unit 103 reading unit 104 CODEC 105 NCU 106 modem 107 DMA control unit 108 image memory 109 main control unit 110 recording unit 111 operation unit BUFSEL buffer selection signal XPIFEN i / f bus Enable signal PIFDIR i / f bus direction designation signal HLDREQ bus use request signal XHLDACK bus use request acceptance signal DMAREQ1 DMA transfer request signal 1 XDMAACK1 DMA transfer acceptance signal 1 DMAREQ2 DMA transfer request signal 2 XDMAACK2 DMA transfer acceptance signal 2 LAST Final data transfer end Signal INTPIF interrupt request signal INTDKC interrupt request signal delay clock 201 reception control unit 202 transmission control unit 2 03 TPI timer 204 Status control unit 205 Interrupt control unit 206 Data buffer 207 DMA control unit 208 Mode generation unit 209 R / W control unit 210 Control register IFMOD Interface mode instruction signal R / W Read / write signal

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも2つの外部インターフェース
(i/f)を有する装置の外部インターフェース制御方
法であって、 接続された相手機器のレシーバ条件に応じて所望の外部
i/fを選択し、 選択された外部i/fを介してデータ転送を行う、各工
程を有することを特徴とする外部インターフェース制御
方法。
1. A method for controlling an external interface of a device having at least two external interfaces (i / f), comprising selecting a desired external i / f according to a receiver condition of a connected partner device, and selecting the desired external i / f. An external interface control method comprising the steps of performing data transfer via an external i / f.
【請求項2】 前記選択工程は、前記相手機器からの機
器情報により自動的に選択することを特徴とする請求項
1記載の外部インターフェース制御方法。
2. The external interface control method according to claim 1, wherein in the selecting step, selection is automatically performed based on device information from the partner device.
【請求項3】 前記選択工程は、前記相手機器との間で
所定の転送速度試験を行い、その結果により自動的に選
択することを特徴とする請求項1記載の外部インターフ
ェース制御方法。
3. The external interface control method according to claim 1, wherein in the selecting step, a predetermined transfer rate test is performed with the partner device and the result is automatically selected.
【請求項4】 前記データ転送工程は、選択された外部
i/fによりデータ転送上のハンドシェイクタイミング
を変更することを特徴とする請求項1記載の外部インタ
ーフェース制御方法。
4. The external interface control method according to claim 1, wherein in the data transfer step, the handshake timing for data transfer is changed according to the selected external i / f.
【請求項5】 少なくとも2つの外部インターフェース
(i/f)を有するデータ通信装置であって、 接続された相手機器のレシーバ条件に応じて所望の外部
i/fを選択する選択手段と、 前記選択手段により選択された外部i/fを介してデー
タ通信を行う通信手段とを有することを特徴とするデー
タ通信装置。
5. A data communication device having at least two external interfaces (i / f), and selecting means for selecting a desired external i / f according to a receiver condition of a connected counterpart device, and the selection. And a communication unit that performs data communication via the external i / f selected by the unit.
【請求項6】 前記選択手段は、前記相手機器からの機
器情報により自動的に選択することを特徴とする請求項
5記載のデータ通信装置。
6. The data communication apparatus according to claim 5, wherein the selection means automatically selects the device information from the other device.
【請求項7】 前記選択手段は、前記相手機器との間で
所定の転送速度試験を行い、その結果により自動的に選
択することを特徴とする請求項5記載のデータ通信装
置。
7. The data communication apparatus according to claim 5, wherein the selecting means performs a predetermined transfer rate test with the counterpart device and automatically selects the result according to the result.
【請求項8】 前記通信手段は、選択された外部i/f
によりデータ転送上のハンドシェイクタイミングを変更
することを特徴とする請求項5記載のデータ通信装置。
8. The communication means is a selected external i / f.
6. The data communication device according to claim 5, wherein the handshake timing for data transfer is changed by.
JP3492696A 1996-02-22 1996-02-22 Data communication device and external interface control method Withdrawn JPH09230968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3492696A JPH09230968A (en) 1996-02-22 1996-02-22 Data communication device and external interface control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3492696A JPH09230968A (en) 1996-02-22 1996-02-22 Data communication device and external interface control method

Publications (1)

Publication Number Publication Date
JPH09230968A true JPH09230968A (en) 1997-09-05

Family

ID=12427813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3492696A Withdrawn JPH09230968A (en) 1996-02-22 1996-02-22 Data communication device and external interface control method

Country Status (1)

Country Link
JP (1) JPH09230968A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8094989B2 (en) 2006-10-31 2012-01-10 Samsung Electronics Co., Ltd. Method and apparatus for generating external input table

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8094989B2 (en) 2006-10-31 2012-01-10 Samsung Electronics Co., Ltd. Method and apparatus for generating external input table

Similar Documents

Publication Publication Date Title
US5581669A (en) System and method for peripheral data transfer
EP0714058B1 (en) Apparatus and method for estimating a total time to print a print job
JPH01106559A (en) Facsimile equipment
JPH08115176A (en) Printer
JPH08197788A (en) Image data read circuit of printer controller
US20010043361A1 (en) Printer detecting data precisely in response to change in data transmission speed
JPH09230968A (en) Data communication device and external interface control method
JPS5933527A (en) Interface device
GB2290203A (en) Communication circuit for performing data transfer
US5923901A (en) System for transferring data in parallel to host computer using both of the rising and falling edges of host busy signals as transfer instruction signals
JPH06303366A (en) Video interface
JPH09305527A (en) DMA controller
JPH09149185A (en) External interface control method
JP2004334551A (en) Serial communication system and local terminal for serial communication
JP3228413B2 (en) Serial data communication device and communication method
US6570666B1 (en) Printer detecting data precisely in response to change in data transmission speed
JPH0981334A (en) Information processing apparatus and data transfer method of information processing apparatus
JP4441967B2 (en) Interface device and control method thereof
JPH05119939A (en) Interface circuit for printer
JP2545952B2 (en) Communication control device
KR940002972B1 (en) Facsimile Computer System Connection Circuit
JPH08111737A (en) Secure facsimile system and method for synchronously transmitting and receiving secure digital data
JPH10124265A (en) Printer
JPH08137591A (en) Data signal input circuit and printing device
JPH09252379A (en) Information communication terminal

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030506