Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
USB System Architecture (USB 2.0).pdf
Скачиваний:
172
Добавлен:
03.05.2015
Размер:
7.03 Mб
Скачать

USB System Architecture

Bus-Powered Hubs

Bus-powered hubs obtain all of their power from the bus. Therefore, they can only distribute some portion of the total current they get from the upstream port to all functions, including the hub controller, embedded function (if included) and all downstream ports. This dictates that to guarantee full hub functionality a bus powered hub must connect to an upstream port that has the full 500ma of current available.

Power During Hub Configuration

Prior to supplying power to attached devices, the hub must first be configured. Host software must be able to access the hub controller to read the hub descriptors that define its capabilities (e.g., number of ports, bus-powered, or self-pow- ered). Prior to being configured, USB devices (including hubs) must not draw more than 100ma of current. This is required because devices attached to buspowered hubs may supply a maximum of only 100ma of current. Not until the hub is configured can it draw more than 100ma for powering embedded devices or ports.

Bus-Powered Hub Attached to 500ma Port

Since the maximum current available to a bus-powered hub is 500ma, the maximum number of ports that can be supported is four. Figure 4-2 on page 82 is a block diagram of a bus-powered hub, showing power distribution to an embedded function and four ports. Since each port must be able to supply a minimum of 100ma (one unit) of current, the hub controller and embedded function combined must draw less than 100ma.

Bus-Powered Hub Attached to 100ma Port

If a bus-powered hub attaches to another bus-powered hub port that only supplies a maximum of 100ma, then the available current must be used to power the hub controller. This permits configuration software to access the descriptors to determine the power requirements of the device. If the bus-powered hub contains an embedded function (i.e., a compound device), it may be powered along with the hub controller. This is permissible when the total current drawn by the hub controller and the embedded device does not exceed 100ma.

80

Chapter 4: USB Cable Power Distribution

If the current draw is greater than 100ma, the embedded function must be power switched. In this way, configuration software can evaluate the power requirements of all devices by reading the device descriptors and enable only those functions that can be supported based on the available current. In this case, configuration software would not configure the hub since the available current is insufficient to power any one function.

Bus-Powered Hub Attached to Port with >100ma but <500ma

Bus-powered hubs must provide power switching to the downstream ports, as

well as the embedded function, if Iembedded function + Ihub controller > 100ma. Since the embedded function and hub controller combined draw more than

100ma of current, they cannot both be powered during configuration. Therefore, the embedded function must be power switched. This requirement also provides flexibility when the port to which the hub attaches can supply only enough current to power the hub controller and embedded function. In this case, the ports must remain powered off since insufficient power is available for devices attached to the ports.

For bus-powered hubs, the specification states that “power to downstream ports must be switched”, but does not specify that the ports be switched individually. The advantage of individually power-switched ports is that ports can be selectively powered based on the amount of current available.

Current Limiting

Since the only source of power is the USB cable, bus-powered hubs can only have 500ma of current available and therefore cannot exceed the 5.0a limit per port. If total current draw from the upstream USB bus cable exceeds 5.0a, then current limiting in the upstream hub would prevent an over-current condition.

81

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]