FEDL22660-01
ML22660
■
Function description
●
I
2
C Command Interface
This serial interface conforms to the I
2
C bus specifications. It supports Fast modes and can transmit and receive data at
400kbit/s. The SCL and SDA pins are used to input various command data and to read the status. The slave addresses are set
by the SAD0 to 2 pins.
When I
2
C is used, be sure to connect a pull-up resistor to the SCL and SDA pins.
In the communication flow between the master and this device (slave) on the I
2
C bus, after the start condition is set, the slave
address (upper 3 bits of the slave address are set by the SAD0 to 2 pins) is entered in the first 7 bits, the data direction is
determined in the 8th bit (when the 8th bit is "0", data is written from the master, and data is read from the master when "1")
and communication is performed in byte units thereafter. At this time, acknowledgment is required for each byte.
The I
2
C communication flow/timing chart is shown below.
Command flow when writing data (1-byte command)
Start condition
Slave aW(0)
Write data (ex. Command 1st byte)
Stop condition
- Timing chart when writing data.
(
1 byte command
)
SCL
SDA
A6 A5 A4 A3 A2 A1 A0
A
W
D7 D6 D5 D4 D3 D2 D1
A
D0
S
A
A
Slave Address
1st Command Data
P
CBUSYB
S
Start condition
P
Stop condition
A
Acknowledge
17/116
Summary of Contents for LAPIS Semiconductor ML22660
Page 107: ...FEDL22660 01 ML22660 107 116 ...