User manual
PICkit™ Serial Analyzer Firmware
© 2007 Microchip Technology Inc. DS51647A-page 85
TABLE 9-18: I
2
CM ‘CMD’ TAG BYTES
An example of a data stream in the script buffer that would direct the COMM back to
communicate in I
2
C to the unit.
Under test is as follows:
TAG/CCMD LEN Name Description
0x80 1 I
2
CM_INIT Initialize master
0TAG
0x81 1 I
2
CM_START Issue I
2
C™ Start
0TAG
0x82 1 I
2
CM_STOP Issue I
2
C™ Stop
0TAG
0x83 1 I
2
CM_RESTART Issue I
2
C™ Restart
0TAG
0x84 N+2 I
2
CM_WRITE_BYTES Write bytes
0TAG
1 byte count (N)
2 data byte
N+1 data byte
0x85 2 I
2
CM_READ_BYTES Read bytes – ACK all bytes
0TAG
1 byte count (N)
0x86 1 I
2
CM_READ_BLOCK Read block – ACK all bytes
0TAG
0x87 2 I
2
CM_BIT_RATE Set I
2
C™ bit rate
0TAG
1bit rate
0x88 1 I
2
CM_RESET Reset MSSP module
0TAG
0x89 2 I
2
CM_READ_BYTES_NLB Read bytes – NACK last byte
0TAG
1 byte count (N)
0x8A 1 I
2
CM_READ_BLOCK_NLB Read block – NACK last byte
0TAG
0x81 I
2
CM_START
0x84 I
2
CM_WRITE_BYTES
0x02 Number of bytes
0xA8 I
2
C™ address for writing
0x01 I
2
C™ command code
0x83 I
2
CM_RESTART
0x84 I
2
CM_WRITE_BYTES
0x01 Number of bytes
0xA9 I
2
C™ address for reading
0x89 I
2
CM_READ_BYTES_NLB
0x01 Number of bytes
0x82 I
2
CM_STOP