User manual
I
2
C™ Master Communications
© 2007 Microchip Technology Inc. DS51647A-page 35
4.8 SCRIPT EXECUTE
The Script Execute window is shown in Figures 4-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. The Script Execute window
is opened by selecting Communications > Script > Script Execute
from the menu bar.
FIGURE 4-10: I
2
C™ SCRIPT EXECUTE
4.8.1 Assignable Buttons
User created scripts will be displayed in the central I
2
C 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.
I2CAUX1SET [A1RST] Set AUX1
I2CAUX1OUT [A1OUT] Set AUX1 direction to Output
I2CAUX1IN [A1IN] Set AUX1 direction to Input
I2CAUX1W0 [A1W0] AUX1 Wait 0
I2CAUX1W1 [A1W1] AUX1 Wait 1
I2CAUX2RST [A2RST] Reset AUX2
I2CAUX2SET [A2RST] Set AUX2
I2CAUX2OUT [A2OUT] Set AUX2 direction to Output
I2CAUX2IN [A2IN] Set AUX2 direction to Input
I2CAUX2W0 [A2W0] AUX2 Wait 0
I2CAUX2W1 [A2W1] AUX2 Wait 1
TABLE 4-2: I
2
C™ SCRIPT MACRO COMMAND (CONTINUED)