This Application claims priority of Taiwan Patent Application No. 98118994, filed on Jun. 8, 2009, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The present invention relates to universal serial bus (USB) techniques, and in particular relates to USB 3.0 techniques.
2. Description of the Related Art
When normally operating, both the host 102 and the USB device 104 are in a normal operation state (a U0 state). In the U0 state, the host 102 and USB device 104 receive or transmit data packages normally. Also, a user can disable the USB transmission from the host 102 side. For example, the operation system (OS) of the host 102 may provide a command, “removing the USB device”, to disable the USB transmission of the host 102.
However, for conventional techniques, when the USB transmission is disabled from the host 102 side, the USB device 104 side is not notified of the change of the operation state of the host 102. Thus, the USB device 104 continues to operate in the normal operation state (U0 state), consuming unnecessary power.
The invention discloses USB devices and systems comprising at least one of the USB devices.
A USB system comprises a host, a USB device and a USB cable connecting the USB device to the host.
A USB device comprises an electrical physical layer (EPHY) module, a logical physical layer (LPHY) module, a link layer module and a protocol layer module. The LPHY module and the link layer module are specially designed in the invention.
In an exemplary embodiment of the invention, the EPHY module reads the voltages of a first transmission line and a second transmission line of the USB cable to extract a recovery clock and data. The LPHY module detects the recovery clock and data to output an indication signal. When no recovery clock is available, the LPHY module sets the indication signal to be a predetermined value. The link layer module, comprising a state machine, detects the indication signal and, when the detected result shows that the indication signal has been maintained at the predetermined value over a predetermined time period, the link layer module makes the state machine leave a normal operation state (a U0 state).
The first and second transmission lines may be TX+ and TX− transmission lines of the USB cable.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description shows several exemplary embodiments carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
The USB device 204 comprises an electrical physical layer (EPHY) module 206, a logical physical layer (LPHY) module 208, a link layer module 210 and a protocol layer module 212. The link layer module 210 comprises a state machine 214, such as a link training and status state machine (LTSSM) of a USB 3.0 protocol, which defines link connectivity and link power management. In an embodiment of the invention, the LPHY module 208 and the link layer module 210 are specially designed to show the status of the TX+ and TX− transmission lines. The invention improves flexibility of controlling the state machine 214 and improves power management of a USB device 204.
Referring back to
The LPHY module 208 comprises a plurality of logic circuits. The LPHY module 208 outputs an indication signal 216 according to the recovery clock and data transmitted in the TX+ and TX− transmission lines. When USB transmission of the host 202 is disabled (the host 202 is in a connection disable state as know as SS.Disabled state), the EPHY layer 206 cannot extract the recovery clock and data from the TX+ and TX− transmission lines. Because no recovery clock is available, the LPHY module 208 cannot interpret data transmitted in the TX+ and TX− transmission lines. To indicate that no recovery clock is available, the LPHY module 208 sets the indication signal 216 to be a predetermined value.
The link layer module 210 is coupled to the LPHY module 208. The link layer module 210 compares the indication signal 216 with the predetermined value. When the indication signal 216 has been maintained at the predetermined value over a predetermined time period, the link layer module 210 makes the state machine 214 leave a normal operation state (a U0 state).
Compared with conventional techniques, the state of the USB device 204 according to the invention is further dependent on the state of the host 202. When the host 202 disables the USB transmission, the USB device 204 accordingly leaves the normal operation (U0 state). Because the USB device 204 is not unnecessarily in the normal operation state (U0 state), power consumption is reduced.
In the embodiment shown in
In an exemplary embodiment, the predetermined time period may be 1024 T, wherein 1 T is 8 ns or any other value. The indication signal 216 may be realized by various forms.
For example, the indication signal 216 may include two portions: a first bus signal (may be named PHYLS_RXD); and a second bus signal (may be named PHYLS_RXDISK). The first bus signal PHYLS_RXD is 32 bits. The second bus signal PHYLS_RXDISK is 4 bits. When no recovery clock is available, the LPHY module 208 sets the first bus signal PHYLS_RXD to be a first value and sets the second bus signal PHYLS_RXDISK to be a second value. The first and second values form the predetermined value. In an embodiment of the invention, the 32 bits first value is 0, and the 4 bits second value is represented as 1111 b.
In other exemplary embodiments, when the indication signal 216 is maintained at the predetermined value over the predetermined time period, the link layer module 210 not only makes the state machine 214 leave the normal operation state (U0 state) but also make the state machine 214 enter a connection recovery state (Recovery.Active state). In the connection recovery state (Recovery.Active state), the USB device 204 outputs a training sequence (training sequence 1, TS1) to wait for a response from the host 202. The related state machine diagram is shown in
The invention provides a novel USB design for reducing power consumption.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded to the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
98118994 A | Jun 2009 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
20060061795 | Walmsley | Mar 2006 | A1 |
20070210842 | Kawamoto | Sep 2007 | A1 |
Number | Date | Country |
---|---|---|
1310402 | Aug 2001 | CN |
Number | Date | Country | |
---|---|---|---|
20100312929 A1 | Dec 2010 | US |