Download PICkit Serial Analyzer USER`S GUIDE
Transcript
I2C™ Slave Communications 5.6 COMMUNICATIONS: BASIC OPERATIONS The I2C Slave Basic Operations window can be opened by selecting: • Basic Operations from the tool bar, or • Communications > Basic Operations from the menu bar The I2C Slave Basic Operations window is shown in Figures 5-3. There are three basic communications commands, Receive, Write and Read. FIGURE 5-3: I2C™ 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. 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. 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 Slave Address set the slave address here you wish the software to respond to, then press the Apply button. A confirmation message should appear on the Transactions window. © 2007 Microchip Technology Inc. DS51647B-page 41