Application Note 58 Crystal Considerations with Dallas Real Time Clocks

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

Reference Oscillator Crystal Requirements for MKW40 and MKW30 Device Series

HT32 Series Crystal Oscillator, ADC Design Note and PCB Layout Guide

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

DS1202, DS1202S. Serial Timekeeping Chip FEATURES PIN ASSIGNMENT. ORDERING INFORMATION DS pin DIP DS1202S 16 pin SOIC DS1202S8 8 pin SOIC

Crystal Oscillator/Resonator Guidelines for ez80 and ez80acclaim! Devices

CMT2300AW Schematic and PCB Layout Design Guideline

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

MK LOW PHASE NOISE T1/E1 CLOCK GENERATOR. Features. Description. Block Diagram DATASHEET. Pullable Crystal

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

THE SEQUEL COMMON SENSE OSCILLATOR TECHNIQUES, INTRODUCTION. changing the sometimes less than optimum oscillator design.

PCB Design Guidelines for GPS chipset designs. Section 1. Section 2. Section 3. Section 4. Section 5

Advanced Regulating Pulse Width Modulators

3 V/5 V Low Power, Synchronous Voltage-to-Frequency Converter AD7740*

Surface Mount SOT-363 (SC-70) Package. Pin Connections and Package Marking GND. V dd. Note: Package marking provides orientation and identification.

87x. MGA GHz 3 V Low Current GaAs MMIC LNA. Data Sheet

PB63 PB63A. Dual Power Booster Amplifier PB63

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

Advanced Regulating Pulse Width Modulators

Edition Published by Infineon Technologies AG Munich, Germany 2010 Infineon Technologies AG All Rights Reserved.

LMV nsec, 2.7V to 5V Comparator with Rail-to Rail Output

Clocking the Data ABSTRACT INTRODUCTION KEY WORDS

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

LM2412 Monolithic Triple 2.8 ns CRT Driver

High Voltage Power Operational Amplifiers EQUIVALENT SCHEMATIC R1 R2 C1 R3 Q6 4 CC1 5 CC2 Q8 Q12 3 I Q Q16. +V s

PART MAX2605EUT-T MAX2606EUT-T MAX2607EUT-T MAX2608EUT-T MAX2609EUT-T TOP VIEW IND GND. Maxim Integrated Products 1

LMV301 Low Input Bias Current, 1.8V Op Amp w/ Rail-to-Rail Output

Advanced Regulating Pulse Width Modulators

The ASD5001 is available in SOT23-5 package, and it is rated for -40 to +85 C temperature range.

Datasheet. 5A 240KHZ 36V PWM Buck DC/DC Converter. Features

MEMS Oscillators: Enabling Smaller, Lower Power IoT & Wearables

Impedance Matching to 50Ω

LM6118/LM6218 Fast Settling Dual Operational Amplifiers

Circuit Layout Techniques And Tips (Part III of VI) by Bonnie C. Baker and Ezana Haile, Microchip Technology Inc.

PT7C4502 PLL Clock Multiplier

MK VCXO-BASED FRAME CLOCK FREQUENCY TRANSLATOR. Features. Description. Block Diagram DATASHEET. Pullable Crystal

DS32kHz kHz Temperature-Compensated Crystal Oscillator

Intel 82566/82562V Layout Checklist (version 1.0)

INA126. MicroPOWER INSTRUMENTATION AMPLIFIER Single and Dual Versions IN ) G V IN G = 5 +

SA60. H-Bridge Motor Driver/Amplifiers SA60

MAX1002/MAX1003 Evaluation Kits

COMMON SENSE OSCILLATOR TECHNIQUES

DATASHEET HA Features. Applications. Pinout. Part Number Information. 12MHz, High Input Impedance, Operational Amplifier

LF442 Dual Low Power JFET Input Operational Amplifier

LM2462 Monolithic Triple 3 ns CRT Driver

PCB layout guidelines. From the IGBT team at IR September 2012

HA-2600, HA Features. 12MHz, High Input Impedance Operational Amplifiers. Applications. Pinouts. Ordering Information

Integrated Dual-Axis Gyro IDG-500

High Speed FET-Input INSTRUMENTATION AMPLIFIER

LMC6081 Precision CMOS Single Operational Amplifier

Datasheet. 4A 240KHZ 23V PWM Buck DC/DC Converter. Features

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

LR8509 Series 1.5MHz 600mA Synchronous Step-Down Converter

THS MHz HIGH-SPEED AMPLIFIER

High Speed BUFFER AMPLIFIER

Practical Testing Techniques For Modern Control Loops

PA92. High Voltage Power Operational Amplifiers PA92

LMC6572 Dual/LMC6574 Quad Low Voltage (2.7V and 3V) Operational Amplifier

ABA GHz Broadband Silicon RFIC Amplifier. Application Note 1349

2A 150KHZ PWM Buck DC/DC Converter. Features

Techcode. 3A 150KHz PWM Buck DC/DC Converter TD1501H. General Description. Features. Applications. Package Types DATASHEET

PT7C4511. PLL Clock Multiplier. Features. Description. Pin Configuration. Pin Description

ICS CLOCK MULTIPLIER AND JITTER ATTENUATOR. Description. Features. Block Diagram DATASHEET

MK2703 PLL AUDIO CLOCK SYNTHESIZER. Description. Features. Block Diagram DATASHEET

TS3410 1A / 1.4MHz Synchronous Buck Converter

Features. Slope Comp Reference & Isolation

MT3420 Rev.V1.2 GENERAL DESCRIPTION FEATURES APPLICATIONS. 1.4MHz, 2A Synchronous Step-Down Converter

LMH6533 Four Channel Laser Diode Driver

PART MAX4144ESD MAX4146ESD. Typical Application Circuit. R t IN- IN+ TWISTED-PAIR-TO-COAX CABLE CONVERTER

PA94. High Voltage Power Operational Amplifiers PA94 DESCRIPTION

ICS511 LOCO PLL CLOCK MULTIPLIER. Description. Features. Block Diagram DATASHEET

UNISONIC TECHNOLOGIES CO., LTD UC3750 Preliminary CMOS IC

3A 150KHZ PWM Buck DC/DC Converter. Features

Description. This Clock Multiplier is the most cost-effective way to Input crystal frequency of 5-40 MHz

Application Note 5525

HA Features. 12MHz, High Input Impedance, Operational Amplifier. Applications. Pinout. Part Number Information. Data Sheet May 2003 FN2893.

3.3 VOLT COMMUNICATIONS CLOCK PLL MK Description. Features. Block Diagram DATASHEET

Varactor-Tuned Oscillators. Technical Data. VTO-8000 Series

MK SPREAD SPECTRUM MULTIPLIER CLOCK. Description. Features. Block Diagram DATASHEET

MK SPREAD SPECTRUM MULTIPLIER CLOCK. Description. Features. Block Diagram DATASHEET

TOP VIEW REFERENCE VOLTAGE ADJ V OUT

TS mA / 1.5MHz Synchronous Buck Converter

PI3HDMIxxx 4-Layer PCB Layout Guideline for HDMI Products

TL082 Wide Bandwidth Dual JFET Input Operational Amplifier

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

Experiment 1: Instrument Familiarization (8/28/06)

DATASHEET SMT172. Features and Highlights. Application. Introduction

HMPP-386x Series MiniPak Surface Mount RF PIN Diodes

Single Supply, MicroPower INSTRUMENTATION AMPLIFIER

1.5MHz, 3A Synchronous Step-Down Regulator

LMC7101 Tiny Low Power Operational Amplifier with Rail-To-Rail Input and Output

ICS NETWORKING AND PCI CLOCK SOURCE. Description. Features. Block Diagram DATASHEET

LM3102 Demonstration Board Reference Design

LT1054 SWITCHED-CAPACITOR VOLTAGE CONVERTERS WITH REGULATORS

High-Voltage Switchmode Controllers with MOSFET

Course Introduction. Content: 19 pages 3 questions. Learning Time: 30 minutes

Chapter 13: Comparators

3A 380KHz 28V PWM Buck DC/DC Converter. Features. Figure 1. Package Types of TD1583

High-Voltage, Low-Power Linear Regulators for

1.5 MHz, 600mA Synchronous Step-Down Converter

Transcription:

