Getting Started
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 (top half 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
0x00
0xFF
Word Address
Memory Contents
Memory Contents
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\ .
? 2007 Microchip Technology Inc.
DS51647A-page 15
相关PDF资料
DV164131 KIT STARTER PICKIT 3
DV164132 KIT EVAL F1 FOR PIC12F1/PIC16F1
DV243003 KIT STARTER FOR SRL MEM PRODUCTS
DVA1001 ADAPTER FOR PIC16F716 18DIP
DVA1004 DEVICE ADAPTER 8/14/20DIP
E3R-D12GP-P RELAY RCVR PLUG-IN DIMMER
E3R-R12-3HOTP RCVR 3WIRE RELAY 120V
E3R-R12GP RCVR PLUG-IN RELAY
相关代理商/技术参数
DV164126 功能描述:开发板和工具包 - PIC / DSPIC USB Kit w/ PICkit LowPinCount RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DV164130 功能描述:电路内置调试器 PICkit 3 Starter Kit RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC16F1829 用于:PIC16F1829 核心:PIC 接口类型: 工作电源电压:
DV164131 功能描述:电路内置调试器 PICkit 3 Debug Exprs RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
DV164131 制造商:Microchip Technology Inc 功能描述:PICKIT 3 DEBUG EXPRESS
DV164131-XLP 制造商:Microchip Technology Inc 功能描述:KIT DEV PICKIT 3-XLP/NANOWAT
DV164132 功能描述:开发板和工具包 - PIC / DSPIC F1 Evaluation Kit RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DV164132 制造商:Microchip Technology Inc 功能描述:PIC12F1xxx/PIC16F1xxx F1 Evaluation Kit
DV164133 功能描述:电源管理IC开发工具 Energy Harvesting Development Tool RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V