User manual

PICkit™ Serial Analyzer User’s Guide
DS51647A-page 56 © 2007 Microchip Technology Inc.
The sequence of macro commands are executed from top to bottom. Macro commands
are entered by right clicking in the box and selecting from the local menu as shown in
Figure 6-9.
Macro commands are entered according to the sequence of events as defined by the
USART Asynchronous protocol. Studying the example scripts is a good way to learn
the sequence of events. The example scripts can also be modified and saved under a
different name.
A complete listing of the available macro commands is given in Table 6-2. The macro
command abbreviation will be displayed in the Transactions Window. The Transactions
window keeps a running log of the commands and data sent to and from the target
device.
FIGURE 6-9: USART ASYNCHRONOUS SCRIPT BUILDER – CREATING A
SCRIPT
CAUTION
The choice of macro commands is very flexible. Therefore, the correctness of the
script has to be verified by the user. The PICkit Serial Analyzer program does not
verify the correctness of the script.
TABLE 6-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