NXP Semiconductors PCF2123, PCF85x3, PCA8565, PCA2125 Modes which don’t work, Effect of temperature

Page 17

NXP Semiconductors

UM10301

 

User Manual PCF85x3, PCA8565 and PCF2123, PCA2125

value is really too high start up problems may occur, but up to 100 kΩ no start up problems are expected. See 6.1”Oscillation allowance”.

The frequency accuracy of the oscillator depends mainly on the accuracy of the crystal and on how well the crystal is matched to the oscillator capacitive load (CL). A too small capacitive load results in the oscillator running fast, if the capacitive load is greater than what the crystal was designed for the oscillator and thus clock runs slow. This initial error

is indicated in Fig 7 as ∆foff. The largest influence on accuracy is a result of the temperature dependence of the crystal.

7.1 Modes which don’t work

To keep time with an adequate accuracy it is necessary to use a quartz crystal and thus the use of a quartz crystal is always assumed in this application note. A very low power crystal oscillator as used in an RTC requires a different set of parameters compared to a universal oscillator accepting crystals, RC- and LC networks or a ceramic resonator. The oscillator circuit is not designed for operating with RC or LC networks neither for use with a ceramic resonator. Ceramic resonators have a much shorter start up time than crystals, about 100 times faster. However, they have lower frequency accuracy (initial tolerance, temperature variations, drift) and since in an RTC accurate timekeeping is the goal, ceramic resonators are not a good choice for an RTC. Use a crystal.

7.2 Effect of temperature

A tuning fork crystal is usually cut such that its frequency over temperature is a parabolic curve centered around 25 °C, see Fig 7. This means that a tuning fork crystal oscillator will resonate close to its target frequency at room temperature, but will slow down when the temperature either increases or decreases from room temperature.

20

 

 

 

 

 

 

 

 

 

 

 

001aag901

 

 

 

 

 

 

ΔT0

 

 

 

 

 

 

frequency

 

 

 

 

 

 

 

 

 

 

 

32.768

deviation Δf/f0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

kHz

(ppm)

 

 

 

 

 

 

 

 

 

 

 

 

 

20

 

 

 

 

 

 

Δfoff

 

 

 

 

 

 

60

 

 

 

 

 

 

 

 

 

 

 

 

 

100

 

 

 

 

 

 

 

 

 

 

 

 

 

140

 

 

 

 

 

 

 

 

 

 

 

 

 

180

 

 

 

 

 

 

 

 

 

 

 

 

 

40

30

20

10

0

10

20

30

40

50

60

70

80

90

 

 

 

 

 

 

 

 

 

 

 

T (°C)

 

Fig 7. The deviation in frequency vs. temperature of a typical 32.768 kHz crystal

UM10301_1

 

© NXP B.V. 2008. All rights reserved.

User manual

Rev. 01 — 23 December 2008

17 of 52

Image 17
Contents Abstract Info Content KeywordsDocument information NXP Semiconductors Contact informationRevision history Rev Date DescriptionIntroduction Features Address Register name Bit Register overview PCF8563Comparison Event counter modeComparison of six real time clocks FeaturesVoltage-low detector Power-on reset PORPower-on reset Oscillator-stop detection OscillatorVoltage-low detection Overview of internal and external oscillator capacitors Pierce Oscillator equivalent diagramOscillator frequency determining components UM10301 + C Parameter Value Unit Source Typical values for crystal and surrounding capacitorsOscillation allowance Using an external oscillatorCrystal and crystal selection Modes which don’t work Effect of temperature− f nom Capacitors and capacitor selection Accuracy Influences on time accuracy Oscillator tuning Oscillator tuning 10.1 PCF2123 Offset register Century tracking Century and leap year, Daylight Saving TimeYear and leap year tracking Daylight Saving Time DSTBlock Diagram PCF8563 Initialization and setting of alarm and timerInitialization of the RTC and setting the time Setting the alarm AlarmBinary BCD Register Comments AddressAlarm function Register Setting the timerSetting the timer Lithium Primary cells Backup power supplyBackup circuit using primary lithium cell NiCd and NiMH secondary batteries Backup circuit using secondary cell NiCd or NiMH13.3 Capacitors Charging the backup capacitor Some suggestions for diode D1 Diode selection1N4148 BAS716 BAS116 BAV170PCB layout guidelines PCB layout proposal for PCF8563 using leaded components Partial circuit switch down Protection diodes Hints to keep power consumption low0007 Rpmax as a function of bus capacitance 8473 ⋅ C bApplication diagram 2, SPI interface Application diagram 1, I2C-bus interfaceTimer delays First period inaccuracy when using the timerTimer Source clock frequency Delay for n = General countdown timer behaviourTimer source clock Minimum timer period Maximum timer period First period delay for timer counter value nTiming requirements for I2C read and write I2C interface Block diagram I2C interface and Time countersSequence of events example Read Oscillator startup time Checking for oscillation TroubleshootingNo communication via I2C-bus Wrong time and date, wrong clock speed ReferencesDefinitions Legal informationDisclaimers TrademarksContents