Design Guide for the clock circuit with a crystal and Ricoh RTC IC

Similar documents
RS5C313 ULTRA-COMPACT REAL-TIME CLOCK IC OUTLINE FEATURES NO.EA

A variety of pagers day of a week, hour, minute and second. TV set and VCR CPU interface via three wires

R 5C338A 3-WIRE SERIAL INTERFACE REAL-TIME CLOCK ICS WITH VOLTAGE MONITORING FUNCTION OUTLINE FEATURES NO. EA

RV5C387A. I 2 C bus SERIAL INTERFACE REAL-TIME CLOCK IC WITH VOLTAGE MONITORING FUNCTION OUTLINE

Application Note 58 Crystal Considerations with Dallas Real Time Clocks

R2221x R2223x. 2-wire Serial Interface Real Time Clock IC OUTLINE FEATURES NO.EA

Low Power Consumption IPS009BL9_BL9A_BLAA AT Cut 32KHz SPXO

PT7C43190 Real-time Clock Module

Low-Current Consumption, Real-Time Clock IC (General-Purpose IC)

MCU Reset and Oscillator Circuits Application Note

Application Note Crystal for Blue Tooth Audio IC

Xicor Real Time Clock Family Users Guide. New Devices Integrate Crystal Compensation Circuitry AN of 8.

APPLICATIONS GENERAL DESCRIPTION FEATURES PIN CONFIGURATION PIN ASSIGNMENT /INH, Q0 PIN FUNCTION

S-35190A 3-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Package. Seiko Instruments Inc. 1

Oscillator fail detect - 12-hour Time display 24-hour 2 Time Century bit - Time count chain enable/disable -

S-5813A/5814A Series CMOS TEMPERATURE SENSOR IC. Rev.1.2_00. Features. Applications. Package. Seiko Instruments Inc. 1

S-8120AMP LOW-VOLTAGE C-MOS HIGH-PRECISION TEMPERATURE SENSOR IC. Rev.1.1

IPS009 series IC CMOS SPXO

RS5C62 APPLICATION MANUAL ELECTRONIC DEVICES DIVISION

SP4403 Electroluminescent Lamp Driver

Preliminary Rev. M Accusilicon AS318-B Series Professional Audiophile Crystal Oscillator

MK2705 AUDIO CLOCK SOURCE. Description. Features. Block Diagram DATASHEET

IPS009 series IC CMOS SPXO

S-35392A 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.2_03

SG500. Low Jitter Spectrum Clock Generator for PowerPC Designs. Approved Product. FREQUENCY TABLE (MHz) PRODUCT FEATURES CONNECTION DIAGRAM

±2.5 C ( 55 to +130 C) mv/ C Typ. Ta = 30 C: V Typ. Ta = +30 C: V Typ. Ta = +130 C: V Typ. ±0.4% Typ.

SM8578BV Real-time Clock IC

IDT1337 REAL-TIME CLOCK WITH I 2 C SERIAL INTERFACE. Features. General Description. Applications. Block Diagram DATASHEET

LOW DROPOUT CMOS VOLTAGE REGULATOR S-818 Series

XC2163 Series GENERAL DESCRIPTION APPLICATIONS FEATURES PIN ASSIGNMENT PIN CONFIGURATION /INH, Q0 PIN FUNCTION

32.768kHz output Tuning fork Quartz Crystal Oscillator IC

DS1307ZN. 64 X 8 Serial Real Time Clock

S Series FOR AUTOMOTIVE 125 C OPERATION 2-WIRE INTERVAL TIMER CONVENIENCE TIMER. Features. Application. Package.

REAL-TIME CLOCK WITH BATTERY BACKED NON-VOLATILE RAM IDT1338. General Description. Features. Applications. Block Diagram DATASHEET

DS4000 Digitally Controlled TCXO

HIGH SPEED, 100V, SELF OSCILLATING 50% DUTY CYCLE, FULL-BRIDGE DRIVER

ML Bit Data Bus Input PLL Frequency Synthesizer

RayStar Microelectronics Technology Inc. Ver: 1.4

Parameters Symbol Min. Typ. Max. Unit Condition Frequency Range Output Frequency Range f MHz

ABLIC Inc., 2012 Rev.1.0_02

S-35390A 2-WIRE REAL-TIME CLOCK. Features. Applications. Packages. SII Semiconductor Corporation, Rev.4.

