[go: up one dir, main page]

JPH09185441A - Parallel interface circuit - Google Patents

Parallel interface circuit

Info

Publication number
JPH09185441A
JPH09185441A JP35313695A JP35313695A JPH09185441A JP H09185441 A JPH09185441 A JP H09185441A JP 35313695 A JP35313695 A JP 35313695A JP 35313695 A JP35313695 A JP 35313695A JP H09185441 A JPH09185441 A JP H09185441A
Authority
JP
Japan
Prior art keywords
signal
peripheral device
host device
host
control signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP35313695A
Other languages
Japanese (ja)
Inventor
Akira Hatanaka
中 晃 畠
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP35313695A priority Critical patent/JPH09185441A/en
Publication of JPH09185441A publication Critical patent/JPH09185441A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily perform the bidirectional transfer of a control signal even in the case of using one connector by performing an operation while switching the input/output directions of control signal corresponding to whether a connected opposite party is a host device or a peripheral device. SOLUTION: A host/peripheral setting part 400 is provided for setting whether the opposite party to be connected is the host device or the peripheral device or whether or not automatic discrimination is to be performed. When it is set that the connected opposite party is the 'host device', the operation is performed as the peripheral device and when it is set that the connected opposite party is the 'peripheral device', the operation is performed as the host device so that the input/output of control signal and the operation can be easily and surely switched corresponding to whether the connected opposite party is the host device or the peripheral device. Besides, when it is set that the 'automatic discrimination' is to be performed, the discrimination of whether the connected opposite party is the host device or the peripheral device and the switching of the input/output direction of control signal and the operation are automated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は電子スチルカメラ等
の機器に関し、特にホストコンピューターやプリンタ等
を接続してデータ記号、制御信号等を授受するパラレル
インタフェース回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device such as an electronic still camera, and more particularly to a parallel interface circuit for connecting and receiving a host computer, a printer and the like to exchange data symbols, control signals and the like.

【0002】[0002]

【従来の技術】パーソナルコンピュータ(以下、PCと
略称する)等のホストデバイスと、プリンタ等のPCに
より制御される周辺デバイスとの間でデータ信号や制御
信号を授受するためにはパラレルインタフェース回路が
用いられる。
2. Description of the Related Art A parallel interface circuit is used to exchange data signals and control signals between a host device such as a personal computer (hereinafter abbreviated as PC) and a peripheral device controlled by a PC such as a printer. Used.

【0003】この種のパラレルインタフェース回路とし
ては、従来からセントロニクスインタフェース回路やP
Cパラレルインタフェースが用いられている。
As a parallel interface circuit of this type, a Centronics interface circuit or P
A C parallel interface is used.

【0004】データ転送を双方向とすべく、各種の転送
モードを拡張したインタフェース機能がIEEE st
d 1284として標準化されている。この標準には、
以下に説明する互換モード(Compatibility Mode),ニ
ブルモード(Nibble Mode)及びバイトモード(Byte Mo
de),ECPモード,EPPモードが含まれている。互
換モードは、従来のパラレルインタフェースと互換性が
ありホストデバイスから周辺デバイスへのデータ転送を
行うモードである。ニブルモードとバイトモードは、互
換モードと組み合わせ、双方向データ転送を行うための
周辺デバイスからホストデバイスへのデータ転送を行う
モードである。ECPモードは、ホストデバイス側から
の要求によりホストデバイスから周辺デバイスへのデー
タ転送を行い、周辺デバイス側の要求により周辺デバイ
スからホストデバイスへのデータ転送を行うモードであ
る。EPPモードは、ホストデバイス側からの要求によ
りホストデバイスから周辺デバイスへのデータの書き込
み及び周辺デバイスからホストデバイスへのデータの読
み出しを行うモードである。
In order to make data transfer bidirectional, an interface function that extends various transfer modes has an IEEE st
d 1284 is standardized. This standard includes
Compatibility Mode, Nibble Mode and Byte Mode (Byte Mo
de), ECP mode, and EPP mode are included. The compatible mode is a mode that is compatible with the conventional parallel interface and transfers data from the host device to the peripheral device. The nibble mode and the byte mode are modes in which data is transferred from a peripheral device to a host device for bidirectional data transfer in combination with the compatible mode. The ECP mode is a mode in which data is transferred from the host device to the peripheral device upon request from the host device side, and data is transferred from the peripheral device to the host device upon request from the peripheral device side. The EPP mode is a mode in which data is written from the host device to the peripheral device and data is read from the peripheral device to the host device in response to a request from the host device side.

【0005】上記IEEE 1284標準では、通信可
能な状態を示すため、ホストデバイスはHost Logic Hig
h(HLH)信号をアクティブに、また周辺デバイスはP
eripheral Logic High(PLH)信号をアクティブにす
る。したがって、これらHLH信号とPLH信号を監視
することにより、当該装置に接続されている相手方の存
在及びその電源の投入が判断できることになる。尚、こ
れらHLH信号とPLH信号は、IEEE 1284標
準では必須でなく、使用するコネクタによっては、これ
らの信号を検知することができないこともある。
According to the IEEE 1284 standard, the host device indicates Host Logic Hig to indicate a communicable state.
The h (HLH) signal is activated, and the peripheral device is set to P
Activates the eripheral Logic High (PLH) signal. Therefore, by monitoring the HLH signal and the PLH signal, it is possible to determine the presence of the other party connected to the device and its power-on. Note that the HLH signal and the PLH signal are not essential in the IEEE 1284 standard, and these signals may not be detected depending on the connector used.

【0006】IEEE 1284標準に従う動作の初期
化時には、ホストデバイスから周辺デバイスへのデータ
転送を行う互換モードになる。互換モードの動作タイミ
ングチャートが図2に示されている。図2において、D
ATA信号{nバイトのData[8:1]},n Strobe信号,Bu
sy信号,nAck信号,nSelectIn信号のタイミングチャー
トが示されている。
At the time of initialization of the operation according to the IEEE 1284 standard, a compatible mode for transferring data from the host device to the peripheral device is set. An operation timing chart of the compatible mode is shown in FIG. In FIG. 2, D
ATA signal {n bytes of Data [8: 1]}, n Strobe signal, Bu
A timing chart of the sy signal, nAck signal, and nSelectIn signal is shown.

【0007】さて、IEEE 1284標準に準拠した
ホストデバイスは、先ず、周辺デバイスがIEEE 1
284標準に準拠しているか否かを確認し、準拠してい
る場合には、上記拡張された各種通信モード(ニブルモ
ード,バイトモード,ECPモード,EPPモード)の
いずれかを使用することを周辺デバイスに対して要求す
るネゴシエーションを行う。具体的には、ホストデバイ
スは、要求する通信モードを表す拡張要求値(Extensib
ility Request Value)をデータバスに出力する。拡張
要求値としては、ニブルモードに00h,バイトモード
に01h,ECPモードに10h,EPPに40hがそ
れぞれ割り当てられている。
In the host device conforming to the IEEE 1284 standard, first of all, the peripheral device is IEEE 1
It is confirmed whether or not it complies with the H.284 standard, and if it complies, it is recommended to use any one of the extended communication modes (nibble mode, byte mode, ECP mode, EPP mode). Negotiations required for the device. Specifically, the host device uses the extension request value (Extensib
ility Request Value) is output to the data bus. 00h is assigned to the nibble mode, 01h to the byte mode, 10h to the ECP mode, and 40h to the EPP.

