JP2011186990A - Communication device and communication system - Google Patents

Communication device and communication system Download PDF

Info

Publication number
JP2011186990A
JP2011186990A JP2010054238A JP2010054238A JP2011186990A JP 2011186990 A JP2011186990 A JP 2011186990A JP 2010054238 A JP2010054238 A JP 2010054238A JP 2010054238 A JP2010054238 A JP 2010054238A JP 2011186990 A JP2011186990 A JP 2011186990A
Authority
JP
Japan
Prior art keywords
terminal
usb
communication
host
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.)
Granted
Application number
JP2010054238A
Other languages
Japanese (ja)
Other versions
JP5587642B2 (en
Inventor
Kenichiro Kobayashi
賢一郎 小林
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.)
Kawasaki Microelectronics Inc
Original Assignee
Kawasaki Microelectronics Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawasaki Microelectronics Inc filed Critical Kawasaki Microelectronics Inc
Priority to JP2010054238A priority Critical patent/JP5587642B2/en
Publication of JP2011186990A publication Critical patent/JP2011186990A/en
Application granted granted Critical
Publication of JP5587642B2 publication Critical patent/JP5587642B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication device and a communication system which prevent generation of an error by erroneous recognition in connection of a communication device to a communication host. <P>SOLUTION: The communication device is connected to a communication host via a first terminal which is a first reference voltage terminal, a second terminal which is a second reference voltage terminal, and a third terminal and a fourth terminal which are signal terminals, and solves the problem by being provided with: a driver which drives the third and fourth terminals; a detection circuit which detects the connection with the communication host by monitoring voltage of the second terminal on the basis of voltage of the first terminal; and a control circuit which controls the driver to drive the third and fourth terminals at a predetermined level, respectively, only for a predetermined period when the detection circuit detects the connection with the communication host. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、電源線および少なくとも2本の信号線を有し、差動伝送を行う活線挿抜可能な通信デバイスおよび通信システムに関するものである。   The present invention relates to a communication device and a communication system having a power line and at least two signal lines and capable of hot-swapping that perform differential transmission.

通信ホストと通信デバイスから構成され、差動伝送を行う通信システムであって、プラグ&プレイおよびホットプラグ(活線挿抜、ホットスワップともいう)に対応したインタフェース方式の一種として、USB(Universal Serial Bus)が広く用いられている。USBを利用した通信システム(USBシステム)では、USBデバイス(通信デバイス)とUSBホスト(通信ホスト)との間は、直接もしくはケーブル等を介して、電源線VBUS、グランド線GNDおよび差動信号線D+,D−によって接続される。USB2.0の規格には、ハイスピード(480Mbps:以下、HSという)、フルスピード(12Mbps:以下、FSという)、およびロースピード(1.5Mbps:以下、LSという)の3種類の転送モードがある。   A communication system that consists of a communication host and a communication device and performs differential transmission. USB (Universal Serial Bus) is a type of interface system that supports plug-and-play and hot plug (also called hot-swapping). ) Is widely used. In a communication system (USB system) using USB, between a USB device (communication device) and a USB host (communication host), a power line VBUS, a ground line GND, and a differential signal line directly or via a cable or the like. Connected by D + and D-. The USB 2.0 standard has three transfer modes: high speed (480 Mbps: hereinafter referred to as HS), full speed (12 Mbps: hereinafter referred to as FS), and low speed (1.5 Mbps: hereinafter referred to as LS). .

例えば、USBデバイスをUSBホストに接続(装着)するときには、USBデバイスの2本の信号線であるD+端子またはD−端子の、どちらがプルアップされているかによって、これらのモードが、USBホストにより識別される。具体的には、USBデバイスにおいて、HSまたはFSモードではD+端子がプルアップされ、LSではD−端子がプルアップされる(特許文献1参照)。   For example, when a USB device is connected (attached) to a USB host, these modes are identified by the USB host depending on which of the two signal lines of the USB device, D + terminal or D- terminal, is pulled up. Is done. Specifically, in the USB device, the D + terminal is pulled up in the HS or FS mode, and the D− terminal is pulled up in the LS (see Patent Document 1).

ここで、USBホストとUSBデバイス(HSまたはFSモード)との接続例を図4に示す。
USBデバイス100は、差動信号を送受信するフィジカルレイヤ(物理層、以下、PHYともいう)102において、D+端子をプルアップするプルアップ抵抗104、VBUS、D+、D−、およびGNDの各端子を有するUSBコネクタ106を有する。
USBホスト110は、フィジカルレイヤ112において、D+端子およびD−端子をプルダウンするプルダウン抵抗114,116、USBコネクタ118を有する。
USBデバイス100とUSBホスト110は、USBコネクタ106,118がUSBケーブル120を介して接続されている。
このように、図4に示す接続例では、プルアップ抵抗104によりUSBデバイスのD+端子がプルアップされ、HS/FSモードとなっている。
Here, FIG. 4 shows an example of connection between a USB host and a USB device (HS or FS mode).
The USB device 100 includes a pull-up resistor 104 that pulls up a D + terminal, a VBUS, a D +, a D−, and a GND in a physical layer (physical layer, hereinafter also referred to as PHY) 102 that transmits and receives a differential signal. The USB connector 106 is provided.
The USB host 110 includes pull-down resistors 114 and 116 for pulling down the D + terminal and the D− terminal and a USB connector 118 in the physical layer 112.
USB connectors 106 and 118 are connected to the USB device 100 and the USB host 110 via a USB cable 120.
As described above, in the connection example shown in FIG. 4, the D + terminal of the USB device is pulled up by the pull-up resistor 104, and the HS / FS mode is set.

ここで、正常動作の場合の接続時のタイミングチャートを図5に示す。なお、GND端子は全てのタイミングチャートにおいて0Vであるため省略している。
USBデバイス100の接続時には、まず、活線挿抜を実現するためにコネクタ内でD+端子およびD−端子よりも長くなっている(つまり、先に接触する)、VBUSおよびGND端子がUSBホストとUSBデバイスとの間で接続される。
VBUS端子およびGND端子が、USBホストとUSBデバイスとの間で接続されると、USBデバイス100は電源投入(バスパワード機器)またはVBUS検知(セルフパワード機器)のシーケンスを経て、転送モード識別のために、D+端子がプルアップ抵抗104(1.5kΩ)でプルアップされる。
その後、D+端子およびD−端子が、USBホストとUSBデバイスとの間で接続され、USBホスト110のプルダウン抵抗114,116(15kΩ)によってプルダウンされる。従って、D+端子が“H”レベル、D−端子が“L”レベルとなり、USBホストにより転送モードはHS/FSモードであると識別される。
Here, FIG. 5 shows a timing chart at the time of connection in the normal operation. The GND terminal is omitted because it is 0 V in all timing charts.
When connecting the USB device 100, first, in order to realize hot-swap, the connector is longer than the D + terminal and the D- terminal (that is, contacts first), and the VBUS and GND terminals are connected to the USB host and the USB. Connected to and from the device.
When the VBUS terminal and the GND terminal are connected between the USB host and the USB device, the USB device 100 undergoes a power-on (bus-powered device) or VBUS detection (self-powered device) sequence to identify the transfer mode. The D + terminal is pulled up by a pull-up resistor 104 (1.5 kΩ).
Thereafter, the D + terminal and the D− terminal are connected between the USB host and the USB device, and pulled down by the pull-down resistors 114 and 116 (15 kΩ) of the USB host 110. Accordingly, the D + terminal becomes “H” level and the D− terminal becomes “L” level, and the USB host identifies the transfer mode as the HS / FS mode.

ここで、USBデバイスのD−端子に注目すると、VBUSおよびGND端子がUSBホストとUSBデバイスとの間で接続されてから、D−端子が接続されてUSBホスト側でプルダウンされるまでの期間は、D−端子はフローティング状態である。   Here, focusing on the D-terminal of the USB device, the period from when the VBUS and GND terminals are connected between the USB host and the USB device to when the D-terminal is connected and pulled down on the USB host side is , D-terminals are in a floating state.

ところで、USBデバイスをUSBホストに接続する際に、接続されたUSBデバイスをUSBホストが認識できない場合がある。この様な現象は、例えば、USBデバイスが接続されたUSBケーブルをUSBホストに接続する場合、USBケーブル付のUSBデバイスをUSBホストに接続する場合、およびUSBメモリ等のUSBデバイスを直接USBホストに接続する場合等に発生することがある。   By the way, when connecting a USB device to a USB host, the USB host may not be able to recognize the connected USB device. Such a phenomenon may occur, for example, when a USB cable to which a USB device is connected is connected to the USB host, a USB device with a USB cable is connected to the USB host, or a USB device such as a USB memory is directly connected to the USB host. It may occur when connecting.

この様な現象が生じる理由を、図6に示す従来のUSBデバイスの接続時の、誤認識が発生する場合のタイミングチャートで説明する。
USBデバイスの接続時には、上記の正常動作の場合と同様に、VBUSおよびGND端子が、USBホストとUSBデバイスとの間で接続され、D+端子がプルアップされる。このとき、USBデバイスのD−端子は、USBホストのD−端子に接続されるまでは、他の3端子(VBUS,GND,D+)がUSBホストとUSBデバイスとの間で接続済みであったとしても、フローティング状態である。
このように、USBデバイスにおいて、D−端子がフローティング状態であるときに、D+端子がプルアップされることで信号遷移(フローティング→“H”レベル(3.3V))が起きると、USBデバイスの基板上やUSBケーブル上で近接する信号線(D+,D−)間の容量性カップリングにより、フローティングであるD−端子の信号レベルが、図6のXに示すように、D+端子の信号遷移に近い信号遷移(フローティング→“H”レベル)を起こしてしまう場合がある。
The reason why such a phenomenon occurs will be described with reference to a timing chart in the case where erroneous recognition occurs when a conventional USB device is connected as shown in FIG.
When the USB device is connected, the VBUS and GND terminals are connected between the USB host and the USB device, and the D + terminal is pulled up as in the case of the normal operation described above. At this time, until the D-terminal of the USB device was connected to the D-terminal of the USB host, the other three terminals (VBUS, GND, D +) were already connected between the USB host and the USB device. However, it is in a floating state.
As described above, in the USB device, when the signal transition (floating → “H” level (3.3 V)) occurs by pulling up the D + terminal when the D− terminal is in the floating state, the USB device Due to capacitive coupling between adjacent signal lines (D +, D−) on the board or USB cable, the signal level of the floating D− terminal changes as shown in FIG. Signal transition (floating → “H” level) may occur.

この現象が発生すると、USBホストとUSBデバイスとの間でD+,D−端子が接続された瞬間に、USBホストのD−端子に図6のYに示すような、D+端子に近い電圧(約3.0V)が現れる。
さらに、端子接続時には接続ノイズが発生することから、D−端子接続時にD+およびD−端子の電圧が、過渡的にD+<D−となる期間が現れる場合がある。これに伴ない、図6に示すタイミングチャートのように、D+端子とD−端子の接続に時間差があり、D+端子が先に接続された場合、“JKK”という信号論理がUSBホストに入力される可能性がある。ここで、“J”および“K”は動作クロック毎の差動信号線D+,D−の論理状態を表し、“J”はハイレベル(D+>D−)、“K”はローレベル(D+<D−)を意味する。
具体的には、先にD+端子が接続された状態で“J”論理となり、その後D−端子が接続されて“K”論理となることで、差動信号線D+,D−の3クロックの期間の論理状態が“JKK”となる。
When this phenomenon occurs, at the moment when the D + and D− terminals are connected between the USB host and the USB device, a voltage close to the D + terminal (about approximately) is applied to the D− terminal of the USB host as indicated by Y in FIG. 3.0V) appears.
Further, since connection noise is generated when the terminals are connected, a period in which the voltages of the D + and D− terminals transiently satisfy D + <D− may appear when the D− terminals are connected. As a result, as shown in the timing chart of FIG. 6, when there is a time difference between the D + terminal and the D− terminal and the D + terminal is connected first, the signal logic “JKK” is input to the USB host. There is a possibility. Here, “J” and “K” represent logic states of the differential signal lines D + and D− for each operation clock, “J” is a high level (D +> D−), and “K” is a low level (D +). <D-).
Specifically, “J” logic is obtained when the D + terminal is connected first, and after that, the D− terminal is connected and becomes “K” logic, so that three clocks of the differential signal lines D + and D− can be obtained. The logical state of the period is “JKK”.

