MAX7327
I
2
C Port Expander with 12 Push-Pull
Outputs and 4 Open-Drain I/Os
10 ______________________________________________________________________________________
Serial Interface
Serial Addressing
The MAX7327 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). The master initiates all data transfers to and
from the MAX7327 and generates the SCL clock that syn-
chronizes the data transfer (Figure 1).
SDA operates as both an input and an open-drain out-
put. A pullup resistor, typically 4.7kΩ, is required on
SDA. SCL operates only as an input. A pullup resistor,
typically 4.7kΩ, is required on SCL if there are multiple
masters on the 2-wire interface, or if the master in a sin-
gle-master system has an open-drain SCL output.
Each transmission consists of a START condition sent
by a master, followed by the MAX7327’s 7-bit slave
addresses plus R/W bits, 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).
SDA
SCL
DATA LINE STABLE;
DATA VALID
CHANGE OF DATA
ALLOWED
Figure 3. Bit Transfer
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
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 9th 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 transmit-
ting to the MAX7327, the MAX7327 generates the
acknowledge bit because the device is the recipient.
When the MAX7327 is transmitting to the master, the
master generates the acknowledge bit because the
master is the recipient.
Slave Address
The MAX7327 has two different 7-bit slave addresses
(Figure 5). The addresses are different to communicate
to the eight push-pull outputs, O8-O15, or the other
eight I/Os. The eighth 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 first (A6), second (A5), and third (A4) bits of the
MAX7327 slave address are always 1, 1, and 0 (O0,
O1, P2–P5, O6, O7) or 1, 0, and 1 (O8–O15). Connect
AD0 and AD2 to GND, V+
,
SDA, or SCL to select slave
address bits A3, A2, A1, and A0. The MAX7327 has 16
possible slave addresses (Tables 2 and 3), allowing up
to 16 MAX7327 devices on an I
2
C bus.
Accessing the MAX7327
The MAX7327 is a combination of MAX7320 and
MAX7323. The group A of eight ports (O0, O1, P2–P5,
O6, and O7) corresponding to those of the MAX7323 and
the group B of eight ports (O8–O15) corresponding to
those of the MAX7320 are read/write separately through
their own addresses as shown by Tables 2 and 3,
respectively.
A single-byte read from the group A ports of the
MAX7327 returns the status of the four I/O ports and
the four output ports (read back as inputs), and clear
both the internal transition flags and the INT output
when the master acknowledges the slave address byte.
A 2-byte read from the group A ports of the MAX7327
returns the status of the four I/O ports and the four out-
put ports (as for a single byte read), followed by the
four transition flags for the four I/O ports. The internal
transition flags and the INT output are cleared automat-
ically when the master acknowledges the slave
address byte (but the previous transition flag data is
sent as the second byte).
A multibyte read (more than 2 bytes before the I
2
C
STOP bit) from the group A ports of the MAX7327
repeatedly returns the port data, alternating with the
transition flags. As the port data is resampled for each
transmission, and the transition flags are reset each
time, a multibyte read continuously returns the current
data and identifies any changing I/O ports.
If a port input data change occurs during the read
sequence, then INT is reasserted during the I
2
C STOP
bit. The MAX7327 does not generate another interrupt
during a single-byte or multibyte MAX7327 read routine.
Input port data is sampled during the preceding I
2
C
acknowledge bit (the acknowledge bit for the I
2
C slave
address in the case of a single-byte or 2-byte read).
MAX7327
I
2
C Port Expander with 12 Push-Pull
Outputs and 4 Open-Drain I/Os
______________________________________________________________________________________ 11
SCL
SDA BY
TRANSMITTER
CLOCK PULSE
FOR ACKNOWLEDGEMENT
START
CONDITION
SDA BY
RECEIVER
12 89
S
Figure 4. Acknowledge
SDA
SCL
A5
MSB
LSB
ACKA4 A11A3A0A2 R/W
Figure 5. Slave Address
MAX7327
I
2
C Port Expander with 12 Push-Pull
Outputs and 4 Open-Drain I/Os
12 ______________________________________________________________________________________
SCL
MAX7327 SLAVE ADDRESS
SA
P
1
PORTS
ACKNOWLEDGE FROM MAX7327
NO ACKNOWLEDGE
FROM MASTER
PORT SNAPSHOT
t
IV
t
PH
t
IR
N
O0O1P2P3P4P5O6O7
D0D1D2D3D4D5D6D7
PORT SNAPSHOT
t
PS
t
IP
INT REMAINS HIGH UNTIL STOP CONDITION
INT OUTPUT
R/W
Figure 6. Reading Group A Ports of the MAX7327 (1 Data Byte)
A single-byte read from the group B ports of the
MAX7327 returns the status of the eight output ports,
read back as inputs.
A 2-byte read from the group B ports of the MAX7327
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) from the group B ports of the MAX7327
repeatedly returns the status of the eight output ports,
read back as inputs.
A single-byte write to the group A or B ports of the
MAX7327 sets the logic state of all eight ports.
A multibyte write to the group A or B ports of the
MAX7327 repeatedly sets the logic state of all eight ports.
Reading the MAX7327
A read from the group A ports of the MAX7327 starts
with the master transmitting the port group’s slave
address with the R/W bit set to high. The MAX7327
acknowledges the slave address, and samples the sta-
tus of the ports during the acknowledge bit. INT goes
high during the slave address acknowledge. The mas-
ter can then issue a STOP condition after the acknowl-
edge. The snapshot is taken, and the INT status
remains unchanged, if the master terminates the serial
transition with a no-acknowledge.
When the master reads one byte from the group A
ports of the MAX7327 and subsequently issues a STOP
condition (Figure 6), the MAX7327 transmits the current
port data, clears the change flags, and resets the tran-

MAX7327AATG+T

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Interface - I/O Expanders I2C PORT EXP&ER w/ 12 PUSH-PULL OUTPUTS
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet