User manual

PICkit™ Serial Analyzer User’s Guide
DS51647A-page 66 © 2007 Microchip Technology Inc.
FIGURE 7-9: USART SYNCHRONOUS MASTER SCRIPT BUILDER –
CREATING A SCRIPT
TABLE 7-2: USART SCRIPT MACRO COMMANDS
Macro Command
Command
Abbreviation
Description
USDATATX [TX] Transmit data. Next byte is the byte count, followed by
the data.
USDATARX [RX] Receive data. Next byte is the byte count.
USDATARXEN [ER] Enable Receive data monitor
USDATARXDS [DR] Disable Receive data monitor
USBREAKTX [BK] Send Break
USBRKDATTX [BKD] Send Break, then data byte. Next byte is the data byte.
USBAUD [BD] Set BAUD Rate. Next byte is BAUD (LSB) followed by
BAUD (MSB).
US9BITSET [9S] Set 9-bit Data mode
US9BITRST [9R] Reset 9-bit Data mode (sets 8-bit)
USCLKPOLSET [CS] Set CLOCK POLARITY bit
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