JPH10301899A - Electronic equipment and interface circuit - Google Patents

Electronic equipment and interface circuit

Info

Publication number
JPH10301899A
JPH10301899A JP10620097A JP10620097A JPH10301899A JP H10301899 A JPH10301899 A JP H10301899A JP 10620097 A JP10620097 A JP 10620097A JP 10620097 A JP10620097 A JP 10620097A JP H10301899 A JPH10301899 A JP H10301899A
Authority
JP
Japan
Prior art keywords
pull
terminal
power supply
connector
host
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.)
Granted
Application number
JP10620097A
Other languages
Japanese (ja)
Other versions
JP3610424B2 (en
Inventor
Toshihiko Miyamura
俊彦 宮村
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP10620097A priority Critical patent/JP3610424B2/en
Publication of JPH10301899A publication Critical patent/JPH10301899A/en
Application granted granted Critical
Publication of JP3610424B2 publication Critical patent/JP3610424B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make it possible to use the electronic equipment even as both a host and a guest without providing two interfaces. SOLUTION: Relating to the electronic equipment having the interface circuit for connecting other equipment, the interface circuit is equipped with a USB (universal serial bus) connector 30 provided with terminals for connecting data lines D+ and D0- and a power line (Vcc, GND), a power source part 32 for supplying electric power through the power line, a switching part 32 which selectively connects pull-up resistances(R2) 44 and 48 and pull-down resistances(R 1) 46 and 49 to the data lines D+ and D- respectively and switches the connection between the power source part 32 and power line (Vcc), and a USB control part 38 which controls the switching of the connections of the pull-up resistances(R2) and pull-down resistances(R1) with the data lines D+ and D- and the connection fo the power source part 32 with the power line (Vcc).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、キーボード、マウ
ス、スピーカ、モデム、プリンタ等の周辺機器を接続す
る電子機器及びインタフェース回路に関する。
The present invention relates to an electronic device for connecting peripheral devices such as a keyboard, a mouse, a speaker, a modem, and a printer, and an interface circuit.

【0002】[0002]

【従来の技術】近年では、キーボード、マウス、スピー
カ、モデム、プリンタ等の周辺機器を接続する規格とし
て、USB(Universal Serial Bus)が用いられ始めて
いる。USBインタフェースは、周辺機器毎に異なって
いたインタフェースを、同一のインタフェースコネクタ
によって手軽にパーソナルコンピュータ等のホストに接
続できるようにしたものである。
2. Description of the Related Art In recent years, Universal Serial Bus (USB) has begun to be used as a standard for connecting peripheral devices such as a keyboard, a mouse, a speaker, a modem, and a printer. The USB interface allows an interface that differs for each peripheral device to be easily connected to a host such as a personal computer by the same interface connector.

【0003】USBインタフェースは、必ず1台のホス
ト(パーソナルコンピュータ等)が存在し、このホスト
に周辺機器(論理的な機能をファンクションと呼ぶ)を
接続してデータを送受信することができる。USBイン
タフェースは、ハブを設けることで自分自信の先にさら
に周辺機器(ファンクション)を接続することができ
る。
In the USB interface, there is always one host (a personal computer or the like), and peripheral devices (logical functions are called functions) can be connected to this host to transmit and receive data. With the USB interface, a peripheral device (function) can be further connected to itself by providing a hub.

【0004】図6には、従来のUSBインタフェースに
よるホスト80と周辺機器82の接続形態の一例を示し
ている。USBインタフェースは、ホスト用と周辺機器
用とがあり、また周辺機器用には高速転送用(フルスピ
ード)と低速転送用(ロースピード)とがある。
FIG. 6 shows an example of a connection form between a host 80 and a peripheral device 82 using a conventional USB interface. The USB interface includes a host interface and a peripheral interface, and peripheral interfaces include a high-speed transfer interface (full speed) and a low-speed transfer interface (low speed).

【0005】図6(a)は、ホスト80と高速転送を行
なう周辺機器82(フルスピード・ファンクション)と
が、ケーブル84を介して接続された構成である。ホス
ト80にはUSB回路(トランシーバ)86が設けら
れ、周辺機器82にはUSB回路(トランシーバ)90
が設けられている。
FIG. 6A shows a configuration in which a host 80 and a peripheral device 82 (full-speed function) for high-speed transfer are connected via a cable 84. A USB circuit (transceiver) 86 is provided in the host 80, and a USB circuit (transceiver) 90 is provided in the peripheral device 82.
Is provided.

【0006】USBのデータラインは2本(D+,D
−)であり、ホスト80側においてそれぞれのデータラ
インにプルダウン抵抗(R1)88,89が接続され
る。一方、周辺機器82側では、フルスピード・ファン
クションであるので、D+のデータラインにプルアップ
抵抗(R2)91が接続される。USBインタフェース
の規格では、プルダウン抵抗(R1)は15kΩ±5
%、プルアップ抵抗(R2)は1.5kΩ±5%となっ
ている。
[0006] There are two USB data lines (D +, D
−), Pull-down resistors (R1) 88 and 89 are connected to the respective data lines on the host 80 side. On the other hand, on the peripheral device 82 side, the pull-up resistor (R2) 91 is connected to the D + data line because of the full-speed function. According to the USB interface standard, the pull-down resistor (R1) is 15 kΩ ± 5
%, And the pull-up resistance (R2) is 1.5 kΩ ± 5%.

【0007】図6(b)は、ホスト80と低速転送を行
なう周辺機器92(ロースピード・ファンクション)と
が、ケーブル94を介して接続された構成である。ホス
ト80側は、図6(a)と同じであり、USB回路(ト
ランシーバ)86が設けられ、各データラインにプルダ
ウン抵抗(R1)88,89が接続されている。一方、
周辺機器92側では、ロースピード・ファンクションで
あるので、D−のデータラインにプルアップ抵抗(R
2)95が接続される。
FIG. 6B shows a configuration in which a host 80 and a peripheral device 92 (low-speed function) for performing low-speed transfer are connected via a cable 94. The host 80 is the same as that shown in FIG. 6A. A USB circuit (transceiver) 86 is provided, and pull-down resistors (R1) 88 and 89 are connected to each data line. on the other hand,
On the peripheral device 92 side, since it is a low-speed function, a pull-up resistor (R
2) 95 is connected.

【0008】[0008]

【発明が解決しようとする課題】このように従来のUS
Bインタフェースは、ホスト80側ではデータラインの
それぞれにプルダウン抵抗(R1)88,89が接続さ
れる構成であり、高速転送を行なう周辺機器82では一
方のデータラインD+にプルアップ抵抗(R2)91が
接続され、低速転送を行なう周辺機器92では他方のデ
ータラインD−プルアップ抵抗(R2)95が接続され
る構成(規格)となっていた。
As described above, the conventional US
The B interface has a configuration in which pull-down resistors (R1) 88 and 89 are connected to respective data lines on the host 80 side, and a pull-up resistor (R2) 91 is connected to one data line D + in the peripheral device 82 that performs high-speed transfer. The peripheral device 92 that performs low-speed transfer has a configuration (standard) in which the other data line D-pull-up resistor (R2) 95 is connected.

【0009】すなわち、ホストであるか周辺機器である
か、さらに周辺機器の場合に高速転送を行なうか低速転
送を行なうかによって、インタフェース回路の構成が異
なっていた。
That is, the configuration of the interface circuit differs depending on whether the device is a host or a peripheral device, and whether the peripheral device performs high-speed transfer or low-speed transfer.

【0010】電子機器あるいは周辺機器が、ホストある
いは周辺機器として使用方法が固定されていれば、US
Bインタフェースに準拠した1つのコネクタを設けるだ
けで良い。
If an electronic device or a peripheral device is used in a fixed manner as a host or a peripheral device,
It is only necessary to provide one connector conforming to the B interface.

【0011】ところが近年では、ホストにも周辺機器に
もなり得る装置、例えば携帯型の電子機器(例えばハン
ドヘルドパーソナルコンピュータ(HPC))が広く使
用され始めている。
In recent years, however, devices that can be both hosts and peripheral devices, for example, portable electronic devices (for example, handheld personal computers (HPCs)) have begun to be widely used.

【0012】一般に、携帯型の電子機器(HPC)は、
パーソナルコンピュータ等をホストとして利用して、直
接的に接続してデータの送受信を行なう周辺機器として
機能させたり、モデムやプリンタ等の周辺機器を接続し
て通信や印刷を行なうホストとして機能させることがあ
る。
In general, portable electronic devices (HPCs)
A personal computer or the like can be used as a host to directly connect and function as a peripheral device for transmitting and receiving data, or connect a peripheral device such as a modem or a printer to function as a host for communication or printing. is there.

【0013】従って、電子機器(HPC)を周辺機器、
ホストの何れにも機能させようとした場合に、USBイ
ンタフェースを利用するとホスト用と周辺機器用の2個
のコネクタを設けなければならない。
Therefore, an electronic device (HPC) is a peripheral device,
If any of the hosts is to function, the use of the USB interface requires the provision of two connectors for the host and peripheral devices.

【0014】このため、電子機器(HPC)を構成する
上で筐体内に2個のインタフェース(コネクタ)分のス
ペースを必要とし、またコストも2個分必要となってし
まう。
[0014] For this reason, a space for two interfaces (connectors) is required in the housing in configuring the electronic device (HPC), and the cost is also required for two.

【0015】本発明は前記のような事情を考慮してなさ
れたもので、電子機器を、2個のインタフェースを設け
ることなく、ホストとしても周辺機器としても使用する
ことが可能な電子機器及びインタフェース回路を提供す
ることを目的とする。
[0015] The present invention has been made in view of the above-described circumstances, and an electronic device and an interface that can be used as a host and a peripheral device without providing two interfaces. It is intended to provide a circuit.

【0016】[0016]

【課題を解決するための手段】本発明は、他の機器を接
続するためのインタフェース回路を有する電子機器にお
いて、前記インタフェース回路は、2本のデータライン
を接続するための第1の端子と電源ラインを接続するた
めの第2の端子が設けられたコネクタと、前記コネクタ
の第2の端子に接続された電源ラインを通じて電力を供
給するための電源手段と、前記コネクタの第1の端子に
接続されたデータラインのそれぞれに対して、プルアッ
プ抵抗とプルダウン抵抗とを選択的に接続すると共に、
前記電源手段と前記コネクタの第2の端子との接続を切
換える切換え手段と、前記切換え手段によるプルアップ
抵抗とプルダウン抵抗の前記データラインに対する接続
と、前記電源手段と前記コネクタの第2の端子との接続
の切換えを制御する制御手段とを具備したことを特徴と
する。
According to the present invention, there is provided an electronic device having an interface circuit for connecting another device, wherein the interface circuit comprises a first terminal for connecting two data lines and a power supply. A connector provided with a second terminal for connecting a line, power supply means for supplying power through a power supply line connected to the second terminal of the connector, and a connector connected to the first terminal of the connector Selectively connect a pull-up resistor and a pull-down resistor to each of the data lines
Switching means for switching the connection between the power supply means and the second terminal of the connector; connection of a pull-up resistor and a pull-down resistor to the data line by the switching means; and connection between the power supply means and a second terminal of the connector. And control means for controlling switching of the connection.

【0017】これにより、USBインタフェースの規格
に従って、接続相手の機器がホストとして機能する場合
には、プルアップ抵抗をデータラインに接続することで
周辺器機としてデータ転送ができ、また接続相手の器機
が周辺器機として機能する場合には、プルダウン抵抗を
データラインに接続することでホストとしてデータ転送
することができる。また、電力についても、自機器がホ
ストとして機能する場合には周辺器機に対して供給し、
周辺器機として機能する場合にはホストから供給される
電力を取り込むことができる。
According to this, when the device to be connected functions as a host according to the USB interface standard, data can be transferred as a peripheral device by connecting the pull-up resistor to the data line, and the device to be connected can be connected to the data line. When functioning as a peripheral device, data can be transferred as a host by connecting a pull-down resistor to a data line. In addition, power is also supplied to peripheral devices when the own device functions as a host,
When functioning as a peripheral device, it can take in power supplied from the host.

【0018】また、接続された機器が自機器に対してホ
ストとして機能するか、周辺装置として機能するかを検
出する検出手段を具備し、前記制御手段は、前記検出手
段による検出の結果、接続された機器がホストとして機
能する場合に、前記切換え手段においてプルアップ抵抗
をデータラインに接続させ、接続された機器が周辺器機
として機能する場合に、前記切換え手段においてプルダ
ウン抵抗をデータラインに接続させることを特徴とす
る。
[0018] The apparatus further comprises detection means for detecting whether the connected device functions as a host or a peripheral device with respect to the device itself, and wherein the control means determines the connection result as a result of the detection by the detection means. When the connected device functions as a host, a pull-up resistor is connected to the data line in the switching means, and when the connected device functions as a peripheral device, a pull-down resistor is connected to the data line in the switching device. It is characterized by the following.

【0019】また、前記検出手段は、前記データライン
の信号レベルによって、接続された機器が自機器に対し
てホストとして機能するか、周辺装置として機能するか
を検出することを特徴とする。
Further, the detecting means detects whether the connected device functions as a host or a peripheral device with respect to the own device based on the signal level of the data line.

【0020】また、前記検出手段は、前記電源ラインに
対して一定負荷を与えるための抵抗と、前記抵抗による
負荷を与え、この時の電圧降下の有無により、接続され
た機器が自機器に対してホストとして機能するか、周辺
装置として機能するかを検出する回路とを具備したこと
を特徴とする。
The detecting means applies a resistor for applying a constant load to the power supply line, and a load by the resistor, and determines whether the connected device is connected to its own device based on the presence or absence of a voltage drop at this time. And a circuit for detecting whether the device functions as a host or a peripheral device.

【0021】また、他の機器を接続するためのインタフ
ェース回路において、2本のデータラインを接続するた
めの第1の端子と電源ラインを接続するための第2の端
子が設けられたコネクタと、前記コネクタの第1の端子
に接続された電源ラインを通じて電力を供給するための
電源手段と、前記コネクタの第1の端子に接続されたデ
ータラインのそれぞれに対して、プルアップ抵抗とプル
ダウン抵抗とを選択的に接続すると共に、前記電源手段
と前記コネクタの第2の端子との接続を切換える切換え
手段と、前記2本のデータラインを通じてデータの送信
または受信を行なうトランシーバと、前記切換え手段に
よるプルアップ抵抗とプルダウン抵抗の前記データライ
ンに対する接続と、前記電源手段と前記コネクタの第2
の端子との接続の切換えを制御すると共に、前記トラン
シーバによるデータの送受信を制御する制御手段とを具
備したことを特徴とする。
Also, in an interface circuit for connecting another device, a connector provided with a first terminal for connecting two data lines and a second terminal for connecting a power supply line, Power supply means for supplying power through a power supply line connected to a first terminal of the connector; and a pull-up resistor and a pull-down resistor for each of data lines connected to the first terminal of the connector. Switching means for selectively connecting the power supply means and the second terminal of the connector; a transceiver for transmitting or receiving data through the two data lines; Connection of an up resistor and a pull down resistor to the data line;
And control means for controlling switching of connection with the terminal and controlling transmission and reception of data by the transceiver.

【0022】[0022]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。図1は本実施形態に係わる
電子機器の概略構成を示すブロック図である。図1に示
すように、本実施形態における電子機器は、CPU1
0、メモリ12、外部記憶装置14、表示装置16、入
力装置17、及びインタフェース回路19によって構成
されている。図1に示す電子機器は、ホストにも周辺機
器にもなり得る装置、例えば携帯型の電子機器(HP
C)であるものとする。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating a schematic configuration of an electronic device according to the present embodiment. As shown in FIG. 1, the electronic device according to the present embodiment includes a CPU 1
0, a memory 12, an external storage device 14, a display device 16, an input device 17, and an interface circuit 19. The electronic device shown in FIG. 1 is a device that can be a host or a peripheral device, for example, a portable electronic device (HP
C).

【0023】CPU10は、電子機器全体の制御を司る
もので、メモリ12に格納されたプログラムに従う各種
処理を実行する。CPU10は、電子機器を、例えばパ
ーソナルコンピュータに対する周辺装置として、あるい
はキーボード、マウス、モデム、プリンタ等の周辺装置
に対するホストとして機能させる。
The CPU 10 controls the entire electronic device and executes various processes according to programs stored in the memory 12. The CPU 10 causes the electronic device to function as, for example, a peripheral device for a personal computer or a host for peripheral devices such as a keyboard, a mouse, a modem, and a printer.

【0024】メモリ12は、CPU10の動作を規定す
るプログラムやデータ等を格納する。外部記憶装置14
は、ハードディスク装置等によって構成されるもので、
プログラムやデータ等を格納する。
The memory 12 stores programs, data, and the like that define the operation of the CPU 10. External storage device 14
Is composed of a hard disk device, etc.
Stores programs and data.

【0025】表示装置16は、液晶ディスプレイ等によ
って構成されるもので、各種処理に関係する表示を行な
う。入力装置17は、キーボードやマウス等によって構
成されるもので、電子機器で実行される処理に対するコ
ードやデータ等の入力を行なう。
The display device 16 is constituted by a liquid crystal display or the like, and performs display related to various processes. The input device 17 includes a keyboard, a mouse, and the like, and inputs codes, data, and the like for processing executed by the electronic device.

【0026】インタフェース回路19は、電子機器に対
してホストとして機能する機器(パーソナルコンピュー
タ等)、あるいは周辺機器と接続を行なうためのもの
で、基本的にはUSB(Universal Serial Bus)の規格
に準拠したものである。
The interface circuit 19 connects the electronic device to a device functioning as a host (such as a personal computer) or a peripheral device, and basically conforms to the USB (Universal Serial Bus) standard. It was done.

【0027】ただし、USBの規格では、ホストである
か周辺機器であるか、さらに周辺機器の場合に高速転送
を行なうか低速転送を行なうかによってインタフェース
回路の構成が異なっているが、本実施形態におけるイン
タフェース回路19は、接続相手の機器に応じて何れの
場合にも対応できる構成となっている。詳細な構成につ
いては後述する。
However, in the USB standard, the configuration of the interface circuit differs depending on whether the device is a host or a peripheral device, and in the case of a peripheral device whether high-speed transfer or low-speed transfer is performed. The interface circuit 19 has a configuration capable of coping with any case depending on the device to be connected. The detailed configuration will be described later.

【0028】図2には、本実施形態におけるインタフェ
ース回路19を介した周辺機器22と他の機器との接続
形態の一例を示している。図2(a)は、電子機器20
と周辺機器22(フルスピード・ファンクション、ロー
スピード・ファンクションの何れの場合でも良い)と
が、ケーブル23を介して接続された構成である。この
場合、電子機器20は、周辺機器22に対してホストと
して機能する。
FIG. 2 shows an example of a connection form between the peripheral device 22 and another device via the interface circuit 19 in the present embodiment. FIG. 2A shows the electronic device 20.
In this configuration, the peripheral device 22 (which may be a full-speed function or a low-speed function) is connected via a cable 23. In this case, the electronic device 20 functions as a host for the peripheral device 22.

【0029】図2(b)は、電子機器20とパーソナル
コンピュータ24とが、ケーブル23を介して接続され
た構成である。この場合、電子機器20は、ホストであ
るパーソナルコンピュータ24に対して周辺機器として
機能する。
FIG. 2B shows a configuration in which an electronic device 20 and a personal computer 24 are connected via a cable 23. In this case, the electronic device 20 functions as a peripheral device for the personal computer 24 as a host.

【0030】電子機器20と周辺機器22またはパーソ
ナルコンピュータ24とを接続するためのケーブル23
には、USBのデータラインが2本(D+,D−)と、
電力供給用の電源ラインが2本(Vcc,GND)が含
まれている。
Cable 23 for connecting electronic device 20 to peripheral device 22 or personal computer 24
Has two USB data lines (D +, D-),
Two power supply lines (Vcc, GND) for power supply are included.

【0031】図3にはインタフェース回路19の詳細な
構成を示している。本実施形態におけるインタフェース
回路19は、図3に示すように、USBコネクタ30、
電源部32、切り換え部34、USBトランシーバ部3
6、及びUSB制御部38(コントローラ)の各機能部
が設けられている。
FIG. 3 shows a detailed configuration of the interface circuit 19. As shown in FIG. 3, the interface circuit 19 in the present embodiment includes a USB connector 30,
Power supply unit 32, switching unit 34, USB transceiver unit 3
6 and each functional unit of a USB control unit 38 (controller).

【0032】USBコネクタ30は、USBの規格に準
拠した形状を持つもので、周辺機器22やパーソナルコ
ンピュータ24との間でデータラインと電源ラインとを
接続するケーブル23が結合される。USBコネクタ3
0には、各ライン用の端子D+,D−,Vcc,GND
が設けられている。USBコネクタ30は、電子機器2
0に1つ設けられる。
The USB connector 30 has a shape conforming to the USB standard, and a cable 23 for connecting a data line and a power supply line to a peripheral device 22 or a personal computer 24 is connected thereto. USB connector 3
0 is the terminal D +, D-, Vcc, GND for each line.
Is provided. The USB connector 30 is connected to the electronic device 2
One is provided for 0.

【0033】電源部32は、USBコネクタ30によっ
て電源ラインを介して接続された機器との間の電源制
御、及び電子機器20がホストとして機能する場合のデ
ータラインに接続されるプルアップ抵抗(切り換え部3
4内)へのプルアップパワーの供給を行なう。
The power supply unit 32 controls power supply to and from a device connected via a power supply line by the USB connector 30 and a pull-up resistor (switching) connected to a data line when the electronic device 20 functions as a host. Part 3
4) is supplied.

