Datasheet

Table Of Contents
I
2
C™ Slave Communications
© 2009 Microchip Technology Inc. DS51647C-page 43
5.6 COMMUNICATIONS: BASIC OPERATIONS
The I
2
C Slave Basic Operations window can be opened by selecting:
Basic Operations from the tool bar, or
Communications > Basic Operations from the menu bar
The I
2
C Slave Basic Operations window is shown in Figures 5-3. There are three basic
communications commands, Receive, Write and Read.
FIGURE 5-3: I
2
C™ SLAVE – BASIC OPERATIONS
Receive responds to a basic Receive request from the master. In Return Byte Count,
enter the number of bytes a Receive request will respond with, then enter the data to
be returned in the data array. The Basic page limits you to eight bytes of returned data.
Write simply displays the byte count and data written by the master.
Read responds to a basic Read request by the master. In Return Byte Count, enter the
number of bytes a Read request will respond with, then enter the data to be returned
in the data array. The Basic page limits you to eight bytes of returned data.
Byte Count will display the number of bytes between the slave read address and the
slave write address. Data will display the data between the slave read address and the
slave write address.
PICkit Serial Analyzer Slave Address set the slave address here you wish the soft-
ware to respond to, then press the Apply button. A confirmation message should
appear on the Transactions window.
Note: The “x” indicates the value is a hexadecimal number. Clicking on “x” will
toggle it to a “d” indicating that the value is a decimal number.