English
Language : 

MAX3420E_15 Datasheet, PDF (5/22 Pages) Maxim Integrated Products – USB Peripheral Controller with SPI Interface
MAX3420E
USB Peripheral Controller with SPI Interface
Pin Description (continued)
PIN
TQFN-EP LQFP
NAME
INPUT/
OUTPUT
FUNCTION
USB Transceiver Power-Supply Input. Connect VCC to a positive 3.3V power
17
22, 23
VCC
Input supply. Bypass VCC to ground with a 1.0µF ceramic capacitor as close to the
VCC pin as possible.
VBUS Comparator Input. VBCOMP is internally connected to a voltage
18
24
VBCOMP
Input
comparator to allow the SPI master to detect (through an interrupt or checking a
register bit) the presence or loss of power on VBUS. Bypass VBCOMP to ground
with a 1.0µF ceramic capacitor.
Crystal Oscillator Input. Connect XI to one side of a parallel resonant 12MHz
19
26
XI
Input ±0.25% crystal and a capacitor to GND. XI can also be driven by an external
Clock referenced to VCC.
Crystal Oscillator Output. Connect XO to the other side of a parallel resonant
20
27
XO
Output 12MHz ±0.25% crystal and a capacitor to GND. Leave XO unconnected if XI is
driven with an external source.
21
29
GPIN0
General-Purpose Inputs. GPIN3–GPIN0 are connected to VL with internal pullup
22
23
30
31
GPIN1
GPIN2
Input
resistors. GPIN3–GPIN0 logic levels are referenced to the voltage on VL. The
SPI master samples GPIN3–GPIN0 states by reading bit 7 through bit 4 of the
24
32
GPIN3
IOPINS (R20) register. Writing to these bits has no effect.
—
9, 16, 25,
28
N.C.
— No Internal Connection
—
—
EP
Input Exposed Paddle (TQFN only). Connect EP to GND.
Register Description
The SPI master controls the MAX3420E by reading and
writing 21 registers (Table 1). For a complete description
of register contents, please refer to the “MAX3420E
Programming Guide.” A register access consists of the
SPI master first writing an SPI command byte, followed
by reading or writing the contents of the addressed
register. All SPI transfers are MSB first. The command
byte contains the register address, a direction bit (read
= 0, write = 1), and the ACKSTAT bit (Figure 4). The
SPI master addresses the MAX3420E registers by writ-
ing the binary value of the register number in the Reg4
through Reg0 bits of the command byte. For example,
to access the IOPINS (R20) register, the Reg4 through
Reg0 bits would be as follows: Reg4 = 1, Reg3 = 0,
Reg2 = 1, Reg1 = 0, Reg0 = 0. The DIR (direction) bit
determines the direction for the data transfer. DIR = 1
means the data byte(s) will be written to the register,
and DIR = 0 means the data byte(s) will be read from
the register. The ACKSTAT bit sets the ACKSTAT bit in
the EPSTALLS (R9) register. The SPI master sets this
bit to indicate that it has finished servicing a CONTROL
transfer. Since the bit is frequently used, having it in the
SPI command byte improves firmware efficiency. In SPI
full-duplex mode, the MAX3420E clocks out eight USB
status bits as the command byte is clocked in (Figure 5).
In half-duplex mode, these status bits are accessed
in the normal way, as register bits.
b7
b6
b5
b4
b3
b2
Reg4
Reg3
Reg2
Reg1
Reg0
0
Figure 4. SPI Command Byte
b1
b0
DIR
ACKSTAT
b7
b6
b5
b4
b3
b2
b1
SUSPIRQ
URESIRQ SUDAVIRQ IN3BAVIRQ IN2BAVIRQ OUT1DAVIRQ OUT0DAVIRQ
Figure 5. USB Status Bits Clocked Out as First Byte of Every Transfer (Full-Duplex Mode Only)
b0
IN0BAVIRQ
www.maximintegrated.com
Maxim Integrated │  5