【0034】また、USBでは、ホストとして機能する
機器から周辺機器に対して電力を供給する。このため
に、電源部32には、電源回路40が設けられ、電力供
給用の端子P1に電源保護用のダイオード41が接続さ
れ、電力需給用の端子P2に電源保護用のダイオード4
2が接続されている。ダイオード41は、切り換え部3
4のスイッチSW5を介してUSBコネクタ30の端子
Vccと接続され、ダイオード42は、USBコネクタ
30の端子Vccと直接接続される。また、電源回路4
0の端子P3は、USBコネクタ30の端子GND、及
び切り換え部34のスイッチSW2と接続される。
In the USB, power is supplied from a device functioning as a host to peripheral devices. For this purpose, the power supply section 32 is provided with a power supply circuit 40, a power supply protection diode 41 is connected to a power supply terminal P1, and a power supply protection diode 4 is connected to a power supply and demand terminal P2.
2 are connected. The diode 41 is connected to the switching unit 3
4 is connected to the terminal Vcc of the USB connector 30 via the switch SW5, and the diode 42 is directly connected to the terminal Vcc of the USB connector 30. The power supply circuit 4
The terminal P3 of 0 is connected to the terminal GND of the USB connector 30 and the switch SW2 of the switching unit 34.

【0035】切り換え部34は、USBコネクタ30に
結合されたケーブル23によって接続された機器に応じ
て、自機器がホストと周辺機器の何れで機能するか、さ
らに周辺機器として機能する場合に高速転送を行なうか
低速転送を行なうかによって、USBコネクタ30の端
子D+,D−にそれぞれ接続されたデータラインD+,
D−に対して、プルアップ抵抗とプルダウン抵抗の何れ
かに接続を切換え、また切り換え部34は、USBコネ
クタ30の端子Vccとダイオード41との接続を切換
える。
The switching unit 34 performs high-speed transfer according to the device connected by the cable 23 connected to the USB connector 30, whether the own device functions as a host or a peripheral device, and when the device functions as a peripheral device. The data lines D + and D + connected to the terminals D + and D-
For D-, the connection is switched to either the pull-up resistor or the pull-down resistor, and the switching unit 34 switches the connection between the terminal Vcc of the USB connector 30 and the diode 41.

【0036】切り換え部34には、USBコネクタ30
の端子D+に接続されたデータラインD+に対するプル
アップ抵抗(R2)44とプルダウン抵抗(R1)4
6、USBコネクタ30の端子D−に接続されたデータ
ラインD−に対するプルアップ抵抗(R2)48とプル
ダウン抵抗(R1)49が設けられている。
The switching unit 34 includes a USB connector 30
Pull-up resistor (R2) 44 and pull-down resistor (R1) 4 for data line D + connected to terminal D +
6. A pull-up resistor (R2) 48 and a pull-down resistor (R1) 49 for the data line D- connected to the terminal D- of the USB connector 30 are provided.

【0037】また、プルアップ抵抗(R2)44にはス
イッチSW1、プルダウン抵抗(R1)46にはスイッ
チSW2、プルアップ抵抗(R2)48にはスイッチS
W3、プルダウン抵抗(R1)49にはスイッチSW4
が設けられ、それぞれUSB制御部38によって切換え
が制御される。
The switch SW1 is connected to the pull-up resistor (R2) 44, the switch SW2 is connected to the pull-down resistor (R1) 46, and the switch S is connected to the pull-up resistor (R2) 48.
W3, pull-down resistor (R1) 49 has switch SW4
Are provided, and switching is controlled by the USB control unit 38, respectively.

【0038】スイッチSW1は、USB制御部38から
の信号ラインPV+の信号によって制御されるもので、
ONされることで電源回路40から供給されるプルアッ
プパワーを供給するラインとプルアップ抵抗(R2)4
4とを接続して、プルアップ抵抗(R2)44をデータ
ラインD+に接続する。
The switch SW1 is controlled by a signal on the signal line PV + from the USB controller 38.
A line for supplying pull-up power supplied from the power supply circuit 40 when turned on, and a pull-up resistor (R2) 4
4 and the pull-up resistor (R2) 44 is connected to the data line D +.

【0039】スイッチSW2は、USB制御部38から
の信号ラインPVGの信号によって制御されるもので、
ONされることで電源回路40の端子P3及びUSBコ
ネクタ30のGND端子とプルダウン抵抗(R1)46
とを接続して、プルダウン抵抗(R1)46をデータラ
インD+に接続する。
The switch SW2 is controlled by a signal on the signal line PVG from the USB controller 38.
When turned on, the terminal P3 of the power supply circuit 40, the GND terminal of the USB connector 30, and the pull-down resistor (R1) 46
And the pull-down resistor (R1) 46 is connected to the data line D +.

【0040】スイッチSW3は、USB制御部38から
の信号ラインPV−の信号によって制御されるもので、
ONされることで電源回路40から供給されるプルアッ
プパワーを供給するラインとプルアップ抵抗(R2)4
8とを接続して、プルアップ抵抗(R2)48をデータ
ラインD−に接続する。
The switch SW3 is controlled by a signal on the signal line PV- from the USB control unit 38.
A line for supplying pull-up power supplied from the power supply circuit 40 when turned on, and a pull-up resistor (R2) 4
8 and the pull-up resistor (R2) 48 is connected to the data line D-.

【0041】スイッチSW4は、USB制御部38から
の信号ラインPVGの信号によって制御されるもので、
ONされることで電源回路40の端子P3及びUSBコ
ネクタ30のGND端子とプルダウン抵抗(R1)49
とを接続して、プルダウン抵抗(R1)49をデータラ
インD−に接続する。
The switch SW4 is controlled by a signal on the signal line PVG from the USB controller 38.
When turned on, the terminal P3 of the power supply circuit 40, the GND terminal of the USB connector 30 and the pull-down resistor (R1) 49
And the pull-down resistor (R1) 49 is connected to the data line D−.

【0042】また、切り換え部34には、USBコネク
タ30の端子Vccとダイオード41との間にスイッチ
SW5が設けられている。スイッチSW5は、USB制
御部38からの信号ラインPVGの信号によって制御さ
れるもので、ONされることで端子Vccとダイオード
41とを接続する。
The switching section 34 is provided with a switch SW5 between the terminal Vcc of the USB connector 30 and the diode 41. The switch SW5 is controlled by a signal on the signal line PVG from the USB control unit 38, and connects the terminal Vcc to the diode 41 when turned on.

【0043】USBトランシーバ部36は、USBイン
タフェースの基本的な構成部分であり、USBコネクタ
30の端子D+,D−とデータラインD+,D−を介し
て接続され、USB制御部38の制御のもとでデータの
送受信とシングルエンドゼロ(SE0)の検出を行な
う。USBトランシーバ部36には、差動ドライバ5
0、差動レシーバ52、シングルエンドレシーバ54,
56、ノア回路58が設けられている。差動ドライバ5
0、差動レシーバ52、シングルエンドレシーバ54,
56は、それぞれデータラインD+,D−が接続されて
いる。
The USB transceiver unit 36 is a basic component of the USB interface. The USB transceiver unit 36 is connected to the terminals D + and D- of the USB connector 30 via data lines D + and D-, and controls the USB control unit 38. With this, data transmission and reception and detection of single end zero (SE0) are performed. The USB transceiver unit 36 includes a differential driver 5
0, differential receiver 52, single-ended receiver 54,
56, and a NOR circuit 58 are provided. Differential driver 5
0, differential receiver 52, single-ended receiver 54,
56 is connected to data lines D + and D-, respectively.

【0044】差動ドライバ50は、データ送信用であっ
て、USB制御部38からのXmt Data信号、Force SE
0信号、アウトイネーブル(OE)信号に応じて、デー
タラインD+,D−に信号を出力する。
The differential driver 50 is for data transmission, and the Xmt Data signal from the USB control unit 38, Force SE
A signal is output to the data lines D + and D- according to the 0 signal and the out enable (OE) signal.

【0045】差動レシーバ52は、データ受信用であっ
て、データラインD+,D−の信号の状態に応じてデー
タを受信して、Rcv Data信号としてUSB制御
部38に出力する。
The differential receiver 52 is for data reception, receives data according to the state of the signals on the data lines D + and D-, and outputs the data to the USB control unit 38 as an Rcv Data signal.

【0046】シングルエンドレシーバ54,56は、U
SBコネクタ30の端子D+,D−にそれぞれ接続され
たデータラインD+,D−の信号の状態を保持する。ノ
ア回路58は、シングルエンドレシーバ54,56が保
持する信号の状態に応じた信号を出力するもので、デー
タラインD+,D−の信号の状態がローレベル“0”の
時に、SE0 Detect信号として“1”をUSB制御部
38に出力する。
The single-ended receivers 54 and 56
The signal state of the data lines D + and D- connected to the terminals D + and D- of the SB connector 30 is held. The NOR circuit 58 outputs a signal corresponding to the state of the signal held by the single-ended receivers 54 and 56. When the state of the signal on the data lines D + and D- is low level "0", the NOR circuit 58 outputs the SE0 Detect signal. “1” is output to the USB control unit 38.

【0047】USB制御部38は、切り換え部34の各
スイッチSW1〜SW5に対するPV+,PVG,PV
−の各信号による切換え制御、USBトランシーバ部3
6に対するデータ送受信、シングルエンドゼロ(SE
0)の検出を制御する。
The USB control unit 38 controls PV +, PVG, PV for each of the switches SW1 to SW5 of the switching unit 34.
-Switching control by each signal of-, USB transceiver unit 3
6 data transmission and reception, single-ended zero (SE
0) is controlled.

【0048】通常、USBインタフェースでは、シング
ルエンドゼロ(SE0)をエンドオブパケット(EO
P)、リセット、ラインの切断の検出に用いるが、さら
に本実施形態ではUSBコネクタ30、ケーブル23を
介して接続された機器が、自電子機器20に対してホス
トであるか周辺機器であるかを判別するためにも用い
る。
Normally, in the USB interface, a single end zero (SE0) is set to an end of packet (EO).
P), reset, and detection of line disconnection. In the present embodiment, the device connected via the USB connector 30 and the cable 23 is a host or a peripheral device with respect to the own electronic device 20. It is also used to determine

