beautypg.com

Rainbow Electronics MAX9860 User Manual

Page 35

background image

feature allows all registers to be read sequentially within
one continuous frame. A STOP (P) condition can be
issued after any number of read data bytes. If a STOP
condition is issued followed by another read operation,
the first data byte to be read is from register 0x00.

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 MAX9860’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 MAX9860 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
acknowledge from the master and then a STOP condi-
tion. Figure 11 illustrates the frame format for reading
one byte from the MAX9860. Figure 12 illustrates the
frame format for reading multiple bytes from the
MAX9860.

MAX9860

16-Bit Mono Audio Voice Codec

______________________________________________________________________________________

35

1 BYTE

AUTOINCREMENT INTERNAL

REGISTER ADDRESS POINTER

ACKNOWLEDGE FROM MAX9860

ACKNOWLEDGE FROM MAX9860

B1 B0

B3 B2

B5 B4

B7 B6

A

A

0

ACKNOWLEDGE FROM MAX9860

R/W

S

A

1 BYTE

ACKNOWLEDGE FROM MAX9860

B1 B0

B3 B2

B5 B4

B7 B6

P

A

SLAVE ADDRESS

REGISTER ADDRESS

DATA BYTE 1

DATA BYTE n

Figure 10. Writing N Bytes of Data to the MAX9860

ACKNOWLEDGE FROM MAX9860

1 BYTE

AUTOINCREMENT INTERNAL

REGISTER ADDRESS POINTER

ACKNOWLEDGE FROM MAX9860

NOT ACKNOWLEDGE FROM MASTER

A

A

P

A

0

ACKNOWLEDGE FROM MAX9860

R/W

S

A

R/W

REPEATED START

Sr

1

SLAVE ADDRESS

REGISTER ADDRESS

SLAVE ADDRESS

DATA BYTE

Figure 11. Reading One Byte of Data from the MAX9860

ACKNOWLEDGE FROM MAX9860

1 BYTE

AUTOINCREMENT INTERNAL

REGISTER ADDRESS POINTER

ACKNOWLEDGE FROM MAX9860

A

A

A

P

0

ACKNOWLEDGE FROM MAX9860

R/W

S

A

R/W

REPEATED START

Sr

1

SLAVE ADDRESS

REGISTER ADDRESS

SLAVE ADDRESS

DATA BYTE

Figure 12. Reading N Bytes of Data from the MAX9860