
3-WIRE REAL-TIME CLOCK
Rev.2.0_00
S-35192A
Seiko Instruments Inc.
23
1.
How to calculate
(1)
If current oscillation frequency > target frequency (in case the clock is fast)
Correction value
*1
= 128 Integral value
(Current oscillation frequency
actual measurement value
*2)
(Minimum resolution
*4)
(Current oscillation frequency
actual measurement value
*2)
(Target oscillation frequency
*3)
×
Caution
The figure range which can be corrected is that the calculated value is from 0 to 64.
*1. Convert this value to be set in the clock correction register.
For how to convert, refer to “(a) Calculation
example 1”.
*2. Measurement value of a clock pulse output from the 32KO pin.
*3. Target value of average frequency when the clock correction function is used.
*4. Refer to Table 11.
(a)
Calculation example 1
In case of current oscillation frequency actual measurement value = 32.771 [kHz], target oscillation frequency =
32.768 [kHz], B0 = 0 (Minimum resolution = 3.052 ppm)
Correction value = 128
Integral value
()
32771
()
32768
()
32771
× ()
3.052
× 106
= 128
Integral value (29.99)= 128 29 = 99
Convert the correction value “99” to 7-bit binary and obtain “01100011 b”.
Reverse the correction value “01100011 b” and set it to B7 to B1 of the clock correction register.
Thus, set the clock correction register:
(B7, B6, B5, B4, B3, B2, B1, B0) = (1, 1, 0, 0, 0, 1, 1, 0)
(2)
If current oscillation frequency < target frequency (in case the clock is slow)
Correction value
= Integral value
(Current oscillation frequency
actual measurement value)
(Minimum resolution)
(Current oscillation frequency
actual measurement value)
(Target oscillation frequency)
×
+ 1
Caution
The figure range which can be corrected is that the calculated value is from 0 to 62.
(a)
Calculation example 2
In case of current oscillation frequency actual measurement value = 32.765 [kHz], target oscillation frequency =
32.768 [kHz]. B0 = 0 (Minimum resolution = 3.052 ppm)
Correction value = Integral value
()
32768
()
32765
()
32765
× ()
3.052
× 10-6
+ 1
= Integral value (30.00) + 1 = 30 + 1 = 31
Thus, set the clock correction register:
(B7, B6, B5, B4, B3, B2, B1, B0) = (1, 1, 1, 1, 1, 0, 0, 0)
(b)
Calculation example 3
In case of current oscillation frequency actual measurement value = 32.765 [kHz], target oscillation frequency =
32.768 [kHz], B0 = 1 (Minimum resolution = 1.017 ppm)
Correction value = Integral value
()
32768
()
32765
()
32765
× ()
1.017
× 10-6
+ 1
= Integral value (90.03) + 1
This calculated value exceeds the correctable range 0 to 62.
B0
= “1” (minimum resolution = 1.017 ppm) indicates the correction is impossible.