2016 Microchip Technology Inc. DS50002466A-page 47
2.10.2 WP
Command WP stops script execution. It expects no parameters.
2.10.3
WR[,<H6>]
Command WR starts execution of the script. If no parameter is provided, script runs nor-
mally by starting at @PW_ON event. If a parameter listed in Table 2-1 5 is provided, the
script starts execution upon the corresponding event with debugging information. Refer
to Table 2-15 for descriptions of the events.
2.10.4
WW
Command WW enters Script Input mode. It expects no parameter. When in Script Input
mode, the script can be entered through UART line by line. Once all script lines are
entered, type escape key ESC to exit Script Input mode.
Default: N/A
Example: WP // Stop running script
Response: AOK // Success
TABLE 2-15: COMMAND WR INPUT PARAMETERS AND ASSOCIATED
EVENTS
Input Parameter Event
00 @PW_ON
01 @TMR1
02 @TMR2
03 @TMR3
04 @CONN
05 @DISCON
06 @PIO1H
07 @PIO1L
08 @PIO2H
09 @PIO2L
0A @PIO3H
0B @PIO3L
Default: N/A
Example: WR,01 // Starts script by entering @TMR1 event
Response: ERR
%S_RUN:<cmd>%
// Syntax error or invalid parameter
// Script run <cmd> - debug info output
Default: N/A
Example: WW // Enter Script Input mode