beautypg.com

Max9867 ultra-low power stereo audio codec, C serial interface – Rainbow Electronics MAX9867 User Manual

Page 46

background image

MAX9867

Ultra-Low Power Stereo Audio Codec

46

______________________________________________________________________________________

I

2

C Serial Interface

The MAX9867 features an I

2

C/SMBus-compatible,

2-wire serial interface consisting of a serial-data line
(SDA) and a serial-clock line (SCL). SDA and SCL facili-
tate communication between the MAX9867 and the mas-
ter at clock rates up to 400kHz. Figure 9 shows the
2-wire interface timing diagram. The master generates
SCL and initiates data transfer on the bus. The master
device writes data to the MAX9867 by transmitting the
proper slave address followed by the register address
and then the data word. Each transmit sequence is
framed by a START (S) or REPEATED START (Sr) condi-
tion and a STOP (P) condition. Each word transmitted to
the MAX9867 is 8 bits long and is followed by an
acknowledge clock pulse. A master reading data from
the MAX9867 transmits the proper slave address
followed by a series of nine SCL pulses. The MAX9867
transmits data on SDA in sync with the master-generated
SCL pulses. The master acknowledges receipt of each
byte of data. Each read sequence is framed by a START
or REPEATED START condition, a not acknowledge, and
a STOP condition. SDA operates as both an input and an
open-drain output. A pullup resistor, typically greater
than 500Ω is required on SDA. SCL operates only as an
input. A pullup resistor, typically greater than 500Ω, is

required on SCL if there are multiple masters on the bus,
or if the single master has an open-drain SCL output.
Series resistors in line with SDA and SCL are optional.
Series resistors protect the digital inputs of the
MAX9867 from high-voltage spikes on the bus lines, and
minimize crosstalk, and undershoot of the bus signals.

Bit Transfer

One data bit is transferred during each SCL cycle. The
data on SDA must remain stable during the high period
of the SCL pulse. Changes in SDA while SCL is high
are control signals. See the

START and STOP

Conditions

section.

START and STOP Conditions

SDA and SCL idle high when the bus is not in use. A
master initiates communication by issuing a START con-
dition. A START condition is a high-to-low transition on
SDA with SCL high. A STOP condition is a low-to-high
transition on SDA while SCL is high (Figure 10). A START
condition from the master signals the beginning of a
transmission to the MAX9867. The master terminates
transmission, and frees the bus, by issuing a STOP con-
dition. The bus remains active if a REPEATED START
condition is generated instead of a STOP condition.

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

t

SP

Figure 9. 2-Wire Interface Timing Diagram

SCL

SDA

S

Sr

P

Figure 10. START, STOP, and REPEATED START Conditions