【0049】次に、本実施形態における電子機器20の
インタフェース回路19を介した他の機器との接続動作
について説明する。図4は、USB制御部38によるイ
ンタフェース回路19を介したデータ転送を行なう場合
の動作を示すフローチャートである。
Next, the connection operation of the electronic device 20 with another device via the interface circuit 19 in the present embodiment will be described. FIG. 4 is a flowchart showing an operation when data transfer is performed by the USB control unit 38 via the interface circuit 19.

【0050】電子機器20には、インタフェース回路1
9のUSBコネクタ30にケーブル23が結合され、周
辺機器22あるいはホストとしてパーソナルコンピュー
タ24が接続される。
The electronic device 20 includes an interface circuit 1
A cable 23 is connected to a USB connector 30 of the ninth, and a personal computer 24 is connected as a peripheral device 22 or a host.

【0051】まず、電子機器20がUSBデータ転送す
るモードに入ると、インタフェース回路19のUSB制
御部38は、ケーブル23を介して接続された相手機器
が周辺機器22かパーソナルコンピュータ24であるか
を判別するために、PV+,PVG,PV−の各信号を
OFF(“0”)してデータラインD+,D−の接続抵
抗を全て切り離し(ステップS1)、USBトランシー
バ部36のノア回路58からの出力(SE0 Detect信
号)を判別する(ステップS2)。
First, when the electronic device 20 enters the USB data transfer mode, the USB control unit 38 of the interface circuit 19 determines whether the partner device connected via the cable 23 is the peripheral device 22 or the personal computer 24. In order to determine, the signals of PV +, PVG, PV- are turned off ("0") to disconnect all the connection resistances of the data lines D +, D- (step S1). The output (SE0 Detect signal) is determined (step S2).

【0052】接続された相手機器がホストとなるパーソ
ナルコンピュータ24である場合、パーソナルコンピュ
ータ24側のインタフェース回路においてデータライン
D+,D−にプルダウン抵抗が接続されている。従っ
て、USBコネクタ30の端子D+,D−を通じて入力
された信号の状態がローレベル“0”となりSE0が
“1”となる。
When the connected device is the personal computer 24 serving as a host, pull-down resistors are connected to the data lines D + and D- in the interface circuit of the personal computer 24. Therefore, the state of the signal input through the terminals D + and D− of the USB connector 30 becomes low level “0”, and SE0 becomes “1”.

【0053】SE0が“1”であった場合には、電子機
器20は、ホストであるパーソナルコンピュータ24に
対して周辺機器となる。この場合、インタフェース回路
19のUSB制御部38は、PV+の信号をON
(“1”)することでスイッチSW1を切換えて、プル
アップ抵抗44をデータラインD+に接続して高速転送
する状態に設定するか、またはPV−の信号をON
(“1”)することでスイッチSW3を切換えて、プル
アップ抵抗48をデータラインD−に接続して低速転送
する状態に設定する(ステップS3)。なお、高速転送
を行なうか、低速転送を行なうかは、電子機器20のシ
ステムの特性によって決まっているものとする。
When SE0 is "1", the electronic device 20 becomes a peripheral device with respect to the personal computer 24 as the host. In this case, the USB control unit 38 of the interface circuit 19 turns on the PV + signal.
("1"), the switch SW1 is switched, and the pull-up resistor 44 is connected to the data line D + to set high-speed transfer, or the signal of PV- is turned on.
("1"), the switch SW3 is switched, and the pull-up resistor 48 is connected to the data line D- to set a state for low-speed transfer (step S3). Whether high-speed transfer or low-speed transfer is performed is determined by the characteristics of the system of the electronic device 20.

【0054】従って、電子機器20が周辺機器であって
高速転送を行なう場合には、切り換え部34の各スイッ
チSW1〜SW5は、図5中の「高速転送(周辺)」に
示すように、スイッチSW1がONであり、スイッチS
W2〜SW5がOFFとなる。すなわち、データライン
D+にプルアップ抵抗(R2)44のみが接続され、U
SBコネクタ30の端子Vccと電源部32の電源回路
40の端子P2とがダイオード42を介して接続され
る。端子Vccと電源回路40の端子P2とが接続され
ることで、ホスト(パーソナルコンピュータ24)から
供給される電力を取り込むことができる。
Therefore, when the electronic device 20 is a peripheral device and performs high-speed transfer, the switches SW1 to SW5 of the switching section 34 are switched as shown in "high-speed transfer (peripheral)" in FIG. SW1 is ON and switch S
W2 to SW5 are turned off. That is, only the pull-up resistor (R2) 44 is connected to the data line D +,
The terminal Vcc of the SB connector 30 and the terminal P2 of the power supply circuit 40 of the power supply unit 32 are connected via the diode 42. By connecting the terminal Vcc to the terminal P2 of the power supply circuit 40, power supplied from the host (personal computer 24) can be taken.

【0055】また、電子機器20が周辺機器であって低
速転送を行なう場合には、切り換え部34の各スイッチ
SW1〜SW5は、図5中の「低速転送(周辺)」に示
すように、スイッチSW3がONであり、スイッチSW
1,SW2,SW4,SW5がOFFとなる。すなわ
ち、データラインD−にプルアップ抵抗(R2)48の
みが接続され、USBコネクタ30の端子Vccと電源
部32の電源回路40の端子P2とがダイオード42を
介して接続される。低速転送を行なう場合も、端子Vc
cと電源回路40の端子P2とが接続されることで、ホ
スト(パーソナルコンピュータ24)から供給される電
力を取り込む。
When the electronic device 20 is a peripheral device and performs low-speed transfer, the switches SW1 to SW5 of the switching unit 34 are switched as shown in "low-speed transfer (peripheral)" in FIG. SW3 is ON and switch SW
1, SW2, SW4 and SW5 are turned off. That is, only the pull-up resistor (R2) 48 is connected to the data line D-, and the terminal Vcc of the USB connector 30 and the terminal P2 of the power supply circuit 40 of the power supply unit 32 are connected via the diode 42. When performing low-speed transfer, the terminal Vc
By connecting the terminal c to the terminal P2 of the power supply circuit 40, the power supplied from the host (personal computer 24) is taken.

【0056】一方、ステップS2においてSE0“0”
であると判別された場合、接続された相手機器は周辺機
器22となる。すなわち、相手機器が周辺機器22であ
った場合、周辺機器22側のインタフェース回路におい
てデータラインD+,D−の何れかにプルアップ抵抗が
接続されているため、USBコネクタ30の端子D+,
D−を通じて入力された信号の状態の一方がローレベル
“0”、他方がハイレベル“1”となりSE0が“0”
となる。
On the other hand, in step S2, SE0 "0"
Is determined, the connected partner device is the peripheral device 22. That is, when the partner device is the peripheral device 22, since the pull-up resistor is connected to one of the data lines D + and D− in the interface circuit on the peripheral device 22 side, the terminals D +,
One of the states of the signal input through D- becomes low level "0", the other becomes high level "1", and SE0 becomes "0".
Becomes

【0057】SE0が“0”であった場合には、電子機
器20は、周辺機器22に対してホストとなる。この場
合、USB制御部38は、USBトランシーバ部36の
差動レシーバ52からのRcv Data信号を参照し
て、周辺機器22の転送レイトを判別する(ステップS
5)。Rcv Data信号が“1”ならば高速転送、
Rcv Data信号が“0”ならば低速転送となる。
When SE0 is “0”, the electronic device 20 becomes a host for the peripheral device 22. In this case, the USB control unit 38 determines the transfer rate of the peripheral device 22 with reference to the Rcv Data signal from the differential receiver 52 of the USB transceiver unit 36 (Step S).
5). If the Rcv Data signal is "1", high-speed transfer,
If the Rcv Data signal is "0", low-speed transfer is performed.

【0058】また、インタフェース回路19のUSB制
御部38は、高速転送と低速転送の何れを行なう場合
も、PVGの信号をON(“1”)することでスイッチ
SW2とスイッチSW4を切換えて、プルダウン抵抗
(R1)46,49をデータラインD+,D−にそれぞ
れ接続して転送する状態に設定する(ステップS6,S
8)。
The USB control unit 38 of the interface circuit 19 switches the switch SW2 and the switch SW4 by turning on the signal of the PVG (“1”) to perform the pull-down operation regardless of the high-speed transfer or the low-speed transfer. The resistances (R1) 46, 49 are connected to the data lines D +, D-, respectively, and set to a transfer state (steps S6, S
8).

