User manual

USART Asynchronous Communications
© 2007 Microchip Technology Inc. DS51647A-page 57
6.8 SCRIPT EXECUTE
The Script Execute window is shown in Figure 6-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 6-10: USART ASYNCHRONOUS SCRIPT EXECUTE
6.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.
USCLKPOLRST [CR] Reset CLOCK POLARITY bit
USINIT [I_] Initialize USART controller
USRESET [RE] Reset USART controller.
USAUX1RST [A1RST] Reset Aux1
USAUX1SET [A1RST] Set Aux1
USAUX1OUT [A1OUT] Set Aux1 direction to Output
USAUX1IN [A1IN] Set Aux1 direction to Input
USAUX1W0 [A1W0] Aux1 Wait 0
USAUX1W1 [A1W1] Aux1 Wait 1
USAUX2RST [A2RST] Reset Aux2
USAUX2SET [A2RST] Set Aux2
USAUX2OUT [A2OUT] Set Aux2 direction to Output
USAUX2IN [A2IN] Set Aux2 direction to Input
USAUX2W0 [A2W0] Aux2 Wait 0
USAUX2W1 [A2W1] Aux2 Wait 1
TABLE 6-2: USART SCRIPT MACRO COMMANDS (CONTINUED)