JP2005332269A - Device - Google Patents

Device Download PDF

Info

Publication number
JP2005332269A
JP2005332269A JP2004150903A JP2004150903A JP2005332269A JP 2005332269 A JP2005332269 A JP 2005332269A JP 2004150903 A JP2004150903 A JP 2004150903A JP 2004150903 A JP2004150903 A JP 2004150903A JP 2005332269 A JP2005332269 A JP 2005332269A
Authority
JP
Japan
Prior art keywords
communication
host
mode
usb
speed mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2004150903A
Other languages
Japanese (ja)
Inventor
Hideyo Nakano
秀世 中野
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 JP2004150903A priority Critical patent/JP2005332269A/en
Publication of JP2005332269A publication Critical patent/JP2005332269A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device capable of surely performing establishment of communication with a host while suppressing an increase in cost. <P>SOLUTION: In a USB device 100 performing communication by USB2.0 standard, in which High Speed mode is set via Full Speed mode, whereby communication is performed while recognizing the setting to the High Speed mode, the communication mode is set to High Speed mode by a mode setting means 30 until communication preparation with a host 200 is completed after inputting power supply. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、ホストとの間で複数の通信モードで通信を行なうデバイスに関する。   The present invention relates to a device that communicates with a host in a plurality of communication modes.

上述のようなデバイスとして、パーソナルコンピュータ等のホストに接続され、そのホストとの間で、USB(Universal Serial Bus)2.0規格による通信を行なうプリンタやストレージ機器等のUSBデバイス(以下、USB2.0デバイスと称する)が普及しつつある。   As a device as described above, a USB device such as a printer or a storage device connected to a host such as a personal computer and performing communication with the host according to the USB (Universal Serial Bus) 2.0 standard (hereinafter referred to as USB2. (Referred to as 0 devices) is becoming widespread.

USB2.0規格は、従来のUSB1.1規格の通信モードであるFull Speedモード(最大転送速度:12Mbps)とLow Speedモード(最大転送速度:1.5Mbps)に、高速データ通信が可能なHigh Speedモード(最大転送速度:480Mbps)が追加された3種類の通信モードを有する。このUSB2.0規格による通信を行なうUSB2.0デバイスは、USB1.1規格による通信を行なうUSBデバイス(以下、USB1.1デバイスと称する)との上位互換性が確保されており、今までのUSB1.1デバイスもUSB2.0規格による通信を行なうホストの下でそのまま使用することができる。また、USB2.0デバイスとホストとの間で行なわれる双方向通信は、USB1.1デバイスとホストとの間で行なわれる双方向通信と同様に、一対の信号線D+,D−を介して行なわれる。   The USB 2.0 standard is a high speed capable of high-speed data communication in the full speed mode (maximum transfer rate: 12 Mbps) and the low speed mode (maximum transfer rate: 1.5 Mbps) which are communication modes of the conventional USB 1.1 standard. There are three types of communication modes to which a mode (maximum transfer rate: 480 Mbps) is added. The USB 2.0 device that performs communication according to the USB 2.0 standard is ensured upward compatibility with a USB device that performs communication according to the USB 1.1 standard (hereinafter referred to as a USB 1.1 device). .1 devices can also be used as they are under a host that performs communication according to the USB 2.0 standard. In addition, the bidirectional communication performed between the USB 2.0 device and the host is performed via a pair of signal lines D + and D−, similarly to the bidirectional communication performed between the USB 1.1 device and the host. It is.

尚、USB2.0デバイスであるHigh Speedモード対応デバイスは、USB1.1規格との互換性を保つために、Full Speedモードにも対応しており、このためUSB1.1規格のみに対応するホストにHigh Speedモード対応デバイスが接続された場合、そのホストではFull Speedモードで動作する。   Note that the High Speed mode compatible device, which is a USB 2.0 device, also supports the Full Speed mode in order to maintain compatibility with the USB 1.1 standard. When a device that supports High Speed mode is connected, the host operates in the Full Speed mode.

ホストにおける、High Speedモード対応デバイス接続の検出は、Full Speedモード対応デバイス接続の検出と同様にして、High Speedモード対応デバイス側で信号線D+をプルアップすることにより行なわれる。ホストは、信号線D+がプルアップされている旨を認識すると、所定時間経過後(min 100ms)、High Speedモード対応デバイス検出のための制御(Chirp制御)を行なう。   In the host, the detection of the connection to the high speed mode compatible device is performed by pulling up the signal line D + on the high speed mode compatible device side in the same manner as the detection of the full speed mode compatible device connection. When recognizing that the signal line D + is pulled up, the host performs control (Chirp control) for detecting a device that supports High Speed mode after a predetermined time has elapsed (min 100 ms).

High Speedモード対応デバイスは、最初の時点ではFull Speedモードで動作し、その後、High Speedモード対応デバイス検出のための上記制御によりHigh Speedモードに移行することとなる。   The High Speed mode compatible device operates in the Full Speed mode at the initial time, and then shifts to the High Speed mode by the above-described control for detecting the High Speed mode compatible device.

従って、High Speedモード対応デバイスは、予め電源が投入されたホストと物理的に接続された状態において、電源が投入されると、所定時間経過後にホストからの上記制御に応答する必要がある。しかしながら、装置(High Speedモード対応デバイス)によっては、電源投入からホストとの通信が可能になるまでに多くの初期設定時間が必要なケースがある。例えば、装置を初期化するためのパワーオンリセット処理に多くの時間を必要とする場合や、装置に搭載されたCPUがファームウェアを読み込むための処理に多くの時間を必要とする場合等がある。そのような場合、ホストからの上記制御(通信要求)に応答することができないケースが発生する。すると、ホストに装置が接続され且つ電源が投入されているにも拘らず、ホストとの通信の確立に失敗するという問題が発生する。   Therefore, when the high speed mode compatible device is physically connected to the host that has been previously powered on, when the power is turned on, the device needs to respond to the control from the host after a predetermined time has elapsed. However, depending on the device (high speed mode compatible device), there may be a case where a lot of initial setting time is required from when the power is turned on until communication with the host becomes possible. For example, there are cases where a lot of time is required for a power-on reset process for initializing the apparatus, and a case where a CPU mounted on the apparatus needs a lot of time for a process for reading firmware. In such a case, a case where it is not possible to respond to the control (communication request) from the host occurs. Then, although the apparatus is connected to the host and the power is turned on, there arises a problem that establishment of communication with the host fails.

そこで、ホストからの通信要求に応答することが可能な時点で信号線D+を電源に接続するように制御する制御回路を備えた技術が提案されている(特許文献1および特許文献2参照)。   Thus, a technique has been proposed that includes a control circuit that controls the signal line D + to be connected to a power source when it can respond to a communication request from a host (see Patent Document 1 and Patent Document 2).

また、ホストからの通信要求に応答することが可能になるまでラッチ回路をセットしておき、そのラッチ回路でトランジスタをオン状態にして信号線D+,D−を0Vに設定し、ホストからの通信要求に応答することが可能になった時点でラッチ回路をリセットしてトランジスタをオフ状態にする技術が提案されている(特許文献3参照)。   Further, a latch circuit is set until it becomes possible to respond to a communication request from the host, the transistor is turned on by the latch circuit, the signal lines D + and D− are set to 0 V, and communication from the host is performed. A technique has been proposed in which a latch circuit is reset to turn off a transistor when it becomes possible to respond to a request (see Patent Document 3).

さらに、ホストからの通信要求に応答することが可能になるまで信号線D+,D−を駆動するためのUSBトランシーバ部の電源をオフする回路を備えた技術が提案されている(特許文献4参照)。
特開平11−110097号公報 特開平11−288338号公報 特開平11−245487号公報 特開2003−186584号公報
Further, a technique has been proposed that includes a circuit for turning off the power of the USB transceiver unit for driving the signal lines D + and D− until it becomes possible to respond to a communication request from the host (see Patent Document 4). ).
Japanese Patent Laid-Open No. 11-110097 JP-A-11-288338 Japanese Patent Laid-Open No. 11-245487 JP 2003-186484 A

しかし、上述した特許文献1,2に提案された技術では、信号線D+を電源に接続するように制御する制御回路が必要とされる。また、特許文献3に提案された技術では、信号線D+,D−を0Vに設定するためのラッチ回路やトランジスタが必要とされる。さらに、特許文献4に提案された技術では、信号線D+,D−を駆動するためのUSBドライバ部の電源をオフする回路が必要とされる。従って、いずれの技術を採用した場合であってもコストアップするという問題がある。   However, the techniques proposed in Patent Documents 1 and 2 described above require a control circuit that controls the signal line D + to be connected to the power source. The technique proposed in Patent Document 3 requires a latch circuit and a transistor for setting the signal lines D + and D− to 0V. Furthermore, the technique proposed in Patent Document 4 requires a circuit for turning off the power supply of the USB driver unit for driving the signal lines D + and D−. Therefore, there is a problem that the cost increases even when any technique is adopted.

本発明は、上記事情に鑑み、コストアップを抑えたまま、ホストとの通信の確立を確実に行なうことができるデバイスを提供することを目的とする。   In view of the above circumstances, an object of the present invention is to provide a device capable of reliably establishing communication with a host while suppressing an increase in cost.

上記目的を達成する本発明のデバイスは、ホストに接続され、そのホストとの間で、所定の第1の通信モードと所定の第2の通信モードとを有しその第2の通信モードはその第1の通信モードを経由してから設定されることによりその第2の通信モードに設定されたことが認識される通信モードである複数の通信モードで通信を行なうデバイスにおいて、
上記複数のモードの中から所望の通信モードに設定するモード設定手段を備え、そのモード設定手段は、電源投入後ホストとの通信準備が整うまでの間、通信モードを上記第2の通信モードに設定しておくものであることを特徴とする。
The device of the present invention that achieves the above object is connected to a host and has a predetermined first communication mode and a predetermined second communication mode with the host, and the second communication mode is In a device that performs communication in a plurality of communication modes that are recognized as being set in the second communication mode by being set after passing through the first communication mode,
Mode setting means for setting a desired communication mode from among the plurality of modes is provided, and the mode setting means changes the communication mode to the second communication mode until the communication preparation with the host is completed after the power is turned on. It is characterized by being set.

