NEC 78K0R/KE3 User Manual page 285

16-bit single-chip microcontrollers
Table of Contents

Advertisement

Correction example <1>
Example of correcting from 32772.3 Hz to 32768 Hz (32772.3 Hz − 131.2 ppm)
[Measuring the oscillation frequency]
The oscillation frequency
outputting about 1 Hz from the RTC1HZ pin when the watch error correction register is set to its initial value (00H).
Note See 7.4.5 1 Hz output of real-time counter for the setting procedure of outputting about 1 Hz from the
RTC1HZ pin, and 7.4.6 32.768 kHz output of real-time counter for the setting procedure of outputting
about 32 kHz from the RTCCL pin.
[Calculating the correction value]
(When the output frequency from the RTCCL pin is 32772.3 Hz)
If the target frequency is assumed to be 32768 Hz (32772.3 Hz − 131.2 ppm), the correction range for −131.2
ppm is −63.1 ppm or less, so assume DEV to be 0.
The expression for calculating the correction value when DEV is 0 is applied.
Correction value = Number of correction counts in 1 minute ÷ 3
[Calculating the values to be set to (F6 to F0)]
(When the correction value is 86)
If the correction value is 0 or more (when delaying), assume F6 to be 0.
Calculate (F5, F4, F3, F2, F1, F0) from the correction value.
{(F5, F4, F3, F2, F1, F0) − 1}
(F5, F4, F3, F2, F1, F0)
(F5, F4, F3, F2, F1, F0)
Consequently, when correcting from 32772.3 Hz to 32768 Hz (32772.3 Hz − 131.2 ppm), setting the correction
register such that DEV is 0 and the correction value is 86 (bits 6 to 0 of SUBCUD: 0101100) results in 32768 Hz
(0 ppm).
Figure 7-27 shows the operation when (DEV, F6, F5, F4, F3, F2, F1, F0) is (0, 0, 1, 0, 1, 1, 0, 0).
CHAPTER 7 REAL-TIME COUNTER
Note
of each product is measured by outputting about 32 kHz from the RTCCL pin or
= (Oscillation frequency ÷ Target frequency − 1)
= (32772.3 ÷ 32768 − 1)
= 86
2
= 86
= 44
= (1, 0, 1, 1, 0, 0)
User's Manual U17854EJ9V0UD
32768
60 ÷ 3
32768
60 ÷ 3
285

Advertisement

Table of Contents
loading

Table of Contents