Obsolete Product(s) - Obsolete Product(s)Obsolete Product(s) - Obsolete Product(s)
M48T59, M48T59Y, M48T59V Clock operations
13/32
Table 5. Register map
Keys:
S = Sign bit
FT = Frequency test bit
R = Read bit
W = Write bit
ST = Stop bit
0 = Must be set to '0'
Y = '1' or '0'
Z = '0' and are read only
AF = Alarm flag (read only)
BL = Battery low (read only)
WDS = Watchdog steering bit
BMB0-BMB4 = Watchdog multiplier bits
RB0-RB1 = Watchdog resolution bits
AFE = Alarm flag enable
ABE = Alarm in battery back-up mode enable
RPT1-RPT4 = Alarm repeat mode bits
WDF = Watchdog flag (read only)
CEB = Century enable bit
CB = Century bit
Address
Data
Function/range
BCD format
D7 D6 D5 D4 D3 D2 D1 D0
1FFFh 10 Years Year Year 00-99
1FFEh 0 0 0 10 M Month Month 01-12
1FFDh 0 0 10 date Date Date 01-31
1FFCh 0 FT CEB CB 0 Day Century/day 00-01/01-07
1FFBh 0 0 10 hours Hours Hours 00-23
1FFAh 0 10 minutes Minutes Minutes 00-59
1FF9h ST 10 seconds Seconds Seconds 00-59
1FF8h W R S Calibration Control
1FF7h WDS
BMB
4
BMB
3
BMB
2
BMB
1
BMB
0
RB1 RB0 Watchdog
1FF6h AFE Y ABE Y Y Y Y Y Interrupts
1FF5h RPT4 Y Al. 10 date Alarm date Alarm date 01-31
1FF4h RPT3 Y Al. 10 hours Alarm hours Alarm hours 00-23
1FF3h RPT2 Alarm 10 minutes Alarm minutes Alarm minutes 00-59
1FF2h RPT1 Alarm 10 seconds Alarm seconds Alarm seconds 00-59
1FF1h Y YYYYYYY Unused
1FF0h WDF AF Z BL Z Z Z Z Flags
Obsolete Product(s) - Obsolete Product(s)Obsolete Product(s) - Obsolete Product(s)
Clock operations M48T59, M48T59Y, M48T59V
14/32
3.4 Calibrating the clock
The M48T59/Y/V is driven by a quartz-controlled oscillator with a nominal frequency of
32,768 Hz. The devices are tested not to exceed 35 PPM (parts per million) oscillator
frequency error at 25°C, which equates to about ±1.53 minutes per month. With the
calibration bits properly set, the accuracy of each M48T59/Y/V improves to better than +1/–
2 PPM at 25°C.
The oscillation rate of any crystal changes with temperature (see Figure 8 on page 15).
Most clock chips compensate for crystal frequency and temperature shift error with
cumbersome “trim” capacitors. The M48T59/Y/V design, however, employs periodic counter
correction. The calibration circuit adds or subtracts counts from the oscillator divider circuit
at the divide by 256 stage, as shown in Figure 9 on page 15. The number of times pulses
are blanked (subtracted, negative calibration) or split (added, positive calibration) depends
upon the value loaded into the five-bit Calibration byte found in the Control Register. Adding
counts speeds the clock up, subtracting counts slows the clock down.
The Calibration Byte occupies the five lower order bits (D4-D0) in the Control register
(1FF8h). These bits can be set to represent any value between 0 and 31 in binary form. Bit
D5 is the Sign Bit; '1' indicates positive calibration, '0' indicates negative calibration.
Calibration occurs within a 64 minute cycle. The first 62 minutes in the cycle may, once per
minute, have one second either shortened by 128 or lengthened by 256 oscillator cycles. If a
binary '1' is loaded into the register, only the first 2 minutes in the 64 minute cycle will be
modified; if a binary 6 is loaded, the first 12 will be affected, and so on.
Therefore, each calibration step has the effect of adding 512 or subtracting 256 oscillator
cycles; for every 125,829,120 actual oscillator cycles, that is +4.068 or –2.034 PPM of
adjustment per calibration step in the calibration register. Assuming that the oscillator is in
fact running at exactly 32,768 Hz, each of the 31 increments in the Calibration Byte would
represent +10.7 or –5.35 seconds per month which corresponds to a total range of +5.5 or
–2.75 minutes per month.
Two methods are available for ascertaining how much calibration a given M48T59/Y/V may
require. The first involves simply setting the clock, letting it run for a month and comparing it
to a known accurate reference (like WWV broadcasts). While that may seem crude, it allows
the designer to give the end user the ability to calibrate his clock as his environment may
require, even after the final product is packaged in a non-user serviceable enclosure. All the
designer has to do is provide a simple utility that accesses the Calibration Byte.
The second approach is better suited to a manufacturing environment, and involves the use
of the IRQ/
FT pin. The pin will toggle at 512 Hz when the Stop Bit (D7 of 1FF9h) is '0,' the
FT Bit (D6 of 1FFCh) is '1,' the AFE Bit (D7 of 1FF6h) is '0,' and the Watchdog Steering Bit
(D7 of 1FF7h) is '1' or the Watchdog Register is reset (1FF7h = 0).
Any deviation from 512 Hz indicates the degree and direction of oscillator frequency shift at
the test temperature. For example, a reading of 512.01024 Hz would indicate a +20 PPM
oscillator frequency error, requiring a –10 (WR001010) to be loaded into the Calibration
Byte for correction. Note that setting or changing the Calibration Byte does not affect the
Frequency Test output frequency.
The IRQ
/FT pin is an open drain output which requires a pull-up resistor for proper
operation. A 500 - 10 kΩ resistor is recommended in order to control the rise time. The FT
Bit is cleared on power-down.
For more information on calibration, see Application Note AN934, “TIMEKEEPER
Calibration.
Obsolete Product(s) - Obsolete Product(s)Obsolete Product(s) - Obsolete Product(s)
M48T59, M48T59Y, M48T59V Clock operations
15/32
Figure 8. Crystal accuracy across temperature
Figure 9. Clock calibration
3.5 Setting the alarm clock
Registers 1FF5h-1FF2h contain the alarm settings. The alarm can be configured to go off at
a prescribed time on a specific day of the month or repeat every month, day, hour, minute, or
second. It can also be programmed to go off while the M48T59/Y/V is in the battery back-up
mode of operation to serve as a system wake-up call.
Bits RPT1-RPT4 put the alarm in the repeat mode of operation. Table 6 on page 16 shows
the possible configurations. Codes not listed in the table default to the once per second
mode to quickly alert the user of an incorrect alarm setting.
Note: User must transition address (or toggle chip enable) to see Flag Bit change.
When the clock information matches the alarm clock settings based on the match criteria
defined by RPT1-RPT4, AF (Alarm Flag) is set. If AFE (Alarm Flag Enable) is also set, the
AI00999
–160
0 10203040506070
Frequency (ppm)
Temperature °C
80–10–20–30–40
–100
–120
–140
–40
–60
–80
20
0
–20
= -0.038 (T - T
0
)
2
± 10%
F
ppm
C
2
T
0
= 25 °C
AI00594B
NORMAL
POSITIVE
CALIBRATION
NEGATIVE
CALIBRATION

M48T59Y-70MH1F

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
IC RTC CLK/CALENDAR PAR 28SOH
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet