max97002 Maxim Integrated Products, Inc., max97002 Datasheet - Page 32

no-image

max97002

Manufacturer Part Number
max97002
Description
Audio Subsystem With Mono Class D Speaker And Class H Headphone Amplifiers
Manufacturer
Maxim Integrated Products, Inc.
Datasheet
Audio Subsystem with Mono Class D
Speaker and Class H Headphone Amplifiers
Figure 10. Writing One Byte of Data to the MAX97002
Figure 11. Writing n-Bytes of Data to the MAX97002
Send the slave address with the R/W bit set to 1 to initiate
a read operation. The MAX97002 acknowledges receipt
of its slave address by pulling SDA low during the 9th
SCL clock pulse. A START (S) command followed by
a read command resets the address pointer to register
0x00.
The first byte transmitted from the MAX97002 is the con-
tents of register 0x00. Transmitted data is valid on the
rising edge of SCL. The address pointer autoincrements
after each read data byte. This autoincrement feature
allows all registers to be read sequentially within one
continuous frame. A STOP condition can be issued after
any number of read data bytes. If a STOP (P) condition is
issued followed by another read operation, the first data
byte to be read is from register 0x00.
32
S
ACKNOWLEDGE FROM MAX97002
S
SLAVE ADDRESS
SLAVE ADDRESS
ACKNOWLEDGE FROM MAX97002
R/W
0
A
R/W
ACKNOWLEDGE FROM MAX97002
0
REGISTER ADDRESS
Read Data Format
A
ACKNOWLEDGE FROM MAX97002
REGISTER ADDRESS
ACKNOWLEDGE FROM MAX97002
A
B7 B6
The address pointer can be preset to a specific register
before a read command is issued. The master presets
the address pointer by first sending the MAX97002’s
slave address with the R/W bit set to 0 followed by the
register address. A REPEATED START (Sr) condition is
then sent followed by the slave address with the R/W bit
set to 1. The MAX97002 then transmits the contents of
the specified register. The address pointer autoincre-
ments after transmitting the first byte.
The master acknowledges receipt of each read byte
during the acknowledge clock pulse. The master must
acknowledge all correctly received bytes except the last
byte. The final byte must be followed by a not acknowl-
edge from the master and then a STOP condition. Figure
12 illustrates the frame format for reading one byte from
the MAX97002. Figure 13 illustrates the frame format for
reading multiple bytes from the MAX97002.
B5 B4
DATA BYTE 1
1 BYTE
B3 B2
REGISTER ADDRESS POINTER
AUTOINCREMENT INTERNAL
B1 B0
A
B7
A
B6
ACKNOWLEDGE FROM MAX97002
ACKNOWLEDGE FROM MAX97002
B5
B7 B6
DATA BYTE
B4
1 BYTE
B5 B4
B3
DATA BYTE n
1 BYTE
B2
REGISTER ADDRESS POINTER
B3 B2
AUTOINCREMENT INTERNAL
B1
B1 B0
B0
A
A
P
P

Related parts for max97002