ACE5372. Low Power Real-Time Clock (RTC)

Features MIC2193BM. Si9803 ( 2) 6.3V ( 2) VDD OUTP COMP OUTN. Si9804 ( 2) Adjustable Output Synchronous Buck Converter

HD44105D. (Dot Matrix Liquid Crystal Graphic Display Common Driver) Description. Features. Ordering Information

HT8 MCU Internal Ultra-Low Power Consumption RTC Application Note

MK1413 MPEG AUDIO CLOCK SOURCE. Features. Description. Block Diagram DATASHEET

Parameters Symbol Min. Typ. Max. Unit Condition Frequency Range. Frequency Stability and Aging ppm ppm ppm ppm

Type Ordering Code Package TDA Q67000-A5168 P-DIP-18-5

S-35190A 3-WIRE REAL-TIME CLOCK. Features. Applications. Packages. ABLIC Inc., Rev.4.2_03

CF5008A1 2. VCXO Module IC OVERVIEW FEATURES SERIES CONFIGURATION ORDERING INFORMATION

High Speed Clock Distribution Design Techniques for CDC 509/516/2509/2510/2516

S-35390A H Series FOR AUTOMOTIVE 105 C OPERATION 2-WIRE REAL-TIME CLOCK. Features. Packages. ABLIC Inc., Rev.2.

TS2509 3A / 500KHz PWM Buck Converter

S-5814A Series : 2.5 C ( 30 C to 100 C) Ta = 30 C : V typ. Ta = 30 C : V typ. Ta = 100 C : V typ. 0.5% typ.

Data Sheet, V 1.1, July 2006 TDK5110F. 434 MHz ASK/FSK Transmitter in 10-pin Package Version 1.1. Wireless Control Components. Never stop thinking.

Package and Pin Assignment SSOP-6 (0.64mm pitch) OSCIN OSCOUT TXEN 3 VSS 4 TXOUT 5 VSS 6 7 MODIN 8 HiMARK SW DO RES RESB VREFP VSS Symbol

BATRON. Specification for BTHQ 21605V-FSRE-I2C-COG

AN2158. Designing with the MC68HC908JL/JK Microcontroller Family. Introduction. Semiconductor Products Sector Application Note

MONOLITHIC GATED DELAY LINE OSCILLATOR (SERIES 3D7702)

SC8560S. Silan Semiconductors DIGITAL ALARM CLOCK HANGZHOU SILAN MICROELECTRONICS CO.,LTD. DESCRIPTION FEATURES ORDERING INFORMATION

ETM45E-03. Application Manual. Real Time Clock Module RX8900SA / CE. Preliminary

HIGH RIPPLE-REJECTION LOW DROPOUT LOW INPUT-AND-OUTPUT CAPACITANCE CMOS VOLTAGE REGULATOR

HA7210, HA kHz to 10MHz, Low Power Crystal Oscillator. Description. Features. Ordering Information. Applications. Typical Application Circuits

High Speed PWM Controller

Preliminary. Charge-pump DC/DC Converter & Voltage Regulator S1F75510 DESCRIPTION FEATURES

S-35390A 2-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Packages. Seiko Instruments Inc. 1

HIGH RIPPLE-REJECTION LOW DROPOUT MIDDLE OUTPUT CURRENT CMOS VOLTAGE REGULATOR

S-35399A03 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.1_03

AN2867 Application note

High Speed PWM Controller

4.5V to 32V Input High Current LED Driver IC For Buck or Buck-Boost Topology CN5816. Features: SHDN COMP OVP CSP CSN

MCP3909. Energy Metering IC with SPI Interface and Active Power Pulse Output. Features. Description. Package Type

2.5 C ( 55 C to 130 C) Ta = 30 C: V Typ. Ta = 30 C: V Typ. Ta = 130 C: V Typ. 0.4% Typ. ( 20 to 80 C)

S-8110C/8120C Series CMOS TEMPERATURE SENSOR IC. Features. Applications. Packages

Voltage Controlled Quartz Crystal Oscillator (VCXO) ASIC

PERFORMANCE SPECIFICATION SHEET

ETM45E-05. Application Manual. Real Time Clock Module RX8900SA CE. Preliminary

Application Note. External Oscillator Solutions with GreenPAK AN-CM-233