Application Note 58 Crystal Considerations with Dallas Real Time Clocks Dallas Semiconductor offers a variety of real time clocks (RTCs). The majority of these are available either as integrated circuits or modules. Modules include a real time clock integrated circuit, crystal, and lithium energy source encapsulated in one package. This application note is intended to help those customers who choose to use Dallas Semiconductor real time clock chips rather than modules and therefore need to attach their own crystal. The information contained in this article will be beneficial in maximizing accuracy and insuring proper operation of Dallas real time clocks by helping the customer to select the correct crystal to use and by providing a few basic guidelines that should be followed when placing the crystal on a PCB layout. This application note will also include an elementary discussion of the effect of temperature on the accuracy of real time clocks. CRYSTAL SELECTION In any crystal based oscillator circuit, the oscillator frequency is based almost entirely on the characteristics of the crystal that is used. It is important to select a crystal that meets the design requirements. In particular, the specified load capacitance (C L ) is a critical crystal parameter that is often overlooked. This parameter specifies the capacitive load that must be placed across the crystal pins in order for the crystal to oscillate at its specified frequency. The crystal manufacturer actually trims the crystal to oscillate at its nominal frequency for the given specified load capacitance. Note that the C L is the capacitance that the crystal needs to see from the oscillator circuit, it is not the capacitance of the crystal itself. As previously stated, the load capacitance that the crystal sees is due to the capacitance of the oscillator circuit itself. Any change in the load capacitance of the oscillator circuit will therefore have an affect on the frequency of that oscillator. Likewise, using a crystal that has a C L that is different than the actual load capacitance of the circuit will also affect the frequency of the oscillator. In general, using a crystal with a C L that is larger than the load capacitance of the oscillator circuit will cause the oscillator to run faster than the specified nominal frequency of the crystal. Conversely, using a crystal with a C L that is smaller than the load capacitance of the oscillator circuit will cause the oscillator to run slower than the specified nominal frequency of the crystal. The majority of Dallas Semiconductor RTCs have an internal capacitance of 6 pf across the crystal input pins. Recent RTC offerings from Dallas Semiconductor have 12.5 pf capacitance or are software configurable for 6 pf or 12.5 pf. For proper operation and accuracy, a crystal that meets the parts requirements should be used. As mentioned above, using a crystal with the wrong C L will cause the oscillator to run fast or slow. Limited characterization at Dallas Semiconductor has confirmed this. For example, limited characterization on the DS1485, which is designed for a 6 pf crystal, has revealed that the device will run approximately 4 minutes/month fast at room temperature (25 C) when a 12 pf crystal is used. The device had an accuracy within ±30 seconds/month when a 6 pf crystal was used. Several vendors offer crystals that can be used with Dallas Semiconductor real time clocks. These vendors include Epson and KDS/Daiwa. Equivalent crystals from other crystal manufacturers can also be used. As a reference, see Table 1 for recommended crystal characteristics. Copyright 1995 by Dallas Semiconductor Corporation. All Rights Reserved. For important information regarding patents and other intellectual property rights, please refer to Dallas Semiconductor data books. 050696 1/7

CRYSTAL SPECIFICATIONS Table 1 PARAMETER SYMBOL MIN TYP MAX UNITS NOTES Nominal Frequency F 0 32.768 khz Load Capacitance C L 6 pf Temperature Turnover Point T 0 20 25 30 C Parabolic Curvature Constant k 0.042 ppm/ C Quality Factor Q 40,000 70,000 Series Resistance R1 45 KΩ Shunt Capacitance C 0 1.1 1.8 pf Capacitance Ratio C 0 /C 1 430 600 Drive Level D L 1 µw RTC CRYSTAL SUPPLIERS MANUFACTURER MODEL C L PACKAGE KDS/Daiwa Crystral Corp. DT 38 DT 381 DT 26S DT 261S DT 14 DT 26S 32.768 Hz DMX 2632.768 KHz DS VT 200 6pF Epson Crystal Corp. C 001R C 002RX C 004R C 005R MC 306 MC 405 MC 406 SMT SMT SMT Hooray Electronics MMTF 32 6pF CRYSTAL LOAD COMPENSATION Dallas Semiconductor does not recommend using crystals that do not have a C L that matches the RTCs specification because this will decrease the accuracy of the clock. We find however that customers sometimes choose to use 12.5 pf cyrstals with our 6 pf RTCs. For this situation it is possible to improve the decreased accuracy caused by the C L mismatch. This can be accomplished by increasing the load capacitance that the crystal sees by connecting a capacitor in parallel with the crystal as shown in Figure 1. As a rule of thumb, the approximate capacitor value is equal to the specified load capacitance (C L ) of the crystal minus 6 pf (the approximate load capacitance of the real time clock oscillator circuit). For example, if a 12 pf crystal is being used, a 6 pf capacitor should be placed in parallel with it to improve the accuracy of the oscillator. A 12 pf crystal is adjusted by the crystal manufacturer to oscillate at its specified nominal frequency when a 12 pf load is present. A 6 pf capacitor is therefore added to the 6 pf load of the oscillator circuit to compensate for the additional load that the crystal needs in order to oscillate at it s specified nominal frequency. 050696 2/7