この“JKK”という信号論理は、FSモードにおける通信パケットの先頭データであるSYNCパターン(“KJKJKJKK”)の末尾と一致するため、USBホストが上記の“JKK”を受信パケットと誤認識してしまい、USBホストのPHYでは受信エラーが発生する。
USBホストが、この受信エラーが発生しても次のシーケンスに移行できるものであれば問題ないが、USBホストのコントローラの仕様によっては、PHYからコントローラに受信エラーの発生が伝わらず、何が接続されたか認識できなかったり、コントローラが初期状態のまま停止してしまうものもある。
この場合、何らかの手段、例えば、人為的にUSBホストを再起動する等により回復させるか、または、USBホストのUSBコネクタから、USBケーブルを抜き差しすることで回復させる必要がある。
Since the signal logic “JKK” matches the end of the SYNC pattern (“KJKJKJKK”), which is the head data of the communication packet in the FS mode, the USB host erroneously recognizes the above “JKK” as a received packet. A reception error occurs in the USB host PHY.
There is no problem as long as the USB host can move to the next sequence even if this reception error occurs, but depending on the specifications of the controller of the USB host, the occurrence of a reception error is not transmitted from the PHY to the controller, and what Some of them have not been recognized or the controller has stopped in the initial state.
In this case, it is necessary to recover by some means, for example, by artificially restarting the USB host, or by connecting and disconnecting the USB cable from the USB connector of the USB host.

例えば、特許文献2では、転送データのフレームに含まれるSOFパケットを監視して、2本のデータ線に接続されているプルアップ抵抗、および終端抵抗の接続/非接続を切り替えることで擬似的な非接続状態を作り出し、ケーブルの抜き差しを行うことなくUSBホスト−USBデバイス間の通信のリセットを行って、自動的に通信を回復するプリンタが開示されている。   For example, in Patent Document 2, a SOF packet included in a frame of transfer data is monitored, and a pull-up resistor connected to two data lines and a connection / disconnection of a termination resistor are switched to simulate a pseudo There has been disclosed a printer that creates a disconnected state, automatically resets communication between a USB host and a USB device without connecting or disconnecting a cable, and automatically recovers communication.

特開2000−330926号公報JP 2000-330926 A 特開2006−171868号公報JP 2006-171868 A

しかしながら、USBホストを再起動することや、USBケーブルを抜き差しすることは、余計な時間や手間を伴う非効率的な操作が必要となってしまう。
また、特許文献2に記載のプリンタでは、USBホストへのUSBデバイスの接続時におけるエラーについて考慮されておらず、何が接続されたか認識できなかったり、コントローラが初期状態のまま停止してしまうことを想定していない。さらに、2本のデータ線に接続されているプルアップ抵抗、および終端抵抗の接続/非接続を切り替えるためのスイッチや、制御回路等が必要であり構成が複雑なものとなっている。
However, restarting the USB host or plugging / unplugging the USB cable requires an inefficient operation with extra time and effort.
In addition, the printer described in Patent Document 2 does not consider an error when connecting a USB device to a USB host, and cannot recognize what is connected, or the controller stops in an initial state. Is not assumed. In addition, a pull-up resistor connected to the two data lines, a switch for switching connection / disconnection of the termination resistor, a control circuit, and the like are necessary, and the configuration is complicated.

本発明の目的は、通信ホストへの通信デバイスの接続時における、誤認識によるエラーの発生を防止する通信デバイスおよび通信システムを提供することにある。   An object of the present invention is to provide a communication device and a communication system that prevent the occurrence of an error due to erroneous recognition when the communication device is connected to a communication host.

上記課題を解決するために、本発明は、第1基準電圧端子である第1の端子、第2基準電圧端子である第2の端子、ならびに、信号端子である第3の端子および第4の端子を介して、通信ホストと接続される通信デバイスであって、前記第3の端子および第4の端子をドライブするドライバと、前記第1の端子の電圧を基準として前記第2の端子の電圧を監視することによって、前記通信ホストとの接続を検知する検知回路と、前記検知回路が前記通信ホストとの接続を検知したときに、所定の期間だけ前記第3の端子および第4の端子を、それぞれの所定のレベルにドライブするように前記ドライバを制御する制御回路と、を備えることを特徴とする通信デバイスを提供する。   In order to solve the above problems, the present invention provides a first terminal that is a first reference voltage terminal, a second terminal that is a second reference voltage terminal, and a third terminal and a fourth terminal that are signal terminals. A communication device connected to a communication host via a terminal, the driver driving the third terminal and the fourth terminal, and the voltage of the second terminal with reference to the voltage of the first terminal And detecting the connection with the communication host, and when the detection circuit detects the connection with the communication host, the third terminal and the fourth terminal are connected for a predetermined period. And a control circuit for controlling the driver so as to drive to each predetermined level.

また、上記課題を解決するために、本発明は、上記に記載の通信デバイスと、上記に記載の通信ホストとを有する通信システムであって、前記通信ホストは、前記通信デバイスが接続されたときに、前記通信ホストの第1の端子の電圧を基準として第2の端子から前記通信デバイスの第2の端子に所定の電圧を供給するとともに、第3の端子および第4の端子の電位の変化を検知することを特徴とする通信システムを提供する。   In order to solve the above problem, the present invention provides a communication system having the communication device described above and the communication host described above, wherein the communication host is connected to the communication device. In addition, a predetermined voltage is supplied from the second terminal to the second terminal of the communication device with reference to the voltage of the first terminal of the communication host, and the potentials of the third terminal and the fourth terminal are changed. A communication system characterized by detecting

また、前記通信システムはUSBシステム、前記通信ホストはUSBホスト、前記通信デバイスはUSBデバイスであり、前記第1の端子がグランド端子、前記第2の端子が電源端子、前記第3の端子および第4の端子が差動信号端子であることが好ましい。   The communication system is a USB system, the communication host is a USB host, and the communication device is a USB device. The first terminal is a ground terminal, the second terminal is a power supply terminal, the third terminal, and the third terminal. The 4 terminals are preferably differential signal terminals.

本発明によれば、一定期間、信号線をアクティブにドライブ(駆動)して、通信ホストへの通信デバイス接続時の信号を安定化させることで、当該接続時に発生する誤認識の発生確率を激減させることができる。
さらに、通信の回復のための余計な時間や手間を伴う非効率な操作を、不要とすることができる。
According to the present invention, by actively driving (driving) a signal line for a certain period to stabilize a signal when a communication device is connected to a communication host, the probability of occurrence of erroneous recognition occurring at the time of the connection is drastically reduced. Can be made.
Furthermore, an inefficient operation with extra time and effort for recovering communication can be made unnecessary.

本発明に係るUSBデバイスを示すブロック図である。It is a block diagram which shows the USB device which concerns on this invention. 図1のブロック図の一部を、より詳細に表す回路図である。FIG. 2 is a circuit diagram showing a part of the block diagram of FIG. 1 in more detail. 本発明に係るUSBデバイスの接続時のタイミングチャートである。4 is a timing chart when the USB device according to the present invention is connected. USBホストとUSBデバイスとの一般的な接続例を示す図である。It is a figure which shows the general connection example of a USB host and a USB device. 従来のUSBデバイスの接続時の正常なタイミングチャートである。It is a normal timing chart at the time of the connection of the conventional USB device. 従来のUSBデバイスの接続時の、誤認識が発生する場合のタイミングチャートである。It is a timing chart when misrecognition occurs at the time of connection of a conventional USB device.

本発明に係る通信システムであるUSBシステムを、添付の図面に示す好適実施形態に基づいて以下に詳細に説明する。   A USB system, which is a communication system according to the present invention, will be described in detail below based on a preferred embodiment shown in the accompanying drawings.

図示を省略するが、本実施形態に係るUSBシステムは、図4に示すUSBシステムの場合と同様に、USBホストと、USBデバイスとによって構成される。USBホストおよびUSBデバイスは、それぞれ、VBUS端子(第2基準電圧端子である第2の端子)、GND端子(第1基準電圧端子である第1の端子)、およびD+,D−端子(信号端子である第3の端子および第4の端子)を有するUSBコネクタを備え、両者の接続時には、各々対応する端子同士が、直接に、またはUSBケーブル等を介して互いに接続される。
USBホストでは、同じく図4に示すように、D+端子およびD−端子が、それぞれ、プルダウン抵抗(15kΩ)によりプルダウンされている。
一方、USBデバイスは、転送モードに応じて、D+端子もしくはD−端子のいずれか一方がプルアップ抵抗(1.5kΩ)によりプルアップされる。以下、D+端子をプルアップしてHS/FSモードに設定されたUSBデバイスを例に挙げて説明する。
Although not shown, the USB system according to this embodiment includes a USB host and a USB device, as in the case of the USB system shown in FIG. The USB host and the USB device respectively have a VBUS terminal (second terminal that is a second reference voltage terminal), a GND terminal (first terminal that is a first reference voltage terminal), and D + and D− terminals (signal terminals). And a USB connector having a third terminal and a fourth terminal), and corresponding terminals are connected to each other directly or via a USB cable or the like.
In the USB host, as shown in FIG. 4, the D + terminal and the D- terminal are respectively pulled down by a pull-down resistor (15 kΩ).
On the other hand, in the USB device, either the D + terminal or the D− terminal is pulled up by a pull-up resistor (1.5 kΩ) according to the transfer mode. Hereinafter, a USB device that is pulled up to the D + terminal and set to the HS / FS mode will be described as an example.

図1は、本発明に係るUSBデバイスの構成を表す一実施形態のブロック図である。
図1に示すUSBデバイス10は、VBUS検出器12、ディファレンシャルドライバ制御回路16、およびディファレンシャルドライバ/レシーバ18によって構成される。ディファレンシャルドライバ制御回路16、およびディファレンシャルドライバ/レシーバ18は、PHY(フィジカルレイヤ)14によって実装されている。
FIG. 1 is a block diagram of an embodiment showing a configuration of a USB device according to the present invention.
The USB device 10 shown in FIG. 1 includes a VBUS detector 12, a differential driver control circuit 16, and a differential driver / receiver 18. The differential driver control circuit 16 and the differential driver / receiver 18 are implemented by a PHY (physical layer) 14.

VBUS検出器12は、通信ホストとの接続を検知する検知回路であり、図示しないUSBホストにUSBデバイス10が接続されたときに、セルフパワード機器の場合には、VBUS端子20の電圧が規定の電圧(5V)になったことを検出すると、VBUS検出信号(“H”レベル)を生成して出力する。また、バスパワード機器においては、VBUSから電源が供給され、動作状態になってから、VBUS検出信号(“H”レベル)を生成して出力する。   The VBUS detector 12 is a detection circuit that detects connection with a communication host. When the USB device 10 is connected to a USB host (not shown), the voltage of the VBUS terminal 20 is specified in the case of a self-powered device. When it is detected that the voltage has reached 5 V, a VBUS detection signal (“H” level) is generated and output. In a bus powered device, power is supplied from the VBUS, and after entering an operating state, a VBUS detection signal (“H” level) is generated and output.

ディファレンシャルドライバ制御回路16は、VBUS検知器12がUSBホストとの接続を検知して“H”レベルのVBUS検知信号が出力されたときに、所定の時間だけD+,D−端子を、それぞれ所定のレベル、例えば本実施形態の場合、それぞれ“H”レベルおよび“L”レベルにドライブするように、後述するディファレンシャルドライバ/レシーバ18のドライバを制御する。
ディファレンシャルドライバ制御回路16は、図2に示すように、遅延回路30、ANDゲート32,36、インバータ34、およびORゲート38によって構成される。
ディファレンシャルドライバ制御回路16には、VBUS検出器12から出力されたVBUS検出信号が入力される。入力されたVBUS検出信号は、ANDゲート32と遅延回路30に入力される。遅延回路30からは、VBUS検出信号が所定の時間だけ遅延されて反転された信号が出力され、ANDゲート32に入力される。つまり、遅延回路30およびANDゲート32は、VBUS検出信号の立ち上がりを検出する立ち上がり検出回路であり、ANDゲート32の出力は、ディファレンシャルドライバ制御回路16にVBUS検出信号が入力されると、VBUS検出信号の立ち上がりのタイミングから、遅延回路30での遅延時間分だけ“H”レベルとなる。
When the VBUS detector 12 detects the connection with the USB host and the “H” level VBUS detection signal is output, the differential driver control circuit 16 connects the D + and D− terminals for a predetermined time respectively. In the case of this embodiment, for example, in this embodiment, the driver of the differential driver / receiver 18 described later is controlled so as to drive to the “H” level and the “L” level, respectively.
As shown in FIG. 2, the differential driver control circuit 16 includes a delay circuit 30, AND gates 32 and 36, an inverter 34, and an OR gate 38.
The differential driver control circuit 16 receives the VBUS detection signal output from the VBUS detector 12. The input VBUS detection signal is input to the AND gate 32 and the delay circuit 30. From the delay circuit 30, a signal obtained by inverting and inverting the VBUS detection signal by a predetermined time is output to the AND gate 32. That is, the delay circuit 30 and the AND gate 32 are rise detection circuits that detect the rise of the VBUS detection signal, and the output of the AND gate 32 is the VBUS detection signal when the differential driver control circuit 16 receives the VBUS detection signal. From the rise timing of the signal, it becomes “H” level by the delay time in the delay circuit 30.

ANDゲート32の出力は、インバータ34で反転されてANDゲート36に入力されるとともに、ORゲート38に入力される。ANDゲート36には、通常動作時のイネーブル信号(通常のENL信号)が入力されており、インバータ34の出力および通常のENL信号の少なくとも一方が“L”レベルのときに、ANDゲート36の出力が“L”レベルとなる。つまり、ディファレンシャルドライバ制御回路16からイネーブル信号(ENL信号)が出力される。   The output of the AND gate 32 is inverted by the inverter 34 and input to the AND gate 36 and also input to the OR gate 38. The AND gate 36 receives an enable signal (normal ENL signal) during normal operation. When at least one of the output of the inverter 34 and the normal ENL signal is “L” level, the output of the AND gate 36 is output. Becomes “L” level. That is, the enable signal (ENL signal) is output from the differential driver control circuit 16.

ORゲート38には、通常動作時のA信号(通常のA信号)が入力されており、ANDゲート32の出力および通常のA信号の少なくとも一方が“H”レベルのときに、ORゲート38の出力が“H”レベルとなる。つまり、ディファレンシャルドライバ制御回路16から出力データ(A信号)が出力される。   The OR gate 38 receives an A signal during normal operation (normal A signal). When at least one of the output of the AND gate 32 and the normal A signal is at “H” level, the OR gate 38 The output becomes “H” level. That is, output data (A signal) is output from the differential driver control circuit 16.

ディファレンシャルドライバ/レシーバ18は、図2に示すように、ドライバ40、レシーバ42、およびプルアップ抵抗44によって構成されている。
ドライバ40には、ディファレンシャルドライバ制御回路16から、ENL信号および出力データ(A信号)が入力される。ドライバ40は、入力されたENL信号が“L”レベルのとき、A信号を差動信号として送信する。例えば、A信号が“H”レベルであれば、ENL信号が“L”レベルのとき、D+端子22からD+信号として“H”レベル、D−端子24からD−信号として“L”レベルが出力される。
The differential driver / receiver 18 includes a driver 40, a receiver 42, and a pull-up resistor 44, as shown in FIG.
The driver 40 receives an ENL signal and output data (A signal) from the differential driver control circuit 16. When the input ENL signal is “L” level, the driver 40 transmits the A signal as a differential signal. For example, if the A signal is at “H” level, the D + terminal 22 outputs the “H” level as the D + signal and the D− terminal 24 outputs the “L” level when the ENL signal is at the “L” level. Is done.

レシーバ42は、D+端子22、およびD−端子24から入力(受信)された差動信号を、入力データとして出力する。   The receiver 42 outputs the differential signal input (received) from the D + terminal 22 and the D− terminal 24 as input data.

プルアップ抵抗44は、USBデバイスの転送モード識別のためのもので、D+端子22を1.5kΩでプルアップすることにより、HS/FSモードであることをUSBホスト側に知らせる。
なお、HSモードの場合には、初めにFSモードでUSBホストと接続し、その後、図示しないスイッチにより、D+端子22(D+信号線)からプルアップ抵抗44が切り離されて、HSモードに移行する。
The pull-up resistor 44 is for identifying the transfer mode of the USB device. By pulling up the D + terminal 22 with 1.5 kΩ, the pull-up resistor 44 notifies the USB host side that the HS / FS mode is set.
In the HS mode, the USB host is first connected in the FS mode, and then the pull-up resistor 44 is disconnected from the D + terminal 22 (D + signal line) by a switch (not shown) to shift to the HS mode. .

