MCP401XEV Evaluation Board User’s Guide
DS51888A-page 24
©
2010 Microchip Technology Inc.
Double clicking on the ReadAddrA8 Example I2CM Script will load the Script Details.
Figure 2-10 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 is the
I
2
C Slave address (A8h) of the device with the Read/Write bit forced to ‘0’ (an I
2
C
write). The next byte (00h) is a data byte, and the value will be dependent on the slave
I
2
C device protocol format and the desired operation.
Now a I
2
C Restart bit is forced onto the I
2
C bus. The next byte (01h) indicates how
many bytes will be written. The next bit (A9h) is the I
2
C Slave address (A8h) of the
device with the Read/Write bit forced to ‘1’ (an I
2
C read). The last byte (10h) is the
number of bytes that will be read from the I
2
C Slave Device. The value will be
dependent on the slave I
2
C device protocol format and the desired operation.
FIGURE 2-10:
Example Read Script.
Number of Bytes that will
be written
I
2
C Slave A Read/Write bit
(R/W bit = 0)
Data Byte #1
(1)
Number of Bytes that will
be written
I
2
C Slave A Read/Write bit
(R/W bit = 1)
# of Data Bytes to Read
(1)
Note 1:
Function depends on devices I
2
C Protocol Format.
Summary of Contents for MCP401XEV
Page 1: ...2010 Microchip Technology Inc DS51888A MCP401XEV Evaluation Board User s Guide...
Page 4: ...MCP401XEV Evaluation Board User s Guide DS51888A page 4 2010 Microchip Technology Inc NOTES...
Page 38: ...MCP401XEV Evaluation Board User s Guide DS51888A page 38 2010 Microchip Technology Inc NOTES...