本発明のデバイスは、第1の通信モードを経由してから第2の通信モードが設定されることによりその第2の通信モードに設定されたことがホストに認識される通信を行なうデバイスであって、電源投入後ホストとの通信準備が整うまでの間、通信モードを上記第2の通信モードに設定しておくものである。このため、電源投入からホストとの通信が可能になるまでに多くの初期設定時間(期間)が必要な場合であっても、その期間だけデバイス側では上記第2の通信モードに設定されることとなる。従って、この期間中は、ホストからの通信要求が行なわれることはなく、従来技術に見られるようにホストからの通信要求にデバイスが応答できず、ホストとの通信の確立に失敗するという問題が解消される。また、電源投入後ホストとの通信準備が整うまでの間、既存の第2の通信モードに設定するだけであるため、簡単な回路構成で済みコストアップを小さく抑えることができる。   The device of the present invention is a device that performs communication in which the host recognizes that the second communication mode is set by setting the second communication mode after passing through the first communication mode. The communication mode is set to the second communication mode until the communication preparation with the host is completed after the power is turned on. For this reason, even if a lot of initial setting time (period) is required from when the power is turned on until communication with the host becomes possible, the device is set to the second communication mode only during that period. It becomes. Therefore, during this period, no communication request is made from the host, and the device cannot respond to the communication request from the host as seen in the prior art, and the establishment of communication with the host fails. It will be resolved. Moreover, since the second communication mode is simply set to the existing second communication mode until the communication preparation with the host is completed after the power is turned on, a simple circuit configuration is sufficient, and the cost increase can be suppressed to a small level.

ここで、上記デバイスは、ホストとの間で、USB2.0規格による通信を行なうデバイスであって、上記モード設定手段は、電源投入後ホストとの通信準備が整うまでの間、通信モードをHigh Speedモードに設定しておくものであることが好ましい。   Here, the device is a device that communicates with the host according to the USB 2.0 standard, and the mode setting means sets the communication mode to High until power-on and preparation for communication with the host are completed. It is preferable that the speed mode is set.

USB2.0規格による通信を行なうデバイスは、第1の通信モードであるFull Speedモードを経由してから第2の通信モードであるHigh Speedモードが設定されることによりそのHigh Speedモードに設定されたことがホストに認識される通信を行なうデバイスである。このため、電源投入後ホストとの通信準備が整うまでの間、通信モードをHigh Speedモードに設定すると、その期間ではホストからの通信要求が行なわれることはなく、従ってホストとの通信の確立を確実に行なうことができる。また、既存のHigh Speedモードに設定するだけであるため、簡単な回路構成で済みコストアップを小さく抑えることができる。   A device that performs communication according to the USB 2.0 standard is set to the High Speed mode by setting the High Speed mode that is the second communication mode after passing through the Full Speed mode that is the first communication mode. Is a device that performs communication that is recognized by the host. For this reason, if the communication mode is set to High Speed mode until communication preparation with the host is completed after the power is turned on, no communication request is made from the host during that period, and therefore communication with the host is established. It can be done reliably. In addition, since only the existing High Speed mode is set, a simple circuit configuration is sufficient, and the cost increase can be reduced.

本発明のデバイスによれば、コストアップを抑えたまま、ホストとの通信の確立を確実に行なうことができる。   According to the device of the present invention, it is possible to reliably establish communication with the host while suppressing an increase in cost.

以下、図面を参照して本発明の実施の形態を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の一実施形態のデバイスの回路構成を示すブロック図である。   FIG. 1 is a block diagram showing a circuit configuration of a device according to an embodiment of the present invention.

図1には、USB2.0による通信を行なうUSBデバイス100と、パーソナルコンピュータに代表されるホスト200と、これらUSBデバイス100とホスト200を接続するUSBケーブル300とが示されている。   FIG. 1 shows a USB device 100 that performs communication using USB 2.0, a host 200 typified by a personal computer, and a USB cable 300 that connects the USB device 100 and the host 200.

USBデバイス100には、Full Speedモード(本発明の所定の第1の通信モードの一例に相当)用のFS回路10と、High Speedモード(本発明の所定の第2の通信モードの一例に相当)用のHS回路20と、モード設定手段30と、電源部40とが備えられている。   The USB device 100 includes an FS circuit 10 for a full speed mode (corresponding to an example of a predetermined first communication mode of the present invention) and a high speed mode (corresponding to an example of a predetermined second communication mode of the present invention). ) HS circuit 20, mode setting means 30, and power supply unit 40.

FS回路10には、電源電圧3.3Vが入力されるFSバッファ11と、信号線D+,D−からの電圧信号が入力されるFSレシーバ12と、信号線D+,D−に電圧信号を出力するFSドライバ13とが備えられている。また、FS回路10には、FSバッファ11の出力側と信号線D+との間に接続された抵抗素子14(プルアップ抵抗素子Rpu)と、各一端が信号線D+,D−に接続されるとともに各他端がFSレシーバ12とFSドライバ13との各接続点に接続された抵抗素子15,16(シリーズ抵抗素子Rs)とが備えられている。さらに、FS回路10には、FSレシーバ12からの信号が入力されるFS受信部17と、FSドライバ13に信号を出力するFS駆動部18が備えられている。   The FS circuit 10 outputs voltage signals to the FS buffer 11 to which the power supply voltage 3.3V is input, the FS receiver 12 to which voltage signals from the signal lines D + and D− are input, and the signal lines D + and D−. The FS driver 13 is provided. Further, in the FS circuit 10, a resistance element 14 (pull-up resistance element Rpu) connected between the output side of the FS buffer 11 and the signal line D +, and one end thereof are connected to the signal lines D + and D−. In addition, resistance elements 15 and 16 (series resistance elements Rs) each having the other end connected to each connection point between the FS receiver 12 and the FS driver 13 are provided. Further, the FS circuit 10 includes an FS receiver 17 that receives a signal from the FS receiver 12 and an FS driver 18 that outputs a signal to the FS driver 13.

一方、HS回路20には、信号線D+,D−からの電圧信号が入力されるHSレシーバ22と、信号線D+,D−に電圧信号を出力するHSドライバ23が備えられている。また、HS回路20には、HSレシーバ22からの信号が入力されるHS受信部27と、HSドライバ23に信号を出力するHS駆動部28が備えられている。   On the other hand, the HS circuit 20 is provided with an HS receiver 22 to which voltage signals from the signal lines D + and D− are input, and an HS driver 23 that outputs voltage signals to the signal lines D + and D−. The HS circuit 20 includes an HS receiving unit 27 to which a signal from the HS receiver 22 is input and an HS driving unit 28 that outputs a signal to the HS driver 23.

モード設定手段30は、Full SpeedモードおよびHigh Speedモードの中から所望の通信モードに設定するものであり、このモード設定手段30は、電源投入後ホスト200との通信準備が整うまでの間、通信モードをHigh Speedモードに設定しておくものである。   The mode setting unit 30 sets a desired communication mode from among the full speed mode and the high speed mode. The mode setting unit 30 performs communication until the communication preparation with the host 200 is completed after the power is turned on. The mode is set to the High Speed mode.

電源部40は、このUSBデバイス100全体に電源を供給する。   The power supply unit 40 supplies power to the entire USB device 100.

また、ホスト200には、信号線D+,D−と接続されてUSBデバイス100との間で通信を行なうUSBホスト部201と、信号線D+,D−とグラウンドGNDとの間に接続された抵抗素子202,203(プルダウン抵抗素子Rpd)が備えられている。   In addition, the host 200 is connected to the signal lines D + and D− and communicates with the USB device 100, and a resistor connected between the signal lines D + and D− and the ground GND. Elements 202 and 203 (pull-down resistance element Rpd) are provided.

先ず、モード設定手段30が備えられていないUSBデバイス100(以下、USBデバイス101と記述する)とホスト200との接続シーケンスについて説明する。   First, a connection sequence between the USB device 100 (hereinafter referred to as the USB device 101) that does not include the mode setting unit 30 and the host 200 will be described.

図2は、モード設定手段が備えられていないUSBデバイスとホストとの接続シーケンスを示す図である。   FIG. 2 is a diagram showing a connection sequence between a USB device not equipped with mode setting means and a host.

ここでは、モード設定手段30が備えられていないUSBデバイス101とホスト200とがUSBケーブル300で接続された状態で、ホスト200の電源のみがオンされた状態にあるものとする。尚、図2に示す実線,破線は、USBバスである信号線D+,D−の電圧レベルを表わしている。最初の時点では、信号線D+,D−の電圧レベルは共に0Vである。   Here, it is assumed that the USB device 101 that does not include the mode setting unit 30 and the host 200 are connected by the USB cable 300 and only the power source of the host 200 is turned on. 2 represent the voltage levels of the signal lines D + and D− that are USB buses. At the first time point, the voltage levels of the signal lines D + and D− are both 0V.

ここで、USBデバイス101の電源をオフ状態からオン状態にする。すると、USBデバイス101は、FSバッファ11のイネーブル信号Rpu Enableを‘H’レベルにして、そのFSバッファ11から3.3Vの電圧を抵抗素子14(Rpu)を経由して信号線D+に印加する。これにより、信号線D+の電圧レベルを0Vから3.3Vに引き上げる(プルアップする)。すると、ホスト200に備えられたUSBホスト部201は、USBデバイス101がFull Speedモードであると認識する。次いで、そのUSBホスト部201は、100ms(min)経過後に信号線D+の電圧レベルを0Vに引き下げる(プルダウンする)。   Here, the power supply of the USB device 101 is changed from the off state to the on state. Then, the USB device 101 sets the enable signal Rpu Enable of the FS buffer 11 to the “H” level, and applies a voltage of 3.3 V from the FS buffer 11 to the signal line D + via the resistance element 14 (Rpu). . As a result, the voltage level of the signal line D + is raised (pulled up) from 0V to 3.3V. Then, the USB host unit 201 provided in the host 200 recognizes that the USB device 101 is in the Full Speed mode. Next, the USB host unit 201 lowers (pulls down) the voltage level of the signal line D + to 0 V after 100 ms (min) has elapsed.

その後、USBデバイス101は、HSドライバ23のイネーブル信号HS Output Enableを‘H’レベルにして信号線D−の電圧レベルを0Vから破線で示す800mVに引き上げる。これにより、USBホスト部201は、USBデバイス101がUSB2.0規格の特徴部分であるChirpモードに移行したことを認識し、そのUSBデバイス101へのアクセス開始の準備をする。次いで、USBデバイス101は、所定時間経過後、HSドライバ23のイネーブル信号HS Output Enableを‘L’レベルにして信号線D−の電圧レベルを800mVから0Vに引き下げる。すると、USBホスト部201は、信号線D+,D−を交互に800mV,0Vに変化させ続ける。   Thereafter, the USB device 101 sets the enable signal HS Output Enable of the HS driver 23 to the “H” level, and raises the voltage level of the signal line D− from 0 V to 800 mV indicated by a broken line. As a result, the USB host unit 201 recognizes that the USB device 101 has shifted to the Chirp mode, which is a characteristic part of the USB 2.0 standard, and prepares to start access to the USB device 101. Next, after a predetermined time has elapsed, the USB device 101 sets the enable signal HS Output Enable of the HS driver 23 to the ‘L’ level, and lowers the voltage level of the signal line D− from 800 mV to 0V. Then, the USB host unit 201 continuously changes the signal lines D + and D− to 800 mV and 0 V.

USBデバイス101は、このように変化する信号線D+,D−の電圧レベルをHSレシーバ22に入力してChirpモードの確認を行なう。次いで、USBデバイス101は、FSドライバ13のイネーブル信号FS Output Enableを‘L’レベルにする。すると、信号線D+,D−の800mVの電圧レベルが400mVに引き下げられる。このようにして、High Speedモードに移行する。このHigh Speedモードにおいて、USBホスト部201からの、信号線D+,D−を交互に400mV,0Vに変化させ続ける処理が終了すると、信号線D+,D−の電圧レベルは共に0Vとなる。   The USB device 101 inputs the voltage levels of the signal lines D + and D− changing in this way to the HS receiver 22 and confirms the Chirp mode. Next, the USB device 101 sets the enable signal FS Output Enable of the FS driver 13 to the “L” level. Then, the voltage level of 800 mV of the signal lines D + and D− is lowered to 400 mV. In this way, the mode shifts to the High Speed mode. In the High Speed mode, when the process of continuously changing the signal lines D + and D− from the USB host unit 201 to 400 mV and 0 V is completed, the voltage levels of the signal lines D + and D− both become 0 V.

USB1.1規格では、電源がオンされて信号線D+が‘H’レベルに引き上げられるとFull Speedモードとなる。一方、電源がオンされて信号線D−が‘H’レベルに引き上げられるとLow Speedモードとなる。これにより、ホスト200側でFull SpeedモードとLow Speedモードとの区別が行なわれる。このように信号線D+,D−双方の電圧レベルを使用するため、USB2.0規格において追加したHigh Speedモードの区別は、上述したシーケンスにより行なわれる。   In the USB 1.1 standard, when the power is turned on and the signal line D + is pulled up to the “H” level, the full speed mode is set. On the other hand, when the power supply is turned on and the signal line D− is pulled up to the “H” level, the Low Speed mode is set. As a result, the host 200 distinguishes between the full speed mode and the low speed mode. Since the voltage levels of both the signal lines D + and D− are used in this way, the high speed mode added in the USB 2.0 standard is distinguished by the above-described sequence.

このように、あるUSBデバイスがホスト200に接続された場合、そのデバイスが信号線D+,D−の800mVの電圧レベルを400mVに引き下げることにより、High Speedモードに対応するデバイス(USB2.0規格による通信を行なうデバイス)であることがホスト200により認識される。   As described above, when a certain USB device is connected to the host 200, the device lowers the 800 mV voltage level of the signal lines D + and D− to 400 mV, so that the device corresponding to the High Speed mode (according to the USB 2.0 standard). The host 200 recognizes that the device is a communication device).

図3は、図2に示す接続シーケンスにおけるUSBホスト部の状態を示す図である。   FIG. 3 is a diagram showing the state of the USB host unit in the connection sequence shown in FIG.

USBホスト部201では、図3に示すように、Full Speedモード,Chirpモード,High Speedモードのいずれのモードにおいても、抵抗素子202,203(Rpd)が信号線D+,D−とグラウンドGNDとの間に接続された状態(オン状態)にある。また、Full Speedモードでは、Full Speedモード用のFS回路10,High Speedモード用のHS回路20に対して、アクティブ,非アクティブ状態にある。さらに、ChirpモードおよびHigh Speedモードでは、共に、FS回路10に対して信号線D+,D−を‘L’レベルに終端するとともに、HS回路20に対してはアクティブ状態にある。   In the USB host unit 201, as shown in FIG. 3, the resistance elements 202 and 203 (Rpd) are connected between the signal lines D + and D− and the ground GND in any of the full speed mode, the chirp mode, and the high speed mode. It is in a connected state (on state). Further, in the Full Speed mode, the Full Speed mode FS circuit 10 and the High Speed mode HS circuit 20 are in an active / inactive state. Further, in both the Chirp mode and the High Speed mode, the signal lines D + and D− are terminated to the ‘L’ level with respect to the FS circuit 10 and are in an active state with respect to the HS circuit 20.