CRYSTAL CONFIGURATION WHEN 6 PF CRYSTAL IS NOT USED Figure 1 REAL TIME CLOCK X1 X2 As mentioned, a crystal with a C L of greater than 6 pf can be compensated with an external capacitor to improve the accuracy. However, it should be noted that the oscillator start up time (the time it takes during initial power up for the oscillator to stabilize) will increase due to the increased capacitance in the feedback path of the oscillator. This capacitance decreases the loop gain of the oscillator which in turn increases the start up time. For example, limited characterization has shown that the start up time for a 6 pf crystal is typically less than a couple hundred milliseconds, but can increase to one or two seconds when a 12 pf crystal with a 6 pf capacitor in parallel are used. 050696 3/7

NOISE AND CRYSTAL LAYOUT GUIDELINES Since the crystal inputs of the Dallas Semiconductor real time clocks have a very high impedance (about 10 9 ohms), the leads to the crystal act like a very good antennae, coupling high frequency signals from the rest of the system. If a signal is coupled onto the crystal pins, it can either cancel out or add pulses. Since most of the signals on a board are much higher frequency than the 32.768 KHz crystal, it is more likely to add pulses where none are wanted. These noise pulses get counted as extra clock ticks and make the clock appear to run fast. It is very simple to determine if noise is the cause of the inaccuracy of a real time clock. The following steps illustrate how this can be done. 1. Power the system up and synchronize the real time clock to a known accurate clock. 2. Turn system power off. 3. Wait for a period of time (two hours, 24 hours, etc.). The longer the time period, the easier it will be to measure the accuracy of the clock. 4. Turn system on again, read clock, and compare to the known accurate clock. 5. Re synchronize the real time clock to the known accurate clock. 6. Keep system powered up and wait for a period of time equal to the period in step 3. 7. Read clock after waiting for the above period of time and compare to the known accurate clock. By using the above steps, the accuracy of the clock can be determined both when the system is powered up and when the system is powered down. If the clock proves to be inaccurate when the system is powered up, but is accurate when the system is powered down, the problem is most likely due to noise from other signals in the system. However, if the clock is inaccurate both when the system is powered up and when it is powered down, then the problem is not due to noise from the system. Since it is possible for noise to be coupled onto the crystal pins, care must be taken when placing the external crystal on a PCB layout. It is very important to follow a few basic layout guidelines concerning the placement of the crystal on the PCB layout to insure that extra clock ticks do not couple onto the crystal pins. 1. It is important to place the crystal as close as possible to the X1 and X2 pins. Keeping the trace lengths between the crystal and the real time clock as small as possible reduces the probability of noise coupling by reducing the length of the antennae. Keeping the trace lengths small also decreases the amount of stray capacitance. 2. Keep the crystal bond pads and trace width to the X1 and X2 pins as small as possible. The larger these bond pads and traces are, the more likely it is that noise can couple from adjacent signals. 3. If possible, place a guard ring (tied to ground) around the crystal. This helps to isolate the crystal from noise coupled from adjacent signals. See Figure 2 for an illustration of using a guard ring around a crystal. 4. Try to insure that no signals on other PCB layers run directly below the crystal or below the traces to the X1 and X2 pins. The more the crystal is isolated from other signals on the board, the less likely it is that noise will be coupled into the crystal. 5. It may also be helpful to place a local ground plane on the PCB layer immediately below the crystal guard ring. This helps to isolate the crystal from noise coupling from signals on other PCB layers. Note that the ground plane needs to be in the vicinity of the crystal only and not on the entire board. See Figure 2 for an illustration of a local ground plane. Note that the perimeter of the ground plane does not need to be larger than the outer perimeter of the guard ring. Note that care must be taken concerning the use of a local ground plane because of the stray capacitance that it introduces. This capacitance will be added to the crystal pins and if large enough could slow the clock down. Therefore, some factors must be taken into account when considering adding a local ground plane. For example, the capacitance due to the ground plane may be approximated by where C = εa/t ε = dielectric constant of the PCB A = area of the ground plane t = thickness of the PCB layer. Therefore, to determine if a ground plane is appropriate for a given design, the above parameters must be taken into account to insure that the capacitance from the local ground plane is not sufficiently large enough to slow down the clock. 050696 4/7

