2009 Microchip Technology Inc.
DS22152B-page 39
MCP40D17/18/19
FIGURE 5-13:
I2C Write Command Format (Slave Address = “0101110”).
FIGURE 5-14:
I2C Write Communication Behavior (Slave Address = “0101110”).
STOP bit
Slave Address Byte
Command Code
Data Byte
1
01
0
S
11 1
0
A0
0
A
D3
X D6 D5D4
D2D1 D0 A
Fixed
Address
Data Byte
AD3
X D6 D5D4
D2D1 D0 A P
Read/Write bit (“0” = Write)
00
0
D3 D2 D1 D0
XD6 D5 D4
S = Start Condition
P = Stop Condition
A = Acknowledge
X = Don’t Care
R/W = Read/Write bit
D6:D0 = Data bits
Legend
Write 1 Byte with Command Code = 00h
Write 2 Byte with Command Code = 00h
S Slave Address
R
/
W
A
C
K Command Code
A
C
K Data Byte
A
C
KP
Master
S 01011 10010 00000 0010d ddddd d1P
MCP40D17/18/19
0
I2C Bus
S 01011 10000 00000 0000d ddddd d0P
S Slave Address
R
/
W
A
C
K Command Code
A
C
K Data Byte
A
C
K
Master
S 01011 10010 00000 0010d ddddd d1
MCP40D17/18/19
0
I2C Bus
S 01011 10000 00000 0000d ddddd d0
Data Byte
A
C
KP
Master
0d ddddd d1P
MCP40D17/18/19
0
I2C Bus
0 d ddddd d0P