Obsolete Product(s) - Obsolete Product(s)Obsolete Product(s) - Obsolete Product(s)
M41T256Y Clock operation
19/30
3.5 Tamper indication circuit
The M41T256Y provides an independent input pin, the tamper pin (TP) which can be used
to monitor a signal which can result in the setting of the tamper bit (TB) if the tamper enable
bit (TEB) is set to a '1.'
The tamper pin is triggered by being connected to V
CC
/V
BAT
through an external switch.
This switch is normally open in the application, allowing the pin to be “floating” (internally
latched to V
SS
when TEB is set). When this switch is closed (connecting the pin to
V
CC
/V
BAT
), the tamper bit will be immediately set. This allows the user to determine if the
device has been physically moved or tampered with. The tamper bit is a “read only” bit and
is reset only by taking the tamper pin to ground and resetting the tamper enable bit to '0.'
This function operates both under normal power, and in battery back-up. If the switch closes
during a power-down condition, the bit will still be set correctly.
Note: Upon initial battery attach or initial power application without the battery, the state of TEB
(and TB) will be undetermined. Therefore TEB must be initialized to a '0.'
3.6 Tamper event time-stamp
If a tamper occurs, not only will the tamper bit be set, but the event will also automatically be
time-stamped. This is accomplished by freezing the normal update of the clock registers
(7FF7h through 7FFFh) immediately following a tamper event. Thus, when tampering
occurs, the user may first read the time registers to determine exactly when the tamper
event occurred, then re-enable the clock update to the current time (and reset the Tamper
Bit, TB) by resetting the tamper enable bit (TEB).
The time update will then resume, and after either a stop condition or incrementing the
address pointer to a RAM address and back, the clock can be read to determine the current
time.
Note: The tamper bit (TB) must always be set to '0' in order to read the current time.
3.7 Calibrating the clock
The M41T256Y is driven by a quartz controlled oscillator with a nominal frequency of
32,768Hz. The devices are tested not exceed ±35 ppm (parts per million) oscillator
frequency error at 25
o
C, which equates to about ±1.53 minutes per month. When the
calibration circuit is properly employed, accuracy improves to better than +1/–2 ppm at
25°C.
The oscillation rate of crystals changes with temperature (see Figure 11 on page 20).
Therefore, the M41T256Y design 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 12 on page 20. The number of times pulses which are blanked (subtracted,
negative calibration) or split (added, positive calibration) depends upon the value loaded into
the five calibration bits found in the control register. Adding counts speeds the clock up,
subtracting counts slows the clock down.
The calibration bits occupy the five lower order bits (D4-D0) in the control register (7FF8h).
These bits can be set to represent any value between 0 and 31 in binary form. Bit D5 is a
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
Obsolete Product(s) - Obsolete Product(s)
Obsolete Product(s) - Obsolete Product(s)Obsolete Product(s) - Obsolete Product(s)
Clock operation M41T256Y
20/30
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
running at exactly 32,768Hz, 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.
Figure 11. Crystal accuracy across temperature
Figure 12. Clock calibration
Two methods are available for ascertaining how much calibration a given M41T256Y may
require.
AI00999b
–160
0 10203040506070
Frequency (ppm)
Temperature °C
80–10–20–30–40
–100
–120
–140
–40
–60
–80
20
0
–20
ΔF
= K x (T –T
O
)
2
K = –0.036 ppm/°C
2
± 0.006 ppm/°C
2
T
O
= 25°C ± 5°C
F
AI00594B
NORMAL
POSITIVE
CALIBRATION
NEGATIVE
CALIBRATION
Obsolete Product(s) - Obsolete Product(s)
Obsolete Product(s) - Obsolete Product(s)Obsolete Product(s) - Obsolete Product(s)
M41T256Y Clock operation
21/30
The first involves setting the clock, letting it run for a month and comparing it to a known
accurate reference and recording deviation over a fixed period of time. Calibration values,
including the number of seconds lost or gained in a given period, can be found in Application
Note AN934: TIMEKEEPER CALIBRATION. This allows the designer to give the end user
the ability to calibrate the clock as the environment requires, even if the final product is
packaged in a non-user serviceable enclosure. The designer could 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 FT pin. The pin will toggle at 512Hz, when the stop bit (ST) is '0,' and the frequency
test bit (FT) is '1.'
Any deviation from 512Hz indicates the degree and direction of oscillator frequency shift at
the test temperature. For example, a reading of 512.010124Hz would indicate a +20 ppm
oscillator frequency error, requiring a –10 (XX001010) 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 FT pin is an open drain output which requires a pull-up resistor to V
CC
for proper
operation. A 500 to 10k resistor is recommended in order to control the rise time. The FT bit
is cleared on power-down.
3.8 Battery low warning
The M41T256Y automatically performs battery voltage monitoring upon power-up. The
battery low (BL) bit, bit D7 of day register, will be asserted if the battery voltage is found to
be less than approximately 2.5V. The BL bit will remain asserted until completion of battery
replacement and subsequent battery low monitoring tests, during the next power-up
sequence.
If a battery low is generated during a power-up sequence, this indicates that the battery is
below approximately 2.5 volts and may not be able to maintain data integrity in the SRAM.
Data should be considered suspect and verified as correct. A fresh battery should be
installed. The battery may be replaced while V
CC
is applied to the device.
The M41T256Y only monitors the battery when a nominal V
CC
is applied to the device. Thus
applications which require extensive durations in the battery back-up mode should be
powered-up periodically (at least once every few months) in order for this technique to be
beneficial. Additionally, if a battery low is indicated, data integrity should be verified upon
power-up via a checksum or other technique.
3.9 Preferred power-on/battery attach defaults
See Ta b l e 4, below.
Table 4. Preferred default values
Condition WC TEB
(1)
1. X = Undetermined; UC = Unchanged
TB
(1)
FT ST
(1)
SLP
(1)
Battery attach or initial power-up 0 X X 0 X X
Power-cycling (with battery) 0 UC UC 0 UC UC
Obsolete Product(s) - Obsolete Product(s)

M41T256YMH7F

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

Products related to this Datasheet