background image

DS12885/DS12887/DS12887A/DS12C887/DS12C887A

Real-Time Clock

____________________________________________________________________

19

Update Cycle

The device executes an update cycle once per second
regardless of the SET bit in Register B. When the SET
bit in Register B is set to 1, the user copy of the double-
buffered time, calendar, and alarm bytes is frozen and
does not update as the time increments. However, the
time countdown chain continues to update the internal
copy of the buffer. This feature allows time to maintain
accuracy independent of reading or writing the time,
calendar, and alarm buffers, and also guarantees that
time and calendar information is consistent. The update
cycle also compares each alarm byte with the corre-

sponding time byte and issues an alarm if a match or if
a don’t-care code is present in all three positions.

There are three methods that can handle RTC access
that avoid any possibility of accessing inconsistent time
and calendar data. The first method uses the update-
ended interrupt. If enabled, an interrupt occurs after
every update cycle that indicates over 999ms is avail-
able to read valid time and date information. If this
interrupt is used, the IRQF bit in Register C should be
cleared before leaving the interrupt routine.

A second method uses the update-in-progress bit (UIP)
in Register A to determine if the update cycle is in
progress. The UIP bit pulses once per second. After
the UIP bit goes high, the update transfer occurs 244µs
later. If a low is read on the UIP bit, the user has at least
244µs before the time/calendar data is changed.
Therefore, the user should avoid interrupt service rou-
tines that would cause the time needed to read valid
time/calendar data to exceed 244µs.

The third method uses a periodic interrupt to determine if
an update cycle is in progress. The UIP bit in Register A
is set high between the setting of the PF bit in Register C
(Figure 3). Periodic interrupts that occur at a rate greater
than t

BUC

allow valid time and date information to be

reached at each occurrence of the periodic interrupt.
The reads should be complete within one (t

PI/2

+ t

BUC

)

to ensure that data is not read during the update cycle.

Handling, PC Board Layout,

and Assembly

The EDIP module can be successfully processed
through conventional wave-soldering techniques so long
as temperature exposure to the lithium energy source
does not 85°C. Post-solder cleaning with water-
washing techniques is acceptable, provided that ultra-
sonic vibration is not used. Such cleaning can damage
the crystal.

SELECT BITS

REGISTER A

RS3

RS2

RS1

RS0

t

PI

 PERIODIC

INTERRUPT

RATE

SQW OUTPUT

FREQUENCY

0

0

0

0

None

None

0

0

0

1

3.90625ms

256Hz

0

0

1

0

7.8125ms

128Hz

0

0

1

1

122.070µs

8.192kHz

0

1

0

0

244.141µs

4.096kHz

0

1

0

1

488.281µs

2.048kHz

0

1

1

0

976.5625µs

1.024kHz

0

1

1

1

1.953125ms

512Hz

1

0

0

0

3.90625ms

256Hz

1

0

0

1

7.8125ms

128Hz

1

0

1

0

15.625ms

64Hz

1

0

1

1

31.25ms

32Hz

1

1

0

0

62.5ms

16Hz

1

1

0

1

125ms

8Hz

1

1

1

0

250ms

4Hz

1

1

1

1

500ms

2Hz

Table 3. Periodic Interrupt Rate and

Square-Wave Output Frequency

UIP

UF

PF

t

BUC

 = DELAY TIME BEFORE UPDATE

CYCLE = 244

μ

s

1 SECOND

t PI

t

P1/2

t

P1/2

t

BUC

Figure 3. UIP and Periodic Interrupt Timing

Содержание Maxim DS12885

Страница 1: ...AT Computer Clock Calendar RTC Counts Seconds Minutes Hours Day Date Month and Year with Leap Year Compensation Through 2099 Binary or BCD Time Representation 12 Hour or 24 Hour Clock with AM and PM i...

Страница 2: ...densing 0 C to 70 C Operating Temperature Range Industrial noncondensing 40 C to 85 C Storage Temperature Range 55 C to 125 C Soldering Temperature See IPC JEDEC J STD 020 Specification Note 1 Solderi...

Страница 3: ...ITS Cycle Time tCYC 385 DC ns Pulse Width DS Low or R W High PWEL 150 ns Pulse Width DS High or R W Low PWEH 125 ns Input Rise and Fall tR tF 30 ns R W Hold Time tRWH 10 ns R W Setup Time Before DS E...

Страница 4: ...________________________________ PWASH PWEL tASED tCYC tRWS tCS tRWH tCH PWEH tASD AD0 AD7 READ CS R W AS DS AD0 AD7 WRITE tDHW tDHR tDDR tAHL tASL tDSW Motorola Bus Read Write Timing Intel Bus Write...