EXAMPLE OF CRYSTAL PLACEMENT ON PCB Figure 2 LOCAL GROUND PLANE (LAYER 2) DALLAS REAL TIME CLOCK #2 #1 X1 NO CONNECT CRYSTAL PADS #3 #4 X2 NOTE: Crystal referred to in this diagram is the Epson MC 406. GUARD RING (GROUND) CLOCK ACCURACY OVER TEMPERATURE The accuracy of a real time clock is directly dependent upon the frequency of the crystal. Therefore, since the resonant frequency of a crystal is dependent upon temperature, a real time clock will also be dependent upon temperature. The resonant frequency of a crystal is expressed in the following basic formula: where f = f0 + k * (T T0) 2 f 0 = nominal frequency k = parabolic curvature constant T 0 = turnover temperature T = temperature The values of the above parameters can be found in the data sheet of the crystal being used. The temperature characteristic of a nominal Daiwa crystal is illustrated in Figure 3 where f 0 = 32.768 KHz, k = 0.042 ppm/ C, and T 0 = 23 C. As can be seen in this figure, frequency has a parabolic relationship to temperature as temperature deviates from the ideal 23 C, the crystal frequency becomes increasingly slower. Figure 4 shows the same basic curve, however, the Y axis has been changed to show the frequency deviation (in ppm) from the crystal s nominal frequency at 23 C. This curve illustrates more clearly how the frequency of the crystal will affect the accuracy of the clock. A frequency deviation of 23 ppm translates into an accuracy of approximately ±1 minute per month. With this in mind, a quick glance at Figure 4 will give an approximate expected accuracy at a given temperature. The above information should help to provide a basic understanding of how temperature will affect a Dallas Semiconductor real time clocks. 050696 5/7

CRYSTAL FREQUENCY VS. TEMPERATURE Figure 3 32768.0 32767.8 32767.6 FREQUENCY (Hz) 32767.4 32767.2 32767.0 32766.8 32766.6 32766.4 32766.2 40 30 20 10 0 10 20 30 40 50 60 70 80 TEMPERATURE ( C) FREQUENCY DEVIATION VS. TEMPERATURE Figure 4 0 20 40 DELTA FREQUENCY (PPM) 60 80 100 120 140 160 180 40 30 20 10 0 10 20 30 40 50 60 70 80 TEMPERATURE ( C) 050696 6/7

TROUBLESHOOTING This section is provided as a summary of the most frequent causes of real time clock inaccuracies. Most of these problems have been mentioned earlier, but are repeated here as a quick reference. This section has been divided into two parts. The first part will consider the factors that cause a real time clock to run too fast and the second part will consider the factors that cause a real time clock to run too slow. FAST CLOCKS The following are the most common scenarios that cause a crystal based real time clock to run fast. 1. Noise coupling into the crystal from adjacent signals: This problem has been extensively covered above. Noise coupling will usually cause a real time clock to be grossly inaccurate. 2. Wrong crystal: A real time clock will typically run fast if a crystal with a specified load capacitance (C L ) greater than 6 pf is used. The severity of the inaccuracy is dependent on the value of the C L. For example using a crystal with a C L of 12 pf will cause the real time clock to be about 3 4 minutes per month fast. SLOW CLOCKS The following are the most common scenarios that cause a crystal based real time clock to run slow. 1. Overshoot on real time clock input pins: It is possible to cause a real time clock to run slow by periodically stopping the oscillator. This can be inadvertently accomplished by noisy input signals to the real time clock. If an input signal rises to a voltage that is greater than a diode drop ( 0.3V) above V DD, the ESD protection diode for the input pin will forward bias, allowing the substrate to be flooded with current. This, in turn, will stop the oscillator until the input signal voltage decreases to below a diode drop above V DD. This mechanism can cause the oscillator to stop frequently if input signals are noisy. Therefore, care should be taken to insure that there is no overshoot on input signals. Another situation that is common to overshoot problem is having an input to the real time clock at 5V when the real time clock is in battery back up mode. This can be a problem in systems that systematically shut down certain circuits, but keep others powered up. It is very important to insure that there are no input signals to the real time clock that are greater than the battery voltage when the device is in battery back up mode. 2. Wrong crystal: A real time clock will typically run slow if a crystal with a specified load capacitance (C L ) less than 6 pf is used. The severity of the inaccuracy is dependent on the value of the C L. 3. Stray capacitance: Stray capacitance between the crystal pins can slow a real time clock down. Therefore care must be taken when designing the PCB layout to insure that the stray capacitance is kept to a minimum. 4. Temperature: The further the operating temperature is from the crystal turnover temperature, the slower the crystal will oscillate. See Figures 3 and 4. REFERENCES 1. Eaton, S. S. Timekeeping Advances Through COS/ MOS Technology, RCA Application Note ICAN 6086. 2. Eaton, S. S. Micropower Crystal Controlled Oscillator Design Using RCA COS/MOS Inverters, RCA Application Note ICAN 6539. 3. Meyer, R. G. MOS Crystal Oscillator Design, IEEE Journal of Solid State Circuits, Vol. SC 15, No. 2, pp. 222 227, April 1980. 4. Williamson, T. Oscillators for Microcontrollers, Intel Application Note AP 155. 050696 7/7