【0059】従って、電子機器20がホストとして機能
する場合には、切り換え部34の各スイッチSW1〜S
W5は、図5中の「ホスト」に示すように、スイッチS
W1,SW3がOFFであり、スイッチSW2,SW
4,SW5がONとなる。すなわち、データラインD+
にプルダウン抵抗(R1)46が接続され、データライ
ンD−にプルダウン抵抗(R1)49が接続され、US
Bコネクタ30の端子Vccと電源部32の電源回路4
0の端子P1とがダイオード41を介して接続される。
端子Vccと電源回路40の端子P1とが接続されるこ
とで、周辺機器22に対して電力を供給することができ
る。
Therefore, when the electronic device 20 functions as a host, the switches SW1 to S
W5 is a switch S as shown in "Host" in FIG.
W1 and SW3 are OFF and switches SW2 and SW
4, SW5 turns ON. That is, the data line D +
Is connected to a pull-down resistor (R1) 46, the data line D− is connected to a pull-down resistor (R1) 49, and US
Terminal Vcc of B connector 30 and power supply circuit 4 of power supply section 32
0 terminal P1 is connected via a diode 41.
By connecting the terminal Vcc to the terminal P1 of the power supply circuit 40, power can be supplied to the peripheral device 22.

【0060】また、USB制御部38は、PVGの信号
をON(“1”)とした後、OE信号を“0”とし、Xm
t Data信号によってデータを転送する(ステップS7,
S9)。
Further, the USB control unit 38 sets the OE signal to “0” after turning the PVG signal ON (“1”), and sets the Xm
Transfer data by the t Data signal (step S7,
S9).

【0061】このようにして、プルアップ抵抗(R2)
44,48、プルダウン抵抗(R1)46,49を、電
子機器20がホストとして機能するか、あるいは周辺機
器として機能するか、さらに周辺機器として機能する際
に高速転送を行なうか低速転送を行なうかに応じて、デ
ータラインD+,D−に対する接続を切換えるように制
御することにより、1個のUSBコネクタ30が設けら
れたインタフェース回路19を、電子機器20がホスト
として使用される場合と周辺機器として使用される場合
の何れにも利用することができる。
Thus, the pull-up resistor (R2)
44, 48, and pull-down resistors (R1) 46, 49, whether the electronic device 20 functions as a host or a peripheral device, and whether to perform high-speed transfer or low-speed transfer when functioning as a peripheral device. Is controlled so as to switch the connection to the data lines D + and D- in accordance with the condition (1), the interface circuit 19 provided with one USB connector 30 is used as a host when the electronic device 20 is used as a host and as a peripheral device. It can be used wherever it is used.

【0062】また、電子機器20がホストとして機能す
るか、あるいは周辺機器として機能するかに応じて、プ
ルアップ抵抗、プルダウン抵抗の接続の切換えと共に、
電源部32からの周辺機器に対する電力の供給、あるい
はホストからの電力の取り込みも切換えて行なわれる。
Depending on whether the electronic device 20 functions as a host or a peripheral device, the connection between the pull-up resistor and the pull-down resistor is switched, and
The power supply from the power supply unit 32 to the peripheral devices or the power supply from the host is also switched.

【0063】なお、前述した実施形態では、接続された
機器がホストであるか周辺機器であるかの判断を、デー
タラインD+,D−の信号レベルをもとにして行なって
いるが、ホストから常にVccラインから電力が供給さ
れるとした場合、図3においてVccラインに一定負荷
を与えた時の電圧を測定することで、ホストと周辺機器
の判断をするようにしても良い。
In the above embodiment, whether the connected device is a host or a peripheral device is determined based on the signal levels of the data lines D + and D-. Assuming that power is always supplied from the Vcc line, the host and the peripheral device may be determined by measuring the voltage when a constant load is applied to the Vcc line in FIG.

【0064】具体的には、Vccラインに一定負荷をか
けて電圧が下がらなければ電力供給が行なわれているの
で、接続された機器がホストであると判断できる。ま
た、Vccラインに一定負荷をかけて電圧が下がった場
合には、電力供給が行なわれていないので、接続された
機器が周辺機器であると判断できる。
Specifically, if a constant load is applied to the Vcc line and the voltage does not decrease, power is supplied, and it can be determined that the connected device is the host. Further, when the voltage is reduced by applying a certain load to the Vcc line, power is not supplied, and it can be determined that the connected device is a peripheral device.

【0065】この場合、Vccラインに対して一定負荷
を与えるための抵抗と、この抵抗による負荷を与えて、
この時の電圧降下を検出する回路とを設け、この回路か
らUSB制御部38に対して検出結果を通知すること
で、接続された機器がホストであるか周辺機器であるか
を判断する。USB制御部38は、この通知に応じて前
述した説明と同様にして切り換え部34の各スイッチの
制御、USBトランシーバ部36に対する制御を行なう
ものとする。
In this case, a resistance for applying a constant load to the Vcc line and a load due to this resistance are applied.
A circuit for detecting a voltage drop at this time is provided, and this circuit notifies the USB control unit 38 of the detection result, thereby determining whether the connected device is a host or a peripheral device. In response to this notification, the USB control unit 38 controls the switches of the switching unit 34 and controls the USB transceiver unit 36 in the same manner as described above.

【0066】[0066]

【発明の効果】以上詳述したように本発明によれば、他
の機器を接続するためのインタフェース回路を有する電
子機器において、インタフェース回路は、2本のデータ
ラインを接続するための第1の端子と電源ラインを接続
するための第2の端子が設けられたコネクタと、このコ
ネクタの第2の端子に接続された電源ラインを通じて電
力を供給するための電源部と、コネクタの第1の端子に
接続されたデータラインのそれぞれに対して、プルアッ
プ抵抗とプルダウン抵抗とを選択的に接続すると共に、
電源部とコネクタの第2の端子との接続を切換える切り
換え部と、切り換え部によるプルアップ抵抗とプルダウ
ン抵抗のデータラインに対する接続と、電源部とコネク
タの第2の端子との接続の切換えを制御する制御部とを
具備することにより、接続相手の機器がホストとして機
能する場合には、プルアップ抵抗をデータラインに接続
することで周辺器機としてデータ転送ができ、また接続
相手の器機が周辺器機として機能する場合には、プルダ
ウン抵抗をデータラインに接続することでホストとして
データ転送することができるので、電子機器を、2個の
インタフェースを設けることなく、ホストとしても周辺
機器としても使用することが可能となるものである。
As described above in detail, according to the present invention, in an electronic device having an interface circuit for connecting another device, the interface circuit is a first device for connecting two data lines. A connector provided with a second terminal for connecting the terminal to the power supply line, a power supply for supplying power through a power supply line connected to the second terminal of the connector, and a first terminal of the connector Selectively connect a pull-up resistor and a pull-down resistor to each of the data lines connected to
A switching unit for switching the connection between the power supply unit and the second terminal of the connector; controlling the connection of the pull-up resistor and the pull-down resistor to the data line by the switching unit; and switching the connection between the power supply unit and the second terminal of the connector. When the connected device functions as a host, the pull-up resistor can be connected to the data line to transfer data as a peripheral device, and the connected device can be connected to the peripheral device. When used as a host, the data can be transferred as a host by connecting a pull-down resistor to the data line, so use the electronic device both as a host and as a peripheral device without providing two interfaces. Is possible.

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

【図1】本発明の実施形態に係わる電子機器の概略構成
を示すブロック図。
FIG. 1 is an exemplary block diagram showing a schematic configuration of an electronic apparatus according to an embodiment of the invention.

【図2】本実施形態におけるインタフェース回路19を
介した周辺機器22と他の機器との接続形態の一例を示
す図。
FIG. 2 is a diagram showing an example of a connection configuration between a peripheral device 22 and another device via an interface circuit 19 in the embodiment.

【図3】インタフェース回路19の詳細な構成を示す
図。
FIG. 3 is a diagram showing a detailed configuration of an interface circuit 19;

