MAX7320 Maxim, MAX7320 Datasheet - Page 9

no-image

MAX7320

Manufacturer Part Number
MAX7320
Description
The MAX7320 2-wire serial-interfaced peripheral features eight push-pull outputs with selectable power-up logic states
Manufacturer
Maxim
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MAX7320AEE+
Manufacturer:
Maxim
Quantity:
883
Part Number:
MAX7320ATE+
Manufacturer:
Maxim
Quantity:
99
Part Number:
MAX7320ATE+T
Manufacturer:
MAXIM
Quantity:
2 842
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.
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+
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
Note the MAX7320 offers a different range of I
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.
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
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.
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
I
2
C Port Expander with Eight Push-Pull Outputs
_______________________________________________________________________________________
Reading from the MAX7320
Accessing the MAX7320
,
SDA, or SCL to
Slave Address
Acknowledge
2
C bus.
2
C slave
2
C
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.
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).
Figure 3. Bit Transfer
Figure 4. Acknowledge
TRANSMITTER
SDA
SCL
RECEIVER
SDA BY
SDA BY
SCL
CONDITION
START
DATA LINE STABLE;
S
DATA VALID
1
CHANGE OF DATA
ALLOWED
2
Writing to the MAX7320
FOR ACKNOWLEDGMENT
CLOCK PULSE
8
9
9

Related parts for MAX7320