The MAX7315 I2C-/SMBus-compatible serial interfaced
peripheral provides microprocessors with 8 I/O ports.
Each I/O port can be individually configured as either an
open-drain current-sinking output rated at 50mA at 5.5V,
or a logic input with transition detection. A ninth port can
be used for transition detection interrupt or as a generalpurpose output. The outputs are capable of directly driving LEDs, or providing logic outputs with external
resistive pullup up to 5.5V.
PWM current drive is integrated with 8 bits of control.
Four bits are global control and apply to all LED outputs
to provide coarse adjustment of current from fully off to
fully on in 14 intensity steps. Each output then has individual 4-bit control, which further divides the globally
set current into 16 more steps. Alternatively, the current
control can be configured as a single 8-bit control that
sets all outputs at once.
The MAX7315 is pin and software compatible with the
PCA9534 and PCA9554(A).
Each output has independent blink timing with two blink
phases. All LEDs can be individually set to be on or off
during either blink phase, or to ignore the blink control.
The blink period is controlled by a register.
The MAX7315 supports hot insertion. All port pins, the INT
output, SDA, SCL, and the slave address inputs ADO-2
remain high impedance in power-down (V+ = 0V) with up
to 6V asserted upon them.
The MAX7315 is controlled through the 2-wire I2C/SMBus
serial interface, and can be configured to one of 64 I2C
addresses.
Applications
LCD Backlights
LED Status Indication
Portable Equipment
Laptop Computers
Typical Application Circuit appears at end of data sheet.
Keypad Backlights
RGB LED Drivers
Cellular Phones
Features
♦ 400kbps, 2-Wire Serial Interface, 5.5V Tolerant
♦ 2V to 3.6V Operation
♦ Overall 8-Bit PWM LED Intensity Control
Global 16-Step Intensity Control
Plus Individual 16-Step Intensity Control
♦ Automatic Two-Phase LED Blinking
♦ 50mA Maximum Port Output Current
♦ Supports Hot Insertion
♦ Outputs Are 5.5V-Rated Open Drain
♦ Inputs Are Overvoltage Protected to 5.5V
♦ Transition Detection with Interrupt Output
♦ Low Standby Current (1.2µA typ; 3.3µA max)
♦ Tiny 3mm x 3mm, Thin QFN Package
♦ -40°C to +125°C Temperature Range
♦ All Ports Can Be Configured as Inputs or Outputs
Ordering Information
PART
MAX7315ATE -40°C to +125°C
MAX7315AEE -40°C to +125°C
MAX 7315AU E -40°C to +125°C
TEMP
RANGE
PINPACKAGE
16 Thin QFN
3mm x 3mm
x 0.8mm
16 QSOP
16 TSSOP
TOP
MARK
PKG
CODE
AAU T1633-4
——
——
Pin Configurations
TOP VIEW
SDA
13
14
V+
15
ADO
16
AD1
Pin Configurations continued at end of data sheet.
For pricing, delivery, and ordering information, please contact Maxim/Dallas Direct! at
1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com.
8-Port I/O Expander with LED Intensity
PARAMETER
SYMBOL
CONDITIONS
MIN
TYP
MAX
UNITS
Operating Supply VoltageV+2
3.6
V
Output Load External Supply
Voltage
V
EXT
0
5.5
V
TA= +25°C
1.2
2.3
TA= -40°C to +85°C
2.6
Standby Current
(Interface Idle, PWM Disabled)
I
+
SCL and SDA at V +; other
digital inp uts at V + or GN D;
PWM intensi ty contr ol disab led
TA= T
MIN
to T
MAX
3.3
µA
TA= +25°C7
12.1
TA= -40°C to +85°C
13.5
Supply Current
(Interface Idle, PWM Enabled)
I
+
SCL and SDA at V +; other
digital inp uts at V + or GN D;
PWM intensi ty contr ol enab led
TA= T
MIN
to T
MAX
14.4
µA
TA= +25°C4076
TA= -40°C to +85°C
78
Supply Current
(Interface Running, PWM
Disabled)
I
+
f
SCL
= 400kHz; other digital
inputs at V+ or GND; PWM
intensity control disabled
T
A
= T
MIN
to T
MAX
80
µA
TA= +25°C51
110
TA= -40°C to +85°C
117
Supply Current
(Interface Running, PWM
Enabled)
I
+
f
SCL
= 400kHz; other digital
inputs at V+ or GND; PWM
intensity control enabled
T
A
= T
MIN
to T
MAX
122
µA
Input High Voltage
SDA, SCL, AD0, AD1, AD2,
P0–P7
V
IH
0.7 ✕
V+
V
Input Low Voltage
SDA, SCL, AD0, AD1, AD2,
P0–P7
V
IL
0.3 ✕
V+
V
Input Leakage Current
SDA, SCL, AD0, AD1, AD2,
P0–P7
IIH, I
IL
Input = GND or V+
-0.2
+0.2
µA
Input Capacitance
SDA, SCL, AD0, AD1, AD2,
P0–P7
8pF
Control, Interrupt, and Hot-Insertion Protection
ABSOLUTE MAXIMUM RATINGS
Voltage (with respect to GND)
V+ .............................................................................-0.3V to +4V
SCL, SDA, AD0, AD1, AD2, P0–P7 ..........................-0.3V to +6V
INT/O8 .....................................................................-0.3V to +8V
DC Current on P0–P7, INT/O8 ............................................55mA
DC Current on SDA.............................................................10mA
Maximum GND Current
Continuous Power Dissipation (T
MAX7315
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
(Typical Operating Circuit, V+ = 2V to 3.6V, TA= T
(Note 1)
MIN
to T
, unless otherwise noted. Typical values are at V+ = 3.3V, TA= +25°C.)
MAX
MAX7315
Note 1: All parameters tested at TA= +25°C. Specifications over temperature are guaranteed by design.
Note 2: A master device must provide a hold time of at least 300ns for the SDA signal (referred to V
the undefined region of SCL’s falling edge.
Note 3: Guaranteed by design.
Note 4: C
Note 5: I
Note 6: Input filters on the SDA and SCL inputs suppress noise spikes less than 50ns.
= total capacitance of one bus line in pF. tRand tFmeasured between 0.3 x VDDand 0.7 x VDD.
b
≤ 6mA. Cb= total capacitance of one bus line in pF. tRand tFmeasured between 0.3 x VDDand 0.7 x VDD.
Address Inputs. Sets device slave address. Connect to either GND, V+,
SCL, or SDA to give 64 logic combinations. See Table 1.
4–7, 9–122–5, 7–10P0–P7Input/Output Ports. P0–P7 are open-drain I/Os rated at 5.5V, 50mA.
86GNDGround. Do not sink more than 190mA into the GND pin.
1311INT/O8
Output Port. Open-drain output rated at 7.0V, 50mA. Configurable as
interrupt output or general-purpose output.
1412SCLI2C-Compatible Serial Clock Input
1513SDAI2C-Compatible Serial Data I/O
1614V+
Positive Supply Voltage. Bypass V+ to GND with a 0.047µF ceramic
capacitor
—PAD
Exposed pad
Exposed Pad on Package Underside. Connect to GND.
D
C
K
Q
Q
FF
DATA FROM
SHIFT REGISTER
DATA FROM
SHIFT REGISTER
WRITE
CONFIGURATION
PULSE
WRITE PULSE
READ PULSE
CONFIGURATION
REGISTER
D
C
K
Q
Q
FF
INPUT PORT
REGISTER
D
C
K
Q
Q
FF
OUTPUT
PORT
REGISTER
OUTPUT PORT
REGISTER DATA
I/O PIN
Q2
GND
INPUT PORT
REGISTER DATA
TO INT
Control, Interrupt, and Hot-Insertion Protection
Pin Description
MAX7315
Figure 1. Simplified Schematic of I/O Ports
The MAX7315 is a general-purpose input/output (GPIO)
peripheral that provides eight I/O ports, P0–P7, controlled through an I2C-compatible serial interface. A 9th
output-only port, INT/O8, can be configured as an interrupt output or as a general-purpose output port. All output ports sink loads up to 50mA connected to external
supplies up to 5.5V, independent of the MAX7315’s
supply voltage. The MAX7315 is rated for a ground current of 190mA, allowing all nine outputs to sink 20mA at
the same time. Figure 1 shows the output structure of
the MAX7315. The ports default to inputs on power-up.
Port Inputs and Transition Detection
An input ports register reflects the incoming logic levels
of the port pins, regardless of whether the pin is
defined as an input or an output. Reading the input
8-Port I/O Expander with LED Intensity
SCL
SDA
t
R
t
F
t
BUF
START
CONDITION
STOP
CONDITION
REPEATED START CONDITION
START CONDITION
t
SU,STO
t
HD,STA
t
SU,STA
t
HD,DAT
t
SU,DAT
t
LOW
t
HIGH
t
HD,STA
Control, Interrupt, and Hot-Insertion Protection
ports register latches the current-input logic level of the
affected eight ports. Transition detection allows all ports
configured as inputs to be monitored for changes in
their logic status. The action of reading the input ports
register samples the corresponding 8 port bits’ input
condition. This sample is continuously compared with
the actual input conditions. A detected change in input
condition causes the INT/O8 interrupt output to go low,
if configured as an interrupt output. The interrupt is
cleared either automatically if the changed input returns
to its original state, or when the input ports register is
read.
The INT/O8 pin can be configured as either an interrupt
output or as a 9th output port with the same static or
blink controls as the other eight ports (Table 4).
Port Output Control and LED Blinking
The blink phase 0 register sets the output logic levels of
the eight ports P0–P7 (Table 8). This register controls
the port outputs if the blink function is disabled. A duplicate register, the blink phase 1 register, is also used if
the blink function is enabled (Table 9). In blink mode,
the port outputs can be flipped between using the blink
phase 0 register and the blink phase 1 register using
software control (the blink flip flag in the configuration
register) (Table 4).
PWM Intensity Control
The MAX7315 includes an internal oscillator, nominally
32kHz, to generate PWM timing for LED intensity control. PWM intensity control can be enabled on an output-by-output basis, allowing the MAX7315 to provide
any mix of PWM LED drives and glitch-free logic outputs (Table 10). PWM can be disabled entirely, in which
case all output ports are static and the MAX7315 operating current is lowest because the internal oscillator is
turned off.
PWM intensity control uses a 4-bit master control and 4
bits of individual control per output (Tables 13, 14). The
4-bit master control provides 16 levels of overall intensity control, which applies to all PWM-enabled output
ports. The master control sets the maximum pulse width
from 1/15 to 15/15 of the PWM time period. The individual settings comprise a 4-bit number further reducing
the duty cycle to be from 1/16 to 15/16 of the time window set by the master control.
For applications requiring the same PWM setting for all
output ports, a single global PWM control can be used
instead of all the individual controls to simplify the control software and provide 240 steps of intensity control
(Tables 10 and 13).
Standby Mode
When the serial interface is idle and the PWM intensity
control is unused, the MAX7315 automatically enters
standby mode. If the PWM intensity control is used, the
operating current is slightly higher because the internal
PWM oscillator is running. When the serial interface is
active, the operating current also increases because
the MAX7315, like all I2C slaves, has to monitor every
transmission.
Serial Interface
Serial Addressing
The MAX7315 operates as a slave that sends and
receives data through an I2C-compatible 2-wire interface. The interface uses a serial data line (SDA) and a
serial clock line (SCL) to achieve bidirectional communication between master(s) and slave(s). A master (typically a microcontroller) initiates all data transfers to and
from the MAX7315 and generates the SCL clock that
synchronizes the data transfer (Figure 2).
The MAX7315 SDA line operates as both an input and
an open-drain output. A pullup resistor, typically 4.7kΩ,
is required on SDA. The MAX7315 SCL line operates
only as an input. A pullup resistor, typically 4.7kΩ, is
required on SCL if there are multiple masters on the 2wire interface, or if the master in a single-master system
has an open-drain SCL output.
Each transmission consists of a START condition
(Figure 3) sent by a master, followed by the MAX7315
7-bit slave address plus R/W bit, a register address
byte, one or more data bytes, and finally a STOP condition (Figure 3).
MAX7315
Start and Stop Conditions
Both SCL and SDA remain high when the interface is
not busy. A master signals the beginning of a transmission with a START (S) condition by transitioning SDA
Figure 3. Start and Stop Conditions
Figure 4. Bit Transfer
Figure 5. Acknowledge
from high to low while SCL is high. When the master
has finished communicating with the slave, it issues a
STOP (P) condition by transitioning SDA from low to
high while SCL is high. The bus is then free for another
transmission (Figure 3).
Bit Transfer
One data bit is transferred during each clock pulse.
The data on SDA must remain stable while SCL is high
(Figure 4).
Acknowledge
The acknowledge bit is a clocked 9th bit that the recipient uses to handshake receipt of each byte of data
(Figure 5). Thus, each byte transferred effectively
requires 9 bits. The master generates the 9th clock
pulse, and the recipient pulls down SDA during the
acknowledge clock pulse so the SDA line is stable low
during the high period of the clock pulse. When the
master is transmitting to the MAX7315, the device generates the acknowledge bit because the MAX7315 is
the recipient. When the MAX7315 is transmitting to the
master, the master generates the acknowledge bit
because the master is the recipient.
Slave Address
The MAX7315 has a 7-bit long slave address (Figure 6).
The eighth bit following the 7-bit slave address is the
R/W bit. The R/W bit is low for a write command, high
for a read command.
The slave address bits A6 through A0 are selected by
the address inputs AD0, AD1, and AD2. These pins can
be connected to GND, V+, SDA, or SCL. The MAX7315
has 64 possible slave addresses (Table 1) and, therefore, a maximum of 64 MAX7315 devices can be controlled independently from the same interface.
Message Format for Writing the MAX7315
A write to the MAX7315 comprises the transmission of
the MAX7315’s slave address with the R/W bit set to
zero, followed by at least 1 byte of information. The first
byte of information is the command byte. The command
byte determines which register of the MAX7315 is to be
written to by the next byte, if received (Table 2). If a
STOP condition is detected after the command byte is
received, then the MAX7315 takes no further action
beyond storing the command byte.