User manual

MCP46XXEV Evaluation Board User’s Guide
DS51929A-page 28 © 2010 Microchip Technology Inc.
Double clicking on the MCP4661W0WR User I2CM Script will load the script details.
Figure 2-13 shows what the values mean in the Script Details. These values are hex
numbers.
The first value (03h), 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 (00h) is a data byte and contains the Device Register Address, the Device
Command, and the two Most Significant bits (MSb) of the write data. The fourth byte
(7Fh) is the 2nd data byte and contains the remaining 8 bits of the write data.
FIGURE 2-13: Example Write Script.
Number of Bytes that will
be written
Data Byte #2 Data Byte #3
(Device Register Address + (Write Data “D7:D0”)
Command + Data bit “D8”)
Data Byte #1
(Device Slave Address + R/W bit)