1 Second Time Base From Crystal Oscillator

CS SK DI DO NC TEST GND. Figure 1. Table 1

RV-4162 Application Manual

SCA100T-D07 2-AXIS HIGH PERFORMANCE ANALOG ACCELEROMETER

SERIAL I/O REAL TIME CLOCK

PERFORMANCE SPECIFICATION SHEET

ICS660 DIGITAL VIDEO CLOCK SOURCE. Description. Features. Block Diagram DATASHEET

AT V,3A Synchronous Buck Converter

ICS HIGH PERFORMANCE VCXO. Features. Description. Block Diagram DATASHEET

TSM Channel Self Calibration Capacitive Touch Sensor SPECIFICATION V1.0

1A, 52KHz, Step-Down Switching Regulator LM2575

TABLE 1: PART NUMBER SPECIFICATIONS

PL600-27T CLK0 XIN/FIN 1. Xtal Osc CLK1 XOUT CLK2. Low Power 3 Output XO PIN ASSIGNMENT FEATURES DESCRIPTION CLK2 GND VDD FIN CLK0 SOT23-6L

Semiconductor ML9472 GENERAL DESCRIPTION FEATURES FEDL Static,1/2Duty 60 Output LCD Driver

64CH COMMON DRIVER FOR DOT MATRIX LCD INTRODUCTION FEATURES 100 QFP-1420C

ZLDO VOLT ULTRA LOW DROPOUT REGULATOR ISSUE 2 - JUNE 1997 DEVICE DESCRIPTION FEATURES APPLICATIONS

Techcode TD8215. Step-up DC/DC Controller. General Description. Features. Applications. Pin Configurations DATASHEET TD8215 INV SCP VDD CTL

ST755 ADJUSTABLE INVERTING NEGATIVE OUTPUT CURRENT MODE PWM REGULATORS

DS1307/DS X 8 Serial Real Time Clock

onlinecomponents.com

The FD128 series is a direct PWM drive IC with single-phase and bipolar drive. The IC is suitable for variable speed control Fan of PC.

SOT-23-5, 5-Pin SON(A) *1. Attention should be paid to the power dissipation of the package when the output current is large.

Transcription:

July 24, 29 Design Guide for the clock circuit with a crystal and Ricoh RTC IC Each Ricoh RTC in Table 1 shown below has an oscillator circuit described in Fig.1. The oscillator circuit works only with the attachment of a 32768Hz crystal. Definitely RTC works, but depending on the parasitic capacitance of PCB etc., accuracy of the clock is not always good. For a better accuracy of the clock, some adjustment is necessary. PCB layout around the oscillator circuit sometimes causes a trouble without care, because the current level for this circuit is extremely small. This document explains how to design the oscillator circuit with a crystal and Ricoh RTC IC. Fig. 1 Basic Example VDD OSCIN VDD CGin,CDin 1-12pF(Typ.) OSC. Circuit CG 32768Hz Crystal RD CD OSCOUT < Ricoh RTC lineup that is applied to this document > This document is applied to the following Ricoh RTC lineup: Table 1: The RTC applied to this document SSOP8 SSOP1 SSOP1G TSSOP1G FFP12 SSOP16 SPI - RS5C348A RV5C348A RT5C348B R243K (4 wire) RS5C348B RV5C348B 3 wire - RS5C338A RV5C338A RV5C339A I 2 C Bus RS5C372A RS5C372B - RV5C386A RV5C387A R243T R233T R223T R251T1 R261Kxx R262Kxx R233K R251Kxx R223K R261Sxx R251Sxx 1/12

