Datasheet

Table Of Contents
PICkit™ Serial Analyzer Firmware
© 2009 Microchip Technology Inc. DS51647C-page 107
FIGURE 11-4:
11.7.1.3.1 Operation:
The host configures the Auto mode as follows:
1. Issue Cold Start (Reset)
2. Write Configuration Block (Comm = I
2
CS, Mode = 2, appropriate Event Markers
enabled)
3. Write Slave Profile to CBUF3
4. Issue Warm Start
The Auto mode allows the PICkit Serial Analyzer to operate autonomously (i.e., without
host intervention). Practically speaking, the host GUI will most likely want to reflect
activity with the slave registers as it occurs. A couple of options can be employed.
Option 1 would call for the host to enable I
2
C transaction Event Markers detailing each
I
2
C transaction in which the PICkit Serial Analyzer participated. This requires that the
host decode/interpret the transactions on a byte-by-byte basis.
Option 2 utilizes the ‘register access’ event markers (I2CS_EVENT_REG_READ and
I2CS_EVENT_REG_WRITE) fired to the host when a register within the slave profile is
accessed. The fact that a slave register was read is an ‘event’ but does not represent
a change in the data loaded in the slave profile. In the event that a register within the
slave profile was written, it may be important for the host monitoring the slave profile to
fetch the ‘new’ data from that register for processing/display. Data is retrieved from a
register using SCMND Tag: I2CS_REGDATA_READ. The register contents are returned
with SDATA Tag: I2CS_REGDATA.
The register contents can be written or read by the host. To insure data integrity of
multi-byte registers, the contents are accessed only ‘between’ I
2
C transactions. This
may cause a slight delay in executing the request or in servicing the next/pending I
2
C
transactions.
11.7.1.3.2 Slave Profile
In Auto mode the PICkit Serial Analyzer personality is defined by a “slave profile” down-
loaded by the host to PICkit Serial Analyzer RAM (i.e., CBUF3). The profile defines one
or more I
2
C slave addresses and a set of one or more device registers for each. The
profile must begin with a Slave Address Tag and be terminated by an ‘End’ Tag.
Comm
I
2
CS
CBUF3
(Profile)
CBUF2
CBUF1
Status
Control
Exec
PICkit™ Serial Analyzer
USB
H
O
S
T
D
E
V
I
C
E
I
2
C™
B
A
A - event data
B - I
2
C™ read data