【0008】ネゴシエーション動作は、そのタイミング
チャートを図3に示すように、ホストデバイスは、12
84 Active 信号(上記nSelectIn:互換モード及び従来
のパラレルインタフェースにおける信号名を示す。以下
の説明のカッコ内も同様)(以下ACT信号と略称す
る)に“High”,Host Busy 信号(nAutoFd)(以下、
HB信号と略称する)に“Low”を出力する。これに応
答して、周辺デバイスは、PtrClk 信号(上記nAck)
(以下、PTC信号と略称する)に“Low”,nDataAvai
l 信号(nFault)(以下、NDA信号と略称する)に
“High”, XFlag 信号(Select)(以下、XF信号と略
称する)に“High”,AckData Request 信号(PError)
(以下、ADR信号と略称する)に“High”を出力す
る。図3において、DATA信号は要求値を、HC信号
は上記Hostclk(nStrobe)を、PB信号は周辺デバイス
がデータ受信準備未了であることを示すPrt Busy(Bus
y)をそれぞれ示す。
In the negotiation operation, as shown in the timing chart of FIG.
84 Active signal (above nSelectIn: signal name in compatible mode and conventional parallel interface. The same is in parentheses in the following description) (hereinafter abbreviated as ACT signal), “High”, Host Busy signal (nAutoFd) (hereinafter ,
"Low" is output to the HB signal). In response, the peripheral device sends the PtrClk signal (nAck above).
(Hereinafter, abbreviated as PTC signal) is "Low", nDataAvai
l signal (nFault) (hereinafter abbreviated as NDA signal) "High", XFlag signal (Select) (hereinafter abbreviated as XF signal) "High", AckData Request signal (PError)
"High" is output to (hereinafter abbreviated as ADR signal). In FIG. 3, the DATA signal indicates the required value, the HC signal indicates the above Hostclk (nStrobe), and the PB signal indicates that the peripheral device is not ready to receive data. Prt Busy (Bus
y) respectively.

【0009】尚、周辺デバイス側が従来のパラレルイン
タフェースであり、IEEE 1284標準に準拠して
いない場合であっても、周辺デバイスの上記応答信号の
うち、NDA信号とADR信号が同時に“High”となる
ことはないので、ホストデバイスは、当該周辺デバイス
がIEEE 1284標準に準拠していることを確認で
きることになる。
Even when the peripheral device side is a conventional parallel interface and does not comply with the IEEE 1284 standard, the NDA signal and the ADR signal among the response signals of the peripheral device become "High" at the same time. In this case, the host device can confirm that the peripheral device complies with the IEEE 1284 standard.

【0010】以上説明したように、IEEE 1284
標準によれば、データバスのみは双方向であるものの、
その他の制御信号等は、ホストデバイス側の出力か周辺
デバイス側の出力かのいずれかが固定されているので、
つまり、制御信号の転送方向が一方向であるので、例え
ば、CCD等の撮像素子で得られた画像信号をデジタル
処理した画像データを生成する画像取得手段の一つとし
て注目されている電子カメラを用いて画像データをホス
トコンピューターやプリンター等の周辺デバイスに1つ
のコネクタを用いて所定の動作態様で転送する場合に
は、接続される相手がホストコンピューターであるかプ
リンター等であるかを判断して電子カメラと接続される
相手とのインターフェースの動作を切り替えてやる必要
がある。すなわち電子カメラは相手がホストコンピュー
ターである場合はインターーフェースの動作をホスト側
出力である制御信号を入力状態とし、周辺デバイス側の
出力である制御信号を出力状態となるように設定し、電
子カメラはホストコンピューターに対して周辺デバイス
となるように動作する。
As described above, IEEE 1284
According to the standard, only the data bus is bidirectional,
For other control signals, either the output on the host device side or the output on the peripheral device side is fixed, so
That is, since the control signal is transferred in one direction, for example, an electronic camera which is attracting attention as one of image acquisition means for generating image data obtained by digitally processing an image signal obtained by an image sensor such as a CCD is used. When transferring image data to a peripheral device such as a host computer or printer in a predetermined operation mode using one connector, it is determined whether the connected party is a host computer or a printer. It is necessary to switch the operation of the interface with the person connected to the electronic camera. That is, when the other party is a host computer, the electronic camera sets the interface operation so that the control signal output from the host side is in the input state and the control signal output from the peripheral device side is in the output state. The camera acts as a peripheral device to the host computer.

【0011】一方、電子カメラは接続される相手がプリ
ンター等である場合には、インターフェースの動作をホ
スト側出力である制御信号を出力状態とし、周辺デバイ
ス側の出力である制御信号を入力状態となるように設定
し、電子カメラ自体はプリンターに対してホストとなる
ように動作する。以上の動作を切り替えるため電子カメ
ラに接続される相手がホストコンピューターであるかプ
リンター等であるかを何等かの方法で判断する必要があ
った。
On the other hand, when the other party to which the electronic camera is connected is a printer or the like, the interface operation is such that the control signal output from the host side is in the output state and the control signal output from the peripheral device side is in the input state. The electronic camera itself operates as a host for the printer. In order to switch the above operation, it is necessary to judge by some method whether the partner connected to the electronic camera is a host computer or a printer.

【0012】[0012]

【発明が解決しようとする課題】そこで、本発明の目的
は、制御信号の双方向転送を一つのコネクタを用いた場
合でも容易に可能とするパラレルインタフェース回路を
提供することである。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a parallel interface circuit that enables bidirectional transfer of control signals even with a single connector.

【0013】[0013]

【課題を解決するための手段】前述の課題を解決するた
め、本発明によるパラレルインタフェース回路は、ホス
トデバイスと、該ホストデバイスにより制御される周辺
デバイスとの間で転送データ、データ転送を制御する前
記ホストデバイスから前記周辺デバイスへの制御信号、
及びデータ転送を制御する前記周辺デバイスから前記ホ
ストデバイスへの制御信号の授受制御を行うパラレルイ
ンタフェース回路であって、接続相手がホストデバイス
であるか周辺デバイスであるかによって、上記制御信号
の入出力方向を切り替えて動作するように構成される。
In order to solve the above problems, a parallel interface circuit according to the present invention controls transfer data and data transfer between a host device and a peripheral device controlled by the host device. A control signal from the host device to the peripheral device,
And a parallel interface circuit for controlling transmission and reception of a control signal from the peripheral device for controlling data transfer to the host device, the input and output of the control signal depending on whether the connection partner is a host device or a peripheral device. It is configured to operate by switching directions.

【0014】ここで、上記パラレルインタフェース回路
は、次のような構成を付加することができる。
Here, the above-mentioned parallel interface circuit can be added with the following configuration.

【0015】接続相手がホストデバイスであるか周辺デ
バイスであるかを設定する設定手段。
Setting means for setting whether the connection partner is a host device or a peripheral device.

【0016】前記ホストデバイス側が通信可能であるこ
とを示すホストデバイスから周辺デバイスへの制御信号
を入力信号として監視し、この制御信号がアクティブで
あることを検出した場合には前記接続相手がホストデバ
イスであるとして動作する。
A control signal from the host device indicating that the host device side is communicable to the peripheral device is monitored as an input signal, and when it is detected that this control signal is active, the connection partner is the host device. Works as is.

