Datasheet

Table Of Contents
PICkit™ Serial Analyzer Firmware
© 2009 Microchip Technology Inc. DS51647C-page 95
11.5 COMM
The Comm module will decode Tag bytes from the data stream in the script buffer. The
Tag bytes may represent commands to internally configure the PICkit™ Serial Ana-
lyzer and report status, or the Tag bytes may be protocol specific identification that
needs to be translated into the device under test’s protocol and communicated to the
device. The Comm module performs both of these functions. This section will describe
the Comm Tags common to all supported serial protocols. Table 11-11 describes the
Tags (CCMD) used in the data stream to the Comm controller. Table 11-12 describes
Tags (CDATA) used in the data stream from the Comm controller.
.
TABLE 11-11: COMM SCRIPT COMMAND TAG BYTES
Tag/CCMD LEN Name Description
0x00 – 0x0F 16 RESERVED Reserved
0x10 3 Wait-1 Wait for time interval
0Tag
1Time (LSB)
2Time (MSB)
[res: 409.6 μsec, max: 26.843 sec]
0x12 2 LED1 Configure LED1
0Tag
1 LED Configuration byte
0x13 2 LED2 Configure LED2
0Tag
1 LED Configuration byte
0x15 3 TIMEOUT_AB0_SET Set time-out AB0
0Tag
1 Time-out value (LSB)
2 Time-out value (MSB)
[res: 409.5 ms, max: 26.843 sec]
0x16 1 TIMEOUT_AB0_KILL Kill/disable time-out AB0
0Tag
0x17 3 TIMEOUT_AB1_SET Set time-out AB1
0Tag
1 Time-out value (LSB)
2 Time-out value (MSB)
[res: 409.6 ms, max: 26.843 sec]
0x18 1 TIMEOUT_AB1_KILL Kill/disable time-out AB1
0Tag
0x19 1 MACRO_CLEAR Start macro definition
0Tag
0x1A N+2 MACRO_DATA_ADD Add bytes to macro
0Tag
1 Byte count (N)
2Data
N+1 Data
0x1B 3 MACRO_RUN Run macro
0Tag
1 Loop count [0 = indefinitely]
2 Loop count [0 = indefinitely]
0x1C 1 END_OF_SCRIPT Mark end of script
0Tag