次に、本発明に係るUSBデバイス10の動作を説明する。   Next, the operation of the USB device 10 according to the present invention will be described.

図3に本発明に係るUSBデバイスの、接続時のタイミングチャートを示す。
図3に示すように、USBデバイス10がUSBホストに接続される前は、USBホストはVBUS端子が“H”レベル(5V)、D+およびD−端子は15kΩのプルダウン抵抗によりプルダウンされて“L”レベルである。また、USBデバイス10の各端子は、0V(フローティング(Hi−Z))である。
FIG. 3 shows a timing chart when the USB device according to the present invention is connected.
As shown in FIG. 3, before the USB device 10 is connected to the USB host, the VBUS terminal is pulled down by the “H” level (5V), and the D + and D− terminals are pulled down by the pull-down resistor of 15 kΩ to “L”. "The level. Each terminal of the USB device 10 is 0 V (floating (Hi-Z)).

USBデバイス10がUSBホストに接続されるとき、既に述べたとおり、USBコネクタの端子の長さの違いにより、まずVBUS端子20およびGND端子がUSBホストとUSBデバイスとの間で接続される。VBUS端子20およびGND端子が、USBホストとUSBデバイスとの間で接続されると、USBデバイス10のVBUS検出器12は、VBUS端子20が規定の電圧(5V)になったことを検出して、VBUS検出信号(“H”レベル)を出力する。また、転送モード識別のために、D+端子22がプルアップ抵抗44(1.5kΩ)でプルアップされて“H”レベルになる。   When the USB device 10 is connected to the USB host, as described above, the VBUS terminal 20 and the GND terminal are first connected between the USB host and the USB device due to the difference in terminal length of the USB connector. When the VBUS terminal 20 and the GND terminal are connected between the USB host and the USB device, the VBUS detector 12 of the USB device 10 detects that the VBUS terminal 20 has become a specified voltage (5 V). , VBUS detection signal (“H” level) is output. Further, in order to identify the transfer mode, the D + terminal 22 is pulled up by the pull-up resistor 44 (1.5 kΩ) and becomes “H” level.

VBUS検出信号がディファレンシャルドライバ制御回路16に入力されると、VBUS検出信号の立ち上がりのタイミングから、遅延回路30により設定された所定の時間だけ、ディファレンシャルドライバ制御回路16から出力されるENL信号が“L”レベルとなり、A信号が“H”レベルとなる。   When the VBUS detection signal is input to the differential driver control circuit 16, the ENL signal output from the differential driver control circuit 16 is “L” for a predetermined time set by the delay circuit 30 from the rising timing of the VBUS detection signal. "A" level, and the A signal becomes "H" level.

ここで、所定の時間とは次の範囲で決定される。
最小値は、信号線(D+,D−)が所望の電圧まで遷移するのに必要な時間(USB規格より、FSモードで20ns、LSモードで300ns)、つまり、HS/FSモードであるUSBデバイス10では、D+端子22が所望の電圧(3.3V)まで遷移するのに必要な時間(20ns)である。
最大値は、USBホストがUSBデバイス10を検知した後に、リセットコマンドを発行するまでの待ち時間(USB規格より、100ms)である。
Here, the predetermined time is determined in the following range.
The minimum value is the time required for the signal lines (D +, D−) to transition to a desired voltage (from the USB standard, 20 ns in the FS mode and 300 ns in the LS mode), that is, the USB device in the HS / FS mode. 10 is the time (20 ns) required for the D + terminal 22 to transition to the desired voltage (3.3 V).
The maximum value is a waiting time (100 ms from the USB standard) until the USB host 10 detects the USB device 10 and issues a reset command.

ENL信号およびA信号がディファレンシャルドライバ/レシーバ18に入力されると、ドライバ40によりD+端子22から“H”レベル、D−端子24から“L”レベルが出力される。このとき、D+端子22は既にプルアップ抵抗44によりプルアップされている。つまり、D+端子22は、プルアップ抵抗44およびドライバ40によるドライブによって“H”レベルとされ、D−端子24は、ドライバ40によるドライブによって“L”レベルとされる。   When the ENL signal and the A signal are input to the differential driver / receiver 18, the driver 40 outputs the “H” level from the D + terminal 22 and the “L” level from the D− terminal 24. At this time, the D + terminal 22 has already been pulled up by the pull-up resistor 44. That is, the D + terminal 22 is set to “H” level by the drive by the pull-up resistor 44 and the driver 40, and the D− terminal 24 is set to “L” level by the drive by the driver 40.

遅延回路30で設定される所定の時間が経過した後、つまり、信号線(D+,D−)の容量性カップリングによる、D−端子24の過渡的な“H”レベルの出現可能性がほとんどなくなると(すなわち、D+端子22およびD−端子24の電圧が安定すると)、ドライバ40によるD+端子22およびD−端子24のドライブは終了する。   After a predetermined time set by the delay circuit 30 has elapsed, that is, there is almost a possibility that a transient “H” level appears at the D− terminal 24 due to capacitive coupling of the signal lines (D +, D−). When the voltage disappears (that is, when the voltages at the D + terminal 22 and the D− terminal 24 are stabilized), the driving of the D + terminal 22 and the D− terminal 24 by the driver 40 is finished.

