beautypg.com

Max9877 – Rainbow Electronics MAX9877 User Manual

Page 25

background image

MAX9877

A

0

SLAVE ADDRESS

REGISTER ADDRESS

DATA BYTE

ACKNOWLEDGE FROM MAX9877

R/W

1 BYTE

AUTOINCREMENT INTERNAL

REGISTER ADDRESS POINTER

ACKNOWLEDGE FROM MAX9877

ACKNOWLEDGE FROM MAX9877

B1

B0

B3

B2

B5

B4

B7

B6

S

A

A

P

Figure 9. Writing One Byte of Data to the MAX9877

1

SCL

START

CONDITION

SDA

2

8

9

CLOCK PULSE FOR

ACKNOWLEDGMENT

ACKNOWLEDGE

NOT ACKNOWLEDGE

Figure 8. Acknowledge

Low RF Susceptibility, Mono Audio

Subsystem with DirectDrive Headphone Amplifier

______________________________________________________________________________________

25

Early STOP Conditions

The MAX9877 recognizes a STOP condition at any
point during data transmission except if the STOP con-
dition occurs in the same high pulse as a START condi-
tion. For proper operation, do not send a STOP
condition during the same SCL high pulse as the
START condition.

Slave Address

The MAX9877 is preprogrammed with a slave address
of 1001101R/(W). The address is defined as the seven
most significant bits (MSBs) followed by the Read/Write
bit. Setting the Read/Write bit to 1 configures the
MAX9877 for read mode. Setting the Read/Write bit to 0
configures the MAX9877 for write mode. The address is
the first byte of information sent to the MAX9877 after
the START condition.

Acknowledge

The acknowledge bit (ACK) is a clocked 9th bit that the
MAX9877 uses to handshake receipt each byte of data
when in write mode (see Figure 8). The MAX9877 pulls
down SDA during the entire master-generated 9th
clock pulse if the previous byte is successfully
received. Monitoring ACK allows for detection of unsuc-
cessful data transfers. An unsuccessful data transfer

occurs if a receiving device is busy or if a system fault
has occurred. In the event of an unsuccessful data
transfer, the bus master may retry communication.

The master pulls down SDA during the ninth clock
cycle to acknowledge receipt of data when the
MAX9877 is in read mode. An acknowledge is sent by
the master after each read byte to allow data transfer to
continue. A not acknowledge is sent when the master
reads the final byte of data from the MAX9877, followed
by a STOP condition.

Write Data Format

A write to the MAX9877 includes transmission of a
START condition, the slave address with the R/W bit set
to 0, one byte of data to configure the internal register
address pointer, one or more bytes of data, and a
STOP condition. Figure 9 illustrates the proper frame
format for writing one byte of data to the MAX9877.
Figure 10 illustrates the frame format for writing n-bytes
of data to the MAX9877.

The slave address with the R/W bit set to 0 indicates
that the master intends to write data to the MAX9877.
The MAX9877 acknowledges receipt of the address
byte during the master-generated 9th SCL pulse.