User manual
Installation and Operation
© 2010 Microchip Technology Inc. DS51929A-page 29
Double clicking on the MCP4661W0RD User I2CM Script will load the script details.
Figure 2-14 shows what the values mean in the Script Details. These values are hex
numbers.
The first value (02h), is the number of bytes that will be written. The second byte (5Eh)
is the MCP4661 I2C Slave Address with the R/W bit indicating a write (0). The third byte
(0Ch) a data byte and contains the Device Register Address, the Device Command,
and the two Most Significant bits (MSb) of the write data.
The I
2
C protocol now has a restart bit. So the first value (01h) is the number of bytes
that will be written. The second byte (5Fh) is the MCP4661 I2C Slave Address with the
R/W bit indicating a read (1). The last byte (02h) is the number of bytes that will be read.
FIGURE 2-14: Example Read Script.
# of Bytes that
will be written
# of Bytes that
will be read
Data Byte #1
(Device Slave Address + R/W bit)
Data Byte #2
(Device Address +
Command + Data bit “D8”)
# of Bytes that
will be written
Data Byte #3
(Device Slave Address + R/W bit)