User manual
USART Master Synchronous Communications
© 2007 Microchip Technology Inc. DS51647A-page 67
7.8 SCRIPT EXECUTE
The Script Execute window is shown in Figure 7-10. 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-10: USART ASYNCHRONOUS SCRIPT EXECUTE
7.8.1 Assignable Buttons
User created scripts will be displayed in the central USART 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-11 shows and example. A script named TX_Data has been assigned to the
Iteration button in the left column. The number of iterations is entered in the Iterations
box and the delay in millisecond in the Delay box. A summary of the iterations is dis-
played in the left column. The macro is executed when the Iteration button is clicked.
FIGURE 7-11: USART ASYNCHRONOUS SCRIPT EXECUTE – EXAMPLE