User manual

PICkit™ Serial Analyzer Firmware
© 2007 Microchip Technology Inc. DS51647A-page 77
TAG bytes 0x03, 0x04 and 0x05 write data bytes to their respective script buffers. In
the current architecture, Script Buffer 1 (CBUF1) is used to store communication com-
mands that will be fetched and executed by the COMM block. So, TAG byte 0x03 is
used to delineate data that is to be sent to the script buffer including communication
protocols to be sent to the unit under test. TAG bytes 0x04 and 0x05 are typically not
used. TAG bytes 0x06 and 0x07 configure the LEDs as follows:
TABLE 9-8: LED CONFIGURATION
EXEC data TAG bytes identify data streams sent from the EXEC block back to the host
software.
Description
Mode
M = CFG[7:6]
State
S = CFG[5]
Time
T = CFG[4:0]
Set immediate 00 1 = On, 0 = Off N/A
Blink once – On or Off 10 1 = On, 0 = Off T + 1 units
Blink continuous 11 initial state: 1 = On, 0 = Off T + 1 units
Reserved 01
Legend: Time “unit” = 50 ms
Note: Set LED to blink continuously, on/off time = 100 ms.
CFG = 0xC1 (M = b’11’, S = 0, T = 1)
TABLE 9-9: EXEC TAG (EDATA) BYTES
TAG/EDATA LEN Name Description
0x80 1 END OF DATA Marks the end of valid data
0TAG
0x81 1 FIRMWARE_VERSION Firmware version
0TAG
1 Data: 20-byte STATUS_BLOCK
2 Date: major version
0x82 25 CONTROL_BLOCK_DATA Control block contents
0TAG
1:24 Data: CONTROL_BLOCK
0x83 21 STATUS_BLOCK_DATA Status block contents
0TAG
1:20 Data: minor version
0x84 7 CBUF_STATUS Status block contents
0TAG
1 Data: CBUF1: # bytes used
2 Data: CBUF1: # bytes unused
3 Data: CBUF2: # bytes used
4 Data: CBUF2: # bytes unused
5 Data: CBUF3: # bytes used
6 Data: CBUF3: # bytes unused
0x85 N+2 CBUF1_DATA Data from CBUF1
0TAG
1 Byte count
2 : N+1 Data: from CBUF1
0x86 N+2 CBUF2_DATA Data from CBUF2
0TAG
1 Byte count
2 : N+1 Data: from CBUF2