次に、D+端子22およびD−端子24が、USBホストとUSBデバイスとの間で接続されると、D+端子22は、プルアップ抵抗44(1.5kΩ)、およびUSBホスト側のプルダウン抵抗114(15kΩ)の抵抗分割の比により、“H”レベル(3.0V)となる。また、D−端子24は、USBホスト側のプルダウン抵抗116(15kΩ)により“L”レベル(0V)となる。   Next, when the D + terminal 22 and the D− terminal 24 are connected between the USB host and the USB device, the D + terminal 22 includes a pull-up resistor 44 (1.5 kΩ) and a pull-down resistor 114 on the USB host side. Due to the resistance division ratio of (15 kΩ), it becomes “H” level (3.0 V). Further, the D-terminal 24 becomes “L” level (0 V) by the pull-down resistor 116 (15 kΩ) on the USB host side.

その後、D+端子22は、プルアップ抵抗44、およびUSBホスト側のプルダウン抵抗114(15kΩ)により“H”レベル(3.0V)が維持され、D−端子24は、USBホスト側のプルダウン抵抗116(15kΩ)により“L”レベル(0V)が維持され、USBホスト側で転送モードの識別が行われる。   Thereafter, the D + terminal 22 is maintained at the “H” level (3.0 V) by the pull-up resistor 44 and the USB host-side pull-down resistor 114 (15 kΩ), and the D-terminal 24 is connected to the USB host-side pull-down resistor 116. The “L” level (0 V) is maintained by (15 kΩ), and the transfer mode is identified on the USB host side.

以上のように、D+端子22およびD−端子24がUSBホストと接続される前に、D+端子22が“H”レベルにドライブされ、D−端子24が“L”レベルにドライブされることにより、D−端子24よりもD+端子22が先に接続された場合であっても、USBホストへのUSBデバイス接続時の信号が安定化して“JKK”という信号論理がUSBホストに入力されることを防止し、USBホストのコントローラが初期状態のまま停止してしまうことを防止することができる。つまり、当該接続時に発生するD+,D−信号の不定状態を無くし、誤認識の発生確率を激減させることができる。   As described above, the D + terminal 22 is driven to the “H” level and the D− terminal 24 is driven to the “L” level before the D + terminal 22 and the D− terminal 24 are connected to the USB host. Even when the D + terminal 22 is connected before the D− terminal 24, the signal when the USB device is connected to the USB host is stabilized and the signal logic “JKK” is input to the USB host. It is possible to prevent the USB host controller from being stopped in the initial state. That is, the indefinite state of the D + and D− signals generated at the time of connection can be eliminated, and the probability of occurrence of erroneous recognition can be drastically reduced.

なお、上記の実施形態では、USBデバイスのD+,D−端子がUSBホストに接続される前に、D+,D−端子のドライブを終了したが、USBデバイスのD+,D−端子がUSBホストに接続され、USBホストがUSBデバイスを検知した後、USBホストがUSB規格におけるリセットコマンド(D+,D−共に“L”レベル)を発行するまでに、すなわち、前記最大値以下の時間で、D+,D−端子のドライブを終了するようにしてもよい。
また、LSモードの場合には、論理を逆にしてD−端子に“H”レベルを出力するようにすればよい。
In the above embodiment, the drive of the D + and D− terminals is finished before the D + and D− terminals of the USB device are connected to the USB host. However, the D + and D− terminals of the USB device are connected to the USB host. After the connected USB host detects the USB device and before the USB host issues a USB standard reset command (both D + and D− are “L” level), that is, in a time less than the maximum value, D +, You may make it complete | finish the drive of D- terminal.
In the LS mode, the logic may be reversed so that the “H” level is output to the D-terminal.

さらに、上記の実施形態では、USBデバイスとUSBホストとが直接接続される場合(ケーブルを介する場合を含む。)について説明したが、USBデバイスとUSBホストとが、USBハブを介して接続される場合にも適用できる。
また、USB On−the−Go規格に対応した、USBホストとUSBデバイスの両方の機能を有するUSB機器でも同様に適用できる。
Furthermore, in the above-described embodiment, the case where the USB device and the USB host are directly connected (including the case via a cable) has been described. However, the USB device and the USB host are connected via a USB hub. It can also be applied to cases.
In addition, the present invention can be similarly applied to a USB device having both functions of a USB host and a USB device, which supports the USB On-the-Go standard.

その他にも、USBと同様の接続形態をとる規格や、USBを発展させた規格等の、活線挿抜可能な差動伝送(ディファレンシャル伝送)を行う通信システムにも適用することができる。   In addition, the present invention can also be applied to a communication system that performs differential transmission (differential transmission) that can be hot-plugged, such as a standard that adopts a connection form similar to USB or a standard that is an extension of USB.

以上、本発明に係る通信デバイスであるUSBデバイスについて詳細に説明したが、本発明は、上記実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において、各種の改良や変更を行ってもよい。   As described above, the USB device which is a communication device according to the present invention has been described in detail. However, the present invention is not limited to the above embodiment, and various improvements and modifications can be made without departing from the gist of the present invention. You may go.

10 USBデバイス
12 VBUS検出器
14 PHY(フィジカルレイヤ)
16 ディファレンシャルドライバ制御回路
18 ディファレンシャルドライバ/レシーバ
20 VBUS端子
22 D+端子
24 D−端子
30 遅延回路
32,36 ANDゲート
34 インバータ
38 ORゲート
40 ドライバ
42 レシーバ
44 プルアップ抵抗
10 USB device 12 VBUS detector 14 PHY (physical layer)
16 Differential Driver Control Circuit 18 Differential Driver / Receiver 20 VBUS Terminal 22 D + Terminal 24 D- Terminal 30 Delay Circuit 32, 36 AND Gate 34 Inverter 38 OR Gate 40 Driver 42 Receiver 44 Pull-up Resistor

Claims (3)

