
I
2
C COMPATIBLE INTERFACE
I
2
C Signals
In I
2
C mode the LP3954 pin SCK is used for the I
2
C clock SCL
and the pin SS is used for the I
2
C data signal SDA. Both these
signals need a pull-up resistor according to I
2
C specification.
SI pin is the address select pin. I
2
C address for LP3954 is 54h
when SI = 0 and 55h when SI = 1. Unused pin SO can be left
unconnected.
I
2
C Data Validity
The data on SDA line must be stable during the HIGH period
of the clock signal (SCL). In other words, state of the data line
can only be changed when CLK is LOW.
20132249
I
2
C Signals: Data Validity
I
2
C Start and Stop Conditions
START and STOP bits classify the beginning and the end of
the I
2
C session. START condition is defined as SDA signal
transitioning from HIGH to LOW while SCL line is HIGH.
STOP condition is defined as the SDA transitioning from LOW
to HIGH while SCL is HIGH. The I
2
C master always generates
START and STOP bits. The I
2
C bus is considered to be busy
after START condition and free after STOP condition. During
data transmission, I
2
C master can generate repeated START
conditions. First START and repeated START conditions are
equivalent, function-wise.
20132250
Transferring Data
Every byte put on the SDA line must be eight bits long, with
the most significant bit (MSB) being transferred first. Each
byte of data has to be followed by an acknowledge bit. The
acknowledge related clock pulse is generated by the master.
The transmitter releases the SDA line (HIGH) during the ac-
knowledge clock pulse. The receiver must pull down the SDA
line during the 9
th
clock pulse, signifying an acknowledge. A
receiver which has been addressed must generate an ac-
knowledge after each byte has been received.
After the START condition, the I
2
C master sends a chip ad-
dress. This address is seven bits long followed by an eighth
bit which is a data direction bit (R/W). The LP3954 address is
54h or 55H as selected with SI pin. For the eighth bit, a “0”
indicates a WRITE and a “1” indicates a READ. The second
byte selects the register to which the data will be written. The
third byte contains data to write to the selected register.
20132251
I
2
C Chip Address
Register changes take an effect at the SCL rising edge during
the last ACK from slave.
20132252
w = write (SDA = “0”)
r = read (SDA = “1”)
ack = acknowledge (SDA pulled down by either master or slave)
rs = repeated start
id = 7-bit chip address, 54h (SI=0) or 55h (SI=1) for LP3954.
I
2
C Write Cycle
www.national.com
32
L