28-Pin Demo Board I 2 C? Demonstration Firmware
FIGURE B-2:
I 2 C? WRITE BYTE(S)
S
SLAVE-ADR
A
DATA
A
DATA
A
DATA
A
P
[W]
WORD-ADR
Read Byte(s) with Word Address – The word address is set to begin at a given value
and incremented sequentially during the transaction.
FIGURE B-3:
I 2 C? READ BYTE(S) WITH WORD ADDRESS
S
SLAVE-ADR
A
DATA
A
RS
SLAVE- ADR
A
DATA
A
DATA N
P
[W]
WORD-ADR
[R]
Read Byte(s) without Word Address – The word address will continue in sequence from
the previous transaction to the I 2 C slave. On Reset the device address for all three
slave devices are reset to zero.
FIGURE B-4:
I 2 C? READ BYTE(S) WITHOUT WORD ADDRESS
S
SLAVE-ADR
A
DATA
A
DATA
N
P
[R]
B.6
SLAVE DEVICES
The 28-Pin Demo Board I 2 C? Demonstration firmware responds to three I 2 C slave
devices: RTC, Serial EEPROM, and Executive.
B.6.1
Slave Address: 0xA2 – Real-Time Clock Emulation
The 28-Pin Demo Board I 2 C? Demonstration emulates an I 2 C Real-Time Clock
(RTC). Table B-3 list the word addresses.
TABLE B-3:
REAL-TIME CLOCK (RTC) WORD ADDRESSES
REG
0x00
0x01
0x02
0x03
0x04
0x05
0x06
0x07
? 2007 Microchip Technology Inc.
NAME
RTC_CONFIG_1
RTC_CONFIG_2
RTC_SECONDS
RTC_MINUTES
RTC_HOURS
RTC_WEEKDAY
RTC_DAYS
RTC_MONTHS
DESCRIPTION
7: 0
6: 0
5: STOP – stop time function (0: RUN, 1: STOP)
4: 0
3: 0
2: 0
1: 0
0: 0
7: 0
6: 0
5: 0
4: 0
3: AF – Alarm flag
2: 0
1: AE – Alarm enable
0: 0
00-59 seconds, coding: BCD, bit 7: VL?
00-59 minutes, coding: BCD
00-23 hours, coding: BCD
00-06 weekday
01-31 day of the month
01-12 month of the year, coding: BCD
DS51647A-page 109
相关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