•Downstream Support for Full Speed and Low Speed Transfer Rates
•Continual Monitoring of Port by System Host
•Individual Port Power Control
•USB Connection Status Indicators
•6 MHz Oscillator with On-Chip PLL
Description
The AT43311 is a fully compliant USB hub chip with 5 ports, one upstream port and
four full/low-speed downstream ports. The AT43311 can be used as a stand alone or
can provide a simple and quick method of adding USB ports to an existing device.
As a repeater, the AT43311 provides upstream connectivity between the selected
function and the host. Connectivity involves setting up and tearing do wn connecti ons,
handling bus faults, recovering from bus faults and detecting downstream device connections and disconnections.
The AT43311 may also act a s a hub cont roller mana ging the hu b operatio ns and
recording the status of the hub, bus transactions, and downstream ports. In this mode,
the AT43311 tracks and generates the bus enumeration , provides configuration information to the host, prov ides indi vidual port stat us to the host, an d controls the port
operation based on host commands.
Note:1.This document assumes that the reader is familiar with the Universal Serial Bus and therefore only describes the unique
features of the AT43311 chip. For detailed information about the USB and its operation, the reader should refer to the Universal Serial Bus Specification Version 1.0, January 19, 1996.
STAT1
Overcurrent
Protection/
Reporting
OVL1
PWR1
DM1
DP1
PORT 2PORT 3
STAT2
PWR2
PORT 0
REPEATER
DM2
OVL2
HUB
DP2
2
AT43311
AT43311
Pin Description
Pin DescriptionPin TypeDescription
OSC1IOscillator Input. Input to the inverting 6 MHz oscillator amplifier.
OSC2OOscillator Output. Output of the inverting oscillator amplifier.
LFTI
VREFIReference Voltage. This is an input pin that should be connected to an external
DP0BUpstream Plus USB I/O. This pin should be connected to VCC3 through an external
DM0BUpstream Minus USB I/O
DP[1:4]BPort Plus USB I/O. These pins should be connected to VSS through external 1.5K Ω
DM[1:4]B
OVL[1:4]
PWR[1:4]
IPort Overload. These are the input signals used to indicate to the AT43311 that there
ODPower Switch. These are the output signals used to enable or disable the external
PLL Filter. For proper operation of the PLL, this pin should be connected through a
100 Ω resistor and 10 nF capacitor to ground (V
(see Figure 1–Power Supply Connection).
voltage source. VREF is used internally as the reference voltage by the overload
protection circuit to decide whether there is a problem with a port’s power supply.
1.5K Ω pullup resistor. DP0 and DM0 form the full speed differential signal pin pairs
connected to the Host Controller or an upstream Hub.
resistors. DP[1:4] and DM[1:4] are the differential signal pin pairs to connect
downstream USB devices.
Port Minus USB I/O. These pins should be connected to VSS through external 15K Ω
resistors. DP[1:4] and DM[1:4] are the differential signal pin pairs to connect
downstream USB devices.
is a power supply problem with the port. If OVL
the corresponding PWR[1:4]
voltage regulator supplying power to the port. PWR[1:4]
supply problem is detected at OVL[1:4]
For proper operation of PWR[1:4]
required.
pin and report the status to the USB Host.
.
, an external pull-up resistor of 10K Ω to VCC5 is
) in parallel with a 2.2 nF capacitor
SS
is asserted, the AT433 11 will assert
is de-asserted when a power
STAT[1:4]
V
CC3
V
CC5
V
CCA
GNDVGround
OConnect Status. These are output pins indicating that a port is properly connected.
STAT[1:4]
V3.3V Power Supply, used for the USB interface
V5V Power Supply, main power supply for the AT43311
V5V Analog Power Supply
is asserted when the port is enabled.
3
USB Hub Description
Hub Repeater
The hub repeater i s responsibl e for port conn ectivity set up
and tear-down. The rep eater a lso support s exception handling such as bus fault detection and r ecovery, and connect/disconnect detection.
When a SOP to ken is detecte d on the upst ream port,
Port0, the AT43311 determines the speed of the transfer.
A USB hub must not propagate a full speed transfer to a
low speed port due to the possible misinterpretation of the
data. The AT43311 will propagate the packet to all enabled
downstream ports.
Note: See USB Specification for further detail on bus
states
The AT43311 supports do wnstream dat a signaling at bo th
1.5 Mbps and 12 Mbps. Devices attached to the downstream ports are either full speed or low speed depending
on which data line (DP or DM) is pulled hi gh. If a por t is
enumerated as low speed, the output buffers operate at a
slew rate between 75 ns and 300 ns. The AT43311 will not
propagate any traffic to that port unless it is prefaced with a
preamble PID. Low speed data fo llowing the preambl e PID
is propagated to both low and full speed devices. The
AT43311 will enable low speed drivers within four fullspeed bit times of the last bit of a preamble PID, and will
disable the drivers at the end of an EOP. The upstream
traffic from any port to the host is prop agated by Port0
using the full speed 4-20 ns slew rate drivers.
All ports are independently driven and monitored on the DP
and DM pins. The AT43311 detects or generates the ‘J’,
‘K’, and SE0 bus s ignal ing st ates. E ach hu b port has s ingle-ended and differential receivers on its DP and DM lines.
The ports’ I/O buffers comply to the voltage levels and drive
requirements as specified in the USB Specifications Revision 1.0.
The Hub Repeater implements a frame timer that is timed
by the 12 MHz USB clock and is reset every time an SOF
token is received from the Host.
Hub Controller
The hub controller ma nages an d records the op eratio ns of
the AT43311. During enumeration, the controller sends the
host the configuration information. The controller also
allows the host to retrieve the status of the downstream
ports, and power the downs tream ports. The control ler
applies power to the downstream ports on a per port basi s.
After configuration , the co ntrol le r wil l e nab le the p owe r t o a
downstream port upon a SetPortPower command by the
host. The controller supports two endpoints and a Control
Status register.
Serial Interface Engine
The Serial Interface Engine (SIE) converts data between
the serialized USB format and usable data for the controller
and repeater. To carry out these tasks, the SIE is able to
detect or generate USB signaling. Once a valid operation is
detected, the SIE translates the data depending on the
operation.
During a reception, the SIE will use the high speed clock
supplied by the PLL to help synchronize and separate the
synchronization informa tion from th e data. The data mu st
be decoded before the SIE may supply the packet ID to the
controller and repeater.
The USB protocol uses Cyclical Redundancy Check
(CRC), Non Return to Zero Invert (NRZI) data encoding
and bit stuffi ng to i mprov e the re liabil ity of data trans fers.
The SIE must decode the NR ZI and strip o ff the stuffe d bit
to determine the actual data. The CRC information will be
used by the SIE to determine if a transmission error has
occurred. If an error has occurred, the SIE will correct the
data using CRC algorithms.
Control Status Register
BitFunctionValueDescription
0Hub configuration status
1Hub remote wakeup status
2Endpoint0 STALL status0
3Endpoint1 STALL status0
4
AT43311
0
1
0
1
1
1
Set to 0 or 1 by a Set_Configuration Request
Set to 0 or 1 by ClearFeature or SetFeature request
Default value is 0
Endpoint0 is stalled
Endpoint0 is stalled
Endpoint1 is not stalled
Endpoint1 is stalled
Hub is not currently configured
Hub is currently configured
Hub is currently not enabled to request remote wakeup
Hub is currently enables to request remote wakeup
AT43311
Endpoint0
Endpoint0 i s th e A T4331 1’s defa ult en dpoi nt u sed f or en umeration of the Hub and exchange of configuration information and requests between the Host and th e AT43311.
Endpoint0 supports control transfers.
Standard USB Device Requests and class-specific Hub
Requests are supported through Endpoint0.
The Hub Controller supports the fol lowing descriptors
through Endpoint0 (Descriptors are described in detail in
the Descriptors Section of this document):
• Device Descriptor
• Configuration Descriptor
• Interface Descriptor
• Endpoint Descriptor
• Hub Descriptor
Endpoint1
Endpoint1 is used by the Hub Controller to send status
change information to the Hos t. Endpoint1 supp orts interrupt transfers.
The Hub Controller samples the c hanges at th e end of
every frame at time marker EO F2 in preparation for a
potential data transfer in the subsequent frame. The sampled information is stored as a byte in Statu s Chang e Register using a bitmap scheme.
Each bit in the Status Change Register corresponds to one
port as shown below.
An IN Token packet from the Host to Endpoi nt1 ind icate s a
request for port change status. If the Hub has not detected
any change on the port s or a ny change s in the hub itself,
then all bits in this register will be 0 and the Hub Controller
will return a NAK to requests on Endpoint1. If a change in
the port status exists, the Hub Controller will transfer the
whole byte. The Hub Controller will continue to report a status change when polled until that particular change has
been removed by a ClearP ortFeature reques t from the
Host. No status chang e will be reporte d by Endpoi nt1 unti l
the AT43311 has been enumerated and configured by the
Host through Endpoint0.
Power Management
The AT43311 is designed to be powered from the USB
bus. As such, the power co nsumption for the AT43311
itself is less th an 100 m A. Howev er, down stream devices
require separate power supplies. The AT43311 monitors
and controls each power supply to the individual downstream devices.
Careful design and selection of the power switch is
required to meet the USB specification. The USB specifications requires that the volta ge drop at th e power switch be
no more than 100 mV. USB requirements specify that a
downstream device may use a maximum of 500 mA. These
conditions are best met by using a MOSFET switch with an
on resistance of 200 m
As a sample power circuit, consid er a P-chan nel enhan cement mode MOSFET. The condition of the port’s power is
monitored at the output side of the P MOS switch whi ch is
connected to the port’s OVL[1:4]
condition, the MOSFE T swit ch’s i nte rnal resista nce ca uses
the MOSFET’s output voltage to drop at the OVL[1:4]
the MOSFET’s out put voltage dr ops to less than the voltage at the VREF voltage reference pin, the AT4331 1 interprets this drop as a n overcurrent c ondition. The AT43311
does internal filtering to m ake su re that spurious o r switch ing transients are ignore d. If an overcurrent condit ion
exists, the AT43 311 rem oves the power from t hat port b y
de-activating the port’s PWR[1:4]
tion to the Host.
Ω or less.
pin. During an overcurrent
pin. If
pin and reports the condi-
Status Change Register
BitFunctionValueMeaning
0Hub status change0
1
1Port1 status change0
1
2Port2 status change
3Port3 status change
4Port4 status change
5-7Reserved0Default values
0
1
0
1
0
1
No change in status
Change in status detected
No change in status
Change in status detected
No change in status
Change in status detected
No change in status
Change in status detected
No change in status
Change in status detected
5
Figure 1. Power Supply Connection
From upstream power regulator
VCC5GNDVCC3
VREF
3V REG.
AT43311
5.5V
PWR
5V POWER
SUPPLY
OVL
Figure 1 illustrates an example of the power supply connection for a AT43311 port.
Careful conside ration mu st be taken to avoid lar ge grou nd
current surges. There is the possibility that the upstream
device and the self powered device will be sourced from
different electri cal powe r outle ts which share no comm on
ground.
When designing the local power supply for the AT4 3311 or
a self powered device , local 5 V power must be isolated.
This isolation can be achieved th rough a transform er or by
proper design of the switching power suppl y. The GND of
the Hub or device can then be safely connected to the
upstream ports ground line for proper operation of the USB
signals.
Even though the devices in a USB network share a common ground (VSS), the t wo 5V supply volta ges of the
AT43311 based hub (the upstream’s bus power and the
local power) must not be connected under any condition.
Port [1:4] Power Control
Each port has signals for port power management and for
port status feedback (PWR[1:4 ]
, OVL[1:4], and STAT[1:4]).
The AT43311 monitors and switches the power to each
port individually.
PWR[1:4]
are open drain outputs that control the power to
the downstream ports. The AT43311 asserts a low value to
ports PWR[1:4]
to turn on the power to the port. During
DPDM
power up, reset, and initialization of the Hu b, PWR[1:4]
in-active. PWR[1:4]
STAT
To downstream device
VCC5
VSS
is
is asserted when the Host instructs the
Hub to power the p ort through the S etPortPower = O N
command. Additionally PWR[1:4]
is de-asserted by the Hub
when an overcurrent condition is detected at the port.
For proper operation of PWR[1:4]
tor to VCC5 is required f or PWR[1:4]
, an external pull-up resis-
pins. To control the
power to the port, any switch with a low voltage d rop with
full power applied is acceptable . The AT43311 is desi gned
for a simple, low cost P-c hannel MOS FET to us e as the
switch.
To detect a port overload, the AT43311 compares OVL[1:4]
to a common VREF defined by the designer.
OVL[1:4]
respective downstre am port. If OVL[1:4]
should be attached to the power supply of the
drops below the
reference voltage VREF for more than 1 ms, the AT43311
treats the drop in voltage as a fault condition on the port’s
power supply. Upon this fault condition, the AT43311 sets
the port’s PORT_OVER_CURRENT status bit and the
port’s C_PORT_OVER_CURRENT bit. The AT43311 will
additionally shut off the power to the port by de-activating
the port’s PWR[1:4]
The STAT[1:4]
tion. STAT[1:4]
signal.
pins are not required by the USB specifica-
provide feedback to the user whenever a
device is properly connected to the port. An LED and series
resistor connected to STAT[1:4]
can be used to provide
6
AT43311
AT43311
visual feedback. The default state of STAT[1:4]
After a port is enabled AT43311 will assert the port’s
STAT[1 :4]
.
is inactive.
Oscillator and Phase-Locked-Loop
To reduce EMI and power dissip ation in the system, the
AT43311 on-chip oscillator is designe d to ope rate wit h a 6
MHz external crystal. An on-chip PLL generates the high
frequency for the clock/data separator of the Serial Interface Engine. In the suspended stat e, the oscillator circuitry
is turned off.
A 6 MHz parallel resonance quartz crystal with a load
capacitance of approximately 10 pF is recommended. If the
crystal load capacitor is larger, external capacitors added to
pins OSC1 and OSC2 are recommended. The values for
these capacitors depends on the crystal and the layout of
the board, but typically are 33 pF at OSC1 an d 47 pF at
OSC2. If the crystal used cannot tolerate the drive level s of
the oscillator, a series resistor between OSC2 and the crystal pin may be used.
Figure 2. Oscillator and PLL Connection
Figure 2 shows how to properly connect the oscillator for
the AT43311. Ceramic resonators are not recommended
due to the frequency stability required by the USB specification (0.25%).
If desired, the clock c an be external ly sourced. To clock
externally, connect the clock source to the OSC1 pin, while
leaving the OSC2 pin floating. The switching level at the
OSC1 pin can be as low as 0 .47V ( see electrical specifi cations). A CMOS device is required to drive this pin to maintain good noise margins at the low switching level.
For proper operation of the PLL, see Figure 1–Power Supply Connection.
To provide the best operating condition for the AT43311,
careful consideration of the power supply connections are
recommended. Use short, low impedance connections to
all power supply lines: VCC5, VCC3, VCCA , and VSS with
0.1 µF decoupling capacitors of high quality adjacent to the
device pins.
Descriptors
The Hub Controller supports the following standard USB
descriptors: Device, Configurat ion, Interface, an d Endpoint
Descriptors, as well as the class specific Hub Descriptor.
All the required Standard Requests and Hub Class-Specific
Requests are supported by the AT43311’s Hub Controller.
7
Device Descriptor
The Device Descriptor provides general information about the AT43311 Hub.
OffsetFieldDescriptionSize (bytes)Value
0bLengthDefine size of descriptor = 18 bytes112H
1bDescriptorTypeDevice descriptor type101H
2bcdUSBUSB Spec. Release Number = Rev 1.0200H
4bDeviceClassClass code = HUB_CLASSCODE = 09109 H
5bDeviceSubClassSubclass code100H
6bDeviceProtocolProtocol code100H
7wMaxPacketSize0Max. packet size for Endpoint0 = 8-bytes108H
9idVendorVendor ID = Atmel Corporation2EBH
10idProductProduct ID = AT43311211H
01H
03H
33H
12bcdDevice
14iManufacturerIndex of string descriptor describing
15iProductIndex of string descriptor describing product =
16iSerialNumberIndex of string descriptor describing device’s
17bNumConfigurationsNumber of possible configurations = 1101H
Device release number
Example:Rev A0YY = 01ZZ = 00
Rev B1YY = 02ZZ = 01
manufacturer = not supported
not supported
serial no. = not supported
2ZZH
YYH
100H
100H
100H
8
AT43311
AT43311
Configuration Descriptor
This Configuration Descriptor provides information about the AT43311’s configuration.
OffsetFieldDescriptionSize (bytes)Value
0bLengthDefine size of this descriptor = 9 bytes109H
1bDescriptorTypeDescriptor type = Configuration102H
2wTotalLength
4bNumInterface
5bConfigurationValueArgument value for this configuration to be used
6iConfigurationIndex of string descriptor describing this
7bmAttributesConfiguration characteristics = Bus and Self
8MaxPowerMaximum power consumption of USB device
Total length of data returned for this
configuration. Consists of the combined length
of configuration, interface, endpoint and hub
descriptors = 52 bytes
Number of interfaces supported by this
configuration.
by Set Configuration command
configuration (not supported).
Powered with Remote Wakeup
from bus = 100 mA
222H
101H
101H
100H
1E0H
132H
Interface Descriptor
The Interface Descriptor provides information about the single interface which the AT43311 supports.
OffsetFieldDescriptionSize (bytes)Value
0bLengthDefine size of this descriptor = 9 bytes.109H
1bDescriptorT ypeDescriptor type = Interface104H
00H
2bInterfaceNumberNumber of interface = 1, index = 0100H
3bAlternateSettingAlternate setting value for the interface identified
in the prior field = 0
4bNumEndpointsNumber of endpoints used by this interface = 1101H
5bInterfaceClassClass code = HUB_CLASSCODE = 09109H
6bInterfaceSubClassSubclass code = 0100H
7bInterfaceProtocolProtocol code = 0100H
8iInterfaceIndex of string descriptor describing this
interface = not supported
100H
100H
9
Endpoint Descriptor
The Endpoint Descriptor describes the Endpoint1 Descriptor which the Hub uses for status change report.
OffsetFieldDescriptionSize (bytes)Value
0bLengthDefine size of this descriptor = 7 bytes107H
1bDescriptorTypeDescriptor type = endpoint105H
2bEndpointAddressThe address of the IN endpoint181H
3bmAttributesEndpoint1 attribute =IN, Interrupt Transfer103H
(1)
4wMaxPacketSizeMax. packet size Endpoint1 is capable of
sending = 1 byte
6bIntervalInterval for polling endpoint for data transfers 1FFH
Note:1. Th ere is no endpoi nt d escriptor for Endpoint0.
201H
Hub Descriptor
The Hub Descriptor describes the AT43311’s Hub and ports.
OffsetFieldDefinitionSize (bytes)Value
0bDescLengthDefine size of this descriptor = 9 bytes109H
1bDesriptorTypeDescriptor Type = HUB_DESCRIPTOR = 29129H
2bNbrPortsNumber of downstream ports = 4104H
3wHubCharacteristicsHub’s characteristics:
= Individual power switching
= Hub is not part of a compound device
= Individual Port Over-current Protection
5bPwrOn2PwrGoodTime from the time power-on sequence begins
on a port until power is good on that port = 100
ms.
6bHubContrCurrentMaximum current requirements of the hub
electronics = 100 mA.
209H
132H
164H
00H
00H
7DeviceRemovableIndicates if a port has removable device. All
downstream ports have removable devices
8PortPwrCtrlMaskIndicates if a port is not affected by gang-mode
power control request. All the AT43311’s ports
require manual SetPortFeature
(PORT_POWER) request to control the port’s
power state.
10
AT43311
100H
11EH
AT43311
Standard Requests
All required Standard Requests are supported by the
AT43311. Standard Requests, or commands, are sent to
the AT43311 from the Host on the AT43311’s defau lt pipe,
endpoint0. These requests are made using control transfers to endpoint0. The request and request pa rameters are
sent in a Setup packet w hich c onsists of eig ht bytes. The
following sections describe which req uests are supported
by the AT43311 and the corresponding responses as well
as those requests not s upported and responded wi th a
STALL packet.
Clear Device Feature
A Clear Device Feature will disable its remote wakeup feature when the setup packet is:
The Clear Endpoint Feature request causes the AT 43311
to clear an endpoint’s stall status bit if the condition causing
the stall has been removed. A Clear Endpoint Feature
occurs if a setup packet from the Host is decoded as:
Get_Configuration returns one byte of data. Bit 0 will be a
copy of bit 0 of the Controller_Status Register. All other bits
will be set to 0. This action will be taken, if the Setup packet
from host is decoded as:
FieldValue
bmRequestTypeByte 010000000B
Clear Interface Feature
AT43311 does no t support thi s feature and wi ll respond
with a STALL if a setup packet from the Host is decoded
as:
Get_Descriptor returns the requ ested desc riptor. The la st
word of the Get_Descriptor request specifies the number of
bytes the AT43311 is to return. If the requested descriptor
is longer than the requested number of bytes, AT43311 will
return only the requested number of bytes from the top of
the descriptor. If the requested descriptor is shorter than
the requested number of bytes, then the AT43311 indicates
the end of the control transfer by sending a short data
packet.
The requested nu mber of bytes from the top of AT 43311’ s
Device Descriptor will be returned, if the Setup packet from
host is decoded as:
The AT43311 has a single i nterface wit h a value of 0. If it
receives a Get_Interface Request with the value of 0000H
as wIndex (bytes 2 and 3), the AT433 11 w ill retu rn a sing le
byte with a value of 00H. For any other value of wIndex the
AT43311 will return a STALL.
The requested number of bytes from AT43311’s Configuration Descriptor, Interface Descriptor, and Endpoint Descriptor will be retu rned, if t he Setup p acket from the Host is
decoded as:
The Hub will return two bytes of da ta, byte 0 and byte 1, in
little endian order:
Byte 0, Bit 0 = 1, identifying the AT43311 as a self powered device.
Byte 0, Bit 1 = copy of bit 1 of the Controller_Status
Register. This bit reflects whether the AT43311’s
remote wakeup capability is enabled or disabled.
The Hub will respond with two bytes of data with all 0 value.
0x00
0x00
0xxx
0xxx
0x02
0x00
Get Endpoint Status
Get Endpoint Status returns two -bytes of data indicating
the stall status of the en dpoint. The first bit of the first byte
returned reflects the status of the endpoint stall status bits
of the Controller_Status Register described in section 3.6.
These bits are set or cleared depending whether the endpoint is stalled or not:
Current Endpoint Status
Stalled01H00H
Not stalled00H00H
Get Endpoint Status will execute if the following setup
packet is decoded as:
First
Byte
Second
Byte
Set_Address
Set_Address sets the Hub’s address. The AT43311 will
save the value of bytes 2 and 3 into a temporar y buffer.
After successful completion of the status stage, the
AT43311 transfers the temporary value into the
Hub_Address Register. The Hub_Address will be used as
the Hub’s addres s in al l future transacti ons. Se t_Address
will occur if the Setup packet from the Host is decoded as:
Set_Configuration sets bit 0 of the Controller_Status Register according to the value of byte 2 of the Setup packet.
The AT43311 has only one configuration. The AT43311 will
only set the bit if byte 2 is either 00H or 01H, and bytes 3 to
7 are all zeroes. For all other values, the Hub will respond
with a STALL handshake packet. Set_Configuration occurs
if the Setup packet from host is decoded as:
The AT43311 does not support this request. In response to
this request, the AT43311 will send a STALL handshake
packet. The Set_Descriptor occurs if the Setup packet from
the Host is decoded as:
Set Endpoint Feature
Set Endpoint Feature sets the stall status bit of the
Controller_Status Register. The stalled endpoint will exhibit
the same behavior as in a stall c ondition. This feature is
activated if a setup packet from the Host is decoded as:
The AT43311 has a single interface and responds with a
STALL hands hake packet if a Set_Inte rface reque st is
received with a value other than 0000 H as a wV alu e (b yte s
2 and 3).
This request is for endpoin ts with isoch ronous trans fers
only which the AT43311 does not suppor t. AT43311 will
send a STALL packet if the setup packe t from the Host i s
decoded as:
All required Hub-specific re quests are supported by the
AT43311’s Hub Controll er. Hub-sp ecific re quests or commands are sent from the Host to t he AT43311 usi ng the
default pipe (Endp oint0). Hub-specific requests are m ade
using control tra nsfers. The requ est an d request parameters are sent in a setup packet consisting of eight bytes.
Clear_Hub_Feature
Clear_Hub_Feature resets a value rep orted in the Hub
Controller status. The status relates to the local power and
over current. AT43311 is a self-powered hub with a buspowered SIE and does not report over-current on a global
basis.
The Hub Controller will disable the reporting of Local Power
Status (C_HUB_LOCAL_POWER) if the setup packet from
the Host is decoded as:
Clear_Port_Feature disables a port feature. Note that only
the relevant Clear Port commands are supported (see
CLEAR_PORT Features Table).
For example, the PORT_LOW_SPEED value is determined
by the operation of the port of the attached device. Upon an
invalid req uest (e.g. a CLEAR_P ORT request for
PORT_LOW_SPEED), the AT43311 will return a STALL
status to the host.
AT43311 will respond with a STALL if the setup packet
from the Host requests the Hub Controller to clear the Over
Current Indicator (C_HUB_OVER_CURRENT):
Get_Hub_Descriptor return s the Hub Descr iptor. The l ast
word of the Get_Hub_Descriptor request specifies the
number of bytes AT43311 is to return. If the requested
number of bytes is less than the 9-bytes le ngth of the Hub
Descriptor, AT43311 will return only the request ed number
of bytes from the top of the descriptor. If the requested
number of bytes is more than 9, then the returned d ata wil l
be padded with trailing bytes of zeroes.
This action will be taken if the Setup packet from the Host is
decoded as:
The Hub Contro ller w ill re spond w ith a STA LL if P ort0 or a
port higher than Port4 is addressed in this request.
Get_Bus_State
When a Get_Bus_State is detected , the Hub Co ntroller wi ll
sample the bus status of Ports 1, 2, 3 and 4, at each E OF2
and will store the value in a register known as the
Port_Bus_State registers. The value of the D- signal (pin
DM[1:4]) will be in bi t 0 and the value o f the D+ signal
(DP[1:4]) will be in bit 1of each port’s Port_Bus_State register. All other bits will be 0. The values of t hese two regi ster
bits will be transferred to the Host upon receipt of the
Get_Bus_State request, if the setup packet fr om Host is
decoded as:
The Hub Contro ller w ill re spond w ith a STA LL if P ort0 or a
port higher than Port4 is addressed in this request.
16
AT43311
AT43311
Get_Hub_Status
Get_Hub_Status returns the current Hub status that has changed sin ce the p revious acknowled gment of the setup pa cket
of the Host.
The Hub will returned two words of data as described in the following two tables. Word0 is the Hub Status Field, wHubStatus, and Word1 is the Hub Change Field,wHubChange.
Hub Status Field, wHubStatus
BitDescription
Local Power Status, indicates the state of the local power supply
0
0 = Local power supply good
1 = Local power supply lost
1
2-15Reserved. Always read as 0’s
Hub Change Field, wHubChange
BitDescription
0
1
2-15Reserved. Always read as 0’s.
A Get_Hub_Status will occur if the setup packet is decoded
as:
Over-Current Indicator, indicates over-current condition on a global hub basis. AT43311 reports over current
condition on a per port basis therefore this bit is always read as 0
Local Power Status Change, C_HUB_LOCAL_POWER, corresponds to bit 0 of wHubStatus
0 = No change has occurred in local power status
1 = Local power status has changed
Over-Current Indicator Change, C_HUB_OVER_CURRENT, corresponds to bit 1 of wHubStatus. AT43311
reports over current condition on a per port basis and therefore this bit is always read as 0
01H
Byte 3
00H
wIndexByte 4
Byte 5
wLengthByte 6
Byte 7
00H
00H
04H
00H
17
Get_Port_Status
Get_Port_Status returns the current port status and the states that have changed since the previous acknowledgment. The
AT43311 returns two words o f data as described in the f ollowi ng two tables. Word0 i s the P ort Stat us Field, an d Word 1 is
the Port Change Field. The AT43311 will res pond with a STALL if Port0 or a port hig her than Port4 is addressed in this
request.
Port Status Field, wPortStatus
BitDescription
Current Connect Status: PORT_CONNECTION
0
1
2
3
4
0 = no device present on this port
1 = a device is present on this port
Port Enabled/Disabled: PORT_ENABLE
0 = Port is disabled
1 = Port is enabled
Suspend: PORT_SUSPEND
0 = Not suspended
1 = Suspended
Over-Current Indicator: PORT_OVER_CURRENT
0 = Power operation normal for this port
1 = Over-current condition exists for this port. Power to this port has been shut off.
The AT43311 has only one Hub Descriptor. Therefore the
AT43311 does not support this request. It wil l respond with
a STALL if the Setup packet from the Host is decoded as:
Set_Hub_Feature sets a value reported in the Hub status.
The status relates to the local power and over curren t. The
AT43311 is a self powered hub with its SIE powered from
the bus. The AT43311 will respond with a STALL if the
setup packet from the Host is decoded as:
Set_Port_Feature sets a value reported in the Hub Controller’s port status. The AT43311 supports all USB required
features. Note that only the relevant Set Port commands
are supported (see SET_PORT Features Table). For
example, the PORT_LOW_SPEED value is determined by
the operation of the port of the attach ed device . Upon an
invalid request (e.g. a Set_PORT request for
PORT_LOW_SPEED), the AT433 11 will return a S TALL
status to the host.
The status relates to the port features as listed in the Port
Feature Table. AT43311 will respond to Set Port Feature
command if the setup packet from the Host is decoded as:
Operating Temperatu re .....................-55°C to +125° C
Storage Temperatu re ........................ -65 °C to +150° C
Voltage on any pin with
Respect to Ground .................................-0.5V to 7.0V
Maximum Operating Voltage................................6.6V
*NOTICE:Stresses beyond those listed below may cause
permanent damage to th e device . This is a stre ss
rating only and functi ona l operati on of the devi ce
at these or any other conditions beyond those
indicated in the operati ona l sec tions of this specification is not implied. Expos ure to abs olu te
maximum rating conditions for extended periods
may affect device reliability.
DC Output Current ............................................16 mA
DC Characteristics
The values shown in this table are valid for TA = 0°C to 85°C, V
Power Supply
SymbolParameterConditionMinMaxUnit
V
CC5,VCCA
V
CC3
I
CC5
I
CC3
I
CCS
5V Power Supply4.405.25V
3V Power Supply3.153.45V
5V Supply Current100mA
3V Supply Current250µA
Suspended Device Current250µA
= 4.4 to 5.25V, V
CC5
= 3V ± 5%, unless otherwise noted.
CC3
USB Signals: DPx, DMx
SymbolParameterConditionMinMaxUnit
I
LO
V
DI
V
CM
V
SE
V
OL1
V
OH1
Hi-Z Data Line Leakage0V < VIN < 3.3V-10+10µA
Differential Input SensitivityDPx and DMx0.2V
Differential Common Mode
Range
Single Ended Receiver
Threshold
0.82.5V
0.82.0V
Static Output Low VoltageRL of 1.5K Ω to 3.6V0.3V
Static Output High VoltageRL of 15K Ω to GND2.83.6V