STMICROELECTRONICS STOTG04ES

STOTG04ES
USB-OTG Full-speed Transceiver
Feature summary
■
Meets the requirements of the universal serial
bus specification revision 2.0 And the on-thego supplement to the USB 2.0 specification
■
Analog car kit-compatible
■
Three operating modes: USB, UART and audio
■
Configurable using I2C serial interface
■
Capable of 12Mbit/s full-speed and 1.5Mbit/s
low-speed modes of operation
■
Standard digital interface compliant with the
OTG transceiver specification
■
Supports the session request protocol (SRP)
and host negotiation protocol (HNP)
■
35mA Typical VBUS Charge pump output
current for 3.3V supply voltage
■
Ability to control external charge pump for
higher VBUS currents
■
Integrated pull-up/-down resistors
■
±6kV ESD protection on all USB pins (contact
discharge)
■
+1.6V to +3.6V Digital power supply and +2.7V
to +5.5V analog supply voltage range
■
Power-down mode with very low power
consumption for battery powered devices
■
Ideal for system ASICs with built-in USB OTG
dual role core
■
Available In QFN-24
■
–40°C to +85°C operating temperature range
QFN24 (4mmx4mm)
■
MP3 players
■
Digital cameras
■
Printers
Description
The STOTG04ES is a USB On-The-Go full-speed
transceiver. It provides complete physical layer
solution for any USB-OTG device. It contains
VBUS charge pump and comparators, ID line
detector and interrupt generator, and the USB
differential driver and receivers. The STOTG04
transceiver is suitable for mobile and battery
powered devices because of its low power
consumption and power down operating mode.
The transceiver is capable of operation in several
different modes. It can operate in basic USB-OTG
mode, as an UART transceiver or in audio mode.
Behavior of the transceiver is fully configurable
through the two-wire I2C serial bus. The
transceiver supports session request protocol and
host negotiation protocol.
Applications
■
Mobile phones
■
PDAs
Order code
Part number
Package
Packaging
STOTG04ESQTR
QFN24 (4mm x 4mm)
4000 parts per reel
October 2006
Rev. 3
1/26
www.st.com
26
STOTG04ES
Contents
Contents
1
Pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2
Maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4
Charge pump characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5
Timing diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6
Block description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.1
Charge pump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.2
VBUS Comparators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.3
Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.4
ID Line detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.5
Driver and receivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.6
Control logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.7
Modes of operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.7.1
Power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.7.2
USB Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.7.3
UART Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.7.4
Audio mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.8
Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.9
I2C Bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.10
Device address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.11
Bus protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.12
External charge pump switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7
Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2/26
STOTG04ES
1
Pin configuration
Pin configuration
Figure 1.
Pin connections (bottom view )
Table 1.
Pin description
PlN N°
SYMBOL
I/O
NAME AND FUNCTION
2C
1
ADR_PSW
I/O
Least significant bit of the I address of the transceiver input latched on reset;
PSW output enabling or disabling an external charge pump
2
SDA
I/O
I2C serial data (1)
3
4
5
6
SCL
RESET/
INT/
SPEED
7
VTRM
8
9
10
11
12
SUSPEND
OE_TP_INT/
VM
VP
RCV
ExpPad
13
SE0_VM
14
DAT_VP
15
16
17
18
19
DD+
GND
ID
VBUS
20
21
22
CAP1
CAP2
VBAT
I2C clock
Active low logic reset
Active low interrupt signal (open-drain)
Mode of the transceiver (0 = low-speed, 1 = full-speed) (2)
Internal voltage regulator output; an external decoupling capacitor should be
Power
connected (3)
I
Power down input (0 = active mode, 1 = power down) (See Table 8)
I/O
Output enable of the differential driver in the USB mode or interrupt output
O
D– single-ended receiver output
O
D+ single-ended receiver output
O
Differential receiver output
Not Connected
Single-ended zero input/output in the DAT_SE0 mode transmit mode, negative
I/O
data input/output in the single-ended transmit mode or TXD in the UART mode
Data input/output in the DAT_SE0 mode transmit mode, positive data input/
I/O
output in the single-ended transmit mode or RXD in the UART mode
I/O
Negative data line in the USB mode or serial data output in the UART mode
I/O
Positive data line in the USB mode or serial data input in the UART mode
Power Common analog and digital ground
I/O
ID pin of the USB connector used for protocol identification
VBUS line of the USB interface – it needs an external capacitor of 4.7µF
I/O
I
I
O
I
Power Analog power supply voltage (+2.7V to +5.5V)
I/O
External capacitor pin for the charge pump
I/O
External capacitor pin for the charge pump
3/26
STOTG04ES
Pin configuration
PlN N°
SYMBOL
23
24
CGND
VIF
I/O
NAME AND FUNCTION
Power Ground for the charge pump
Power Logic power supply (+1.6V to 3.6V)
(1) Input and open-drain output
(2) Input with internal pull-up resistor
(3) Internal regulator can be bypassed by connecting VBAT to this pin when the VBAT is in range of 2.7V to 3.6V
Figure 2.
4/26
Functional diagram
STOTG04ES
2
Maximum ratings
Maximum ratings
Table 2.
Absolute maximum ratings
Symbol
VIF
VBAT
VDCDIG
TSTG
VESD
Parameter
Value
Unit
Logic Supply Voltage
-0.5 to + 4.5
V
Analog Supply Voltage
-0.5 to + 6.5
V
DC Input Voltage on any logic interface pin
-0.5 to + 4.5
V
Storage Temperature Range
Electrostatic discharge voltage
on USB pins
-65 to + 150
±8
±6
°C
Human Body Model
Contact Discharge (*)
kV
(*) In accordance to IEC61000-4-2, level 3.
Absolute Maximum Ratings are those values beyond which damage to the device may occur. Functional Operation under these conditions is not implied.
Table 3.
Thermal data
Symbol
RthJA
Table 4.
Parameter
VIF
TA
CEXT
CT
CTRM
RS
Table 5.
Unit
59
°C/W
Recommended operating condition
Symbol
VBAT
Value
Thermal Resistance Junction-Ambient
Parameter
Min.
Typ.
Max.
Unit
Logic Supply Voltage
1.6
1.8
3.6
V
Analog Supply Voltage
2.7
3.3
5.5
V
Operating Temperature Range
-40
+85
°C
Charge pump external capacitor
100
220
470
nF
1
4.7
6.5
µF
Charge pump tank capacitor
Voltage regulator external capacitor
1
µF
Data lines impedance matching resistor
20
Ω
ESD Performance
Symbol
Parameter
IEC-61000-4-2 (D+, D-, VBUS, ID)
ESD
IEC-61000-4-2 (other pins)
Air discharge (10 pulses)
Contact discharge (10 pulses)
Air discharge (10 pulses)
Contact discharge (10 pulses)
Value
Unit
±8
±6
±2
±2
kV
5/26
STOTG04ES
Electrical characteristics
3
Electrical characteristics
Table 6.
Symbol
IIF
IBAT
Electrical characteristics
Characteristics measured over recommended operating conditions unless otherwise is
noted. All typical values are referred to TA = 25°C, VIF = 1.8V, VBAT = 3.3V, RS = 20Ω,
CEXT = 220nF, CT = 4.7µF and CTRM = 1µF
Parameter
Digital Part Supply Current
Operating Supply Current
Test Conditions
Min.
Active mode (1,2)
Power down mode
Transceiver current while
transmitting and receiving (1,2)
Charge pump current, ILOAD = 8mA
Typ.
Max.
Unit
0.6
1.6
1
mA
µA
4.5
7
17
25
1
Power down mode (3)
mA
µA
LOGIC INPUTS AND OUTPUTS
VOH
HIGH level output voltage
VOL
LOW level output voltage
VIH
HIGH level input voltage
VIL
LOW level input voltage
ILKG
Input leakage current
IOZ
Off-state output current
IOH = -100µA
VIF-0.15
IOH = -2mA
VIF-0.40
V
V
IOL = 100µA
0.15
IOL = 2mA
0.40
0.7VIF
V
V
V
0.3VIF
V
-1
1
µA
-5
5
µA
VBUS
VBUS
VBUS output voltage
VBUS_LKG VBUS leakage voltage
VBUS_RIP VBUS output ripple
ILOAD = 8mA
4.9
5.25
V
3
200
mV
30
60
mV
0.8
1.5
MHz
40
76
100
35
Low to high transition
High to low transition
Low to high transition
20
4.40
4.40
0.8
High to low transition
0.8
RVBUS
Charge-pump switching
frequency (2)
VBUS input impedance
IVBUS
Maximum VBUS source current CEXT = 220 nF, VBUS > 4.4V
fCP
VBUS valid comparator
threshold
Session valid comparator
VSES_VLD threshold for both A and B
devices
RVBUS_PU VBUS charge pull-up resistance
VBUS_VLD
4.4
No Load
ILOAD = 8mA, CT = 4.7µF
0.5
V
discharge pull-down
RVBUS_PD BUS
resistance
kΩ
mA
V
2.0
2.0
V
281
640
Ω
656
1260
Ω
1.3
1.9
3.0
V
70
105
130
kΩ
ID
VID_BIAS
RID_PU
RID_GND
ID pin bias voltage
RCP_ID = 140kΩ, VBAT ≤5V
ID pin pull-up resistance
ID line short resistance to detect id_gnd state
RID_FLOAT ID line short resistance to detect id_float state
6/26
10
800
Ω
kΩ
STOTG04ES
Symbol
Electrical characteristics
Parameter
Test Conditions
Min.
Typ.
8
16
Max.
Unit
DIFFERENTIAL DRIVER
ZDRV
Output Impedance
24
Ω
RLH = 14.25kΩ, VTRM = 3.3V
2.8
3.6
V
RLH = 14.25kΩ, VTRM = 2.7V
2.6
3.0
V
0
0.3
V
2.0
V
200
mV
2.0
2.0
V
Excluding external RS
VOH_DRV
HIGH level output voltage
VOL_DRV
LOW level output voltage
RLL = 1.425kΩ
VCRS
Driver crossover voltage
CLOAD = 50 to 600pF
1.3
1.67
DIFFERENTIAL AND SINGLE-ENDED RECEIVERS
VDI
VSE-TH
RIN
CIN
RPU_D+
RPU_DRPD
VDT_LKG
Differential receiver input
sensitivity (VD+ - VD-)
VCM = 0.8 to 2.5V
SE receivers switching
threshold
Input resistance
Low to high transition
High to low transition
PU/PD resistor deactivated
Input capacitance
Data line pull-up resistance on Bus Idle
pin D+
Receiving mode
Data line pull-up resistance on
pin DData line pull-down resistance
RPU_EXT = 300kΩ
Data line leakage voltage
-200
0.8
0.8
1.5
1.6
1.1
MΩ
10
1300
2200
30
1575
3090
pF
900
1425
900
1300
1575
Ω
14.25
17.0
24.8
kΩ
200
342
mV
0.4
0.6
V
Ω
CAR KIT INTERRUPT DETECTOR
VCR_INT_TH Car kit Interrupt threshold
UART MODE – D+ AND D- PINS
VOH
HIGH level output voltage
IOH= -2mA
2.4
3.6
V
VOL
LOW level output voltage
IOL = 2mA
0
0.4
V
VIH
HIGH level input voltage
VIL
LOW level input voltage
2.0
V
0.8
V
V
VOLTAGE REGULATOR
VTRM
ITRM
Internal power supply voltage
Voltage regulator output
current
VBAT = 3.3 to 5V, no load; uart_en=0
3.0
3.3
3.6
VBAT = 2.8 to 5V, no load; uart_en=1
2.6
2.75
2.9
V
VBAT = 3.6V, VTRM > 3V; uart_en=0
20
mA
VBAT = 3.0V, VTRM >2.6V; uart_en=1
10
mA
(1) Transmitting and receiving at 12Mbit/s, loads of 50pF on D+ and D- pins, no capacitive loads on VP and VM pins
(2) Not tested in production; characterization only
(3) See paragraph 6.7.1
7/26
STOTG04ES
Electrical characteristics
Table 7.
Switching characteristics
Over recommended operating conditions unless otherwise is noted. All the typical values are
referred to TA = 25°C, VIF = 1.8V, VBAT = 3.3V, RS = 20Ω, CEXT = 220nF, CT = 4.7µF, and
CTRM = 1µF
Symbol
Parameter
TVBUS_RISE VBUS rise time
Test Conditions
Min.
ILOAD = 8mA, CT = 10µF
Typ.
Max.
Unit
1
100
ms
DIFFERENTIAL DRIVER
tR
Data signal rise time
tF
Data signal rise time
tP_DRV_R
tP_DRV_F
tRFM
Full-speed mode, CLOAD = 50pF
4
8.5
20
Low-speed mode, CLOAD = 600pF
75
110
300
Full-speed mode, CLOAD = 50pF
4
8.5
20
Low-speed mode, CLOAD = 600pF
75
110
300
Propagation delay of the driver,
rising edge; DAT_SE0 mode
Full-speed mode, CLOAD = 50pF
38
Low-speed mode, CLOAD = 600pF
280
Propagation delay of the driver,
rising edge; VP_VM mode
Full-speed mode, CLOAD = 50pF
55
Low-speed mode, CLOAD = 600pF
300
Propagation delay of the driver,
falling edge; DAT_SE0 mode
Full-speed mode, CLOAD = 50pF
38
Low-speed mode, CLOAD = 600pF
280
Propagation delay of the driver,
rising edge; VP_VM mode
Low-speed mode, CLOAD = 600pF
Rise and fall time matching (tR/
tF) excluding the first transition
from the idle state
Full-speed mode, CLOAD = 50pF
55
Full-speed mode
90
300
111.11
Low-speed mode
80
125
ns
ns
ns
ns
ns
ns
%
SINGLE-ENDED RECEIVERS
tP_SE_R
Propagation delay of the SE
receiver, rising edge
tP_SE_F
Propagation delay of the SE
receiver, falling edge
Full-speed mode, input slope 15ns
Low-speed mode, input slope
150ns
Full-speed mode, input slope 15ns
Low-speed mode, input slope
150ns
18
Full-speed mode, input slope 15ns
Low-speed mode, input slope
150ns
Full-speed mode, input slope 15ns
Low-speed mode, input slope
150ns
24
18
ns
18
18
ns
DIFFERENTIAL RECEIVER
tP_DIF_R
Propagation delay of the SE
receiver, rising edge
tP_DIF_F
Propagation delay of the SE
receiver, falling edge
24
ns
24
24
ns
DIGITAL INTERFACE
tSET_OE
tTA_OI
tTA_IO
Output enable setup time
Output to input bus turnaround
time (1, 2)
Output to input bus turnaround
time (1, 2)
50
ns
0
5
ns
0
5
ns
100
kHz
I2C BUS (3)
fSCL
SCL clock frequency
tLOW
Low period of the SCL clock
4.7
µs
tHIGH
High period of the SCL clock
Rise time of both SDA and SCL
signals
4.0
µs
tIICR
8/26
1000
ns
STOTG04ES
Symbol
tIICF
tSU_STA
tHD_STA
tSU_DAT
tHD_DAT
tSU_STO
tBUF
Electrical characteristics
Parameter
Test Conditions
Fall time of both SDA and SCL
signals
Setup time for a repeated START
condition
Hold time for the START and
repeated START conditions
Data setup time
Data hold time
Setup time for the STOP
condition
Bus free time between a STOP
and START condition
Min.
Typ.
Max.
Unit
300
ns
4.7
µs
4.0
µs
250
ns
0
µs
4.0
µs
4.7
µs
NOTE 1: Parameter applies to the OE_TP_INT/, DAT_VP, and SE0_VM signals
NOTE 2: Not tested in production; characterization only
NOTE 3: Requirements defined by the I2C-Bus Specification, version 2.1
9/26
STOTG04ES
Charge pump characteristics
4
Charge pump characteristics
Figure 3.
10/26
Output characteristics
Figure 4.
Output ripple
STOTG04ES
5
Timing diagrams
Timing diagrams
Figure 5.
Rise and fall times
Figure 6.
Differential driver propagation delay
Figure 7.
Differential receiver propagation delay
11/26
STOTG04ES
Timing diagrams
Figure 8.
Output enable setup time
t SET_OE
V IH
OE_TP_INT/
V IL
V IH
DAT_VP
SE0_VM
USB Idle State
Data to Transmit
V IL
Figure 9.
Bus turnaround time
tTA_OI
VIH
OE_TP_INT/
tTA_IO
VIL
VIH
DAT_VP
SE0_VM
output
input
output
VIL
Figure 10. I2C BUS timing
tLOW
tIIC_F
tHIGH
tHD_STA
tIIC_R
tSU_STO
SCL
S
Sr
P
S
SDA
tIIC_F
12/26
tHD_STA
tSU_DAT
tHD_DAT
tSU_STA
tIIC_R
tBUF
STOTG04ES
Timing diagrams
Figure 11. Block diagram
VBAT
SCL
CAP1
I2 C
In te r fa c e
ADR_PSW
SDA
O s c illa to r
CAP2
VBUS
C h a rg e
Pum p
VBAT
SPEED
SUSPEND
Bandgap
R e fe re n c e
VTRM
O E _ T P _ IN T /
D+
SE0_VM
D-
RCV
R e g is te r S e t
and
C o n tr o l L o g ic
DAT_VP
VP
VM
VBAT
VBAT
V o lt a g e
R e g u la to r
VTRM
ID
IN T /
RESET/
13/26
Block description
6
STOTG04ES
Block description
The STOTG04ES integrates a charge pump and comparators for the VBUS, ID line detector and interrupt
switch, differential data driver, differential and single-ended receivers, low dropout voltage regulator and
control logic. The STOTG04ES provides a complete solution for connection of a digital USB OTG
controller to the physical Universal Serial Bus.
6.1
Charge pump
The VBUS line voltage is provided using the internal charge pump. It is capable of sourcing up to 35mA
load current. The charge pump can be powered by voltage from 2.7V to 5.5V. It needs two capacitors for
its operation: an external capacitor of 220nF connected between the CAP1 and CAP2 pins and a 4.7µF
decoupling tank capacitor on the VBUS. In case when an application needs higher current than 35mA, it is
possible to provide it using an external charge pump or switch controlled by the ADR_PSW pin.
6.2
VBUS Comparators
These comparators monitor the VBUS voltage. They provide current status information for the VBUS line.
VBUS valid status means that the voltage is above VBUS_VLD. Session valid status means that the VBUS
voltage is above VSES_VLD level.
6.3
Voltage regulator
An internal low-dropout voltage regulator provides power supply for the bus drivers and receivers. The
regulator needs an external capacitor of 1µF on the VTRM pin for its proper operation. The regulator can
provide 3.3V or 2.75V output voltages according to the Operating Mode.
The regulator can be bypassed in case when the analog supply voltage is in the range of 3.0V (or 2.7V)
to 3.6V. It is necessary to tie the VTRM pin to the VBAT power supply voltage to bypass the regulator.
6.4
ID Line detector
This block senses ID line status. It is capable of detecting three different line states:
• pin floating;
• pin tied to ground;
• pin grounded via a 140kΩ resistor.
The ID detector can also generate an interrupt by shorting the pin to ground.
6.5
Driver and receivers
The driver can operate in two different modes. It can act as a simple low-speed and full-speed differential
USB driver or as two independent single-ended drivers in the UART mode.
This block contains one differential receiver for the USB operation mode and two single-ended receivers
for USB signaling as well as UART receivers.
14/26
STOTG04ES
6.6
Block description
Control logic
This block controls the behavior of whole chip. It communicates with the external environment via the I2C
serial bus. The control logic block consists of I2C slave interface, configuration and status registers, and
some glue logic.
6.7
Modes of operation
The STOTG04ES can operate in two different power modes and in three operating modes. They can be
controlled by logic signals and control registers.
6.7.1
Power modes
To reduce power consumption when there is no need for the USB function, the STOTG04 implements
power-down mode. In this mode, the power consumption is strongly reduced. Power mode of the device
can be controlled by bit suspend of the Control Register 1 or/and the SUSPEND pin as can be seen in
table 8).
Table 8.
Power modes
SUSPEND BIT
SUSPEND PIN
0
X
1
X
0
1
Power Mode
normal operation
power-down
Although in power down mode all analog blocks should be switched off, some of them could be turned on
by bits in the control registers having higher priority than suspend bit. In order to obtain minimum power
consumption in power down mode the device must be configured has shown in Table 9. The digital part is
fully static so that it almost does not consume power. All of the interrupts (except BDIS_ACON) are fully
operational in Power-down mode, as is the I2C interface.
Table 9.
Power down mode setup
SUSPEND BIT
SUSPEND PIN
Control register 1
Control register 2
Control register 3
1
1
X1X0XX0-
00XX00X0
-XXXX0XX
X = Don’t care
- = Reserved
Bit order: 0...7
6.7.2
USB Modes
The STOTG04ES transceiver has two basic USB operational modes. These modes define how the digital
IO pins of the transceiver will be used. Independently of USB operating mode, some signals always have
the same function (see Table 10).
Table 10.
Digital interface signals
Signal
RCV
VP
VM
OE_TP_INT/
Function
Differential receiver output
D+ single-ended receiver output
D- single-ended receiver output
Output enable signal of the differential driver
15/26
STOTG04ES
Block description
The RCV signal is active in the VP_VM mode only. Its output driver is controlled by the OE_TP_INT/
signal. Operating modes are described below. The meanings of the DAT_VP and SE0_VM signals
depend on the mode of operation. Both of these signals can be bidirectional or unidirectional. The
direction is controlled by bidi_en Bit of Control Register 3 (described later). When these signals are
bidirectional, the direction is controlled by the OE_TP_INT/ signal (see Tables 11 and 12).
The actual mode of operation is controlled by the dat_se0 Bit of Control Register 1 (see Tables 11 and 12)
Table 11.
DAT_SE0 (dat_se0 = 1)
bidi_en
OE/*
0
1
X
1
0
Table 12.
DAT_VP
Differential driver input
Differential receiver output
Differential driver input
SE0_VM
SE0 driver input
SE0 detector output
SE0 driver input
VP_VM (dat_se0 = 0)
bidi_en
OE/*
0
1
X
1
0
DAT_VP
D+ driver input
D+ receiver output
D+ driver input
SE0_VM
D- driver input
D- receiver output
D- driver input
* State of the OE_TP_INT/ signal.
In the USB mode of operation it is necessary to control the rise and fall times of the transmission driver.
These times are different for low-speed and full-speed USB settings. Selection of actual USB speed can
be done using the bit speed of Control Register 1 or/and the SPEED pin (see table 13).
Table 13.
6.7.3
USB Speed Selection
speed bit
SPEED Pin
0
X
X
0
1
1
USB Mode
low-speed
full-speed
UART Mode
The actual mode of operation is selectable by the transp_en and uart_en Bits of Control Register 1 (see
table 14).
Table 14.
Transceiver modes
transp_en
uart_en
STOTG04 Mode
0
0
1
1
0
1
0
1
USB
UART
FORBIDDEN
UART (1)
(1) In reality, it is not possible to set both these bits at the same time. In this case, only uart_en bit will remain set.
In the UART mode it is possible to select driver direction on both the D+ and D– pins. The selection is
done using the bdir[1] and bdir[0] Bits of Control Register 3 (see table 15).
16/26
STOTG04ES
Table 15.
Block description
UART drivers direction
bdir[1]
bdir[0]
DAT_VP ↔ D+
SE0_VM ↔ D-
0
0
1
1
0
1
0
1
→
→
←
←
→
←
→
←
6.7.4
Audio mode
In this mode the transceiver has to release all of its drivers and pull-up/pull-down resistors on the D+, Dand ID pins, leaving them in a high impedance state. This allows these lines to be used for transmission
of audio signals. The transceiver should not provide voltage on its VBUS output in this mode. Conditions
described in Table 16 force the transceiver into the audio mode.
Table 16.
Audio mode setup
transp_en bit
uart_en bit
OE_TP_INT/ signal
Control Register 2
0
0
1
00000000
6.8
Registers
The STOTG04ES transceiver device is controlled using register settings (see Table 17). These registers
can be set and read via the I2C bus.
Table 17.
Register set
Register
Size (bits)
Acc (1)
Addr (2)
Vendor ID
Product ID
Control 1
Control 2
Control 3
Interrupt Source
Interrupt Latch
Interrupt Mask False
Interrupt Mask True
16
16
8
8
8
8
8
8
8
r
r
r/s/c
r/s/c
r/s/c
r
r/s/c
r/s/c
r/s/c
00h
02h
04h 05h
06h 07h
12h 13h
08h
0Ah 0Bh
0Ch 0Dh
0Eh 0Fh
Description
STMicroelectronics ID (0483h) - LSB first
ID of the STOTG04 (A0C4h) - LSB first
First Control Register
Second Control Register
Third Control Register
Current state of signals generating interrupts
Latched source that generated interrupt
Enables interrupts on falling edge
Enables interrupts on rising edge
(1) Access type can be: read (r), set (s), clear (c).
(2) The first address is to set, the second one to clear bits.
When writing to the set address, any “1” will set the associated Bit to logic “1”. When writing to the clear
address, any “1” will set the associated Bit to logic “0”. It is possible to read from any address, whether it
is a set or clear address. See Tables 18, 19, 20, 21 for bit setting details.
17/26
STOTG04ES
Block description
Table 18.
Control register 1
Name
Bit
R(1)
Speed
0
1
Suspend
1
1
dat_se0
2
0
transp_en
bdis_acon_en
3
4
0
0
oe_int_en
5
0
uart_en
6
0
7
Description
0 = low-speed mode
1 = full-speed mode
0 = normal operation
1 = power-down mode
0 = VP_VM mode
1 = DAT_SE0 mode
Reserved. For testing purpose
Enable A-device to connect if B-device disconnect detected
When set and suspend = 1, then OE_TP_INT/ becomes
interrupt output
Enables UART mode (higher priority than transp_en bit) and
2.7V voltage regulation
Reserved
(1) State of the bit after reset.
Setting the bdis_acon_en bit enables automatic switching of the D+ pull-up resistor when the device
receives an SE0 longer than half of the bit period. This function should not be used in low-speed
operation.
Table 19.
Control register 2
Name
Bit
R
dp_pull-up
dm_pull-up
dp_pull-down
dm_pull-down
id_gnd_drv
vbus_drv
0
1
2
3
4
5
0
0
1
1
0
0
Description
vbus_dischrg
6
0
Discharge VBUS through a resistor to ground
vbus_chrg
7
0
Charge VBUS through a resistor
Connect D+ pull-up
Connect D- pull-up
Connect D+ pull-down
Connect D- pull-down
Connect ID pin to ground
Provide power to VBUS
It is not possible to set vbus_drv, vbus_dischrg and vbus_chrg at the same time; the bit having higher
priority will remain set while the others will be cleared. Vbus_drv has higher priority than vbus_dischrg
which has higher priority than vbus_chrg.
Table 20.
18/26
Control register 3
Name
Bit
R
Description
rec_bias_en
0
1
0
0
bidi_en
2
1
bdir[0]
bdir[1]
audio_en
psw_en
3
4
5
6
7
0
1
0
0
0
Reserved
Enables transmitter bias even during USB receive
When set, then DAT_VP and SE0_VM pins become bidirectional
otherwise they are inputs only
Direction of the drivers between DAT_VP↔DP and
SE0_VM↔DM in the UART mode
Enables car-kit interrupt detector
Enables external charge pump control on the ADR_PSW pin
Reserved
STOTG04ES
Table 21.
Block description
Interrupt registers (*)
Name
Bit
R
vbus_vld
sess_vld
dp_hi
id_gnd
dm_hi
id_float
0
1
2
3
4
5
0
0
0
0
0
0
bdis_acon
6
0
cr_int
7
0
Description
A-device VBUS valid comparator
Session valid comparator
D+ pin is asserted high during SRP
ID pin grounded
D- pin is asserted high
ID pin floating
Set when bdis_acon_en bit is set and transceiver asserts dp_pull-up after
detecting B-device disconnect
Car-kit interrupt
(*) Bit order is the same for all four interrupt related registers. Meaning of each register is described in Table 17.
I2C Bus interface
6.9
All of the STOTG04 transceiver registers are accessible through the I2C bus (see Figure 12). The device
contains a slave controller which provides communication with an external master. The I2C interface
consists of three pins:
• SDA (Serial Data);
• SCL (Serial Clock);
• ADR_PSW (is the LSB of the device address).
6.10
Device address
The USB-OTG transceiver has following 7-bit I2C device address:
0
1
0
1
1
0
adr
The adr bit represents current state of the ADR_PSW device pin. It means that the address can be either
2Ch or 2Dh according to the ADR_PSW pin.
6.11
Bus protocol
Any device that sends data to the bus is defined as the transmitter. Any device that reads the data is the
receiver. The device that controls data transfers is the bus master, while the transmitter or receiver is the
slave device. The master initiates data transfers and provides the serial clock. The STOTG04 is always
the slave device.
Operation of the I2C bus is described by following figure 12.
19/26
STOTG04ES
Block description
Figure 12. Basic operation of the I2C Bus
Start condition is identified by a falling edge of the SDA signal while the SCL is stable at high level. The
start condition must precede any data transfer on the bus.
Stop condition is identified by a rising edge of the SDA signal while the SCL is stable at high level. The
stop condition terminates any communication between device and master.
The acknowledge bit is used to indicate a successful byte transfer. The bus transmitter releases the SDA
line after sending eight data bits. During the ninth clock period the receiver pulls the SDA line low to
acknowledge the receipt of the eight data bits. If the receiver is a slave device and it does not generate
acknowledge bit then the bus master can generate the stop condition in order to abort the transfer.
Below is described format of I2C commands. All tables use common format and symbols. Every data
word consists of eight bits with most significant bit first and least significant bit last.
Symbols used in the tables are:
• S – start condition
• P – stop condition
• A – acknowledge bit
• N – negative acknowledge
WRITE Command to the transceiver device is described by following table. It is possible to write into
several consecutive registers during one write command.
S
Device address
Data (K)
A
0
Data (K+1)
A
A
Reg. address K
..
Data (K+N)
A
A
P
READ command consists of dummy write to set proper address of a register followed by real read
sequence.
S
Device address
S
Device address
Data (K+1)
20/26
0
A
A
1
Data (K+2)
Reg. address K
A
A
A
P
Data (K)
...
Data (K+N)
A
N
P
STOTG04ES
6.12
Block description
External charge pump switch
The ADR_PSW pin has two functions. State of this pin is always latched into a register on the rising edge
of the RESET/ signal. The latched value is used as a least significant bit of the I2C address. After the
address is latched, this pin can be set as an output by setting the PSW_EN bit of the Control Register 3.
Output value of the pin is low when the pin is high during reset; otherwise the output is high.
Example connection of an external charge pump is shown in following figure. When the charge pump
control signal would be active high, the ADR_PSW pin should be pulled down instead of high.
Figure 13. External charge pump application
21/26
Package mechanical data
7
STOTG04ES
Package mechanical data
In order to meet environmental requirements, ST offers these devices in ECOPACK® packages.
These packages have a Lead-free second level interconnect. The category of second Level
Interconnect is marked on the package and on the inner box label, in compliance with JEDEC
Standard JESD97. The maximum ratings related to soldering conditions are also marked on
the inner box label. ECOPACK is an ST trademark. ECOPACK specifications are available at:
www.st.com.
22/26
STOTG04ES
Package mechanical data
QFN24 (4x4) MECHANICAL DATA
mm.
mils
DIM.
MIN.
TYP
A
MAX.
MIN.
TYP.
1.00
MAX.
39.4
A1
0.00
0.05
0.0
2.0
b
0.18
0.30
7.1
11.8
D
3.9
4.1
153.5
161.4
D2
1.95
2.25
76.8
88.6
E
3.9
4.1
153.5
161.4
E2
1.95
2.25
76.8
88.6
e
L
0.50
0.40
19.7
0.60
15.7
23.6
23/26
STOTG04ES
Package mechanical data
Tape & Reel QFNxx/DFNxx (4x4) MECHANICAL DATA
mm.
inch
DIM.
MIN.
TYP
A
MIN.
TYP.
330
C
12.8
D
20.2
N
99
13.2
MAX.
12.992
0.504
0.519
0.795
101
T
24/26
MAX.
3.898
3.976
14.4
0.567
Ao
4.35
0.171
Bo
4.35
0.171
Ko
1.1
0.043
Po
4
0.157
P
8
0.315
STOTG04ES
8
Revision history
Revision history
Table 22.
Revision history
Date
Revision
Description of Change
13-Jan-2006
1
First Release.
01-Feb-2006
2
Mistake on Table 1.
17-Oct-2006
3
Added details in paragraph 6.7.1, comments to table 19 and description in
paragraph 6.12.
25/26
STOTG04ES
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2006 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
26/26