Datasheet

Table Of Contents
SPI and Microwire Master Communications
© 2009 Microchip Technology Inc. DS51647C-page 63
7.8 SCRIPT EXECUTE
The Script Execute window is shown in Figure 7-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.
FIGURE 7-14: SPI SCRIPT EXECUTE
7.8.1 Assignable Buttons
User created scripts will be displayed in the central SPI Scripts column. To assign a
script to a button, click on the script name and drag it to the desired Assignable Buttons
in the right column. The script will be executed once each time the button is clicked.
The Assignable Buttons can be cleared by clicking on the Clear Buttons button.
7.8.2 Iteration
Scripts can be executed a user defined number of times at a specified interval of time.
Figure 7-15 shows an example. A script named Read_Memory has been assigned to
the Iteration button in the left column. The number of iterations are entered in the
Iterations box and the delay in millisecond in the Delay box. A summary of the iterations
is displayed in the left column. The macro is executed when the Iteration button is
clicked.
FIGURE 7-15: SPI SCRIPT EXECUTE – EXAMPLE