図4は、図2に示す接続シーケンスにおけるUSBデバイスの状態を示す図である。   FIG. 4 is a diagram illustrating a state of the USB device in the connection sequence illustrated in FIG.

USBデバイス101では、Full Speedモード,Chirpモードにおいては、抵抗素子14(Rpu)は3.3Vの電圧でプルアップされた状態(オン状態)にある。一方、High Speedモードにおいては、抵抗素子14(Rpu)は3.3Vの電圧でプルアップされていない状態(オフ状態)にある。また、Full Speedモードでは、FS回路10,HS回路20は、アクティブ,非アクティブ状態にある。さらに、Chirpモードでは、非アクティブ,アクティブ状態にある。また、High Speedモードでは、FS回路10は信号線D+,D−を‘L’レベルに終端するとともに、HS回路20はアクティブ状態にある。   In the USB device 101, in the full speed mode and the chirp mode, the resistance element 14 (Rpu) is pulled up with a voltage of 3.3 V (on state). On the other hand, in the high speed mode, the resistance element 14 (Rpu) is not pulled up with a voltage of 3.3 V (off state). In the full speed mode, the FS circuit 10 and the HS circuit 20 are in an active / inactive state. Further, in the Chirp mode, they are inactive and active. In the high speed mode, the FS circuit 10 terminates the signal lines D + and D− at the ‘L’ level, and the HS circuit 20 is in an active state.

図5は、図2に示す接続シーケンスにおける信号線D+,D−の状態を示す図である。   FIG. 5 is a diagram showing the states of the signal lines D + and D− in the connection sequence shown in FIG.

信号線D+,D−の動作時電圧レベルは、Full Speedモード,Chirpモード,High Speedモードでは、それぞれ、3.3V,800mV,400mVにある。また、アイドル時状態では、信号線D+,D−は、Full Speedモードでは、High,Low状態にある。また、Chirpモード,High Speedモードでは、いずれもLow状態にある。   The operating voltage levels of the signal lines D + and D− are 3.3 V, 800 mV, and 400 mV in the full speed mode, the chirp mode, and the high speed mode, respectively. In the idle state, the signal lines D + and D− are in the high and low states in the full speed mode. Moreover, in the Chirp mode and the High Speed mode, both are in the Low state.

ここで、上述した、モード設定手段30が備えられていないUSBデバイス101では、そのUSBデバイス101を初期化するためのパワーオンリセットや、そのUSBデバイス101に搭載されたCPU(図示せず)でファームウェアを読み込むための初期設定動作が行われる。このような初期設定動作では比較的長い時間(例えば1秒)が必要とされる。このため、ホスト200からの通信要求に応答することができない場合があり、その場合、ホスト200にUSBデバイス101が接続され且つ電源が投入されているにも拘らず、ホスト200との通信の確立に失敗するというケースが発生する。   Here, in the USB device 101 that is not provided with the mode setting unit 30 described above, a power-on reset for initializing the USB device 101 or a CPU (not shown) mounted on the USB device 101 is used. An initial setting operation for reading the firmware is performed. Such an initial setting operation requires a relatively long time (for example, 1 second). For this reason, there is a case where it is not possible to respond to a communication request from the host 200. In this case, communication with the host 200 is established even though the USB device 101 is connected to the host 200 and the power is turned on. The case of failing occurs.

そこで、本実施形態のUSBデバイス100には、前述した、電源投入後ホスト200との通信準備が整うまでの間、通信モードをHigh Speedモードに設定しておくモード設定手段30が備えられている。以下、図6を参照して説明する。   Therefore, the USB device 100 according to the present embodiment includes the mode setting unit 30 that sets the communication mode to the high speed mode until the preparation for communication with the host 200 is completed after the power is turned on. . Hereinafter, a description will be given with reference to FIG.

図6は、図1に示すUSBデバイスの、電源投入後ホストとの通信準備が整うまでの間、通信モードをHigh Speedモードに設定しておく処理ルーチンのフローチャートである。   FIG. 6 is a flowchart of a processing routine for setting the communication mode to the high speed mode until the USB device shown in FIG. 1 is ready for communication with the host after the power is turned on.