【0017】[0017]

【発明の実施の形態】本発明の基本実施形態では、当該
装置(例えば、電子スチルカメラ)に接続される相手デ
バイスがパソコン(PC)等のホストデバイスである
か、プリンタ等の周辺デバイスであるかを判別し、相手
デバイスがホストデバイスであるときにはホストデバイ
スの出力制御信号を入力とし、当該装置を周辺デバイス
として機能させ、その出力である制御信号を出力する。
一方、相手デバイスがプリンタ等の周辺デバイスである
ときには、当該装置をホストデバイスとして機能させ、
当該装置の出力制御信号を周辺デバイス側に転送し、周
辺デバイスの出力である制御信号を入力として受信す
る。
BEST MODE FOR CARRYING OUT THE INVENTION In the basic embodiment of the present invention, a partner device connected to the apparatus (for example, an electronic still camera) is a host device such as a personal computer (PC) or a peripheral device such as a printer. When the partner device is the host device, the output control signal of the host device is input, the device is made to function as a peripheral device, and the output control signal is output.
On the other hand, when the partner device is a peripheral device such as a printer, the device is made to function as a host device,
The output control signal of the device is transferred to the peripheral device side, and the control signal which is the output of the peripheral device is received as an input.

【0018】上記接続相手デバイスがホストデバイスで
あるか周辺デバイスであるかの判別は、操作者により相
手デバイスがホストデバイスか周辺デバイスであるかを
設定する設定手段の設定状態を検出することにより行う
こともできるし、以下に詳述するように、相手デバイス
から受信した信号状態を総合的に判断して行うこともで
きる。
The determination as to whether the connected partner device is a host device or a peripheral device is made by detecting the setting state of a setting means for setting whether the partner device is a host device or a peripheral device by the operator. Alternatively, as described in detail below, it is possible to comprehensively judge the signal state received from the partner device.

【0019】設定手段が設けられている場合には、その
設定状態を検出した検出結果に従って制御信号の入出力
方向を切り替え、周辺デバイスまたはホストデバイスと
して機能せしめる。
When the setting means is provided, the input / output direction of the control signal is switched according to the detection result of detecting the setting state, and the function is performed as a peripheral device or a host device.

【0020】このような設定手段の設定状態による制御
信号の入出力方向の切り替えは、容易であるものの、例
えば、電子スチルカメラを扱う操作者にとっては、パソ
コンやプリンタ等に接続を変更する都度、設定手段の設
定を変更したり、正しく設定されたか否かを確認しなく
てはならず、煩わしさがある。
Although it is easy to switch the input / output direction of the control signal depending on the setting state of the setting means, for example, for an operator who handles an electronic still camera, every time the connection is changed to a personal computer, a printer, or the like, It is troublesome to change the setting of the setting means and to check whether the setting is correct or not.

【0021】そこで設定手段を設けず、接続相手デバイ
スからの出力信号状態を判断して相手デバイスがホスト
デバイスか周辺デバイスかを判断する他の実施形態例を
説明する。
Therefore, another embodiment will be described in which setting means is not provided and whether the partner device is a host device or a peripheral device is judged by judging the output signal state from the connected partner device.

【0022】前述の如く、IEEE 1284標準では
ホストデバイスと周辺デバイスがそれぞれ通信可能な状
態であることをHLH信号とPLH信号を対応してアク
ティブにすることにより示している。本実施形態例で
は、通常、全ての信号(データ及び制御信号)を入力状
態にしておき、これらHLH信号とPLH信号を監視
し、HLH信号がアクティブとなった場合は、接続相手
がホストデバイスであると判断し、周辺デバイス側出力
である制御信号を出力状態とし、周辺デバイスとしての
動作を行う。
As described above, the IEEE 1284 standard indicates that the host device and the peripheral device are in a communicable state by correspondingly activating the HLH signal and the PLH signal. In the present embodiment, normally, all signals (data and control signals) are kept in an input state, these HLH signals and PLH signals are monitored, and when the HLH signals become active, the connection partner is the host device. When it is determined that the peripheral device is present, the control signal output from the peripheral device is set to the output state, and the peripheral device operates.

【0023】また、PLH信号がアクティブとなった場
合は、接続相手が周辺デバイスあると判断し、ホスト側
出力である制御信号を出力状態とし、ホストデバイスと
しての動作を行う。
When the PLH signal becomes active, it is determined that the connection partner is a peripheral device, the control signal output from the host side is output, and the host device operates.

【0024】ところで、上記2つの信号は、前述のよう
にIEEE 1284標準では必須ではなく、使用する
コネクタによっては、これらの信号が入力されていない
こともあり得る。また、これら2つの信号はIEEE
1284標準で新たに追加された信号であり、従来のパ
ラレル・インタフェースには存在しない。そのため、上
述のようなHLH信号とPLH信号の監視による判別は
不可能となる。
By the way, the above two signals are not essential in the IEEE 1284 standard as described above, and these signals may not be input depending on the connector used. In addition, these two signals are IEEE
It is a signal newly added in the 1284 standard and does not exist in the conventional parallel interface. Therefore, it is impossible to make a determination by monitoring the HLH signal and the PLH signal as described above.

【0025】そこで、本実施形態によるパラレルインタ
フェース回路においては、これら2つの信号の他に、互
換モードにおいて、ホストデバイスが周辺デバイスを選
択していることを示す上記ACT信号を監視し、ACT
信号がアクティブ(Low)となった場合は、接続されて
いる相手がホストデバイスであると判断し、周辺デバイ
ス側出力である制御信号を出力状態とし、周辺デバイス
として動作を行う。
Therefore, in the parallel interface circuit according to the present embodiment, in addition to these two signals, in the compatibility mode, the ACT signal indicating that the host device selects the peripheral device is monitored and the ACT signal is detected.
When the signal becomes active (Low), it is determined that the connected partner is the host device, the control signal which is the peripheral device side output is set to the output state, and the peripheral device operates.

【0026】更に、互換モードにおいて、周辺デバイス
がデータの受信を行う準備ができていないことを示すP
B信号を監視し、PB信号がインアクティブ(Low)と
なった場合は、接続されている相手が周辺デバイスであ
ると判断し、ホストデバイス側出力である制御信号を出
力状態とし、ホストデバイスとして動作を行う。
Further, in compatible mode, P indicates that the peripheral device is not ready to receive data.
When the B signal is monitored and the PB signal becomes inactive (Low), it is determined that the connected partner is a peripheral device, and the control signal that is the output of the host device is set to the output state and Take action.

【0027】このようにして接続相手先の判別が可能で
あるが、信号状態によっては不具合が生ずることがあ
る。すなわち、前述のように、IEEE 1284標準
に準拠したホストデバイスは、ネゴシエーションを始め
るために、要求する通信モードを表す拡張要求値をデー
タバスに出力し、ACT信号に“High”、HB信号に
“Low”を出力する。ここで、ACT信号は互換モード
では、nSelectIn 信号として使用されているため、上述
のように、ACT信号がアクティブ(Low)である場合
に、接続されている相手がホストデバイスであると判断
するのみでは、ネゴシエーションを始める際に、ホスト
デバイスとの接続が切れていると判断されてしまうこと
になる。
Although the connection destination can be determined in this manner, a problem may occur depending on the signal state. That is, as described above, the host device compliant with the IEEE 1284 standard outputs an extended request value indicating the requested communication mode to the data bus to start negotiation, and the ACT signal is "High" and the HB signal is "High". "Low" is output. Here, since the ACT signal is used as the nSelectIn signal in the compatibility mode, as described above, when the ACT signal is active (Low), it is only judged that the connected partner is the host device. Then, when the negotiation is started, it is determined that the connection with the host device is broken.

【0028】そこで、本実施形態のパラレルインタフェ
ース回路においては、これら2つの信号ACT信号とH
B信号を監視し、ACT信号が“High”且つHB信号が
“Low”となった場合には、接続されている相手がホス
トデバイスであると判断し、周辺デバイス側出力である
制御信号を出力状態とするとともに、ネゴシエーション
の応答を返し、周辺デバイスとしての動作を行う。
Therefore, in the parallel interface circuit of the present embodiment, these two signals ACT signal and H
B signal is monitored, and when the ACT signal is "High" and the HB signal is "Low", it is judged that the connected partner is the host device and the control signal which is the peripheral device side output is output. In addition to the status, it returns a negotiation response and operates as a peripheral device.

【0029】[0029]

【実施例】図1には、本発明の一実施形態におけるパラ
レルインタフェース回路の構成ブロック図が示されてい
る。本実施形態例のパラレルインタフェース回路は、基
本構成として、全体動作を御制する制御部100と、入
出力方向制御入力をもつ双方向トランシーバ群200
と、コネクタ300と、接続相手がホストデバイスか周
辺デバイスであるかを設定する機能と、これらデバイス
を自動判別する機能とを設定するホスト/周辺設定部4
00とを備える。
1 is a block diagram showing the configuration of a parallel interface circuit according to an embodiment of the present invention. The parallel interface circuit of this embodiment has, as a basic configuration, a control unit 100 that controls the entire operation, and a bidirectional transceiver group 200 that has an input / output direction control input.
A host / peripheral setting unit 4 for setting a connector 300, a function for setting whether the connection partner is a host device or a peripheral device, and a function for automatically discriminating these devices.
00.

【0030】制御部100は、Data[8:1]のデータ
入出力端子T1と,制御信号であるHC信号{Host Clk
(nStrobe)}、HB信号{Host Busy (nAutoFd)},
NRR信号{n Reverse Request (nInit)}、ACT
信号{1284 Active (nSelectIn)}及びHLH信
号{Host Logic High}の各制御信号の入出力端子T
2,T3,T4,T5及びT6を有するとともに、PB
信号{Ptr Busy(Busy)},PCT信号{PtrClk(nAc
k)},ADR信号{Ackn Data Req(PError)},XF
信号{X flag (Select)},NDA信号{n Data Avai
l (nfault)},PLH信号{Peripheral Logic Hig
h}の各制御信号の入出力端子T7,T8,T9,T1
0,T11及びT12を有する。制御部100は、ま
た、データの転送方向を指示する制御信号であるDD信
号(Data Dir),ホストデバイスの制御のための制御信
号の転送方向を指示するHD信号(Host Drv)及び周辺
デバイスの制御のための制御信号の転送方向を指示する
PD信号(PrphDrib)の出力端子T13,T14及びT
15を有する。
The control unit 100 controls the data input / output terminal T1 of Data [8: 1] and the HC signal {Host Clk which is a control signal.
(NStrobe)}, HB signal {Host Busy (nAutoFd)},
NRR signal {n Reverse Request (nInit)}, ACT
Input / output terminal T for each control signal of signal {1284 Active (nSelectIn)} and HLH signal {Host Logic High}
2, T3, T4, T5 and T6, and PB
Signal {Ptr Busy (Busy)}, PCT signal {PtrClk (nAc
k)}, ADR signal {Ackn Data Req (PError)}, XF
Signal {X flag (Select)}, NDA signal {n Data Avai
l (nfault)}, PLH signal {Peripheral Logic Hig
h} control signal input / output terminals T7, T8, T9, T1
0, T11 and T12. The control unit 100 also controls the DD signal (Data Dir), which is a control signal for instructing the data transfer direction, the HD signal (Host Drv) for instructing the transfer direction of the control signal for controlling the host device, and the peripheral device. PD signal (PrphDrib) output terminals T13, T14 and T for instructing the transfer direction of the control signal for control
15

【0031】コネクタ300は、制御部100の端子T
1と対応するデータ信号端子T31及び端子T2〜T1
2と対応する制御信号端子T32〜T42を有し、それ
ぞれが対応するトランシーバ201〜212を介して制
御部100の端子T1〜T12と接続されている。
The connector 300 is a terminal T of the controller 100.
1 corresponding to data signal terminal T31 and terminals T2 to T1
2 and the corresponding control signal terminals T32 to T42, which are connected to the terminals T1 to T12 of the control unit 100 via the corresponding transceivers 201 to 212, respectively.

【0032】トランシーバ群200は、制御部100の
出力端子T1〜T12にそれぞれ一端が接続されたトラ
ンシーバ201〜212から成り、その他端は、プルア
ップ抵抗またはプルダウン抵抗とコネクタ300の対応
する端子に接続されている。すなわち、トランシーバ2
06と212は、その一端が接地されたプルダウン抵抗
226と232及びコネクタ300の対応端子T36と
T42に接続されている。また、トランシーバ201〜
205及び207〜211の他端は、一端が接地された
プルアップ抵抗221〜225及び227〜231と,
コネクタ300の対応端子T31〜T35及びT37〜
T42にそれぞれ接続されている。
The transceiver group 200 includes transceivers 201 to 212 each having one end connected to the output terminals T1 to T12 of the control unit 100, and the other end connected to a pull-up resistor or a pull-down resistor and a corresponding terminal of the connector 300. Has been done. That is, the transceiver 2
06 and 212 are connected to pull-down resistors 226 and 232, one ends of which are grounded, and corresponding terminals T36 and T42 of the connector 300. In addition, the transceiver 201
The other ends of 205 and 207 to 211 are pull-up resistors 221-225 and 227-231 whose one ends are grounded,
Corresponding terminals T31 to T35 and T37 of the connector 300
Each of them is connected to T42.

【0033】また、トランシーバ201〜212の入出
力方向を規定するための入出力方向制御端子T201〜
T212は、それぞれ制御部100の端子T13〜T1
5から出力される制御信号のいずれかが入力されてい
る。すなわち、トランシーバ201の端子T201は、
制御部100の端子T13からDD信号が入力され、ト
ランシーバー202〜206の端子T202〜T206
には制御部100の端子T14からのHD信号が入力さ
れている。また、トランシーバ207〜212の端子T
207〜T212には、制御部100の端子T15から
のPD信号が入力されている。
Input / output direction control terminals T201-T201 for defining the input / output directions of the transceivers 201-212.
T212 indicates terminals T13 to T1 of the control unit 100, respectively.
One of the control signals output from 5 is input. That is, the terminal T201 of the transceiver 201 is
The DD signal is input from the terminal T13 of the control unit 100, and the terminals T202 to T206 of the transceivers 202 to 206 are input.
The HD signal from the terminal T14 of the control unit 100 is input to. In addition, the terminals T of the transceivers 207 to 212
The PD signal from the terminal T15 of the control unit 100 is input to 207 to T212.

【0034】図1において、制御部100の端子T2〜
T6から出力される制御信号HC,HB,NRR,AC
T及びHLH信号は、ホスト側の出力信号であり、これ
ら制御信号が入力されているトランシーバー202〜2
06の入出力方向制御端子T202〜T206は制御部
100のホスト側制御信号入出力制御出力端子T14に
接続され。HD信号が入力されている。
In FIG. 1, terminals T2 to T2 of the control unit 100 are shown.
Control signals HC, HB, NRR, AC output from T6
The T and HLH signals are output signals on the host side, and the transceivers 202 to 2 to which these control signals are input.
The input / output direction control terminals T202 to T206 of 06 are connected to the host side control signal input / output control output terminal T14 of the control unit 100. HD signal is being input.

【0035】また、制御部100の端子T7〜T12か
ら出力されるPB,PTC,ADR,XF,NDA及び
PLH信号は周辺デバイス側の出力信号であり、これら
6つの制御信号が入力されているトランシーバ207〜
212の入出力方向制御端子T207〜T212は制御
部100から出力される周辺デバイス側制御信号入出力
制御出力端子T15に接続され、PD信号が入力されて
いる。
The PB, PTC, ADR, XF, NDA and PLH signals output from the terminals T7 to T12 of the control unit 100 are output signals on the peripheral device side, and transceivers to which these six control signals are input. 207 ~
The input / output direction control terminals T207 to T212 of 212 are connected to the peripheral device side control signal input / output control output terminal T15 output from the control unit 100, and the PD signal is input.

【0036】さて、図1の実施形態例の動作を以下に説
明する。先ず、ホスト/周辺設定部400により、接続
相手がパソコン等のホストデバイスであることが制御部
100に指示されると、制御部100の端子T14から
のHD信号を“Low”とする。この“Low”HD信号を受
信したトランシーバ202〜206は、コネクタ300
側が入力状態となり、ホスト側が出力である制御信号が
入力となる。また、制御部100は、端子T15から出
力されるPD信号を“High”とし、トランシーバ207
〜212を制御して、コネクタ300側を出力状態と
し、周辺デバイス側が出力である制御信号が出力とな
る。更に、制御部100は、端子T13からのDD信号
を“Low”として、トランシーバ201を制御して、コ
ネクタ300側を入力状態とする。
The operation of the embodiment shown in FIG. 1 will be described below. First, when the host / peripheral setting unit 400 instructs the control unit 100 that the connection partner is a host device such as a personal computer, the HD signal from the terminal T14 of the control unit 100 is set to “Low”. The transceivers 202 to 206 which have received this “Low” HD signal are connected to the connector 300.
The side becomes the input state, and the control signal which is the output side of the host side becomes the input. Further, the control unit 100 sets the PD signal output from the terminal T15 to “High”, and the transceiver 207
˜212, the connector 300 side is put into an output state, and the control signal whose peripheral device side is an output becomes an output. Further, the control unit 100 sets the DD signal from the terminal T13 to “Low”, controls the transceiver 201, and sets the connector 300 side to the input state.

【0037】制御部100は、こうして、データ信号及
び制御信号の入出力方向を制御した後、直ちに、端子T
12から出力されるPLH信号をアクティブにして初期
化状態である前述した互換モードの周辺デバイスとして
の動作を開始する。
In this way, the control unit 100 controls the input / output directions of the data signal and the control signal, and immediately thereafter, the terminal T
The PLH signal output from 12 is activated to start the operation as the peripheral device in the compatibility mode, which is in the initialized state.

【0038】一方、ホスト/周辺設定部400により、
接続相手が周辺デバイスであることが制御部100に指
示されると、制御部100は、端子T14からのHD信
号を“High”とし、コネクタ300側を出力状態とし、
ホスト側が出力である制御信号を出力とする。また、制
御部100は、端子T15からのPD信号を“Low”と
してトランシーバ207〜212を制御してコネクタ3
00側を入力状態とし、周辺デバイス側が出力である制
御信号を入力とするとともに、端子T13からのDD信
号を“High”としてコネクタ300側を出力状態とす
る。
On the other hand, the host / peripheral setting unit 400
When the control unit 100 is instructed that the connection partner is a peripheral device, the control unit 100 sets the HD signal from the terminal T14 to “High” and puts the connector 300 side into an output state.
The control signal output from the host side is output. In addition, the control unit 100 controls the transceivers 207 to 212 by setting the PD signal from the terminal T15 to “Low” to control the connector 3
The 00 side is set to the input state, the peripheral device side is set to the output control signal, and the DD signal from the terminal T13 is set to "High" to set the connector 300 side to the output state.

【0039】上述のように、制御部100は、データ信
号及び制御信号の入出力方向を制御した後、直ちにHL
H信号をアクティブにして初期化状態である互換モード
のホストデバイスとしての動作を開始する。
As described above, the control unit 100 controls the input / output directions of the data signal and the control signal, and immediately thereafter, the HL
The H signal is activated to start the operation as the compatible mode host device in the initialized state.

【0040】ホスト/周辺設定部400により、接続相
手がホストデバイスであるか周辺デバイスであるかを自
動判別するモードが選択され、制御部100に指示され
ると、制御部100は、端子T13,T14及びT15
から出力されるDD信号,HD信号及びPD信号を“Lo
w”として全てのトランシーバ201〜212を制御し
て、コネクタ300側を入力状態とし、コネクタ300
を介して入力される全てのデータ及び制御信号を入力状
態とし、端子T6とT12に入力されるHLH信号とP
LH信号を監視する。
When the host / peripheral setting unit 400 selects the mode for automatically determining whether the connection partner is the host device or the peripheral device and instructs the control unit 100, the control unit 100 causes the terminal T13, T14 and T15
The DD signal, HD signal and PD signal output from the
As w ″, all the transceivers 201 to 212 are controlled so that the connector 300 side is in the input state and the connector 300
All the data and control signals input via the terminals are set to the input state, and the HLH signal and P input to the terminals T6 and T12 are set.
Monitor the LH signal.

【0041】この監視の結果、HLH信号がアクティブ
である場合には、接続相手がホストデバイスであると判
断し、上述ホスト/周辺設定部400によりホストデバ
イスの接続が指示されているときの動作と同様に、デー
タ及び制御信号の入出力方向を制御した後、直ちに、P
LH信号をアクティブにして初期化状態である互換モー
ドの周辺デバイスとしての動作を開始する。
As a result of this monitoring, when the HLH signal is active, it is determined that the connection partner is the host device, and the operation when the host / peripheral setting section 400 instructs the connection of the host device. Similarly, immediately after controlling the input / output directions of data and control signals, P
The LH signal is activated to start the operation as the peripheral device in the compatible mode in the initialized state.

【0042】制御部100は、また、HLH信号とPL
H信号だけでなく、互換モードにおいてホストデバイス
が周辺デバイスを選択していることを示すACT信号及
び周辺デバイスがデータの受信を行う準備ができていな
いことを示すPB信号を監視する。
The control unit 100 also receives the HLH signal and the PL signal.
In addition to the H signal, the ACT signal indicating that the host device is selecting the peripheral device in the compatible mode and the PB signal indicating that the peripheral device is not ready to receive data are monitored.

【0043】ここで、ACT信号がアクティブ(Low)
となった場合には、接続相手がホストデバイスであると
判断し、ホスト/周辺設定手段400により接続相手が
ホストデバイスであることが指示された場合と同様に、
データ及び制御信号の入出力方向を制御した後、直ち
に、PLH信号をアクティブにし、初期化状態である互
換モードの周辺デバイスとしての動作を開始する。
Here, the ACT signal is active (Low)
When it is determined that the connection partner is the host device, the host / peripheral setting unit 400 instructs the connection partner to be the host device, similarly to the case.
Immediately after controlling the input / output directions of the data and control signals, the PLH signal is activated to start the operation as the peripheral device in the compatible mode in the initialized state.

【0044】また、PB信号がインアクティブとなった
場合には、接続相手が周辺デバイスであると判断し、ホ
スト/周辺設定手段400により接続相手が周辺デバイ
スであることが指示された場合と同様に、データ及び制
御信号の入出力方向を制御した後、直ちにHLH信号を
アクティブにして初期化状態である互換モードのホスト
デバイスとしての動作を開始する。
When the PB signal becomes inactive, it is determined that the connection partner is a peripheral device, and the host / peripheral setting means 400 instructs the connection partner to be a peripheral device. After controlling the input / output directions of the data and the control signal, the HLH signal is immediately activated to start the operation as the host device in the compatible mode in the initialized state.

【0045】更に、制御部100は、上記ネゴシエーシ
ョンを始める際に使用されるACT信号及びHB信号を
監視し、ACT信号が“High”且つHB信号が“Low”
となった場合には、接続相手がホストデバイスであると
判断し、ホスト/周辺設定手段400により接続される
相手がホストデバイスであることが指示された場合と同
様に、データ及び制御信号の入出力方向を制御した後、
直ちに、PLH信号をアクティブにし、ネゴシエーショ
ンの応答を返し、周辺デバイスとしての動作を開始す
る。
Further, the control unit 100 monitors the ACT signal and the HB signal used when starting the negotiation, and the ACT signal is "High" and the HB signal is "Low".
If it is determined that the connection partner is the host device, the host / peripheral setting means 400 inputs the data and the control signal in the same manner as when the partner connected is the host device. After controlling the output direction,
Immediately, the PLH signal is activated, the response of the negotiation is returned, and the operation as the peripheral device is started.

【0046】以上説明したように、本発明の各種実施形
態では、接続される相手がホストであるか、周辺デバイ
スであるか、または自動判別を行うかを設定するホスト
/周辺設定部400を設け、相手が「ホストデバイス」
と設定された場合に、周辺デバイスとしての動作を行
い、接続相手が「周辺デバイス」と設定された場合に
は、ホストデバイスとしての動作を行うことにより、接
続相手がホストデバイスであるか周辺デバイスであるか
によって、制御信号の入出力方向及び動作を容易に且つ
確実に切り替えている。
As described above, in the various embodiments of the present invention, the host / peripheral setting section 400 for setting whether the connected partner is the host, the peripheral device, or the automatic determination is provided. , The other party is a "host device"
If it is set as a peripheral device, and if the connection partner is set as a "peripheral device", it operates as a host device to determine whether the connection partner is a host device or a peripheral device. Therefore, the input / output direction and operation of the control signal are easily and surely switched.

【0047】また、ホスト/周辺設定部400により、
接続の判別が設定情報によらず、「自動判別」と設定さ
れた場合には、制御信号HLH信号及びPLH信号を監
視し、HLH信号がアクティブであることを検出した場
合には周辺デバイスとしての動作を行い、PLH信号が
アクティブであることを検出した場合にはホストデバイ
スとしての動作を行うことにより、接続相手がホストデ
バイスであるか周辺デバイスであるかの判別、制御信号
の入出力方向及び動作の切り替えを自動化している。
In addition, by the host / peripheral setting unit 400,
When the connection determination is set to "automatic determination" regardless of the setting information, the control signal HLH signal and the PLH signal are monitored, and when it is detected that the HLH signal is active, it is determined as a peripheral device. When it is detected that the PLH signal is active, the operation as the host device is performed to determine whether the connection partner is the host device or the peripheral device, the input / output direction of the control signal, and The operation switching is automated.

【0048】更に、上記制御信号、HLH信号及びPL
H信号が接続されていない場合でも、互換モードにおけ
る制御信号であるACT信号及びPB信号を監視し、A
CT信号がアクティブであることを検出した場合には周
辺デバイスとしての動作を行い、PB信号がインアクテ
ィブであることを検出した場合にはホストとしての動作
を行うことにより、相手がホストデバイスであるか周辺
デバイスであるかに応じて制御信号の入出力方向及び動
作の切り替えを自動的に行うことができる。
Further, the control signal, HLH signal and PL
Even if the H signal is not connected, the ACT signal and the PB signal, which are control signals in the compatible mode, are monitored and
When it is detected that the CT signal is active, it operates as a peripheral device, and when it detects that the PB signal is inactive, it operates as a host, so that the other party is a host device. It is possible to automatically switch the input / output direction of the control signal and the operation depending on whether it is a peripheral device or a peripheral device.

【0049】このとき、ホストデバイス側がネゴシエー
ション動作を開始するために、ACT信号がインアクテ
ィブになった場合でも、ACT信号及びHB信号を監視
し、ACT信号が“High”、且つHB信号が“Low”と
なったことを検出した場合には、周辺デバイスとしての
動作を行うことにより、相手がホストデバイスであるこ
とを判別して、制御信号の入出力方向及び動作の切り替
えを自動的に行うことができる。
At this time, even if the ACT signal becomes inactive in order to start the negotiation operation on the host device side, the ACT signal and the HB signal are monitored, and the ACT signal is "High" and the HB signal is "Low". If it is detected that the other device is a host device, it operates as a peripheral device and automatically switches the control signal input / output direction and operation. You can

【0050】上記説明の当該装置として電子スチルカメ
ラ等の機器を用い、1つのコネクタを使用して、PC等
のホストデバイス、またはプリンタ等の周辺デバイスに
接続すれば、接続されたデバイスに最適な動作を行うこ
とができる。
If a device such as an electronic still camera is used as the device in the above description and one connector is used to connect to a host device such as a PC or a peripheral device such as a printer, it is most suitable for the connected device. You can take action.

【0051】尚、以上の実施形態例の説明では、ホスト
/周辺設定部400による設定は、「ホスト」、「周辺
デバイス」、「自動判別」3種類としているが、「ホス
ト」と「周辺デバイス」の2種類として自動判別を行わ
なくても良い。また、ホスト/周辺設定部400を特別
に設けず、制御部100の処理で自動判別動作を行うよ
うにしても良い。
In the above description of the embodiment, the host / peripheral setting unit 400 sets three types of "host", "peripheral device", and "automatic determination". It is not necessary to perform the automatic determination as the two types. Further, the host / peripheral setting unit 400 may not be specially provided, and the automatic determination operation may be performed by the processing of the control unit 100.

【0052】前述「特許請求の範囲」の記載以外の本発
明の他の構成要旨は次のとおりである。
Other structural points of the present invention other than the description of the "claims" are as follows.

【0053】(1)前記周辺デバイス側が通信可能であ
ることを示す周辺デバイスからホストデバイスへの制御
信号を入力信号として監視し、この制御信号がアクティ
ブであることを検出した場合には前記接続相手が周辺デ
バイスであるとして動作する請求項1に記載のパラレル
インタフェース回路。 (1)による効果:周辺デバイス側が通信可能であるこ
とを示す周辺デバイスからホストデバイスへの制御信号
がアクティブであることを検出した場合には接続する相
手が周辺デバイスであるとして、動作することにより、
相手が周辺デバイスであることを判別して、制御信号の
入出力方向及び動作の切り替えを自動的に行うことが可
能となる。
(1) A control signal from the peripheral device indicating that the peripheral device side is communicable to the host device is monitored as an input signal, and when it is detected that this control signal is active, the connection partner is connected. The parallel interface circuit according to claim 1, which operates as a peripheral device. Effect due to (1): When it is detected that the control signal from the peripheral device indicating that the peripheral device can communicate with the host device is active, it is assumed that the partner to be connected is the peripheral device ,
It is possible to determine that the other party is a peripheral device and automatically switch the input / output direction of the control signal and the operation.

【0054】(2)前記ホストデバイスが周辺デバイス
を選択していることを示すホストデバイスから周辺デバ
イスへの制御信号を入力信号として監視し、この制御信
号がアクティブであることを検出した場合には、前記接
続相手がホストデバイスであるとして動作する請求項1
に記載のパラレルインタフェース回路。 (2)による効果:ホストデバイスが周辺デバイスを選
択していることを示すホストデバイスから周辺デバイス
への制御信号がアクティブであることを検出した場合に
は、接続する相手がホストデバイスであるとして、動作
することにより、たとえ、上記ホストデバイス側が通信
可能であることを示すホストデバイスから周辺デバイス
への制御信号が接続されていない場合でも、相手がホス
トデバイスであることを判別して、制御信号の入出力方
向及び動作の切り替えを自動的に行うことが可能とな
る。
(2) The host device monitors the control signal from the host device to the peripheral device, which indicates that the peripheral device is selecting the peripheral device, as an input signal, and detects that the control signal is active. , The connection partner operates as a host device.
The parallel interface circuit described in. Effect due to (2): When it is detected that the control signal from the host device to the peripheral device indicating that the host device is selecting the peripheral device is active, it is determined that the partner to be connected is the host device. Even if the control signal from the host device to the peripheral device, which indicates that the host device side can communicate, is not connected by operating, it is determined that the other party is the host device and the control signal It is possible to automatically switch the input / output direction and operation.

【0055】(3)前記周辺デバイス側がデータの受信
を行う準備ができていないことを示す周辺デバイスから
ホストデバイスへの制御信号を入力信号として監視し、
この制御信号がアクティブでないことを検出した場合に
は、接続する相手が周辺デバイスであるとして動作する
請求項1に記載のパラレルインタフェース回路。 (3)による効果:周辺デバイス側がデータの受信を行
う準備ができていないことを示す周辺デバイスからホス
トデバイスへの制御信号がアクティブでないことを検出
した場合には、接続する相手が周辺デバイスであるとし
て、動作することにより、たとえ、上記周辺デバイス側
が通信可能であることを示す周辺デバイスからホストデ
バイスへの制御信号が接続されていない場合でも、相手
が周辺デバイスであることを判別して、制御信号の入出
力方向及び動作の切り替えを自動的に行うことが可能と
なる。
(3) A control signal from the peripheral device to the host device indicating that the peripheral device is not ready to receive data is monitored as an input signal,
The parallel interface circuit according to claim 1, wherein when the control signal detects that the control signal is not active, the partner to be connected operates as a peripheral device. Effect of (3): When the peripheral device detects that the control signal from the peripheral device to the host device indicating that the peripheral device is not ready to receive data is inactive, the connected device is the peripheral device. As a result, even if the control signal from the peripheral device indicating that the peripheral device side can communicate is not connected to the host device by operating, It is possible to automatically switch the input / output direction of the signal and the operation.

【0056】(4)データ転送の方向等の異なる複数の
転送モードを持ち、転送モードを選択する手順を起動す
るために使用されるホストデバイスから周辺デバイスへ
のアクティブレベルの異なる第1及び第2の制御信号を
入力信号として監視し、前記転送モードを選択する手順
の起動を検出した場合には、前記接続相手がホストデバ
イスであるとして動作する請求項1に記載のパラレルイ
ンタフェース回路。 (4)による効果:データ転送の方向等の異なる複数の
転送モードを選択する手順を起動するために使用される
ホストデバイスから周辺デバイスへのアクティブ・レベ
ルの異なる第1及び第2の制御信号を入力信号として監
視し、上記転送モードを選択する手順の起動を検出した
場合には、接続する相手がホストデバイスであるとし
て、動作することにより、たとえ、上記ホストデバイス
側が通信可能であることを示すホストデバイスから周辺
デバイスへの制御信号が接続されておらず、また、接続
されている相手のホストデバイスが上記転送モードを選
択する手順を起動するために、上記ホストデバイスが周
辺デバイスを選択していることを示すホストデバイスか
ら周辺デバイスへの制御信号がインアクティブになった
際にも、相手がホストデバイスであることを判別して、
制御信号の入出力方向及び動作の切り替えを自動的に行
うことが可能となる。
(4) First and second different active levels from the host device to the peripheral device which have a plurality of transfer modes having different data transfer directions and are used for activating the procedure for selecting the transfer mode. The parallel interface circuit according to claim 1, wherein the parallel interface circuit operates as a host device when the control signal is monitored as an input signal and the activation of the procedure for selecting the transfer mode is detected. Effect due to (4): The first and second control signals having different active levels from the host device to the peripheral device, which are used for activating a procedure for selecting a plurality of transfer modes having different data transfer directions and the like. When it is monitored as an input signal and activation of the procedure for selecting the transfer mode is detected, it is assumed that the other party to be connected is the host device, and by operating, it indicates that the host device side can communicate. The control signal from the host device to the peripheral device is not connected, and the connected host device selects the peripheral device to activate the transfer mode selection procedure. When the control signal from the host device to the peripheral device indicating that the Determine that the device,
It becomes possible to automatically switch the input / output direction of the control signal and the operation.

【0057】[0057]

【発明の効果】以上説明したように、転送データ信号、
データ転送を制御するホストデバイスから周辺デバイス
への制御信号、及びデータ転送を制御する周辺デバイス
からホストデバイスへの制御信号とを含む信号の授受制
御を行う本発明のパラレルインタフェース回路を、パー
ソナルコンピュータ等のホストデバイスと、またはプリ
ンタ等の周辺デバイスとの間でデータ転送を行う電子ス
チルカメラ等の機器に適用することにより下記のような
格別な効果が得られる。
As described above, the transfer data signal,
A parallel interface circuit of the present invention, which controls exchange of signals including a control signal from a host device controlling data transfer to a peripheral device and a control signal from a peripheral device controlling data transfer to a host device, is provided in a personal computer or the like. When applied to a device such as an electronic still camera that transfers data between the host device of 1 above and a peripheral device such as a printer, the following special effects are obtained.

【0058】(請求項1)による効果:接続する相手が
ホストデバイスであるか周辺デバイスであるかによっ
て、上記制御信号の入出力方向を切り替えて動作するこ
とにより、電子スチルカメラ等の機器を、1つのコネク
タを使用して、PC等のホストデバイスにも、プリンタ
等の周辺デバイスにも接続することが可能となる。
Effect of (Claim 1): By switching the input / output direction of the control signal to operate depending on whether the connected party is a host device or a peripheral device, a device such as an electronic still camera can be operated. Using one connector, it is possible to connect to a host device such as a PC and a peripheral device such as a printer.

【0059】(請求項2)による効果:操作者によっ
て、接続する相手がホストデバイスであるか周辺デバイ
スであるかを設定可能であるような設定手段をもつこと
により、相手がホストデバイスであるか周辺デバイスで
あるかによって、制御信号の入出力方向及び動作を容易
に且つ確実に切り替えることが可能となる。
Effect of (Claim 2): Whether the partner is the host device or not is provided by having a setting means that enables the operator to set whether the partner to be connected is the host device or the peripheral device. Depending on whether the device is a peripheral device, it is possible to easily and surely switch the input / output direction and operation of the control signal.

【0060】(請求項3)による効果:ホストデバイス
側が通信可能であることを示すホストデバイスから周辺
デバイスへの制御信号がアクティブであることを検出し
た場合には接続する相手がホストデバイスであるとして
動作することにより、相手がホストデバイスであること
を判別して、制御信号の入出力方向及び動作の切り替え
を自動的に行うことが可能となる。
Effect of (Claim 3): When it is detected that the control signal from the host device to the peripheral device indicating that the host device side is communicable is active, it is determined that the other party to be connected is the host device. By operating, it is possible to determine that the other party is the host device and automatically switch the input / output direction of the control signal and the operation.

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

【図1】本発明の一実施形態におけるパラレルインタフ
ェース回路の構成ブロック図である。
FIG. 1 is a configuration block diagram of a parallel interface circuit according to an embodiment of the present invention.

【図2】IEEE 1284標準に従う動作の初期化時
の互換モードの動作タイミングチャートである。
FIG. 2 is an operation timing chart of a compatibility mode at the time of initialization of an operation according to the IEEE 1284 standard.

【図3】IEEE 1284標準に従うネゴシエーショ
ン動作のタイミングチャートである。
FIG. 3 is a timing chart of a negotiation operation according to the IEEE 1284 standard.

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

100 制御部 200 トランシーバー群 201〜212 トランシーバー 221〜225,227〜231 プルアップ抵抗 226,232 プルダウン抵抗 300 コネクタ 400 ホスト/周辺設定部 100 Control Unit 200 Transceiver Group 201-212 Transceiver 221-225, 227-231 Pull-up Resistor 226,232 Pull-down Resistor 300 Connector 400 Host / Peripheral Setting Unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】ホストデバイスと、該ホストデバイスによ
り制御される周辺デバイスとの間で転送データ、データ
転送を制御する前記ホストデバイスから前記周辺デバイ
スへの制御信号、及びデータ転送を制御する前記周辺デ
バイスから前記ホストデバイスへの制御信号の授受制御
を行うパラレルインタフェース回路であって、 接続相手がホストデバイスであるか周辺デバイスである
かによって、上記制御信号の入出力方向を切り替えて動
作することを特徴とするパラレルインタフェース回路。
1. Transfer data between a host device and a peripheral device controlled by the host device, a control signal from the host device for controlling the data transfer to the peripheral device, and the peripheral for controlling the data transfer. A parallel interface circuit that controls the transmission and reception of a control signal from a device to the host device, and operates by switching the input / output direction of the control signal depending on whether the connection partner is a host device or a peripheral device. Characteristic parallel interface circuit.
【請求項2】接続相手がホストデバイスであるか周辺デ
バイスであるかを設定する設定手段を有する請求項1に
記載のパラレルインタフェース回路。
2. The parallel interface circuit according to claim 1, further comprising setting means for setting whether the connection partner is a host device or a peripheral device.
【請求項3】前記ホストデバイス側が通信可能であるこ
とを示すホストデバイスから周辺デバイスへの制御信号
を入力信号として監視し、この制御信号がアクティブで
あることを検出した場合には前記接続相手がホストデバ
イスであるとして動作する請求項1に記載のパラレルイ
ンタフェース回路。
3. A control signal from the host device to a peripheral device, which indicates that the host device side is communicable, is monitored as an input signal, and when it is detected that the control signal is active, the connection partner is The parallel interface circuit according to claim 1, which operates as a host device.
JP35313695A 1995-12-28 1995-12-28 Parallel interface circuit Withdrawn JPH09185441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35313695A JPH09185441A (en) 1995-12-28 1995-12-28 Parallel interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35313695A JPH09185441A (en) 1995-12-28 1995-12-28 Parallel interface circuit

Publications (1)

Publication Number Publication Date
JPH09185441A true JPH09185441A (en) 1997-07-15

Family

ID=18428805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35313695A Withdrawn JPH09185441A (en) 1995-12-28 1995-12-28 Parallel interface circuit

Country Status (1)

Country Link
JP (1) JPH09185441A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09259079A (en) * 1996-03-25 1997-10-03 Canon Inc Communication control device, communication control method, and memory
JP2017151740A (en) * 2016-02-25 2017-08-31 ラピスセミコンダクタ株式会社 Signal transmission device and input and output setting method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09259079A (en) * 1996-03-25 1997-10-03 Canon Inc Communication control device, communication control method, and memory
JP2017151740A (en) * 2016-02-25 2017-08-31 ラピスセミコンダクタ株式会社 Signal transmission device and input and output setting method

Similar Documents

Publication Publication Date Title
US7085876B2 (en) USB controlling apparatus for data transfer between computers and method for the same
JP4480897B2 (en) Selective alternate use of interfaces
US5784581A (en) Apparatus and method for operating a peripheral device as either a master device or a slave device
US20090019187A1 (en) Peripheral Device Using Method, and Peripheral Device Server
JPH11112524A (en) Connection establishment method, communication method, state change transmission method, state change execution method, wireless device, wireless device, and computer
JP2008536225A (en) Peripheral device shared USB hub
JP2003008681A (en) Information processing apparatus and communication method switching method
JPH10301899A (en) Electronic equipment and interface circuits
JP2002341982A (en) General-purpose serial bus circuit
WO2009048819A1 (en) Addressing multiple devices on a shared bus
TWI778063B (en) Usb host-to-host auto-switching
JP2002055936A (en) USB device, communication system and communication method between USB device
JPH10301898A (en) Electronic equipment and interface circuits
US5961624A (en) Connection apparatus which facilitates conflict-free interfacing between host apparatuses and one or more peripherals
JPH1049476A (en) Logical connection method for plural devices to parallel port
US20050091437A1 (en) Multi-function universal serial bus wireless bridge
JPH11177598A (en) Hub device, communication method of hub device, and storage medium storing computer readable program
JP2001282701A (en) Device and method for processing information
JP2000209238A (en) Electronic device control method and electronic device control device
US20040019816A1 (en) Three wire communication protocol
JP2011215855A (en) Usb device control circuit and control method of usb device
JP3937434B2 (en) Electronic equipment with a communication controller that can selectively set the roles of both the host and the device
JPH09185441A (en) Parallel interface circuit
EP1115068A2 (en) Serial bus connection controller for establishing a logical connection between initiator and target nodes
CN111130678B (en) Data transmission method, device, equipment and computer readable storage medium

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: 20030304