User manual

SPI Master Communications
© 2007 Microchip Technology Inc. DS51647A-page 47
FIGURE 5-14: SPI SCRIPT EXECUTE
5.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.
5.8.2 Iteration
Scripts can be executed a user defined number of times at a specified interval of time.
Figure 5-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 5-15: SPI SCRIPT EXECUTE – EXAMPLE