Installation and Operation
©
2010 Microchip Technology Inc.
DS51892A-page 19
2.5
CONFIGURING THE PICKIT SERIAL ANALYZER
2.5.1
Modifying the “CommScripts.txt” file
Example 2-1 shows the User Scripts that need to be added to the PICkit Serial’s
“CommScripts.txt “ file. The default install location of this file is:
C:\Program Files\Microchip\PICkit Serial Analyzer
Once these are saved in the “CommScripts.txt “ file and the Master SPI mode is
selected as the communication mode, these user scripts will be available to select from.
EXAMPLE 2-1:
MCP43XX SCRIPT FILE (COMMSCRIPTS.TXT)
NOTICE
Note 1:
It is recommended that you make a backup of your “CommScript.txt” file
before making any edits with a text editor.
2:
It has been observed that copying the text from this PDF and pasting into
the PICkit Serial’s “CommScript.txt” file will cause errors due to the blank
spacing used in the PDF file. Please copy from the “MCP43XX Com-
mScript.txt” file available from the Microchip web site.
WriteWiper0 SPI SPICSON SPIDATOUT 0x02 0x00 0x3F SPICSOFF
ReadWiper0 SPI SPICSON SPIDATIO 0x02 0x0C 0xA5 SPICSOFF
WriteWiper1 SPI SPICSON SPIDATOUT 0x02 0x10 0x3F SPICSOFF
ReadWiper1 SPI SPICSON SPIDATIO 0x02 0x1C 0xA5 SPICSOFF
WriteWiper2 SPI SPICSON SPIDATOUT 0x02 0x60 0x3F SPICSOFF
ReadWiper2 SPI SPICSON SPIDATIO 0x02 0x6C 0xA5 SPICSOFF
WriteWiper3 SPI SPICSON SPIDATOUT 0x02 0x70 0x3F SPICSOFF
ReadWiper3 SPI SPICSON SPIDATIO 0x02 0x7C 0xA5 SPICSOFF
WriteWiper0NV SPI SPICSON SPIDATOUT 0x02 0x20 0x3F SPICSOFF
ReadWiper0NV SPI SPICSON SPIDATIO 0x02 0x2C 0xA5 SPICSOFF
WriteTCON0 SPI SPICSON SPIDATOUT 0x02 0x40 0xFF SPICSOFF
ReadTCON0 SPI SPICSON SPIDATIO 0x02 0x4C 0xA5 SPICSOFF
WriteTCON1 SPI SPICSON SPIDATOUT 0x02 0xA0 0xFF SPICSOFF
ReadTCON1 SPI SPICSON SPIDATIO 0x02 0xAC 0xA5 SPICSOFF
ReadSTATUS SPI SPICSON SPIDATIO 0x02 0x5C 0xA5 SPICSOFF
INCRWiper0 SPI SPICSON SPIDATIO 0x01 0x04 SPICSOFF
DECRWiper0 SPI SPICSON SPIDATIO 0x01 0x08 SPICSOFF