event, it is possible that the microcontroller and DS3232
I2C communications could become unsynchronized,
e.g., the microcontroller resets while reading data from
the DS3232. When the microcontroller resets, the
DS3232 I2C interface may be placed into a known state
by toggling SCL until SDA is observed to be at a high
level. At that point the microcontroller should pull SDA
low while SCL is high, generating a START condition.
If SCL is held low for greater than tIF, the internal I2C
interface is reset. This limits the minimum frequency at
which the I2C interface can be operated. If data is
being written to the device when the interface timeout is
exceeded, prior to the acknowledge, the incomplete
byte of data is not written.
Clock and Calendar
The time and calendar information is obtained by read-
ing the appropriate register bytes. Figure 1 illustrates
the RTC registers. The time and calendar data are set
or initialized by writing the appropriate register bytes.
The contents of the time and calendar registers are in
binary-coded decimal (BCD) format. The DS3232 can
be run in either 12-hour or 24-hour mode. Bit 6 of the
Extremely Accurate I2C RTC with
Integrated Crystal and SRAM
Figure 1. Address Map for DS3232 Timekeeping Registers and SRAM
Note: Unless otherwise specified, the registers’ state is not defined when power is first applied.
ADDRESS
BIT 7
MSB
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
BIT 0
LSB
FUNCTION
RANGE
00h
0
10 Seconds
Seconds
00–59
01h
0
10 Minutes
Minutes
00–59
AM/PM
02h
0
12/24
20 Hour
10 Hour
Hour
Hours
1–12 + AM/PM
00–23
03h
0
Day
1–7
04h
0
10 Date
Date
1–31
05h
Century
0
10 Month
Month
Month/
Century
01–12 +
Century
06h
10 Year
Year
00–99
07h
A1M1
10 Seconds
Seconds
Alarm 1 Seconds
00–59
08h
A1M2
10 Minutes
Minutes
Alarm 1 Minutes
00–59
AM/PM
09h
A1M3
12/24
20 Hour
10 Hour
Hour
Alarm 1 Hours
1–12 + AM/PM
00–23
Day
Alarm 1 Day
1–7
0Ah
A1M4
DY/DT
10 Date
Date
Alarm 1 Date
1–31
0Bh
A2M2
10 Minutes
Minutes
Alarm 2 Minutes
00–59
AM/PM
0Ch
A2M3
12/24
20 Hour
10 Hour
Hour
Alarm 2 Hours
1–12 + AM/PM
00–23
Day
Alarm 2 Day
1–7
0Dh
A2M4
DY/DT
10 Date
Date
Alarm 2 Date
1–31
0Eh
EOSC
BBSQW
CONV
RS2
RS1
INTCN
A2IE
A1IE
Control
0Fh
OSF
BB32kHzCRATE1
CRATE0
EN32kHz
BSY
A2F
A1F
Control/Status
10h
SIGN
DATA
Aging Offset
11h
SIGN
DATA
MSB of Temp
12h
DATA
0
LSB of Temp
13h
0
Not used
Reserved for
test
14h–0FFh
x
SRAM
00h–0FFh
DS3232
Maxim Integrated
11
相关PDF资料
DS3234S# IC RTC W/TCXO 20-SOIC
DS32C35-33#T&R IC RTC ACCURATE I2C 3.3V 20-SOIC
DS3911T+ IC DAC 10BIT I2C QUAD 14TDFN
DS4000KI/WBGA IC OSC TCXO 19.44MHZ 24-BGA
DS4026S+WCN IC OSC TCXO 25MHZ 16-SOIC
DS4100HW+ IC OSC CLOCK 100MHZ 10LCCC
DS4266P+ IC OSC CLOCK 266MHZ 10-LCCC
DS4302Z-020/T&R IC DAC 5-BIT SGL 0-2.0V 8-SOIC
相关代理商/技术参数
DS3232SN#-W 功能描述:实时时钟 RoHS:否 制造商:Microchip Technology 功能:Clock, Calendar. Alarm RTC 总线接口:I2C 日期格式:DW:DM:M:Y 时间格式:HH:MM:SS RTC 存储容量:64 B 电源电压-最大:5.5 V 电源电压-最小:1.8 V 最大工作温度:+ 85 C 最小工作温度: 安装风格:Through Hole 封装 / 箱体:PDIP-8 封装:Tube
DS3234 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:Extremely Accurate SPI Bus RTC with Integrated Crystal and SRAM
DS3234_07 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:Extremely Accurate SPI Bus RTC with Integrated Crystal and SRAM
DS3234_08 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:Extremely Accurate SPI Bus RTC with Integrated Crystal and SRAM
DS3234_10 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:Extremely Accurate SPI Bus RTC with Integrated Crystal and SRAM
DS3234_BREAKOUT_ 制造商:MCM 功能描述:DS3234 BREAKOUT BOARD 制造商:PREMIER FARNELL 功能描述:DS3234 BREAKOUT BOARD
DS3234_BREAKOUT_B34 制造商:Distributed By MCM 功能描述:DS3234 Real Time Clock Breakout Board
DS3234S 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:Extremely Accurate SPI Bus RTC with Integrated Crystal and SRAM