
MAX3301E/MAX3302E
USB On-the-Go Transceivers and Charge Pumps
14
______________________________________________________________________________________
MODE
I2C
ID_IN
sess_end
COMP
sess _vld
COMP
vbus_ vld
COMP
cr_int
COMP
dp_hi
COMP
dm_hi
COMP
TRM
TX
DIFF
RX
SE
RX
Shutdown
1
X
XXX
Interrupt
Shutdown
2
X
XX
X
XXX
Suspend
3
X
Normal
Operating
Table 1. Functional Blocks Enabled During Specific Operating Modes
= Enabled.
X
= Disabled.
1. For the MAX3301E, enter shutdown mode by writing a 1 to sdwn (bit 0 of special-function register 2). For the MAX3302E, enter
shutdown mode by writing a 0 to
sdwn (bit 0 of special-function register 2).
2. Enter interrupt shutdown mode by writing a 1 to int_sdwn (bit 0 of special-function register 1).
3. Enter suspend mode by writing a 1 to spd_susp_ctl (bit 1 of special-function register 1) and suspend (bit 1 of control register 1), or
by writing a 0 to spd_susp_ctl (bit 1 of special-function register 1) and driving SUS high.
session end comparator threshold. Figure 12 shows the
level-detector comparators. The interrupt-enable regis-
ters (Tables 12 and 13) determine whether a falling or
rising edge of VBUS asserts these status bits.
ID_IN
The USB OTG specification defines an ID input that
determines which dual-role device is the default host.
An OTG cable connects ID to ground in the connector
of one end and is left unconnected in the other end.
Whichever dual-role device receives the grounded end
becomes the A device. The MAX3301E/MAX3302E pro-
vide an internal pullup resistor on ID_IN. Internal com-
parators detect if ID_IN is grounded or left floating.
Interrupt Logic
When OTG events require action, the MAX3301E/
MAX3302E provide an interrupt output signal on
INT.
Alternatively,
OE/INT can be configured to act as an
interrupt output while the device operates in USB sus-
pend mode. Program
INT and OE/INT as open-drain or
push-pull interrupts with irq_mode (bit 1 of special-func-
tion register 2, see Tables 15 and 16).
VBUS Power Control
VBUS is a dual-function port that powers the USB bus
and/or provides a power source for the internal linear reg-
ulator. The VBUS power-control block performs the various
switching functions required by an OTG dual-role device.
These actions are programmed by the system logic using
bits 5 to 7 of control register 2 (see Table 8) to:
Discharge VBUS through a resistor
Provide power-on or receive power from VBUS
Charge VBUS through a resistor
The OTG supplement allows an A device to turn VBUS
off when the bus is not being used to conserve power.
The B device can issue a request that a new session be
started using SRP. The B device must discharge VBUS
to a level below the session-end threshold (0.8V) to
ensure that no session is in progress before initiating
SRP. Setting bit 6 of control register 2 to 1, discharges
VBUS to GND through a 5kΩ current-limiting resistor.
When VBUS has discharged, the resistor is removed
from the circuit by resetting bit 6 of control register 2.
An OTG A device is required to supply power on VBUS.
The MAX3301E/MAX3302E provide power to VBUS from
VCC or from the internal charge pump. Set bit 5 in control
register 2 to 1 in both cases. Bit 5 in control register 2
controls a current-limited switch, preventing damage to
the device in the event of a VBUS short circuit.
An OTG B device (peripheral mode) can request a ses-
sion using SRP. One of the steps in implementing SRP
requires pulsing VBUS high for a controlled time. A 930Ω
resistor limits the current according to the OTG specifi-
cation. Pulse VBUS through the pullup resistor by assert-
ing bit 7 of control register 2. Prior to pulsing VBUS (bit
7), a B device first connects an internal pulldown resis-
tor to discharge VBUS below the session-end threshold.
The discharge current is limited by the 5kΩ resistor and
set by bit 6 of control register 2. An OTG A device must