1. Characteristics of Oscillator circuit 1.1. CL value of a crystal The load capacitance (CL) of the crystal is a critical parameter. The CL is not the capacitance of the crystal itself. CL means an external capacitance in parallel with the crystal. Each crystal manufacturer offers several different CL value crystals with the same frequency. When a crystal is connected to an oscillator circuit, if the specified CL value and external capacitance value in parallel with the crystal are the same, the frequency will be the specified value at normal temperature (25 C). For example, in the Fig2, When CS+CG CD/(CG+CD) = CL, the crystal oscillates at its nominal frequency (32768Hz). When CS+CG CD/(CG+CD) > CL, the crystal oscillates slower than 32768Hz. Further, when CS+CG CD/(CG+CD) < CL, the crystal oscillates faster than 32768Hz. Fig. 2 RF CG RD CD CS CS: parasitic capacitance 32768Hz Crystal We recommend crystals with CL ranging from 6 to 8pF for our RTC IC. (CL range is from 6 to 9pF in terms of R223x, R233x, R243x.) Some crystal manufacturers offer a crystal with CL=12.5pF as a standard item. If you choose a crystal with CL=12.5pF, refer to our Oscillation frequency calibration with CL=12.5pF crystal and Ricoh RTC IC (http://www.ricoh.com/lsi/product_rtc/info/125pf-e.pdf). 1.2. Oscillation allowance To judge the oscillator circuit, oscillation allowance is a critical parameter. The oscillation allowance means the value of which the negative resistance (-r) of the oscillator frequency is divided by maximum equivalent series resistance of the crystal. Supposed that a resistor is added to a crystal in series as in Fig.3 shown below, then increase the resistance value until oscillator stops. The resistance value just before stopping the oscillation plus equivalent series resistance is approximately equal to negative resistance value. Considering the effect of the distribution among products and ambient temperature, choose the appropriate value crystal and the IC. Generally, 5 times is said to be an ideal value. Oscillation allowance is closely related to the value of CG, CD, and CS. Each Ricoh RTC IC has an oscillation booster circuit to reduce the starting time for RTC. If the oscillation booster detects the oscillation halt, the booster boosts the driver of the oscillator in a certain term. Because of this, if the oscillator condition is bad, oscillation stops->oscillator booster starts->oscillator booster stops -> oscillation stops, the cycle will be intermittently repeated. If this phenomenon happens, the clock will be delay. Therefore, to evaluate the negative resistance value and oscillation allowance, it is necessary to judge the oscillation halting point is when the intermittent oscillation starts. Fig.3 RF RD CG CD CS r CS: Parasitic Capacitance 32768Hz Crystal 2/12

1.3. Correlation between the oscillation stabilize capacitors (CG, CD) and other characteristics To compose the oscillator circuit, check the following items: Oscillator Frequency Oscillation Maintained Voltage Consumption Current Oscillation Allowance Start-up time for oscillation Graphs which describes the frequency, oscillation maintained voltage, consumption current, oscillation allowance with R251K1 and a external CGOUT, are shown below: Oscillator frequency deviation vs. CGOUT Ta=25 C, with FC135(Seiko Epson) CGOUT=pF's deviation=ppm Consumption current of operating as clock vs. CGOUT Ta=25 C, with FC135(Seiko Epson).6 Oscillator Frequency Deviation f/f(ppm) -1-2 -3-4 -5-6 5 1 15 2 25 CGOUT(pF) Operating Consumption Current (ua).5.4.3.2.1 5 1 15 2 25 CGOUT(pF) Oscillation maintained voltage vs. CGOUT Ta=25 C, with FC135(Seiko Epson) Oscillation maintained voltage(v).8.7.6.5.4.3.2.1 5 1 15 2 25 CGOUT(pF) Oscillation allowance vs. CGOUT Ta=25 C, with FC135(Seiko Epson) Oscillation margin 1 9 8 7 6 5 4 3 2 1 5 1 15 2 25 CGOUT(pF) General tendency of CG and CD vs. characteristics is shown in the next table. Table 2. Small Value<- (CG, CD) ->Large value High Oscillator Frequency Low Low Oscillation maintained voltage High Small Consumption Current Large Large Oscillation Allowance Small Short Oscillation start-up time Long As described in the table shown above, the smaller value of CG and CD, the better the most 3/12

characteristics except oscillator frequency are. As it was mentioned in the chapter 1.3 of this document, if you choose a crystal with small CL, you can make CG and CD small. In other words, if you choose a crystal with small CL, most characteristics shown above will be improved. 1.4. Effect by the third capacitance (CS) In this section, the effect by the parasitic capacitance of PCB, so-called CS, is described. Next graphs are the typical characteristics of oscillator frequency and oscillator frequency deviation vs. CS. Sample: RV5C338A CS value: Instead of actual capacitance, external capacity is used for this experiment. Oscillator frequency deviation vs. CS Ta=25 C, with CFS145(Citizen) Deviation=ppm, specified at CGOUT=pF Oscillator frequency deviation f/f(ppm) -1-2 -3-4 -5-6 -7-8 -9-1 2 4 6 8 1 CS(pF) Oscillation start-up time vs. CS Ta=25 C, with CFS145(Citizen) Oscillator start-up time(s) 2 15 1 5 2 4 6 8 1 12 14 16 CS(pF) As the graphs shown above, oscillator frequency and start-up time varies depending on CS value. Therefore, make the wiring as short as possible to reduce the parasitic capacity of PCB, especially, board layout which the capacity is generated between OSCIN and OSCOUT, should be avoided. 1.5. Measurement of Oscillator Frequency To check the frequency, there are some tips to measure the correct frequency. If you use probes for OSCIN and OSCOUT directly, frequency will vary because of the capacitance of probes. Generally, probes have approximately 15pF capacitance. As the graph shown in Oscillator frequency deviation vs. CGOUT in page 3, when the capacitance for CGOUT is 15pF, frequency varies approximately 4ppm. To avoid this, our option is useful. Most of Ricoh RTC has 32k clock output pin. From this pin, the IC outputs the clock with same frequency as the oscillator circuit, and if some capacities are added, the frequency is maintained. When you check the frequency, we recommend using this 32k output pin. In terms of R261K1, there is no 32k output pin. However, the interrupt pin can output 1Hz clock with a specific setting. If clock adjustment register is not set, the frequency of the circuit is 32768 times of the measured 1Hz clock. 4/12

1.6. Oscillator Frequency Dispersion data caused by ICs Supposed that the crystal has no dispersion, if the IC is replaced to other IC, capacity of the IC itself is different, so frequency may change. For your reference, dispersion of the oscillator frequency deviation by IC graph is shown below: RV5C338A oscillator frequency dispersion Samples: 98lots, 5pieces from each lot are measured. Crystal: MS2V-TS, CL=7pF(Micro Crystal) Ta=23 C, VDD=3V, with a socket. ppm considered as average, and redistributed. 14 12 1 number 8 6 4 2-4 -3.5-3 -2.5-2 -1.5-1 -.5.5 1 1.5 2 2.5 3 3.5 4 Oscillator Frequency Deviatiion(ppm) In the graph above, for example the position of horizontal "ppm", vertical number means the number of samples ranging from -.5 to.ppm frequency deviation. Standard deviation of the graph is.99ppm. 1.7. Oscillator frequency and monthly error Generally, the unit shown the oscillator frequency deviation is ppm. On the other hand, the error of the clock is described as monthly error. For example, ±1ppm error is equal to ±1*1-6 *6*6*24*3=±25.9s/month. ±23ppm error is almost equal to one minute per month error. 5/12

2. Notes on PCB layout This section describes the technical notes on PCB layout. (1) Pins of the crystal and OSCIN/OSCOUT pins of real time clock should be as close as possible to reduce the parasitic capacitance. (2) Avoid the long parallel pattern or cross pattern of OSCIN and OSCOUT. (3) OSCIN/OSCOUT lines and other lines should be as far as possible and they should not be crossed. Oscillator frequency circuit's current capacity is limited to reduce the consumption current. Therefore, they are sensitive against the noise. (4) If possible, we recommend a guard ring with GND line around oscillator circuit, and the layer right under this pattern, put the GND plane to make a light shield against noise. To set the real time clock IC and crystal far from other lines' noise, putting them at the side of the PCB is another good idea. Fig.4 Guardring OSCIN OSCOUT Crystal VSS GND plane :Just under this part In terms of R251Sxx and R261Sxx, to make the layout as above easy, OSCIN/OSCOUT pins are between NC pins, which can be connected to the GND. Fig.5 R251Sxx(SSOP16) NC 1 16 VCC VSB 2 15 VDD CLKOUT 3 14 NC SCL 4 13 OSCIN SDA NC 5 6 12 11 OSCOUT NC /VDCC 7 1 /INTR VSS 8 9 CIN TOP VIEW 6/12

3. Adjustment of gain and loss of the clock 3.1. Conventional adjustment method of oscillator frequency CG and CD are built-in the most of Ricoh real time clock ICs. However, depending on the capacitance of the PCB, and characteristics of the crystal, adjustment might be necessary. As a conventional method, adjustment is possible as in the Fig. 6. If the larger CGOUT/CDOUT is set, frequency will be low. On the contrary, if the smaller capacitors are set, frequency will be high. Note that large capacitance may cause increase of the time keeping current and oscillation maintained voltage, and decrease the oscillation allowance, and change the oscillation start-up time. Fig.6 Oscillation Circuit CG RD CD OSCIN 32kHz OSCOUT CGOUT CDOUT 3.2. Adjustment with Software calibration Without additional CGOUT/CDOUT, adjustment of gain and loss of the clock is possible. The oscillator calibration circuit is configured to change time counts of 1 second on the basis of the settings of the oscillation calibration register once in 2seconds or once in one minute. The advantage of this method is that the time keeping current, oscillation maintained voltage, oscillation allowance, oscillation start-up time can be kept its original characteristics because it is not necessary to change the oscillator circuit itself. If the clock gains, write the calculated value for adjustment to the clock adjustment register of the clock. Adjustment value =(Measured frequency-target frequency) 1+1 Excel software file for executing this calculation is on our Web site. http://www.ricoh.com/lsi/product_rtc/ If following 3 conditions are completed, actual clock adjustment value could be different from target adjustment value that set by oscillator adjustment function. 1. Using oscillator adjustment function 2. Access to RTC at random, or synchronized with external clock that has no relation to RTC, or synchronized with periodic interrupt in pulse mode. 3. Access to RTC more than 2 times per each second on average. For more details, please contact to Ricoh. 7/12

3.3. Evaluation and Confirmation method for software calibration of the clock The clock adjustment circuit is configured to change time counts of 1 second on the basis of the settings of the clock adjustment register once in 2seconds. The clock adjustment pulse output from the 32KOUT pin. Therefore, after writing the clock adjustment register, we cannot measure the clock error with probing 32KOUT 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. Refer to the Table 3. Table 3: 1Hz output pin and the way to set the register for output 1Hz clock Setting Output Pin RS5C372A Address Eh (11) /INTRA(5pin) RS5C372B /INTR(5pin) RS/RV5C338A /INTR(6pin) RV5C339A Address Eh (XX11) /INTRA(6pin) RS/RV/RT5C348A/B, R243T /INTR(6pin) RV5C386A/387A,R223T /INTRA(6pin) R243K,R233K /INTR(1pin) R223K /INTRA(1pin) R251Kxx,R261Kxx, R262Kxx /INTR(9pin) R251Sxx,R261Sxx /INTR(1pin) (2) After setting the clock calibration register, 1Hz clock period changes every 2seconds as in Fig. 7. Fig.7 1Hz clock pulse T T T T1 19 times 1 time Measure the interval of T and T1 with frequency counter. A frequency counter with 7 or more digits is recommended for the measurement. (3) Calculate the typical period from T and T1 T=(19 T+1 T1)/2 Calculate the time error from T. This method can be used under development stage, for mass production, this method is time-consuming. The circuit for oscillator calibration of the clock is digital base, therefore, with 32k clock frequency and calculated value, exact gain and loss of the clock can be foreseen. 3.4. Notes on using the oscillator calibration circuit When using the oscillator calibration circuit, (1) Ricoh s RTC does not have non-volatile memory. Therefore, the system must store the oscillator adjustment value to non-volatile memory external of the RTC. The system must write the oscillation adjustment value to RTC, when setting the clock and calendar data. (2) Oscillation Adjustment Circuit does not affect the frequency of 32768Hz-clock pulse output from the 32KOUT pin. If the frequency of clock pulse from 32KOUT pin should be accurate, use the conventional adjustment method, or change the CL value of the crystal. 8/12

3.5. Appropriate target frequency The temperature characteristic of discreet 32768Hz crystal is described as following formula: f/f=α(t-θt) 2 +(f-fs)/f Peak temperature: θt=25±5 C Temperature coefficient: α=(-.35±.5)*1-6 / C 2 Nominal Frequency: fs=32768hz Frequency at peak temperature: f For adjustment of gain and loss of the clock, with the conventional method, f is adjusted with external capacitors. In the case of adjustment with the oscillator calibration circuit, f is substantially adjusted in different way. Considering the whole oscillator circuit, the real time clock IC has also temperature coefficient, but it is much smaller than equivalent of crystal. Therefore, the temperature characteristics of the IC can be ignored. Typical temperature characteristic of the crystal is as follows: 9/12

Frequency of the crystal vs. temperature (Typ.) Oscillator Frequency Deviation df/f(ppm) 2-2 -4-6 -8-1 -12-14 -16-5 -25 25 5 75 1 Temperature Topt( C) As the graph shown above, frequency temperature characteristic of the crystal is the parabola of which the peak is at 25 C. Supposed that target frequency, f=32768hz, then, if the temperature rises, or falls, the clock will lose. Therefore, normally, to gain for the clock at 25 C, adjustment is done. The level of gain depends on the place and the environment where the application will be used. In the next table, appropriate f value list for the area. Data source is the Meteorological Agency. Appropriate f list from annual average temperature data by area f Oscillator Frequency Deviation (f-fs)/f Sapporo 32768.42Hz 12.7ppm Tokyo 32768.16Hz 4.7ppm Nagano 32768.28Hz 8.6ppm Naha 32768.3Hz.9ppm Calculation is done, based on the hourly temperature data by the Meteorological Agency in 2. Temperature is measured in the ventilated case for meteorological instruments in 1.5m altitude If the application is used at the room temperature, the temperature variation is more moderate than actual outside temperature, therefore, f is not so large. Generally, f's ranging from 32768.1Hz to 32768.2Hz, or frequency deviation is adjusted from 3 to 6ppm. 1/12

4. Trouble Shooting 4.1. Clock gains (1) Case: The clock gains 5 to 9 seconds a day. (6 to 1ppm gain) Estimated cause) Ricoh RTC recommends a crystal with CL=6 to 8pF. On the other hand, some crystal manufacturers designate crystals with CL=12.5pF are standard items. If such crystals are used with Ricoh RTC, built-in capacitance of the IC and CL value matching will be bad, therefore the clock gains 6 to 1ppm. Countermeasure) Change the crystal to the appropriate one with CL=6 to 8 pf or adjust it with referring to chapter 3.2 of this document. If you choose the crystal with CL=12.5pF (or CL=9pF except R223x, R233x, R243x), another reference is Oscillation frequency calibration with CL=12.5pF crystal and Ricoh RTC IC (http://www.ricoh.com/lsi/product_rtc/info/125pf-e.pdf). (2) Case: The clock gains about 35 minutes a day. (with RS5C372A/B) Estimated cause) RS5C372A/B can use both crystals of 32768Hz and 32Hz. If the RTC is used with 32768Hz crystal at 32Hz mode, the clock gains 35 minutes per day. Countermeasure) Write "" to D7, /XSL bit of the address 7h and use the 32768Hz mode. When the time is set, write "" to this bit is recommended procedure. 4.2. Clock loses/ stops (1) Case: The clock loses 34 minutes per hour. (RS/V5C338A, RV5C339A, RS/V5C348A/B) Estimated cause) The RS/V5C338A, RV5C339A, and the RS/V5C348A/B have the unique mode. If "1" is written to (), D7 of the address 7h, clock loses 56% of the normal mode. Countermeasure) Write "" to (), D7 of the address 7h, use with the normal mode. When the time is set, write "" to this bit is recommended procedure. (2) Case: The oscillation is intermittent and the clock loses. Estimated cause) Oscillation booster circuit is built in Ricoh RTC ICs to shorten the oscillation start-up time. The oscillation booster drives the oscillator inverter for a certain time if the RTC detects the halt of the oscillator. If the oscillation conditions are bad, operation cycle will be that the oscillation stops, the booster starts, the oscillation booster stops, then oscillation stops. The operation becomes intermittent, and if the intermittent oscillation occurs, the clock will lose. Countermeasure) Use smaller capacitance as CGOUT and CDOUT than present value. If the clock gains, refer to the chapter 4.1 of this document and adjust it. (3) Case: Oscillation stops because of the temperature change. ( The clock stops.) Estimated cause) Because of condensation, leakage between oscillator pins and other pin is generated and oscillation stops. Countermeasure) Coating pins of the oscillator circuit and oscillator pins of the IC with the materials which have high electric conductivity is necessary. As for the oscillator circuits of R251/61/62, R243, R223, R233 or after these part numbers, the circuit against the condensation exists, therefore leakage between power supply, Vss pin, OSCIN, and OSCOUT is much less than before. 11/12

12/12