ここでは、図1に示すように、USBデバイス100とホスト200はUSBケーブル300で接続されており、ホスト200の電源のみオンされているものとする。このような状態で、図6に示すように、USBデバイス100の電源がオンされる。すると、ステップS1において、モード設定手段30は、FS回路10およびHS回路20に対して、High Speedモードで動作するように設定する。具体的には、図2に示すHigh Speedモードにおいて、信号線D+,D−の電圧レベルが0Vになるように設定する。一方、ホスト200を構成するUSBホスト部201は、Full Speedモードにある。ここで、図3に示すように、USBホスト部201では、Full Speedモードにおいて、High Speedモード用のHS回路20は非アクティブ状態にあるため、信号が衝突する等の問題は発生しない。   Here, as shown in FIG. 1, it is assumed that the USB device 100 and the host 200 are connected by a USB cable 300, and only the host 200 is powered on. In this state, the USB device 100 is powered on as shown in FIG. Then, in step S1, the mode setting means 30 sets the FS circuit 10 and the HS circuit 20 so as to operate in the high speed mode. Specifically, in the High Speed mode shown in FIG. 2, the voltage levels of the signal lines D + and D− are set to 0V. On the other hand, the USB host unit 201 constituting the host 200 is in the Full Speed mode. Here, as shown in FIG. 3, in the USB host unit 201, in the full speed mode, the HS circuit 20 for the high speed mode is in an inactive state, so that a problem such as signal collision does not occur.

次いで、ステップS2において、準備完了か否か、即ち初期設定動作が終了したか否かが判定される。尚、準備完了を示すフラグはリセット信号やその他の制御信号を用いることができる。準備が完了していないと判定された場合は、このステップS2を繰返し実行する。一方、準備が完了したと判定された場合は、図2を参照して説明した手順が実行される。   Next, in step S2, it is determined whether or not preparation is complete, that is, whether or not the initial setting operation has been completed. Note that a reset signal and other control signals can be used as the flag indicating the completion of preparation. If it is determined that the preparation has not been completed, step S2 is repeatedly executed. On the other hand, when it is determined that the preparation is completed, the procedure described with reference to FIG. 2 is executed.

先ず、ステップS3において、Full Speedモードを実行する。次いで、ステップS4においてChirpモードを実行し、さらにステップS5においてHigh Speedモードを実行する。その後、アイドル状態となる。   First, in step S3, the Full Speed mode is executed. Next, the Chirp mode is executed in step S4, and the high speed mode is executed in step S5. Then, it becomes an idle state.

このように、本実施形態のUSBデバイス100では、通信準備が完了していないと判定された場合は、モード設定手段30によりHigh Speedモードになるように設定される。このように設定することにより、ホスト200では、USBデバイス100の電源がオンされていない状態であると認識するため、ホスト200からの通信要求にUSBデバイス100が応答できず、ホスト200にUSBデバイス100が接続され且つ電源が投入されているにも拘らずホスト200との通信の確立に失敗するという問題を防止することができる。ここで、モード設定手段30は、通信準備が完了していない期間だけ、USBデバイス100を構成するのに必要な既存のHigh Speedモードに設定するのみであるため、簡単な回路構成で済みコストアップを小さく抑えることができる。   As described above, in the USB device 100 according to the present embodiment, when it is determined that the communication preparation is not completed, the mode setting unit 30 sets the high speed mode. With this setting, the host 200 recognizes that the power of the USB device 100 is not turned on. Therefore, the USB device 100 cannot respond to a communication request from the host 200, and the USB device It is possible to prevent the problem that the communication with the host 200 fails to be established although the 100 is connected and the power is turned on. Here, since the mode setting means 30 only sets the existing High Speed mode necessary for configuring the USB device 100 only during the period when the communication preparation is not completed, a simple circuit configuration is sufficient and the cost is increased. Can be kept small.

尚、本実施形態では、USB2.0規格による通信を行なうUSBデバイス100であって、モード設定手段30は、電源投入後ホスト200との通信準備が整うまでの間、通信モードをHigh Speedモードに設定しておく例で説明したが、これに限られるものではなく、本発明は、ホストに接続され、そのホストとの間で、第1の通信モードを経由してから第2の通信モードに設定されることによりその第2の通信モードに設定されたことが認識される通信モードである複数の通信モードで通信を行なうデバイスであって、上記複数のモードの中から所望の通信モードに設定するモード設定手段が、電源投入後ホストとの通信準備が整うまでの間、通信モードを第2の通信モードに設定しておくものであればよい。   In the present embodiment, the USB device 100 performs communication according to the USB 2.0 standard, and the mode setting unit 30 switches the communication mode to the High Speed mode until the communication preparation with the host 200 is completed after the power is turned on. However, the present invention is not limited to this, and the present invention is connected to a host and passes through the first communication mode with the host before entering the second communication mode. A device that performs communication in a plurality of communication modes that are recognized as being set to the second communication mode by being set, and sets the desired communication mode from the plurality of modes As long as the mode setting means to set the communication mode to the second communication mode until the communication preparation with the host is completed after the power is turned on.

本発明の一実施形態のデバイスの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the device of one Embodiment of this invention. モード設定手段が備えられていないUSBデバイスとホストとの接続シーケンスを示す図である。It is a figure which shows the connection sequence of the USB device which is not equipped with the mode setting means, and a host. 図2に示す接続シーケンスにおけるUSBホスト部の状態を示す図である。It is a figure which shows the state of the USB host part in the connection sequence shown in FIG. 図2に示す接続シーケンスにおけるUSBデバイスの状態を示す図である。It is a figure which shows the state of the USB device in the connection sequence shown in FIG. 図2に示す接続シーケンスにおける信号線D+,D−の状態を示す図である。It is a figure which shows the state of the signal lines D + and D- in the connection sequence shown in FIG. 図1に示すUSBデバイスの、電源投入後ホストとの通信準備が整うまでの間、通信モードをHigh Speedモードに設定しておく処理ルーチンのフローチャートである。3 is a flowchart of a processing routine for setting a communication mode to a high speed mode until the USB device shown in FIG. 1 is ready for communication with a host after power-on.

