
RS5C372B
- 26 -
2.4.2. When oscillation frequency = target frequency (no clock gain or loss)
Set the adjustment value to 0 or +1, or –64 or –63 to disable adjustment.
2.4.3. When oscillation frequency<target frequency (clock loses)
Adjustment amount = (Oscillation frequency-Target frequency)
Oscillation frequency
×
3.051
×
10
-6
≈
(Oscillation frequency-Target frequency)
×
10
Also a 32.000kHz crystal is used, the same formula is used.
Adjustment amount = (Oscillation frequency-Target frequency)
Oscillation frequency
×
3.125
×
10
-6
Example of calculations
1) When Oscillation frequency = 32768.85Hz; Target frequency = 32768.05Hz
Adjustment amount = (32768.85-32768.05 + 0.1)/(32768.85
×
3.051
×
10
-6
)
≈
(32768.85 + 32768.05)
×
10 + 1 = 9.001
≈
9
Set (F6,F5,F4,F3,F2,F1,F0) to (0,0,0,1,0,0,1)
As this example shows, adjustments to be used when the clock gains shall be distance from 01h.
≈
(Oscillation frequency-Target frequency)
×
10
(2) When Oscillation frequency = 32763.95Hz; Target frequency = 32768.05Hz
Adjustment amount = (32763.95-32768.05)/(32763.95
×
3.051
×
10
-6
)
≈
(32763.95-32768.05)
×
10 = -41.015
≈
-41
To express –41 in 7bit binary digits with sign bit (two’s compliment),
Subtract 41(29h) from 128(80h) in the above case, 80h–29h=57h.
Thus, set (F6, F5, F4, F3, F2, F1, F0) to (1, 0, 1, 0, 1, 1, 1).
As this example shows, Adjustment amount to be used when the clock loses shall be distance from 80h.
After adjustment, adjustment error against the target frequency will be approx. ±1.5ppm at a room
emperature.
Notes
1) Clock frequency output from the 32KOUT pin will not change after adjustment by the time trimming
circuit.
2) Adjustable range: The range of adjustment values for a case oscillation frequency is higher than target
frequency (clock gains) is (F6, F5, F4, F3, F2, F1, F0)=(0, 0, 0, 0, 0, 1, 0) to (0, 1, 1, 1, 1, 1, 1) and the
amount actually adjustable shall be -3.05ppm to -189.2ppm (-3.125ppm to -193.8ppm for 32.000kHz
crystal), thus adjustment is possible until –189.2ppm of delay is generated (+193.8ppm for 32.000kHz
crystal). While, the range of adjustment values for a lower case is (F6, F5, F4, F3, F2, F1, F0)=(1, 1, 1,
1, 1, 1, 1) to (1, 0, 0, 0, 0, 1, 0) and the amount actually adjustable shall be +3.05ppm to +189.2ppm
(+3.125ppm to +193.8ppm for 32.000kHz crystal), thus adjustment is possible until +189.2ppm of delay
is generated (-193.8ppm for 32.000kHz crystal).