Microchip Technology MCP42XXEV User Manual

Page of 42
MCP42XXEV Evaluation Board User’s Guide
DS51898A-page 26
 2010 Microchip Technology Inc.
Double clicking on the WriteWiper0 User SPI 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 a 
data byte and contains the device register address, the Device command, and the two 
Most Significant bits (MSb) of the write data. The third byte is the 2nd data byte and 
contains the remaining 8 bits of the write data.
FIGURE 2-10:
Example Write Script.
Number of Bytes that will
be written
Data Byte #1 
Data Byte #2 
(Device Register Address + 
(Write Data “D7:D0”
Command + Data bit “D8”