User manual

PICkit™ Serial Analyzer User’s Guide
DS51647A-page 76 © 2007 Microchip Technology Inc.
TABLE 9-5: TAG BYTE 0x01 COMMAND CODES
TABLE 9-6: EXEC STATUS PACKET
TAG byte 0x02 writes the 24-byte CONTROL_BLOCK (the EXEC portion of the control
block appears in Table 9-7).
CMD Description
0x00 Master Reset: EXEC Reset, COMM Reset (idled)
0x01 COMM initialization: COMM is initialized as defined by CONTROL_BLOCK
0x02 Request EXEC_STATUS_PACKET (Ref. Table 9-6)
0x03 Save CONTROL_BLOCK to EEPROM
0x04 Restore CONTROL_BLOCK from EEPROM
0x05 Flush CBUF2
0x06 COMM Reset: rest buffers, clear status block (COMM hardware is not re-initialized)
Byte LEN Type Description
0 1 2 0x88 PACKET ID = 0x01
2 4 3 0x81 FIRMWARE VERSION
5 29 25 0x82 CONTROL BLOCK
30 50 21 0x83 STATUS BLOCK
51 57 7 0x84 CBUF STATUS
TABLE 9-7: EXEC CONTROL BLOCK
Byte Bit Description
0 7:0 EXEC control bits
0
1
2
3
4 1 = Disable default behavior – LED2
5 1 = Disable default behavior – LED1
6 1 = Flush CBUF2 on count [e.g. CBUF2 >= N bytes then flush]
7 1 = Flush CBUF2 on time intervals
17:0
0 1 = Enable switch test
1n/a
2n/a
3n/a
4n/a
5n/a
6n/a
7n/a
27:0
3 7:0 CBUF2 flush count threshold [e.g., CBUF2 > N bytes then
flush]
4 7:0 CBUF2 flush interval [res: 409 μs, min: 409 μs, max: 104 μs] a
value of ‘0’ defaults to1’, (i.e., the minimum)
57:0
67:0
77:0