User manual

PICkit™ Serial Analyzer User’s Guide
DS51647A-page 30 © 2007 Microchip Technology Inc.
AUX2 Direction – AUX2 communication line – direction: 1: input, 0: output
4.6 COMMUNICATIONS: BASIC OPERATIONS
The I
2
C Basic Operations window can be opened by selecting:
Communications: Basic Operations
from the tool bar, or
Communications > Basic Operations
from the menu bar
The I
2
C Basic Operations window is shown in Figures 4-3. There are two basic
communications commands, Read and Write.
Read performs a combination Write then Read commands to the target device (refer to
the I
2
C Specification reference in Section 4.1 “Introduction” above). The basic
structure of the command is:
Start bit (S_)
Slave Address[W] – Enter the slave address of the device to communicate with.
The write bit should be cleared to indicate a write operation
Word Address – Enter the word address
Restart (RS),
Slave Address[R] – The slave address with the write bit set will be automatically
entered when the Slave Address[W] has been entered
Byte Count – Enter the number of bytes to be read
Stop bit (P_)
Write performs a write operation to the target device (refer to The I
2
C Specification
reference in Section 4.1 “Introduction” above). The basic structure of the command
is:
Start bit (S_)
Slave Address[W] – Enter the slave address of the device to communicate with.
The write bit should be cleared to indicate a write operation.
Word Address – Enter the word address
Data – Enter up to eight bytes of data
Stop bit (P_)
The command will be logged in the Transactions window. A listing of the command
abbreviations is given in Table 4-2.
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.