符号の説明Explanation of symbols

10 FS回路
11 FSバッファ
12 FSレシーバ
13 FSドライバ
14,15,16,202,203 抵抗素子
17 FS受信部
18 FS駆動部
20 HS回路
22 HSレシーバ
23 HSドライバ
27 HS受信部
28 HS駆動部
30 モード設定手段
40 電源部
100 USBデバイス
200 ホスト
201 USBホスト部
300 USBケーブル
DESCRIPTION OF SYMBOLS 10 FS circuit 11 FS buffer 12 FS receiver 13 FS driver 14, 15, 16, 202, 203 Resistive element 17 FS receiver 18 FS driver 20 HS circuit 22 HS receiver 23 HS driver 27 HS receiver 28 HS driver 30 Mode Setting means 40 Power supply unit 100 USB device 200 Host 201 USB host unit 300 USB cable

Claims (2)

ホストに接続され、該ホストとの間で、所定の第1の通信モードと所定の第2の通信モードとを有し該第2の通信モードは該第1の通信モードを経由してから設定されることにより該第2の通信モードに設定されたことが認識される通信モードである複数の通信モードで通信を行なうデバイスにおいて、
前記複数のモードの中から所望の通信モードに設定するモード設定手段を備え、該モード設定手段は、電源投入後ホストとの通信準備が整うまでの間、通信モードを前記第2の通信モードに設定しておくものであることを特徴とするデバイス。
A predetermined first communication mode and a predetermined second communication mode are connected to and connected to the host, and the second communication mode is set after passing through the first communication mode. In a device that performs communication in a plurality of communication modes that are recognized as being set to the second communication mode,
Mode setting means for setting a desired communication mode from the plurality of modes is provided, and the mode setting means changes the communication mode to the second communication mode until the communication preparation with the host is completed after the power is turned on. A device characterized by being configured.
前記デバイスは、ホストとの間で、USB2.0規格による通信を行なうデバイスであって、前記モード設定手段は、電源投入後ホストとの通信準備が整うまでの間、通信モードをHigh Speedモードに設定しておくものであることを特徴とする請求項1記載のデバイス。   The device is a device that communicates with the host in accordance with the USB 2.0 standard, and the mode setting means sets the communication mode to the high speed mode until power-on and preparation for communication with the host are completed. The device according to claim 1, wherein the device is set.
JP2004150903A 2004-05-20 2004-05-20 Device Withdrawn JP2005332269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004150903A JP2005332269A (en) 2004-05-20 2004-05-20 Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004150903A JP2005332269A (en) 2004-05-20 2004-05-20 Device

Publications (1)

Publication Number Publication Date
JP2005332269A true JP2005332269A (en) 2005-12-02

Family

ID=35486879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004150903A Withdrawn JP2005332269A (en) 2004-05-20 2004-05-20 Device

Country Status (1)

Country Link
JP (1) JP2005332269A (en)

Similar Documents

Publication Publication Date Title
US7085876B2 (en) USB controlling apparatus for data transfer between computers and method for the same
US6415342B1 (en) Universal serial bus controlled connect and disconnect
KR102044898B1 (en) Method for sensing connection of USB device and image forming apparatus performing the same
JP4960899B2 (en) Image processing apparatus, serial bus control method, serial bus control program, and recording medium
US20080178011A1 (en) Method and apparatus for usb/otg connection providing active hnp requests and saving host power
JP3610424B2 (en) Electronic equipment and interface circuit
KR100273619B1 (en) Operation mode transfer system and method
KR100495657B1 (en) Integrated circuit device with multiple communication modes and operating method thereof
US8817287B2 (en) Image forming apparatus, method for controlling the same, and storage medium
CN111459854A (en) Method for secure digital card, flash memory controller and electronic device
US20050006483A1 (en) Method and apparatus for autoreset of a USB smart card device in a mute mode
KR20060114270A (en) Master device, control method thereof and electronic apparatus having master device
KR100695791B1 (en) Communication apparatus and control method for the communication apparatus
US7010640B2 (en) Interface apparatus for mediating sending and receiving signals between devices connected by a signal line
US20140157012A1 (en) Information processing apparatus and power supplying method
US8799688B2 (en) Bridge capable of power saving by receiving a signal transmitted from a host through a power pin of a connector
US20060218330A1 (en) Semiconductor device and method of connecting the same
JP2011215855A (en) Usb device control circuit and control method of usb device
JP4954023B2 (en) Image forming apparatus and connection notification method
JP2003241870A (en) Usb device
JP2007102444A (en) Electronic equipment, method for controlling electronic equipment and control program
JP2005332269A (en) Device
JP3799115B2 (en) Signal output circuit, parallel interface circuit, and printer device
KR20050077106A (en) Automatic switching method of usb operation mode, and single-type usb port device using the same
JP2006135397A (en) Data transfer controller and electronic equipment

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070807