【図4】USB制御部38によるインタフェース回路1
9を介したデータ転送を行なう場合の動作を示すフロー
チャート。
FIG. 4 is an interface circuit 1 by a USB control unit 38;
9 is a flowchart showing an operation in the case of performing data transfer via the control unit 9.

【図5】切り換え部34における各スイッチの状態毎の
対応関係を説明するための図。
FIG. 5 is a diagram for explaining a correspondence relationship between states of each switch in a switching unit.

【図6】従来のUSBインタフェースによるホスト80
と周辺機器82の接続形態の一例を示す図。
FIG. 6 shows a host 80 using a conventional USB interface.
FIG. 4 is a diagram showing an example of a connection form between a device and a peripheral device 82;

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

10…CPU 12…メモリ 14…外部記憶装置 16…表示装置 17…入力装置 19…インタフェース回路 20…電子機器 22…周辺機器 24…パーソナルコンピュータ 30…USBコネクタ 32…電源部 34…切り換え部 36…USBトランシーバ 38…USB制御部 50…差動ドライバ 52…差動レシーバ 54,56…シングルエンドレシーバ DESCRIPTION OF SYMBOLS 10 ... CPU 12 ... Memory 14 ... External storage device 16 ... Display device 17 ... Input device 19 ... Interface circuit 20 ... Electronic equipment 22 ... Peripheral equipment 24 ... Personal computer 30 ... USB connector 32 ... Power supply part 34 ... Switching part 36 ... USB Transceiver 38 ... USB control unit 50 ... Differential driver 52 ... Differential receiver 54,56 ... Single-ended receiver

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 他の機器を接続するためのインタフェー
ス回路を有する電子機器において、 前記インタフェース回路は、 2本のデータラインを接続するための第1の端子と電源
ラインを接続するための第2の端子が設けられたコネク
タと、 前記コネクタの第2の端子に接続された電源ラインを通
じて電力を供給するための電源手段と、 前記コネクタの第1の端子に接続されたデータラインの
それぞれに対して、プルアップ抵抗とプルダウン抵抗と
を選択的に接続すると共に、前記電源手段と前記コネク
タの第2の端子との接続を切換える切換え手段と、 前記切換え手段によるプルアップ抵抗とプルダウン抵抗
の前記データラインに対する接続と、前記電源手段と前
記コネクタの第2の端子との接続の切換えを制御する制
御手段とを具備したことを特徴とする電子機器。
1. An electronic device having an interface circuit for connecting another device, wherein the interface circuit includes a first terminal for connecting two data lines and a second terminal for connecting a power line. A connector provided with a terminal, a power supply means for supplying power through a power supply line connected to a second terminal of the connector, and a data line connected to a first terminal of the connector. Switching means for selectively connecting a pull-up resistor and a pull-down resistor, and switching the connection between the power supply means and the second terminal of the connector; and the data of the pull-up resistance and the pull-down resistance by the switching means. Control means for controlling connection to a line and switching of connection between the power supply means and a second terminal of the connector. Electronic equipment that characterized the door.
【請求項2】 接続された機器が自機器に対してホスト
として機能するか、周辺装置として機能するかを検出す
る検出手段を具備し、 前記制御手段は、前記検出手段による検出の結果、 接続された機器がホストとして機能する場合に、前記切
換え手段においてプルアップ抵抗をデータラインに接続
させ、 接続された機器が周辺器機として機能する場合に、前記
切換え手段においてプルダウン抵抗をデータラインに接
続させることを特徴とする請求項1記載の電子機器。
2. The apparatus according to claim 1, further comprising: a detecting unit configured to detect whether the connected device functions as a host or a peripheral device with respect to the own device. When the connected device functions as a host, the switching means connects the pull-up resistor to the data line. When the connected device functions as a peripheral device, the switching means connects the pull-down resistor to the data line. The electronic device according to claim 1, wherein:
【請求項3】 前記検出手段は、前記データラインの信
号レベルによって、接続された機器が自機器に対してホ
ストとして機能するか、周辺装置として機能するかを検
出することを特徴とする請求項2記載の電子機器。
3. The apparatus according to claim 1, wherein the detecting unit detects whether the connected device functions as a host or a peripheral device for the device based on a signal level of the data line. 2. The electronic device according to 2.
【請求項4】 前記検出手段は、 前記電源ラインに対して一定負荷を与えるための抵抗
と、 前記抵抗による負荷を与え、この時の電圧降下の有無に
より、接続された機器が自機器に対してホストとして機
能するか、周辺装置として機能するかを検出する回路と
を具備したことを特徴とする請求項2記載の電子機器。
4. The detection means applies a resistance for applying a constant load to the power supply line, and a load by the resistance, and determines whether or not a connected device determines its own device based on the presence or absence of a voltage drop at this time. 3. The electronic device according to claim 2, further comprising a circuit for detecting whether the device functions as a host or a peripheral device.
【請求項5】 他の機器を接続するためのインタフェー
ス回路において、 2本のデータラインを接続するための第1の端子と電源
ラインを接続するための第2の端子が設けられたコネク
タと、 前記コネクタの第1の端子に接続された電源ラインを通
じて電力を供給するための電源手段と、 前記コネクタの第1の端子に接続されたデータラインの
それぞれに対して、プルアップ抵抗とプルダウン抵抗と
を選択的に接続すると共に、前記電源手段と前記コネク
タの第2の端子との接続を切換える切換え手段と、 前記2本のデータラインを通じてデータの送信または受
信を行なうトランシーバと、 前記切換え手段によるプルアップ抵抗とプルダウン抵抗
の前記データラインに対する接続と、前記電源手段と前
記コネクタの第2の端子との接続の切換えを制御すると
共に、前記トランシーバによるデータの送受信を制御す
る制御手段とを具備したことを特徴とするインタフェー
ス回路。
5. An interface circuit for connecting another device, comprising: a connector provided with a first terminal for connecting two data lines and a second terminal for connecting a power supply line; Power supply means for supplying power through a power supply line connected to a first terminal of the connector; and a pull-up resistor and a pull-down resistor for each of the data lines connected to the first terminal of the connector. Switching means for selectively connecting the power supply means and the second terminal of the connector, a transceiver for transmitting or receiving data through the two data lines, and a pull by the switching means. Connection of an up resistor and a pull down resistor to the data line and disconnection of connection between the power supply means and a second terminal of the connector; Controls the example, interface circuit, characterized by comprising a control means for controlling the transmission and reception of data by the transceiver.
JP10620097A 1997-04-23 1997-04-23 Electronic equipment and interface circuit Expired - Lifetime JP3610424B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10620097A JP3610424B2 (en) 1997-04-23 1997-04-23 Electronic equipment and interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10620097A JP3610424B2 (en) 1997-04-23 1997-04-23 Electronic equipment and interface circuit

Publications (2)

Publication Number Publication Date
JPH10301899A true JPH10301899A (en) 1998-11-13
JP3610424B2 JP3610424B2 (en) 2005-01-12

Family

ID=14427533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10620097A Expired - Lifetime JP3610424B2 (en) 1997-04-23 1997-04-23 Electronic equipment and interface circuit

Country Status (1)

Country Link
JP (1) JP3610424B2 (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2347245A (en) * 1998-12-10 2000-08-30 Network Technologies Inc Switch for connecting a peripheral device to a USB device
JP2002183691A (en) * 2000-12-12 2002-06-28 Sony Corp Ic card, ic card system and data processor
JP2002258999A (en) * 2001-03-02 2002-09-13 Kawasaki Microelectronics Kk Serial data transfer interface device and serial data transfer cable
WO2002077835A1 (en) * 2001-03-27 2002-10-03 Renesas Technology Corp. Communication control semiconductor device and interface system
US6516205B1 (en) 1999-04-28 2003-02-04 Nec Corporation Portable terminal with bus manager switching function
JP2003085120A (en) * 2001-09-07 2003-03-20 Ricoh Co Ltd Image forming device
JP2003511757A (en) * 1999-10-01 2003-03-25 マイクロソフト コーポレイション Method and apparatus for detecting the type of interface to which a peripheral device is connected
JP2003518892A (en) * 1999-12-24 2003-06-10 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Emulation of device disconnection
US6717439B2 (en) 2002-01-31 2004-04-06 Oki Electric Industry Co., Ltd. Data transmitting/receiving buffer
WO2004061636A1 (en) * 2002-12-27 2004-07-22 Fujitsu Limited Usb device and method for controlling usb device
WO2004095250A1 (en) * 2003-04-23 2004-11-04 Fujitsu Limited Usb upstream device, usb connector, and usb cable
JP2005149293A (en) * 2003-11-18 2005-06-09 Seiko Epson Corp Data transfer control device and electronic apparatus
JP2005151326A (en) * 2003-11-18 2005-06-09 Seiko Epson Corp Data transfer control unit, and electronic equipment
JP2005197465A (en) * 2004-01-07 2005-07-21 Seiko Epson Corp Macro cell, integrated circuit device and electronic apparatus
KR100548529B1 (en) * 1999-04-16 2006-02-02 매그나칩 반도체 유한회사 Initialization method for usb apparatus
US7020851B2 (en) 2002-04-19 2006-03-28 Oki Electric Industry Co., Ltd. Universal serial bus circuit and data structure
US7024504B2 (en) 2002-04-26 2006-04-04 Seiko Epson Corporation Data transfer control device, electronic equipment and data transfer control method
KR100659515B1 (en) * 2004-01-26 2006-12-20 주식회사 텔레칩스 Automatic Switching Method of USB Operation Mode, and Single-Type USB Port Device Using The Same
JP2007172574A (en) * 2005-11-25 2007-07-05 Seiko Epson Corp Integrated circuit device and electronic apparatus
JP2007242027A (en) * 2005-11-25 2007-09-20 Seiko Epson Corp Integrated circuit device and electronic device
KR100822798B1 (en) * 2006-01-16 2008-04-17 삼성전자주식회사 Usb device and data processing system having usb device
JP2010146399A (en) * 2008-12-19 2010-07-01 Toshiba Corp Information processor
KR100979110B1 (en) * 2003-09-23 2010-08-31 엘지전자 주식회사 Apparatus and method for controlling USB device interface in personal digital assistant
KR20190060738A (en) * 2019-05-23 2019-06-03 주식회사 솔루엠 Control method of power supply system

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2347245A (en) * 1998-12-10 2000-08-30 Network Technologies Inc Switch for connecting a peripheral device to a USB device
GB2347245B (en) * 1998-12-10 2003-04-30 Network Technologies Inc Usb selector switch
KR100548529B1 (en) * 1999-04-16 2006-02-02 매그나칩 반도체 유한회사 Initialization method for usb apparatus
US6516205B1 (en) 1999-04-28 2003-02-04 Nec Corporation Portable terminal with bus manager switching function
JP2003511757A (en) * 1999-10-01 2003-03-25 マイクロソフト コーポレイション Method and apparatus for detecting the type of interface to which a peripheral device is connected
JP2003518892A (en) * 1999-12-24 2003-06-10 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Emulation of device disconnection
JP2002183691A (en) * 2000-12-12 2002-06-28 Sony Corp Ic card, ic card system and data processor
JP2002258999A (en) * 2001-03-02 2002-09-13 Kawasaki Microelectronics Kk Serial data transfer interface device and serial data transfer cable
WO2002077835A1 (en) * 2001-03-27 2002-10-03 Renesas Technology Corp. Communication control semiconductor device and interface system
JP2003085120A (en) * 2001-09-07 2003-03-20 Ricoh Co Ltd Image forming device
US6717439B2 (en) 2002-01-31 2004-04-06 Oki Electric Industry Co., Ltd. Data transmitting/receiving buffer
US7020851B2 (en) 2002-04-19 2006-03-28 Oki Electric Industry Co., Ltd. Universal serial bus circuit and data structure
US7024504B2 (en) 2002-04-26 2006-04-04 Seiko Epson Corporation Data transfer control device, electronic equipment and data transfer control method
WO2004061636A1 (en) * 2002-12-27 2004-07-22 Fujitsu Limited Usb device and method for controlling usb device
US8069287B2 (en) 2002-12-27 2011-11-29 Fujitsu Semiconductor Limited Universal serial bus device and method for controlling universal serial bus device
WO2004095250A1 (en) * 2003-04-23 2004-11-04 Fujitsu Limited Usb upstream device, usb connector, and usb cable
KR100979110B1 (en) * 2003-09-23 2010-08-31 엘지전자 주식회사 Apparatus and method for controlling USB device interface in personal digital assistant
JP2005149293A (en) * 2003-11-18 2005-06-09 Seiko Epson Corp Data transfer control device and electronic apparatus
JP2005151326A (en) * 2003-11-18 2005-06-09 Seiko Epson Corp Data transfer control unit, and electronic equipment
JP2005197465A (en) * 2004-01-07 2005-07-21 Seiko Epson Corp Macro cell, integrated circuit device and electronic apparatus
KR100659515B1 (en) * 2004-01-26 2006-12-20 주식회사 텔레칩스 Automatic Switching Method of USB Operation Mode, and Single-Type USB Port Device Using The Same
JP2007242027A (en) * 2005-11-25 2007-09-20 Seiko Epson Corp Integrated circuit device and electronic device
JP2007172574A (en) * 2005-11-25 2007-07-05 Seiko Epson Corp Integrated circuit device and electronic apparatus
KR100822798B1 (en) * 2006-01-16 2008-04-17 삼성전자주식회사 Usb device and data processing system having usb device
US7576559B2 (en) 2006-01-16 2009-08-18 Samsung Electronics Co., Ltd. USB device and data processing system having the same
JP2010146399A (en) * 2008-12-19 2010-07-01 Toshiba Corp Information processor
JP4533953B2 (en) * 2008-12-19 2010-09-01 株式会社東芝 Information processing device
US7975091B2 (en) 2008-12-19 2011-07-05 Kabushiki Kaisha Toshiba Information processor capable of supplying power to an electronic device connected thereto
US8195863B2 (en) 2008-12-19 2012-06-05 Kabushiki Kaisha Toshiba Information processor capable of supplying power to an electronic device connected thereto
KR20190060738A (en) * 2019-05-23 2019-06-03 주식회사 솔루엠 Control method of power supply system

Also Published As

Publication number Publication date
JP3610424B2 (en) 2005-01-12

Similar Documents

Publication Publication Date Title
JPH10301899A (en) Electronic equipment and interface circuit
US7085876B2 (en) USB controlling apparatus for data transfer between computers and method for the same
EP1384154B1 (en) Communication interface for an electronic device
US6363085B1 (en) Universal serial bus repeater
US6732218B2 (en) Dual-role compatible USB hub device and method
EP1224559B1 (en) Method and apparatus for detecting the type of interface to which a peripheral device is connected
EP1248203B1 (en) Universal serial bus circuit to detect connection status
US20020169915A1 (en) USB connection-detection circuitry and operation methods of the same
JPH10301898A (en) Electronic equipment and interface circuit
JP4400937B2 (en) USB device
US6691201B1 (en) Dual mode USB-PS/2 device
US8683085B1 (en) USB interface configurable for host or device mode
JP2001075713A (en) Connection device for peripheral equipment
CN112732608B (en) Circuit device, electronic apparatus, and moving object
JP2000069029A (en) Connection controller and connection control method
WO2021227635A1 (en) Usb interface switching apparatus, usb interface switching method, and terminal device
US20050091437A1 (en) Multi-function universal serial bus wireless bridge
JP3987163B2 (en) Data communication system
JP2003186584A (en) Interface device
JP2002073219A (en) Interface device equipped with part for supplying power to external device and method for supplying power to external device
JP2001306413A (en) Usb communication device
JP2002244775A (en) Usb device
CN212208279U (en) USB interface switching device and terminal equipment
JP2000293479A (en) Peripheral equipment and signal transmitting device using the same
JP2001177543A (en) Device and system for bus connection

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040916

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040921

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041004

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20071029

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20081029

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081029

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101029

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101029

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111029

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111029

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121029

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121029

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131029

Year of fee payment: 9

EXPY Cancellation because of completion of term