Datasheet

Table Of Contents
Getting Started
© 2009 Microchip Technology Inc. DS51647C-page 15
For example, to read seconds from the Real-Time Clock:
Step 1 – Enter 0xA2 into the Slave Address[W] block in the Read section of the Basic
Operations window (lower third of window)
Step 2 – Enter 0x02 into the Word Address block
Step 3 – Note that the Slave Address[R] has already been entered for you (the Read
bit is set).
Step 4 – Enter 0x01 into the Byte Count block
Step 5 – Click on the Execute button
The I
2
C combination command (Write then Read) will be sent to the 28-pin demo
board. The command and the contents of word address, 0x02 (seconds), will be
displayed in the transaction window as shown in Figure 2-7.
FIGURE 2-7: RTC TRANSACTIONS DEMO
2.8.2 EEPROM
The slave address for the emulated Serial EEPROM on the 28-pin demo board is
hexadecimal A8 (0xA8). The word address selects one of 256 8-bit memory locations:
TABLE 2-2: WORD ADDRESS CONTENTS
2.8.3 ADC
The slave address for the ADC on the 28-Pin demo board is hexadecimal AA (0xAA).
The word address, 0x01, selects the memory location containing the Most Significant
8 bits of the 10-bit ADC of the PIC microcontroller.
2.9 28-PIN DEMO I
2
C™ SOURCE CODE AND FIRMWARE
The demo program source code and *.hex file can be found on the PICkit Serial
CD-ROM at D:\28-pin Demo Board\Firmware\
.
Word Address Contents
0x00 Memory Contents
0xFF Memory Contents