background image

event, it is possible that the microcontroller and DS3232
I

2

C communications could become unsynchronized,

e.g., the microcontroller resets while reading data from
the DS3232. When the microcontroller resets, the
DS3232 I

2

C 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 t

IF

, the internal I

2

C

interface is reset. This limits the minimum frequency at
which the I

2

C 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

DS3232

Extremely Accurate I

2

C RTC with 

Integrated Crystal and SRAM

____________________________________________________________________

11

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

Seconds

00–59

01h

0

10 Minutes

Minutes

Minutes

00–59

AM

/PM

02h

0

12/

24

20 Hour

10 Hour

Hour

Hours

1–12 + 

AM

/PM

00–23

03h

0

0

0

0

0

Day

Day

1–7

04h

0

0

10 Date

Date

Date

1–31

05h

Century

0

0

10 Month

Month

Month/

Century

01–12 +

Century

06h

10 Year

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

BB32kH z

C RATE 1

CRATE0

EN32kHz

BSY

A2F

A1F

Control/Status

10h

SIGN

DATA

DATA

DATA

DATA

DATA

DATA

DATA

Aging Offset

11h

SIGN

DATA

DATA

DATA

DATA

DATA

DATA

DATA

MSB of Temp

12h

DATA

DATA

0

0

0

0

0

0

LSB of Temp

13h

0

0

0

0

0

0

0

0

Not used

Reserved for

test

14h–0FFh

x

x

x

x

x

x

x

x

SRAM

00h–0FFh

Содержание Maxim DS3232 Series

Страница 1: ...atures Accuracy 2ppm from 0 C to 40 C Accuracy 3 5ppm from 40 C to 85 C Battery Backup Input for Continuous Timekeeping Operating Temperature Ranges Commercial 0 C to 70 C Industrial 40 C to 85 C 236...

Страница 2: ...ard Layout and Assembly section PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS VCC 2 3 3 3 5 5 Supply Voltage VBAT 2 3 3 0 5 5 V Logic 1 Input SDA SCL VIH 0 7 x VCC VCC 0 3 V Logic 0 Input SDA SCL VIL...

Страница 3: ...63 31 69 0 C to 40 C 2 2 Frequency Stability vs Temperature f fOUT VCC 3 3V or VBAT 3 3V 40 C to 0 C and 40 C to 85 C 3 5 3 5 ppm Frequency Stability vs Voltage f V VCC 3 3V or VBAT 3 3V 1 ppm V 40 C...

Страница 4: ...de 100 Data Setup Time Note 10 tSU DAT Standard mode 250 ns Fast mode 0 6 Start Setup Time tSU STA Standard mode 4 7 s Fast mode 300 Rise Time of Both SDA and SCL Signals Note 11 tR Standard mode 20 0...

Страница 5: ...te I2C RTC with Integrated Crystal and SRAM _____________________________________________________________________ 5 Pushbutton Reset Timing tRST PBDB RST Power Switch Timing VCC VPF MAX RST VPF MIN tV...

Страница 6: ...of the falling edge of SCL Note 9 The maximum tHD DAT needs only to be met if the device does not stretch the low period tLOW of the SCL signal Note 10 A fast mode device can be used in a standard mod...

Страница 7: ...DS3232 toc03 TEMPERATURE C SUPPLY CURRENT A 80 60 40 20 0 20 0 700 0 800 0 900 0 600 40 VCC 0V BB32kHz 0 VBAT 3 4V VBAT 3 0V FREQUENCY DEVIATION vs TEMPERATURE vs AGING DS3232 toc04 TEMPERATURE C FREQ...

Страница 8: ...and accurate reference clock and maintains the RTC to within 2 minutes per year accu racy from 40 C to 85 C The TCXO frequency output is available at the 32kHz pin The RTC is a low power clock calend...

Страница 9: ...t When using the device with the VBAT input as the primary power source this pin should be decoupled using a 0 1 F to 1 0 F low leakage capacitor When using the device with the VBAT input as the backu...

Страница 10: ...ising edge Upon detecting release the DS3232 forces the RST pin low and holds it low for tRST The same pin RST is used to indicate a power fail con dition When VCC is lower than VPF an internal power...

Страница 11: ...RAM ____________________________________________________________________ 11 Figure 1 Address Map for DS3232 Timekeeping Registers and SRAM Note Unless otherwise specified the registers state is not de...

Страница 12: ...ch of the time of day date alarm registers are mask bits Table 2 When all the mask bits for each alarm are logic 0 an alarm only occurs when the values in the timekeeping registers match the correspon...

Страница 13: ...e bits control the frequency of the square wave output when the square wave has been enabled The following table shows the square wave frequencies that can be select ed with the RS bits These bits are...

Страница 14: ...Output EN32kHz This bit indi cates the status of the 32kHz pin When set to logic 1 the 32kHz pin is enabled and outputs a 32 768kHz square wave signal When set to logic 0 the 32kHz pin goes low The in...

Страница 15: ...s section for a graph showing the effect of the register on accu racy over temperature Temperature Registers 11h 12h Temperature is represented as a 10 bit code with a res olution of 0 25 C and is acc...

Страница 16: ...clock signal The data on the line must be changed during the low period of the clock signal There is one clock pulse per bit of data Each data transfer is initiated with a START condition and terminat...

Страница 17: ...___________________________________________________ 17 A XXXXXXXX A 1101000 S 0 XXXXXXXX A XXXXXXXX A XXXXXXXX A P R W WORD ADDRESS n DATA n DATA n 1 DATA n X S START A ACKNOWLEDGE ACK P STOP R W READ...

Страница 18: ...are after reception of the slave address and direction bit The slave address byte is the first byte received after the master generates a START condition The slave address byte contains the 7 bit DS32...

Страница 19: ...ower is applied and the oscillator is disabled 9 Added a paragraph to the Pushbutton Reset Function section about how the RST output operation does not affect the device s internal operation 10 3 10 0...

Отзывы: