Datasheet

Table Of Contents
I
2
C™ Slave Communications
© 2009 Microchip Technology Inc. DS51647C-page 41
I
2
C SLAVE MODE
There are three modes of I
2
C slave operation:
Default: Basic/mechanical mode of operation in which the PICkit Serial Analyzer
blindly accepts any/all ‘write’ data and provides canned/default ‘read’ data in
response to any enabled I
2
C address and all device addresses.
Interactive: This mode allows the host to orchestrate I
2
C transactions in ‘real
time’. This necessarily requires the host to provide ‘read’ and ‘receive’ data as
needed while the PICkit Serial Analyzer holds the I
2
C bus clock line (waiting).
‘Write’ data is reported to the host via transaction event tags.
Automatic: In Auto mode the PICkit Serial Analyzer operates autonomously as
defined by a dynamic “slave profile” table stored in PICkit Serial Analyzer RAM. At
any time the host can read and/or update the table as needed.
SCRIPT TIME-OUT
When the slave responds to Read and Receive queries the software will wait a maxi-
mum of script time-out ms to receive a script complete tag before issuing an error. If
your slave profile is responding with large amounts of data, you may need to increase
the script time-out to avoid errors.
FIGURE 5-2: I
2
C™ SLAVE CONFIGURE COMMUNICATIONS MODE –
ADVANCED VIEW
EVENT MARKERS
Abrt Mac Exe – Enable event marker: abort ‘macro’ execution
Macro Loop – Enable event marker: top of ‘macro’ loop
Mac Lp 65536 – Enable event marker: ‘macro’ loop count overflow (i.e., 65536)
Mac Lp Done – Enable event marker: ‘macro’ loop iterations complete
Timeout Timer1 – Enable event marker: Timer1 expired
Timeout Timer2 – Enable event marker: Timer2 expired
Status Error – Enable event marker: change in status byte
Addr RX – Enable event marker: Slave address received
Data RX – Enable event marker: Data received
Data TX – Enable event marker: Data transmitted
Ack RX
– Enable event marker: Ack byte received