
ML610Q421/ML610Q422/ML610421 User’s Manual
Chapter 7 Time Base Counter
7 – 9
7.3.3
Low-Speed Time Base Counter Frequency Adjustment Function
Frequency adjustment (Adjustment range: Approx.
−
488ppm to +488ppm. Adjustment accuracy: Approx. 0.48ppm) is
possible for outputs of T8KHZ to T1HZ of LTBC by using the low-speed time base counter frequency adjust registers
(LTBADJH and LTBADJL).
Table7-1 shows correspondence between the frequency adjustment values (LTBADJH, LTBADJL) and adjustment
ratio.
Table 7-1 Correspondence between Frequency Adjustment Values (LTBADJH, LTBADJL)
and Adjustment Ratio
LADJ10 to 0
Hexadecimal Frequency adjustment ratio (ppm)
0
1
1
1
1
1
1
1
1
1
1
3FFH
+487.80
0
1
1
1
1
1
1
1
1
1
0
3FEH
+487.33
:
:
:
:
:
:
:
:
:
:
:
:
:
0
0
0
0
0
0
0
0
0
1
1
003H
+1.43
0
0
0
0
0
0
0
0
0
1
0
002H
+0.95
0
0
0
0
0
0
0
0
0
0
1
001H
+0.48
0
0
0
0
0
0
0
0
0
0
0
000H
0
1
1
1
1
1
1
1
1
1
1
1
7FFH
−
0.48
1
1
1
1
1
1
1
1
1
1
0
7FEH
−
0.95
:
:
:
:
:
:
:
:
:
:
:
:
:
1
0
0
0
0
0
0
0
0
0
1
401H
−
487.80
1
0
0
0
0
0
0
0
0
0
0
400H
−
488.28
The adjustment values (LADJ10 to LADJ0) to be set in LTBADJH and LTBADJL can be obtained by using the
following equations:
Adjustment value
= Frequency adjustment ratio
×
2097152 (decimal)
= Frequency adjustment ratio
×
200000h (hexadecimal)
Example 1: When adj15.0ppm (gaining time)
Adjustment value
= +15.0ppm
×
2097152 (decimal)
= +15.0
×
10
−
6
×
2097152
= +31.45728 (decimal)
≅
01Fh (hexadecimal)
Example 2: When adjusting
−
25.5ppm (losing time)
Adjustment value
=
−
25.5ppm
×
2097152 (decimal)
=
−
25.5
×
10
−
6
×
2097152
=
−
53.477376 (decimal)
≅
7CCh (hexadecimal)
Note:
The low-speed clock (LSCLK) and the outputs of T32KHZ and T16KHZ of LTBC are not adjusted by the frequency
adjust function.
The frequency adjustment accuracy does not guarantee the accuracy including the frequency variation of the crystal
oscillation (32.768kHz) due to temperature variations.
Summary of Contents for ML610421
Page 1: ...ML610Q421 ML610Q422 ML610421 User s Manual Issue Date Feb 9 2015 FEUL610Q421 06...
Page 15: ...Chapter 1 Overview...
Page 44: ...Chapter 2 CPU and Memory Space...
Page 49: ...Chapter 3 Reset Function...
Page 53: ...Chapter 4 MCU Control Function...
Page 69: ...Chapter 5 Interrupts INTs...
Page 93: ...Chapter 6 Clock Generation Circuit...
Page 110: ...Chapter 7 Time Base Counter...
Page 121: ...Chapter 8 Capture...
Page 129: ...Chapter 9 1 kHz Timer 1kHzTM...
Page 135: ...Chapter 10 Timers...
Page 160: ...Chapter 11 PWM...
Page 172: ...Chapter 12 Watchdog Timer...
Page 180: ...Chapter 13 Synchronous Serial Port...
Page 195: ...Chapter 14 UART...
Page 216: ...Chapter 15 I2 C Bus Interface...
Page 231: ...Chapter 16 NMI Pin...
Page 237: ...Chapter 17 Port 0...
Page 246: ...Chapter 18 Port 1...
Page 252: ...Chapter 19 Port 2...
Page 259: ...Chapter 20 Port 3...
Page 270: ...Chapter 21 Port 4...
Page 282: ...Chapter 22 Port A...
Page 290: ...Chapter 23 Melody Driver...
Page 304: ...Chapter 24 RC Oscillation Type A D Converter...
Page 327: ...Chapter 25 Successive Approximation Type A D Converter...
Page 338: ...Chapter 26 LCD Drivers...
Page 371: ...Chapter 27 Battery Level Detector...
Page 378: ...Chapter 28 Power Supply Circuit...
Page 381: ...Chapter 29 On Chip Debug Function...
Page 384: ...Appendixes...
Page 435: ...Revision History...