The RST input clears the serial interface in case of a
hung bus, terminating any serial transaction to or from
the MAX7320.
When the MAX7320 is read through the serial interface,
the actual logic states at the ports are read back.
Output port power-up logic states are selected by the
address select inputs AD0 and AD2. Ports default to
logic-high or logic-low on power-up in groups of four
(see Table 3).
RST
Input
The RST input voids any I
2
C transaction involving the
MAX7320 and forces the MAX7320 into the I
2
C STOP
condition. A reset does not change the contents of the
output register. RST is overvoltage tolerant to +5.5V.
Standby Mode
When the serial interface is idle, the MAX7320 automat-
ically enters standby mode, drawing minimal supply
current.
Slave Address and Power-Up
Default Logic States
Address inputs AD0 and AD2 determine the MAX7320
slave address and set the power-up output logic states.
Power-up logic states are set in groups of four (see
Table 3). The MAX7320 uses a different range of slave
addresses (101xxxx) than the MAX7319, MAX7321,
MAX7322, and MAX7323 (110xxxx).
The MAX7320 slave address is determined on each I
2
C
transmission, regardless of whether the transmission is
actually addressing the MAX7320. The MAX7320 distin-
guishes whether address inputs AD0 and AD2 are con-
nected to SDA or SCL instead of fixed logic levels V+
or GND during this transmission. This means that the
MAX7320 slave address can be configured dynamical-
ly in the application without cycling the device supply.
On initial power-up, the MAX7320 cannot decode the
address inputs AD0 and AD2 fully until the first I
2
C
transmission. AD0 and AD2 initially appear to be con-
nected to V+ or GND. This is important because the
address selection determines the power-up logic levels
of the output ports. However, at power-up, the I
2
C SDA
and SCL bus interface lines are high impedance at the
pins of every device (master or slave) connected to the
bus, including the MAX7320. This is guaranteed as part
of the I
2
C specification. Therefore, address inputs AD0
and AD2 that are connected to SDA or SCL normally
appear at power-up to be connected to V+. The power-
up output state selection logic uses AD0 to select the
power-up state for ports O3–O0, and uses AD2 to
select the power-up state for ports O7–O4. The rule is
that a logic-high, SDA, or SCL connection selects a
MAX7320
I
2
C Port Expander with Eight Push-Pull Outputs
_______________________________________________________________________________________ 7
PIN
CONNECTION
DEVICE ADDRESS OUTPUTS POWER-UP DEFAULT
AD2 AD0 A6 A5 A4 A3 A2 A1 A0 O7 O6 O5 O4 O3 O2 O1 O0
SCLGND101000011110000
SCLV+101000111111111
SCLSCL101001011111111
SCLSDA101001111111111
SDAGND101010011110000
SDAV+101010111111111
SDASCL101011011111111
SDASDA101011111111111
GNDGND101100000000000
GND V+ 1 0 1100100001111
GNDSCL101101000001111
GNDSDA101101100001111
V+GND101110011110000
V+V+101110111111111
V+SCL101111011111111
V+SDA101111111111111
Table 3. MAX7320 Address Map
MAX7320
logic-high power-up state, and a logic-low selects a
logic-low power-up state for each set of four ports (see
Table 3). The output power-up logic level configuration
is correct for a standard I
2
C configuration, where SDA
or SCL appear to be connected to V+ by the external
I
2
C pullups.
There are circumstances where the assumption that
SDA = SCL = V+ on power-up is not true; for example,
in true hot-swap applications in which there is legiti-
mate bus activity during power-up. Also, if SDA and
SCL are terminated with pullup resistors to a different
supply voltage than the MAX7320’s supply, and if that
pullup supply rises later than the MAX7320’s, then SDA
or SCL may appear at power-up to be connected to
GND. In such applications, use the four address combi-
nations that are selected by connecting address inputs
AD0 and AD2 to GND or V+ (shown in bold in Table 3).
These selections are guaranteed to be correct at
power-up, independent of SDA and SCL behavior. If
one of the other 12 address combinations is used, be
aware that unexpected port power-up default states
may occur until the first I
2
C transmission (to any device,
not necessarily the MAX7320).
Port Outputs
Write one byte to the MAX7320 to set all output port
states simultaneously.
Serial Interface
Serial-Addressing
The MAX7320 operates as a slave that sends and
receives data through an I
2
C 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 initiates all data trans-
fers to and from the MAX7320, and generates the SCL
clock that synchronizes the data transfer (Figure 1).
SDA operates as both an input and an open-drain output.
A pullup resistor, 4.7kΩ (typ), is required on SDA. SCL
operates only as an input. A pullup resistor, 4.7kΩ (typ),
is required on SCL if there are multiple masters on the 2-
wire interface, or if the master in a single-master system
has an open-drain SCL output.
Each transmission consists of a START condition sent
by a master, followed by the MAX7320’s 7-bit slave
address plus R/W bit, one or more data bytes, and
finally a STOP condition (Figure 2).
START and STOP Conditions
Both SCL and SDA remain high when the interface is
not busy. A master signals the beginning of a transmis-
sion with a START (S) condition by transitioning SDA
from high to low while SCL is high. When the master
has finished communicating with the slave, the master
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 2).
Bit Transfer
One data bit is transferred during each clock pulse.
The data on SDA must remain stable while SCL is high
(Figure 3).
I
2
C Port Expander with Eight Push-Pull Outputs
8 _______________________________________________________________________________________
SCL
SDA
t
R
t
F
t
VD,DAT
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
Figure 1. 2-Wire Serial-Interface Timing Details
SDA
SCL
START
CONDITION
STOP
CONDITION
SP
Figure 2. START and STOP Conditions
Acknowledge
The acknowledge bit is a clocked 9th bit the recipient
uses to acknowledge receipt of each byte of data
(Figure 4). Each byte transferred effectively requires 9
bits. The master generates the ninth clock pulse, and
the recipient pulls down SDA during the acknowledge
clock pulse, such that the SDA line is stable low during
the high period of the clock pulse. When the master is
transmitting to the MAX7320, the device generates the
acknowledge bit because the MAX7320 is the recipi-
ent. When the MAX7320 is transmitting to the master,
the master generates the acknowledge bit because the
master is the recipient.
Slave Address
The MAX7320 has a 7-bit slave address (Figure 5). The
8th bit following the 7-bit slave address is the R/W bit. It is
low for a write command, and high for a read command.
The 1st (A6), 2nd (A5), and 3rd (A4) bits of the
MAX7320 slave address are always 1, 0, and 1.
Connect AD0 and AD2 to GND, V+
,
SDA, or SCL to
select the slave address bits A3, A2, A1, and A0. The
MAX7320 has 16 possible slave addresses (Table 3),
allowing up to 16 MAX7320 devices on an I
2
C bus.
Note the MAX7320 offers a different range of I
2
C slave
addresses from the MAX7319, MAX7321, MAX7322 and
MAX7323, for which 1st (A6), 2nd (A5), and 3rd (A4)
bits of the slave address are always 1, 1, and 0.
Accessing the MAX7320
A single-byte read from the MAX7320 returns the sta-
tus of the eight output ports, read back as inputs.
A 2-byte read repeatedly returns the status of the eight
output ports, read back as inputs.
A multibyte read (more than 2 bytes before the I
2
C
STOP bit) repeatedly returns the status of the eight out-
put ports, read back as inputs.
A single-byte write to the MAX7320 sets the logic state
of all eight outputs.
A multibyte write to the MAX7320 repeatedly sets the
logic state of all eight outputs.
Reading from the MAX7320
A read from the MAX7320 starts with the master trans-
mitting the MAX7320’s slave address with the R/W bit
set high. The MAX7320 acknowledges the slave
address, and samples the logic state of the output
ports during the acknowledge bit. The master can read
one or more bytes from the MAX7320 and then issue a
STOP condition (Figure 6). The MAX7320 transmits the
current port data, read back from the actual port out-
puts (not the port output latches) during the acknowl-
edge. If a port is forced to a logic state other than its
programmed state, the read back reflects this. If driving
a capacitive load, readback port level verification algo-
rithms may need to take the RC rise/fall time into
account.
Typically, the master reads one byte from the MAX7320,
then issues a STOP condition (Figure 6). However, the
master can read 2 or more bytes from the MAX7320,
then issue a STOP condition. In this case, the MAX7320
resamples the port outputs during each acknowledge
and transmits the new data each time.
Writing to the MAX7320
A write to the MAX7320 starts with the master transmit-
ting the MAX7320’s slave address with the R/W bit set
low. The MAX7320 acknowledges the slave address
and samples the ports during the acknowledge bit. The
master can transmit one or more bytes of data. The
MAX7320 acknowledges each subsequent byte of data
and updates the output ports until the master issues a
STOP condition (Figure 7).
MAX7320
I
2
C Port Expander with Eight Push-Pull Outputs
_______________________________________________________________________________________ 9
SDA
SCL
DATA LINE STABLE;
DATA VALID
CHANGE OF DATA
ALLOWED
Figure 3. Bit Transfer
SCL
SDA BY
TRANSMITTER
CLOCK PULSE
FOR ACKNOWLEDGMENT
START
CONDITION
SDA BY
RECEIVER
12 89
S
Figure 4. Acknowledge

MAX7320AEE+T

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Interface - I/O Expanders I2C Port Expander w/8 Push-Pull Out
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet