125pf e
125pf e
125pf e
13, 2009
VDD
OSCIN
CG
RF
RD
CS
CD
32768Hz
Crystal
CS: Stray Capacitance
OSCOUT
When CS+CGCD/(CG+CD) is equal to CL, the crystal oscillates at its nominal frequency
(32768Hz).
When CS+CGCD/(CG+CD) is bigger than CL, the crystal oscillates slower than 32768Hz.
And, when CS+CGCD/(CG+CD) is smaller than CL, the crystal oscillates faster than 32768Hz.
1/4
CGin
VDD
OSCIN
Oscillation
CGin,CDin 12pF(Typ.)
CS
Circuit
RD
CDin
OSCOUT
32768Hz
Crystal(CL=6 to 8pF)
VDD
CGin,CDin 12pF(Typ.)
CGin
OSCIN
Oscillation
CGout,CDout 12pF
CGout
CDout
Circuit
RD
CDin
CS
CS 0.5pF
32768Hz
Crystal (CL=12.5pF)
OSCOUT
2/4
But power consumption increases from 0.35A to 0.53A, minimum time keeping voltage
decreases, oscillation negative resistance is worse, and oscillator margin decreases.
Most of crystal manufacturers recommend users to make the negative resistance of the
oscillation circuit bigger enough against the equivalent series resistor of the crystal. Oscillator
margin means the equivalent series resistor of the crystal (Refer to the specifications of the
crystal.) plus negative resistance, and the sum divides by the equivalent series resistor.
Generally it is 5.0times or more. If oscillation margin is around 3.4 times, this oscillator will
oscillate in normal condition, but may halt under bad conditions such as low temperature. The
definition of negative resistance and its measurement method are also written in the catalogs of
the crystals. Ricoh recommends to use CGout<15pF and CDout=0pF.
< How to adjust the clock frequency with software calibration of Ricoh RTC>
If 12.5pF crystal is used without CGout and CDout, Ricohs RTC will run approximately 80ppm
faster than normal use, that is, 210sec every month. But Ricohs RTC incorporates the clock
adjustment circuit. To correct time error in the oscillation frequency of the crystal oscillator, the
oscillation adjustment circuit is configured to allow correction of a time count gain or loss from
the CPU within a maximum range of 189ppm. The oscillation adjustment circuit can adjust
80ppm-gain clock used even if 12.5pF crystal is used for precision clock.
To correct time count gain, write the oscillation adjustment value calculated with the next
formula to the oscillation adjustment register.
Oscillation adjustment value = (oscillator frequency target frequency) 10 + 1
Generally, the temperature characteristics of the 32768Hz crystal oscillator describe a parabola
of which peak is at 25C. Therefore, to obtain the accurate clock under the average temperature,
rather higher target frequency may be appropriate. (+1 to 6ppm higher than 32768Hz).
For example, in the Table 2, oscillator frequency is 32770.49Hz (CGout=CDout=0pF). When the
desired frequency is 32768.05Hz, the oscillation adjustment value is (32770.49-32768.05) 10
+ 1 = 25.4 25. 25 is described 19h in hexadecimal numeral. (00011001) shall be
written to address 7h.
< How to evaluate the clock gain or loss>
The oscillator adjustment circuit is configured to change time counts of 1 second on the basis of
the settings of the oscillation adjustment register once in 20seconds. The oscillation adjustment
circuit does not effect the frequency of 32768Hz-clock pulse output from the 32KOUT
(CLKOUT) pin. Therefore, after writing the oscillation adjustment register, we cannot measure
the clock error with probing 32KOUT (CLKOUT) clock pulses. The way to measure the clock
error as follows:
(1) Output a 1Hz clock pulse of Pulse Mode with interrupt pin
Each RTC has different 1Hz output pin and the way to set the register.
Table 3: 1Hz output pin and the way to set the register for output 1Hz clock
Setting
Output Pin
RS5C372A
/INTRA(5pin)
Address Eh (00000011)
RS5C372B
/INTR(5pin)
RS/RV5C338A
/INTR(6pin)
Address Eh (00XX0011)
RV5C339A
/INTRA(6pin)
RS/RV/RT5C348A/B, R2043T
/INTR(6pin)
RV5C386A/387A,R2023T
/INTRA(6pin)
R2043K,R2033K
/INTR(10pin)
R2023K
/INTRA(10pin)
R2051Kxx,R2061Kxx, R2062Kxx
/INTR(9pin)
/INTR(10pin)
R2051Sxx,R2061Sxx
3/4
(2) After setting the oscillation adjustment register, 1Hz clock period changes every 20seconds
like Fig. 4.
1Hz clock pulse
T0
T0
T0
19 times
T1
1 time
Fig.4
Measure the interval of T0 and T1 with frequency counter.
digits is recommended for the measurement.
4/4