User manual
PICkit™ Serial Analyzer User’s Guide
DS51647A-page 46 © 2007 Microchip Technology Inc.
FIGURE 5-13: SPI SCRIPT BUILDER – CREATING A SCRIPT
5.8 SCRIPT EXECUTE
The Script Execute window is shown in Figure 5-14. Once scripts are created using the
Script Builder, they can be assigned to buttons in the Script Execute window. This
makes a convenient window to execute multiple scripts either individually or iteratively.
Script executing will be logged in the Transactions window.
TABLE 5-2: SPI SCRIPT MACRO COMMAND
Macro Command
Command
Abbreviation
Description
SPIBITRATE [BR] Set Bit Rate. Next byte is the scaler, followed by
the pre-scaler.
SPIDATIN [DI] Input data. Next byte is the byte count.
SPIDATOUT [DO] Output data. Next byte is the byte count, followed
by the data.
SPIDATIO [DIO] Output data
SPISDOIN [SI] Set SDO pin to Input (tri-state)
SPISDOOUT [SO] Set SDO pin to Output
SPIINIT [I_] Initialize SPI controller
SPICSON [CSON] Assert CS (active-low)
SPICSOFF [CSOF] De-assert CS (active-low)