Страница 5: ...__________________ 5 tCS tAHL tASL tCYC PWASH PWEL PWEH CS R W AS DS AD0 AD7 tASD tASD tASED tDDR tDHR tCH Intel Bus Read Timing tRWL tIRR tIRDS DS RESET IRQ IRQ Release Delay Timing OUTPUTS INPUTS HI...

Страница 6: ...mum and VIH minimum Input Pulse Rise and Fall Times 5ns WARNING Negative undershoots below 0 3V while the part is in battery backed mode may cause loss of data Note 1 RTC modules can be successfully p...

Страница 7: ...32768 60 32768 70 32768 00 4 5 5 5 IBAT1 vs VBAT vs TEMPERATURE DS12885 toc01 VBAT V I BAT nA 3 8 2 8 3 0 3 3 3 5 200 300 250 150 2 5 4 0 VCC 0V 85 C 25 C 0 C 40 C 70 C 40 C POWER CONTROL GND OSC BUS...

Страница 8: ...S transitions high in the case of Intel timing 12 16 12 15 20 12 17 GND Ground 13 13 16 13 CS Active Low Chip Select Input The chip select signal must be asserted low for a bus cycle in the device to...

Страница 9: ...tive Low Reset Input The RESET pin has no effect on the clock calendar or RAM On power up the RESET pin can be held low for a time to allow the power supply to stabilize The amount of time that RESET...

Страница 10: ...attery directly to the VBAT pin Diodes in series between the VBAT pin and the battery may prevent proper operation UL recognized to ensure against reverse charging when used with a lithium battery 21...

Страница 11: ...uit does not require any external resistors or capacitors to operate Table 1 specifies several crys tal parameters for the external crystal Figure 1 shows a functional schematic of the oscillator circ...

Страница 12: ...bytes can be either binary or binary coded decimal BCD format The day of week register increments at midnight incre menting from 1 through 7 The day of week register is used by the daylight saving fu...

Страница 13: ...or read except for the following 1 Registers C and D are read only 2 Bit 7 of register A is read only 3 The MSB of the seconds byte is read only Table 2A Time Calendar and Alarm Data Modes BCD Mode DM...

Страница 14: ...0 0 Day Day 01 07 07H 0 0 0 Date Date 01 1F 08H 0 0 0 0 Month Month 01 0C 09H 0 Year Year 00 63 0AH UIP DV2 DV1 DV0 RS3 RS2 RS1 RS0 Control 0BH SET PIE AIE UIE SQWE DM 24 12 DSE Control 0CH IRQF PF A...

Страница 15: ...ime A pattern of 11x enables the oscillator but holds the countdown chain in reset The next update occurs at 500ms after a pattern of 010 is written to DV0 DV1 and DV2 Bits 3 to 0 Rate Selector RS3 RS...

Страница 16: ...te end flag UF bit in Register C to assert IRQ The RESET pin going low or the SET bit going high clears the UIE bit The internal functions of the device do not affect the UIE bit but is cleared to 0 o...

Страница 17: ...in goes low and a 1 appears in the IRQF bit This bit can be cleared by reading Register C or with a RESET Bit 5 Update Ended Interrupt Flag UF This bit is set after each update cycle When the UIE bit...

Страница 18: ...at are set high are cleared when read and new interrupts that are pending during the read cycle are held until after the cycle is completed One two or three bits can be set when reading Register C Eac...

Страница 19: ...s read on the UIP bit the user has at least 244 s before the time calendar data is changed Therefore the user should avoid interrupt service rou tines that would cause the time needed to read valid ti...

Страница 20: ...C N C MOT N C IRQ RESET DS AD4 AD3 AD2 AD1 N C R W AS CS FOR THE DS12887A DS12C887A NOTE THE DS12887A AND DS12C887A CANNOT BE STORED OR SHIPPED IN CONDUCTIVE MATERIAL THAT WILL GIVE A CONTINUITY PATH...

Страница 21: ...DS12885QN 40 C to 85 C 28 PLCC DS12885Q DS12885QN 40 C to 85 C 28 PLCC DS12885Q DS12885Q T R 0 C to 70 C 28 PLCC DS12885Q DS12885Q T R 0 C to 70 C 28 PLCC DS12885Q DS12885QN T R 40 C to 85 C 28 PLCC...

Страница 22: ...trademark of Dallas Semiconductor Corporation Quijano Revision History Rev 0 6 05 Initial release of combined data sheet Rev 1 4 06 Corrected Intel Bus Write Timing diagram page 4 Intel Bus Read Timin...

Отзывы: