Datasheet AT43310 Datasheet (ATMEL)

Features
Bus Powered Hub Controller
Full Compliance with USB Spec Rev 1
Full Speed USB Host Interface
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 AT43310 is a fully compliant USB hub chip with 5 ports, one upstream port and four full/low-speed d ownstrea m por ts. The AT4331 0 can be us ed as a stand alone or can provide a simple and quick method of adding USB ports to an existing device.
As a repeater, the AT43310 provides upstream connectivity between the selected function and the hos t. Con nec ti vi ty i nv olv es s et ting up and tearing do wn co nne cti ons , handling bus faults, recovering from bus faults and detecting downstream device con­nections and disconnections.
The AT43310 may also act as a hub con troller managing the hub operations and recording the status of the hub, bus transactions, and downstream ports. In this mode, the AT43310 tracks and gene rates the bu s enumer ation , provide s confi guratio n infor ­mation to the host, prov ides indivi dual port stat us to the host, an d controls the port operation based on host commands.
AT43310
USB Hub
AT43310
Pin Configurations
SOIC/DIP/Cerdip
PWR2 PWR3 PWR4
VCC5
VSS OSC1 OSC2
LFT
VCCA
OVL4 OVL3 OVL2 OVL1
VREF
GND
STAT4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
PWR1 DP4 DM4 DP3 DM3 GND DP2 DM2 VCC3 DP1 XDM1 DP0 DM0 STAT1 STAT2 STAT3
Rev. 0901A-A–01/98
1
Block Diagram
Note: This document assumes that the reader is familiar with the Universal Serial Bus and therefore only describes the unique fea-
tures of the AT43310 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.
2
AT43310
AT43310
Pin Description
Pin Description Pin Type Description
OSC1 I Oscillator Input. Input to the inverting 6 MHz oscillator amplifier. OSC2 O Oscillator Output. Output of the inverting oscillator amplifier.
LFT I
VREF I Reference Voltage. This is an input pin that should be connected to an external
DP0 B Upstream Plus USB I/O. This pin should be connected to VCC3 through an external
DM0 B Upstream Minus USB I/O DP[1:4] B Port 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]
I Port Overload. These are the input signals used to indicate to the AT43310 that there
OD Power 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 AT43310 will assert
is de-asserted when a power
STAT[1:4]
V
CC3
V
CC5
V
CCA
GND V Ground
O Connect Status. These are output pins indicating that a port is properly connected.
STAT[1:4] V 3.3V Power Supply, used for the USB interface V 5V Power Supply, main power supply for the AT43310 V 5V Analog Power Supply
is asserted when the port is enabled.
3
USB Hub Description
Hub Repeater
The hub repeater i s respo nsible for port co nnectivi ty setup and tear-down. The repeater also supports exception han­dling such as bus fault detection and re covery, and con­nect/disconnect detection.
When a SOP token is detec ted on the upstream port , Port0, the AT43310 dete rmines the s peed 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 AT43310 will propagate the packet to all enabled downstream ports.
Note:
See USB Specification for further detail on bus
states The AT43310 supports downstream data signaling at both
1.5 Mbps and 12 Mbps. Devic es attached to the down­stream 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 AT43310 wi ll not propagate any traffic to that port unless it is prefaced with a preamble PID. Low speed d ata foll owing th e preambl e PID is propagated to both low and full speed devices. The AT43310 will enable low speed drivers within four full­speed bit time s of the la st bit of a preamb le PID, an d will disable the driv ers at the end of an E OP. The upstr eam traffic from any port t o the host is p ropagated by Po rt0 using the full speed 4-20 ns slew rate drivers.
All ports are independently driven and monitored on the DP and DM pins. The AT43310 detects or generates the ‘J’, ‘K’, and SE 0 bus signal ing st ates. E ach hu b port has s in­gle-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 Revi­sion 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 control ler man ages an d recor ds the operati ons of the AT43310. During enumeration, the contro ller send s the host the configuration information. The controller also allows the host to re trieve the stat us of the downstre am ports, and power the downs tream ports. The contr oller applies power to the do wns tream por ts on a pe r por t ba si s. After configuration , the c ontrol le r will e nab le the power to 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 i nformatio n from th e data. T he 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) d ata encoding and bit stuffing to im prove th e reli ability of data trans fers. The SIE must decode the NRZI and strip off the stuffed bit to determine the actual data. The CRC information will be used by the SIE to determine if a transmis sion error has occurred. If an error has occurred, the SIE will corr ect the data using CRC algorithms.
Control Status Register
Bit Function Value Description
0 Hub configuration status
1 Hub remote wakeup status
2 Endpoint0 STALL status 0
3 Endpoint1 STALL status 0
4
AT43310
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
AT43310
Endpoint0
Endpoint0 is the A T43310’ s defaul t endpoin t used for enu­meration of the Hub and exchange of configuration infor­mation and requests between the Host and the AT43310. 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 th e Host. Endpoint1 supports inter­rupt transfers.
The Hub Controll er samples th e changes at the end of every frame at time marker EO F2 in preparation for a potential data transfer in the subsequent frame. The sam­pled information is store d as a by te in S tatus C hange Re g­ister using a bitmap scheme.
Each bit in the Status Chan ge Reg ister co rres po nds to one port as shown below.
An IN Token packet from the Hos t to E nd poi nt1 ind icate s a request for port change status. If the Hub has not detected any change on the por ts or a ny cha nges in the hub itself , then all bits in this re giste r will be 0 and th e Hub Contro ller 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 sta­tus change when polled until that particular change has been removed by a Clea rPortFeature reques t from the Host. No status change will be reported by Endpoint1 until the AT43310 has been enumerated and configured by the Host through Endpoint0.
Power Management
A hub is allowed to draw up to 500 mA from the host or upstream hub. The AT4 3310’s i tsel f and its ex tern al circu it except for the downstream ports consume less than 100 mA. Therefore 100 mA is available for e ach of the hub’s downstream devices. The power supplied to each port is individually monitored and controlled by AT43310.
The USB specifications requires that the voltage drop at the power switch be no more than 10 0 mV. Caref ul design and selection of the pow er swi tch is req uired to meet this specifications . This is best achie ved by using a MO SFET switch with a very low on resistance. If the port power are switched individuallly, this resistance must be 1 or less under the worst case cond ition to assure that even if a downstream device dissipates 100mA the drop across the switch is less than 100 mV. If the downstream devices are switched in common, the switch resis tance must be no more than 250m.
A suitable MOSFET switch for a AT43310 based hub is a P channel enhanc ement mode MOSF ET. The conditio n of the port’s power is monitored at the output side of the PMOS switch which is connected to the port’s OVLx# pin. Whenever an overcurrent condition occurs, the MOSFET switch’s internal resistance c auses the output volta ge to drop. If the MOSFET’s output voltage drops to less than the voltage at the VREF voltage reference pin, the AT43310 interpretes this as an overcurrent condition. The AT43310 does internal filte ring to make sure that spur ious or swi tch­ing transients are ignored. If a true overcurrent condition
Status Change Register
Bit Function Value Meaning
0 Hub status change 0
1
1 Port1 status change 0
1
2 Port2 status change
3 Port3 status change
4 Port4 status change
5-7 Reserved 0 Default 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
exists, AT43310 re moves the power from that port by de­activating the port’s PWRx# pin and reports the condition to the Host.
Figure 1 shows an example of the power supply connection for a typical AT43310 port.
Port [1:4] Power Control
Each port has signals for port power management and for port status feedback (PWR[1:4] The AT43310 monitors and switches the power to each port individually.
PWR[1:4] the downstream ports. The AT43310 asserts a low value to ports PWR[1:4] power up, reset, and initialization of the Hub, PWR[1:4] in-active. PWR[1:4 ] Hub to power the port through the SetPortPower = ON command. Additionally PWR[1:4] when an overcurrent condition is detected at the port.
For proper operation of PWR[1:4] tor to V power to the port, any switch with a low voltage drop with full power appl ied is a ccepta ble. The A T43 310 is des igned for a simple , low cost P -channel MOSFET to use a s the switch.
To detect a port overload, the AT43310 compares OVL[1:4] to a common VREF defined by the designer.
are open drain outputs that control the power to
to turn on the power to the port. During
is asserted when the Hos t i ns truc ts the
is required for PWR[1:4] pins. To control the
CC5
, OVL[1:4], and STAT[1:4]).
is
is de-asserted by the Hub
, an external pull-up resis-
OVL[1:4] respective downstream po rt. If OVL[1:4] reference voltage VREF for more than 1 ms, the AT43310 treats the drop in voltage as a fault condition on the port’s power supply. Upon this fault condition, the AT43310 sets the port’s PORT_OVER_CURRENT status bit and the port’s C_PORT_OVER_CURRENT bit. The AT43310 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] device is properly connected to the port. An LED and series resistor connected to STAT[1:4] visual feedback. The default state of STAT[1:4] After a port is enabled AT43310 will assert the port’s STAT[1:4]
should be attached to the power supply of the
drops below the
signal.
pins are not required by the USB specifica-
provide feedback to the user whenever a
can be used to provide
is inactive.
.
Oscillator and Phase-Locked-Loop
To reduce EMI and power dissip ation in the system, the AT43310 on-chip oscillator is designed to operate with a 6 MHz external crystal. An on-chip PLL generates the high frequency for the clock/data separator of the Serial Inter­face Engine. In the suspe nded state, the oscillato r circuitr y 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
6
AT43310
AT43310
pins OSC1 and OSC2 are recommended. The values for these capacitors depends on th e crystal and the layout o f the board, but typically are 33 pF at OSC1 a nd 47 pF at OSC2. If the crystal used cannot tolerate the drive levels of the oscillator, a series resistor between OSC2 and the crys­tal pin may be used.
Figure 2 shows how to properly connect the oscillator for the AT43310. Ceramic resonators are not recommended due to the frequency stability required by the USB specifi­cation (0.25%).
If desired, the cloc k can be ex ternally sourc ed. 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 lo w as 0.47 V (see e lectric al spec ifica­tions). A CMOS d ev ice is required to drive thi s pi n to m ai n­tain good noise margins at the low switching level.
For proper operation of the PLL, see Figure 2-Ocscillator and PLL Connection.
To provide the best operating condition for the AT43310, careful consideration of the power supply connections are
Figure 2.
Oscillator and PLL Connection
recommended. Use short, low impedance connections to
, V
, V
all power supply lines: V µF decoupling capacitors of high quality adjacent to the device pins.
CC5
CC3
, and VSS with 0.1
CCA
Descriptors
The Hub Controller supports the following standard USB descriptors: Dev ice, Conf igurat ion, Interf ace, and E ndpoint Descriptors, as well as th e class sp ecific Hub Descrip tor. All the required Standard Requests and Hub Class-Specific Requests are supported by the AT43310’s Hub Controller.
7
Device Descriptor
The Device Descriptor provides general information about the AT43310 Hub.
Offset Field Description Size (bytes) Value
0 bLength Define size of descriptor = 18 bytes 1 12H 1 bDescriptorType Device descriptor type 1 00H 2 bcdUSB USB Spec. Release Number = Rev 1.0 2 00H
4 bDeviceClass Class code = HUB_CLASSCODE = 09 1 09H 5 bDeviceSubClass Subclass code 1 00H 6 bDeviceProtocol Protocol code 1 00H 7 wMaxPacketSize0 Max. packet size for Endpoint0 = 8-bytes 1 08H 9 idVendor Vendor ID = Atmel Corporation 2 EBH
10 idProduct Product ID = AT43310 2 10H
01H
03H
33H
12 bcdDevice
14 iManufacturer Index of string descriptor describing
15 iProduct Index of string descriptor describing product =
16 iSerialNumber Index of string descriptor describing device’s
17 bNumConfigurations Number of possible configurations = 1 1 01H
Device release number
Example:Rev A0YY = 01ZZ = 00
Rev B1YY = 02ZZ = 01
manufacturer = not supported
not supported
serial no. = not supported
2 ZZH
YYH
100H
100H
100H
8
AT43310
AT43310
Configuration Descriptor
This Configuration Descriptor provides information about the AT43310’s configuration.
Offset Field Description Size (bytes) Value
0 bLength Define size of this descriptor = 9 bytes 1 09H 1 bDescriptorType Descriptor type = Configuration 1 02H
2 wTotalLength
4 bNumInterface 5 bConfigurationValue Argument value for this configuration to be used
6 iConfiguration Index of string descriptor describing this
7 bmAttributes Configuration characteristics = Bus Powered
8 MaxPower Maximum 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).
with Remote Wakeup
from bus = 500 mA
222H
101H 101H
100H
1A0H
1FAH
Interface Descriptor
The Interface Descriptor provides information about the single interface which the AT43310 supports.
Offset Field Description Size (bytes) Value
0 bLength Define size of this descriptor = 9 bytes. 1 09H 1 bDescriptorType Descriptor type = Interface 1 04H
00H
2 bInterfaceNumber Number of interface = 1, index = 0 1 00H 3 bAlternateSetting Alternate setting value for the interf ace identified
in the prior field = 0 4 bNumEndpoints Number of endpoints used by this interface = 1 1 01H 5 bInterfaceClass Class code = HUB_CLASSCODE = 09 1 09H 6 bInterfaceSubClass Subclass code = 0 1 00H 7 bInterfaceProtocol Protocol code = 0 1 00H 8 iInterface Index 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.
Offset Field Description Size (bytes) Value
0 bLength Define size of this descriptor = 7 bytes 1 07H 1 bDescriptorType Descriptor type = endpoint 1 05H 2 bEndpointAddress The address of the IN endpoint 1 81H 3 bmAttributes Endpoint1 attribute =IN, Interrupt Transfer 1 03H
(1)
4 wMaxPacketSize Max. packet size Endpoint1 is capable of
sending = 1 byte
6 bInterval Interval for polling endpoint for data transfers 1 FFH
Note: There is no endpoint descriptor for E
ndpoint0.
201H
Hub Descriptor
The Hub Descriptor describes the AT43310’s Hub and ports.
Offset Field Definition Size (bytes) Value
0 bDescLength Define size of this descriptor = 9 bytes 1 09H 1 bDesriptorType Descriptor Type = HUB_DESCRIPTOR = 29 1 29H 2 bNbrPorts Number of downstream ports = 4 1 04H 3 wHubCharacteristics Hub’s characteristics:
= Individual power switching = Hub is not part of a compound device = Individual Port Over-current Protection
5 bPwrOn2PwrGood Time from the time power-on sequence begins
on a port until power is good on that port = 100 ms.
6 bHubContrCurrent Maximum current requirements of the hub
electronics = 100 mA.
209H
132H
164H
00H
00H
7 DeviceRemovable Indicates if a port has removable device. All
downstream ports have removable devices
8 PortPwrCtrlMask
10
AT43310
Indicates if a port is not affected by gang-mode power control request.( All the AT43310’s ports require manual SetPortFeature (PORT_POWER) request to control the port’s power state). The AT43310 does not support gang mode.
100H
11EH
AT43310
Standard Requests
All required Standard Req uests are suppor ted by the AT43310. Standard Requests, or commands, are sent to the AT43310 from the Host on the AT 43310’s defau lt pipe, endpoint0. These requests are made using control trans­fers to endpoint0. The reques t and re quest p arameter s are sent in a Setup packet which consists of eight bytes. The following sections descri be which r equests a re suppor ted by the AT43310 and the corresponding responses as well as those requests not supp orted and responded wi th a STALL packet.
Clear Device Feature
A Clear Device Feature will disable its remote wakeup fea­ture when the setup packet is:
Field Value
bmRequestType Byte 0 x0000000B bRequest Byte 1 01H
wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
01H 00H
00H 00H
00H 00H
Clear Endpoint Feature
The Clear Endpoint Feature request causes the A T43310 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:
Field Value
bmRequestType Byte 0 x0000002B bRequest Byte 1 01H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
00H 00H
00H for EP0 81H for EP1
00H 00H
00H
Get_Configuration
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:
Field Value
bmRequestType Byte 0 10000000B
Clear Interface Feature
AT43310 does no t support this feature and wi ll respond with a STALL if a setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 x0000001B bRequest Byte 1 01H wValue
wIndex
wLength
Byte 2 Byte 3
Byte 4 Byte 5
Byte 6 Byte 7
xxH xxH
xxH xxH
xxH xxH
bRequest Byte 1 08H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
00H 00H
00H 00H
01H 00H
11
Get_Descriptor
Get_Descriptor r eturns the reques ted desc riptor. T he las t word of the Get_Descriptor request specifies the number of bytes the AT43310 is to return. If the requested descriptor is longer than the requested number of bytes, AT43310 will return only the requested number of bytes from the top o f the descriptor. If the requested descriptor is shorter than the requested number of bytes, then the AT43310 indicates the end of the control transfer by sending a short data packet.
The requested number of bytes from the top of AT43310’s Device Descriptor will be returned, if the Setup packet from host is decoded as:
Field Value
bmRequestType Byte 0 10000000B bRequest Byte 1 06H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
00H 01H
00H 00H
Get_Interface
The AT43310 has a single interface with a value of 0. If it receives a Get_Interface Request with the value of 0000H as wIndex (bytes 2 and 3) , the AT43 310 wil l retu rn a s ing le byte with a value of 00H. For any other value of wIndex the AT43310 will return a STALL.
Field Value
bmRequestType Byte 0 10000001B bRequest Byte 1 0AH wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
00H 00H
00H 00H
01H 00H
Get Device Status
If the Setup packet from host is decoded as:
Field Value
wLength Byte 6
Byte 7
The requested number of bytes from AT43310’s Configura­tion Descriptor, Interface Descriptor, and Endpoint Descrip­tor will be returned, if the Setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 10000000B bRequest Byte 1 06H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
# of bytes
requested
00H 02H
00H 00H
# of bytes
requested
bmRequestType Byte 0 10000000B bRequest Byte 1 00H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
The Hub will return tw o byte s of d ata, by te 0 an d byte 1, in little endian order:
Byte 0, Bit 0 = 1, identifying the AT43310 as a self pow­ered device.
Byte 0, Bit 1 = copy of bit 1 of the Controller_Status Register. This bit reflects whether the AT43310’s remote wakeup capability is enabled or disabled.
All other bits are set to 0.
00H 00H
00H 00H
02H 00H
12
AT43310
AT43310
Get Interface Status
If the Setup packet from host is decoded as:
Field Value
bmRequestType Byte 0 10000001B bRequest Byte 1 0x00 wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
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 endp oint. The fi rst 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 end­point is stalled or not:
Current Endpoint Status
Stalled 01H 00H Not stalled 00H 00H
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 AT43310 will save the valu e of byte s 2 and 3 into a temporary buffer. After successful completion of the status stage, the AT43310 transfers the temporary value into the Hub_Address Register. The Hub_Address will be used as the Hub’s address in all future transactions. Set_Address will occur if the Setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 x0000000B bRequest Byte 1 05H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
Device
Address
00H 00H
00H 00H
Set_Configuration
Set_Configuration sets bit 0 of the Controller_Status Regis­ter according to the value of byte 2 of the Setup packet. The AT43310 has only one configuration. The AT43310 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:
Field Value
bmRequestType Byte 0 x0000000B
Field Value
bmRequestType Byte 0 10000010B bRequest Byte 1 00H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
x0000001B for EP0 10000001B for EP1
00H 00H
00H 02H
00H
bRequest Byte 1 09H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
00H or 01H
00H 00H
00H 00H
00H
13
Set_Descriptor
The AT43310 does not support this request. In response to this request, the AT43310 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:
Field Value
bmRequestType Byte 0 00000000B bRequest Byte 1 07H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
xxH xxH
xxH xxH
xxH xxH
Set Device Feature
Set Device Feature enables the remote wakeup feature if a setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 x0000000B bRequest Byte 1 03H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
01H 00H
00H 00H
00H 00H
Field Value
bmRequestType Byte 0 x0000010B bRequest Byte 1 03H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
00H 00H
00H for EP0 81H for EP1
00H 00H
00H
Set_Interface
The AT43310 has a single interface and responds with a STALL handshake packet if a Set_Interface request is received with a value other than 0000H as a wValue (bytes 2 and 3).
Field Value
bmRequestType Byte 0 x0000001B bRequest Byte 1 0BH wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
00H 00H
00H 00H
Set Interface Feature
AT43310 does no t support this feature and wi ll respond with a STALL if a setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 x0000001B bRequest Byte 1 03H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
14
AT43310
xxH xxH
xxH xxH
xxH xxH
wLength Byte 6
Byte 7
00H 00H
Sync_Frame
This request is for endpoints with isochronous transfers only which the AT43310 does not support. AT43310 will send a STALL packet if the setu p packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 10000001B bRequest Byte 1 0CH wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
xxH xxH
xxH xxH
xxH xxH
AT43310
Hub-specific Requests
All required Hub-specific requests are sup ported by the AT43310’s Hub Contr oller. Hub- specific requests o r com­mands are sent from the Host to the AT43310 us ing the default pipe (Endp oint0). Hub-specific reque sts are m ade using control trans fers. The reques t and reques t parame­ters are sent in a setup packet consisting of eight bytes.
Clear_Hub_Feature
Clear_Hub_Feature resets a value re ported in the Hub Controller status. The statu s relates to the local power and over current. AT433 10 is a bu s-powered hu b with a and does not report over-current on a global basis.
AT43310 will respond with a STALL if the setup packet from the Host is:
Field Value
bmRequestType Byte 0 x0100000B bRequest Byte 1 01H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
0xH 00H
00H 00H
00H 00H
Clear_Port_Feature
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 request (e.g . a CLEAR_PORT request for PORT_LOW_SPEED), the AT433 10 will return a S TALL status to the host.
CLEAR_PORT Features Table
Port Feature
PORT_CONNECTION N N PORT_ENABLE Y Y PORT_SUSPEND Y Y PORT_OVER_CURRENT Y N PORT_RESET N Y PORT_POWER Y Y PORT_LOW_SPEED N N
The Hub Controller will respond to a Clear Port Feature request if the setup packet from the Host is decoded as:
Field Value
ClearPort
Feature
SetPort Feature
bmRequestType Byte 0 x0100011B bRequest Byte 1 01H
wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
See Port
Feature
Selector Table
Port
Number
00H 00H
15
Port Feature Selector Table
Feature Value
PORT_ENABLE 01H PORT_SUSPEND 02H PORT_OVER_CURRENT 03H PORT_POWER 08H C_PORT_ENABLE 11H C_PORT_SUSPEND 12H C_PORT_OVER_CURRENT 13H
The Hub Controller will respond with a STALL if Port0 or a port higher than Port4 is addressed in this request.
Get_Bus_State
When a Get_Bus_State i s detected , the Hub Co ntrol ler will sample the bus status of P orts 1, 2, 3 a nd 4, at eac h 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 i n bit 0 and the valu e of the D+ signal (DP[1:4]) will be in bit 1of each port’s Port_Bus_State regis­ter. All other bits wil l be 0. Th e values of thes e two r egister bits will be transferred to the Host upon receipt of the Get_Bus_State request, if the setup packe t from Host is decoded as:
Get_Hub_Descriptor
Get_Hub_Descript or returns the Hub Descrip tor. The last word of the Get_Hub_Descriptor request specifies the number of bytes AT43310 is to return. If the requested number of bytes is less than the 9-bytes length of the Hub Descriptor, AT43310 will re turn onl y th e reque sted numbe r of bytes from the top of the descriptor. If the requested number of bytes is mor e tha n 9, the n the r eturned data wi ll be padded with trailing bytes of zeroes.
This action will be taken if the Setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 10100000B bRequest Byte 1 06H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
29H 00H
00H 00H
0009
Field Value
bmRequestType Byte 0 10100011B bRequest Byte 1 02H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
The Hub Controller will respond with a STALL if Port0 or a port higher than Port4 is addressed in this request.
Data Response 000000 [D+] [D-].
00H 00H
Port
Number
01H 00H
16
AT43310
AT43310
Get_Hub_Status
Get_Hub_Status returns the curr ent Hub status that has changed since the previous acknowledgment of the setup packet of the Host.
Hub Status Field, wHubStatus
Bit Description
0 Local Power Status, indicates the state of the local power supply, set to 0. 1
2-15 Reserved. Always read as 0’s
Hub Change Field, wHubChange
Bit Description
0 Local Power Status Change, C_HUB_LOCAL_POWER, set to 0. 1
2-15 Reserved. 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. AT43310 reports over current condition on a per port basis therefore this bit is always read as 0
Over-Current Indicator Change, C_HUB_OVER_CURRENT, corresponds to bit 1 of wHubStatus. AT43310 reports over current condition on a per port basis and therefore this bit is always read as 0
The Hub will returned two words of data as described in the following two tables. Wor d0 is the Hu b Status Field, wHub ­Status, and Word1 is the Hub Change Field, wHubChange.
Field Value
bmRequestType Byte 0 10100000B bRequest Byte 1 00H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
00H 00H
00H 00H
04H 00H
17
Get_Port_Status
Get_Port_Status returns the current port status and the states that have changed since th e previous ack nowledg­ment. The AT43310 returns two words of data as described
Port Status Field, wPortStatus
Bit Description
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.
Reset: PORT_RESET
0 = Reset signalling not asserted 1 = Reset signalling asserted
in the following two tables. Word0 is the Port Status Field, and Word1 is the Port Change Field. The AT43310 will respond with a STALL if Port0 or a port higher than Port4 is addressed in this request.
5-7 Reserved. Always read as 0’s.
Port Power: PORT_POWER
8
9
10-15 Reserved. Always read as 0’s
0 = This port is powered OFF 1 = This port is powered ON
Low Speed Device Attached: PORT_LOW_SPEED
0 = Full Speed device attached to this port 1 = Low Speed device attached to this port
18
AT43310
Port Change Field, wPortChange
Bit Description
Connect Status Change: C_PORT_CONNECTION
0
1
2
3
4
5-15 Reserved. Always read as 0’s.
0 = No change has occurred on Current Connect status 1 = Current Connect Status has changed
Port Enable/Disable Change: C_PORT_ENABLE
0 = No change has occurred on Port Enabled/Disabled status 1 = Port Enabled/Disabled status has changed
Suspend Change: C_PORT_SUSPEND
0 = No change 1 = Resume complete
Over-Current Indicator Change: C_PORT_OVER_CURRENT
0 = No change has occurred on Over-Current indicator 1 = Over-Current indicator has changed
Reset Change: C_PORT_RESET
0 = No change 1 = Reset complete
AT43310
Get_Port_Status occurs if the setup packet from host is decoded as:
Field Value
bmRequestType Byte 0 10100011B bRequest Byte 1 00H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
00H 00H
Port
Number
04H 00H
Set_Hub_Descriptor
The AT43310 has only one Hub Descriptor. Therefore the AT43310 does not support thi s reques t. It will respon d with a STALL if the Setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 00100000B bRequest Byte 1 07H wValue Byte 2
Byte 3
xxH xxH
Set_Hub_Feature
Set_Hub_Feature sets a value reported in the Hub status. The status relates to the local po wer and over cu rrent. The AT43310 is a bus powered hub and will respond with a STALL if the setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 x0100000B bRequest Byte 1 03H wValue Byte 2
Byte 3
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
xxH xxH
xxH xxH
xxH xxH
wIndex Byte 4
Byte 5
wLength Byte 6
Byte 7
xxH xxH
xxH xxH
19
Set_Port_Feature
Set_Port_Feature sets a value reported in the Hub Control­ler’s port status. The AT43310 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 operatio n of the port o f the atta ched devi ce. Upon an invalid request (e.g. a Set_PORT request for PORT_LOW_SPEED), the AT433 10 will return a STALL status to the host.
SET_PORT Features Table
Port Feature Selector Table
Feature Value
PORT_ENABLE 01H PORT_SUSPEND 02H PORT_RESET 04H PORT_POWER 08H C_PORT_ENABLE 11H C_PORT_SUSPEND 12H
Port F eatu re
PORT_CONNECTION N N PORT_ENABLE Y Y PORT_SUSPEND Y Y PORT_OVER_CURRENT Y N PORT_RESET N Y PORT_POWER Y Y PORT_LOW_SPEED N N
The status relates to the port features as listed in the Port Feature Table. AT43310 will respond to Set Port Feature command if the setup packet from the Host is decoded as:
Field Value
bmRequestType Byte 0 x010001 1B bRequest Byte 1 03H wValue Byte 2
wIndex Byte 4
ClearPort
Feature
See Port Feature
Byte 3
Byte 5
SetPort Feature
Selector Table
Port
Number
C_PORT_RESET 14H
wLength Byte 6
Byte 7
20
AT43310
00H 00H
Absolute Maximum Ratings
AT43310
Operating Temperature.........................-55°C to +125°C
Storage Temperature ...........................-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 the de vice. This is a str ess rating only and fun ct ion al o peration of the device at these or any other conditions beyond those indicated in the operational sections of this spec­ification is not implied. Exposur e to absolute maximum rating conditions for extended peri ods 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
Symbol Parameter Condition Min Max Unit
V
CC5,VCCA
V
CC3
I
CC5
I
CC3
I
CCS
5V Power Supply 4.40 5.25 V 3V Power Supply 3.15 3.45 V 5V Supply Current 40 mA 3V Supply Current 20 mA Suspended Device Current 250 µA
= 4.4 to 5.25V, V
CC5
= 3V ± 5%, unless otherwise noted.
CC3
USB Signals: DPx, DMx
Symbol Parameter Condition Min Max Unit
I
LO
V
DI
V
CM
V
SE
V
OL1
V
OH1
Hi-Z Data Line Leakage 0V < VIN < 3.3V -10 +10 µA Differential Input Sensitivity DPx and DMx 0.2 V Differential Common Mode
Range Single Ended Receiver
Threshold
0.8 2.5 V
0.8 2.0 V
Static Output Low Voltage RL of 1.5K Ω to 3.6V 0.3 V Static Output High Voltage RL of 15K Ω to GND 2.8 3.6 V
PWR[1:4], STAT [1:4]
Symbol Parameter Condition Min Max Unit
V
OL1
V
OH1
V
OL2
C
OUT
Output Low Level, STAT[1:4] IOL = 8 mA 0.5 V Output High Level, STAT[1:4] IOH = 8 mA V
- 0.5V V
CC5
Output Low Level, PWR[1:4] IOL = 4 mA 0.5 V Output capacitance 1 MHz 10 pF
21
Oscillator Signals: OSC1, OSC2
(1)
Symbol Parameter Condition Min Max Unit
f
OSC
V V C C C t
SU
D
LH
HL
X1
X2
1/2
L
Oscillator Frequency 6 MHz ± 0.25% 5.985 6.015 MHz OSC1 switching level 0.47 1.20 V OSC1 switching level 0.67 1.44 V Input capacitance, OSC1 9 pF Output capacitance, OSC2 9 pF OSC1/2 capacitance 1 pF Start-up time 6 MHz, fundamental 10 ms
= 5V, 6 MHz
V
CC5
Drive level
crystal, 120 equiv
5mW
series re si stor
Note: 1. OSC2 must not be used to drive other circuitry.
Comparator Signals: VREF, OVL[1:4]
Symbol Parameter Condition Min Max Unit
V
OS
A
O
CM CM CM C
INR
C
INL
IRL
IRH
RR
Input Offset voltage -20 +20 mV Open loop gain 80 dB Input CM range low 0 V Input CM range high V
CC5
CM rejection ratio 1 KHz 92 dB Input capacitance, VREF# 10 pF Input capacitance, all other 6 pF
V
AC Characteristics
Dpx, Dmx Driver Characteristics, Full Speed Operation
Symbol P arameter Condition Min Max Unit
T
R
T
F
TRFM TR/TF matching 90 110 % V
CRS
Z
DRV
22
Rise time CL = 50 pF 4 20 ns Fall time CL = 50 pF 4 20 ns
Output signal crossover 1.3 2.0 V Driver output resistance Steady state drive 28 43
AT43310
AT43310
Dpx, Dmx Data Source Timings, Full Speed Operation
Symbol Parameter Condition Min Max Unit
T
DRATE
T
FRAME
T
DJ1
T
DJ2
T
EOPT
T
DEOP
T
JR1
T
JR2
T
EOPR1
T
EOPR2
Full Speed Data Rate Average Bit Rate 11.97 12.03 Mbs Frame Interval 0.9995 1.0005 ms Source Diff Driver Jitter To Next
Transition For Paired Transitions
-3.5
-4.0
3.5
4.0 Source EOP Width 160 175 ns Differential to EOP Transition
-2 5
Skew Recvr Data Jitter Tolerance To
Next Transition For Paired Transitions
EOP Width at Receiver Must Reject as EOP Must Re ceive as EOP
-18.5
-9
40 82
18.5 9
DPx, DMx Driver Characteristics, Low Speed Operation
Symbol Parameter Condition Min Max Unit
T
R
T
R
T
F
T
F
TRFM TR/TF matching 80 120 %
Rise time CL = 50 pF 75 ns Rise time CL = 350 pF 300 ns Fall time CL = 50 pF 75 ns Fall time CL = 350 pF 300 ns
ns ns
ns
ns ns
ns ns
V
CRS
Output signal crossover 1.3 2.0 V
Dpx, Dmx Hub Timings, High Speed Operation
Symbol Parameter Condition
T
HDD1
T
HDD2
T
HDJ1
T
HDJ2
T
SOP
T
EOPD
T
HESK
Hub Differential Data Delay with cable without cable
Hub Diff Driver Jitter To Next Transition For Paired Transitions
Data Bit Width Distortion after SOP
Hub EOP Delay Relative to THDD
Hub EOP Output Width Skew -15 15 ns
Min Max Unit
-3
-1
70 40
3 1
ns ns
ns ns
-5 3 ns
015ns
23
Dpx, Dmx Hub Timings, Low Speed Operation
Symbol Parameter Condition Min Max Unit
T
LHDD
T
LHDJ1
T
LHDJ2
T
SOP
T
LEOPD
T
LHESK
Hub Differential Data Delay 300 ns Downstr Hub Diff Driver Jitter To
Next Transition For Paired Transitions
Data Bit Width Distortion after SOP
Hub EOP Delay Relative to THDD
-45
-15
45 15
ns ns
-60 45 ns
0 200 ns
Hub EOP Output Width Skew -300 300 ns
24
AT43310
Packaging Information
Packaging Information
AT43310
32P6,
32 Lead, 0.600” Wide, Plastic Dual Inline Package (PDIP) Dimensions in Inches and (Millimeters)
1.67(42.4)
1.64(41.7)
.220(5.59)
MAX
SEATING
PLANE
.161(4.09) .125(3.18)
.110(2.79) .090(2.29)
.012(.305) .008(.203)
1.500(38.10) REF
.065(1.65) .041(1.04)
.630(16.0)
.590(15.0)
.690(17.5) .610(15.5)
0
REF
15
PIN
1
.566(14.4) .530(13.5)
.090(2.29)
.005(.127)
.065(1.65)
.015(.381) .022(.559) .014(.356)
MAX
MIN
32R,
32 Lead, 0.440” Wide, Plastic Gull Wing Small Outline (SOIC) Dimensions in Inches and (Millimeters)
25
Loading...