第1基準電圧端子である第1の端子、第2基準電圧端子である第2の端子、ならびに、信号端子である第3の端子および第4の端子を介して、通信ホストと接続される通信デバイスであって、
前記第3の端子および第4の端子をドライブするドライバと、
前記第1の端子の電圧を基準として前記第2の端子の電圧を監視することによって、前記通信ホストとの接続を検知する検知回路と、
前記検知回路が前記通信ホストとの接続を検知したときに、所定の期間だけ前記第3の端子および第4の端子を、それぞれの所定のレベルにドライブするように前記ドライバを制御する制御回路と、を備えることを特徴とする通信デバイス。
Communication connected to the communication host via the first terminal that is the first reference voltage terminal, the second terminal that is the second reference voltage terminal, and the third terminal and the fourth terminal that are signal terminals A device,
A driver for driving the third terminal and the fourth terminal;
A detection circuit for detecting connection with the communication host by monitoring the voltage of the second terminal with reference to the voltage of the first terminal;
A control circuit for controlling the driver to drive the third terminal and the fourth terminal to respective predetermined levels only for a predetermined period when the detection circuit detects connection with the communication host; A communication device comprising:
請求項1に記載の通信デバイスと、請求項1に記載の通信ホストとを有する通信システムであって、
前記通信ホストは、前記通信デバイスが接続されたときに、前記通信ホストの第1の端子の電圧を基準として第2の端子から前記通信デバイスの第2の端子に所定の電圧を供給するとともに、第3の端子および第4の端子の電位の変化を検知することを特徴とする通信システム。
A communication system having the communication device according to claim 1 and the communication host according to claim 1,
The communication host supplies a predetermined voltage from the second terminal to the second terminal of the communication device based on the voltage of the first terminal of the communication host when the communication device is connected; A communication system that detects a change in potential of a third terminal and a fourth terminal.
前記通信システムはUSBシステム、前記通信ホストはUSBホスト、前記通信デバイスはUSBデバイスであり、
前記第1の端子がグランド端子、前記第2の端子が電源端子、前記第3の端子および第4の端子が差動信号端子であることを特徴とする請求項2に記載の通信システム。
The communication system is a USB system, the communication host is a USB host, the communication device is a USB device,
The communication system according to claim 2, wherein the first terminal is a ground terminal, the second terminal is a power supply terminal, and the third terminal and the fourth terminal are differential signal terminals.
JP2010054238A 2010-03-11 2010-03-11 Communication device and communication system Expired - Fee Related JP5587642B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010054238A JP5587642B2 (en) 2010-03-11 2010-03-11 Communication device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010054238A JP5587642B2 (en) 2010-03-11 2010-03-11 Communication device and communication system

Publications (2)

Publication Number Publication Date
JP2011186990A true JP2011186990A (en) 2011-09-22
JP5587642B2 JP5587642B2 (en) 2014-09-10

Family

ID=44793140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010054238A Expired - Fee Related JP5587642B2 (en) 2010-03-11 2010-03-11 Communication device and communication system

Country Status (1)

Country Link
JP (1) JP5587642B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352830B2 (en) 2007-10-26 2013-01-08 Agere Systems Llc Extraction of values from partially-corrupted data packets

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005284672A (en) * 2004-03-29 2005-10-13 Kawasaki Microelectronics Kk Communication device
JPWO2004061636A1 (en) * 2002-12-27 2006-05-18 富士通株式会社 USB device and method for controlling USB device
JP2006350763A (en) * 2005-06-17 2006-12-28 Oki Data Corp Electronic device
JP2007193796A (en) * 2006-01-16 2007-08-02 Samsung Electronics Co Ltd Usb device, and data processing system including usb device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2004061636A1 (en) * 2002-12-27 2006-05-18 富士通株式会社 USB device and method for controlling USB device
JP2005284672A (en) * 2004-03-29 2005-10-13 Kawasaki Microelectronics Kk Communication device
JP2006350763A (en) * 2005-06-17 2006-12-28 Oki Data Corp Electronic device
JP2007193796A (en) * 2006-01-16 2007-08-02 Samsung Electronics Co Ltd Usb device, and data processing system including usb device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352830B2 (en) 2007-10-26 2013-01-08 Agere Systems Llc Extraction of values from partially-corrupted data packets

Also Published As

Publication number Publication date
JP5587642B2 (en) 2014-09-10

Similar Documents

Publication Publication Date Title
TWI624761B (en) Device disconnect detection
US8176227B2 (en) Method and system for high-speed detection handshake in universal serial bus based data communication system
EP2414943B1 (en) Usb isolator with advanced control features
US7185132B2 (en) USB controller with intelligent transmission mode switching function and the operating method thereof
JP6517243B2 (en) Link Layer / Physical Layer (PHY) Serial Interface
US9767064B2 (en) Low power universal serial bus
US20060075152A1 (en) USB attach detection for USB 1.1 and USB OTG devices
TWI443497B (en) Host apparatus, usb port module usb and method for managing power thereof
WO2014004916A1 (en) Device connect detection
KR20060114270A (en) Master device, control method thereof and electronic apparatus having master device
JP5386931B2 (en) Memory card control device and memory card control method
CN101520767B (en) Data transmission speed self-adapting method and device
WO2022057372A1 (en) Iic hang link restoration circuit and method based on pca9511 chip
JP2008065364A (en) Extension system, add-in card, and external device
JP5587642B2 (en) Communication device and communication system
EP1569126B1 (en) Universal serial bus transmitter
JP2001306413A (en) Usb communication device
TWI648636B (en) Universal serial bus type c transmission line and transmission device
KR101276840B1 (en) A USB device sensing USB connection
JP2006350763A (en) Electronic device
TWI792840B (en) Usb chip and operation method thereof
US20150095540A1 (en) External device and a transmission system and the method of the heterogeneous device
JP4716910B2 (en) Power supply control device and power supply control method
CN113971147A (en) Circuit device, electronic apparatus, and moving object
JP2003140780A (en) Power source control device for usb

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130208

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20130430

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20130605

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20130605

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131203

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140724

R150 Certificate of patent or registration of utility model

Ref document number: 5587642

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees