Microchip Technology MCP42XXEV User Manual
Installation and Operation
2010 Microchip Technology Inc.
DS51898A-page 29
21. Select the “DECRWiper0” script in the User SPI Scripts column and then click on
the Execute Script button three times.
22. Select the “ReadWiper0” script in the User SPI Scripts column and then click on
the Execute Script button. The Transaction window shows the scripts that were
executed and the current value of the Wiper 0 (see Figure 2-14).
executed and the current value of the Wiper 0 (see Figure 2-14).
23. In the Transaction window, click the Clear button.
24. On the PICkit Serial Analyzer command bar, click the Reset button.
25. Select the “WriteWiper0” script in the User SPI Scripts column and then click on
24. On the PICkit Serial Analyzer command bar, click the Reset button.
25. Select the “WriteWiper0” script in the User SPI Scripts column and then click on
the Execute Script button.
26. Select the “ReadWiper0” script in the User SPI Scripts column and then click on
the Execute Script button.
27. Select the “INCRWiper0” script in the User SPI Scripts column and then click on
the Execute Script button three times.
28. Select the “ReadWiper0” script in the User SPI Scripts column and then click on
the Execute Script button. The Transaction window shows the scripts that were
executed and the current value of the Wiper 0 (see Figure 2-15)
executed and the current value of the Wiper 0 (see Figure 2-15)
29. You can repeat the sequence of writing values to the wiper register or writing then
reading the values back.
FIGURE 2-12:
MCP42XX Write Wiper 0 Script File – Updating Wiper Value.
NOTICE
If at any time during script execution, an error message is generated in the Transaction
window, it is good practice to reset the PICkit™ Serial Analyzer (PKSA). The PKSA can
be reset using the “Reset” toolbar icon. Verify that subsequent script operations do not
generate errors.
window, it is good practice to reset the PICkit™ Serial Analyzer (PKSA). The PKSA can
be reset using the “Reset” toolbar icon. Verify that subsequent script operations do not
generate errors.
Write Command to Wiper 0 Register (D8 = 1)
Wiper 0 Data (D7:D0 = ‘FFh’)