Go Down

Topic: [ANSWERED] RTC: how important is the capacitance of the crystal? (Read 1 time) previous topic - next topic

JimboZA

May 10, 2013, 02:46 pm Last Edit: May 10, 2013, 03:38 pm by JimboZA Reason: 1
Hi gang....

I went to get a DS1307 RTC and the required 32.768kHz 12.5pF crystal.

They didn't have a 1307, so I took a 1302 instead.... I know the interfacing is different and have found a library for it.

BUT.... only when I got home did I realise that the 1302 requires a 32.768kHz crystal of 6pF, but I had purchased one of 12.5pF.

Is that likely to be a problem? (Confession: I don't even know what it means for a crystal to have a capacitance, although I do know what a capacitor is...   8) )

TIA,

Jim
Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

CrossRoads

DS1302 refers to this Application Note:
Application Note 58: Crystal Considerations for Dallas Real-Time Clocks
found here:
http://www.maximintegrated.com/app-notes/index.mvp/id/58

Table 2 & 3 list crystal suppliers - the vast majority are 12.5pF.
Only 1 is listed with CL of 6pF.

"Fast Clocks
The following are the most common scenarios that cause a crystal-based RTC to run fast.
Noise coupling into the crystal from adjacent signals. This problem has been extensively covered above. Noise coupling usually causes an RTC to be grossly inaccurate.
Wrong crystal. An RTC typically runs fast if a crystal with a specified load capacitance (CL) greater than the RTC-specified load capacitance is used. The severity of the inaccuracy is dependent on the value of the CL. For example, using a crystal with a CL of 12pF on an RTC designed with a 6pF CL causes the RTC to be about 3 to 4 minutes per month fast."

Can you live with 3-4 minutes fast/month?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Riva

The correct frequency crystal is important for an RTC as just a slight difference in frequency will effect the clocks accuracy.
Temperature will effect the crystals speed so you may get variable time drift throughout the seasons.
I bought a DS1307 module and it looses approximately 7 seconds per day so ever since then I use DS3231 instead. They are a bit more expensive but have internal oscillator and temperature compensation so maintain time a lot better (less than a second per day)
Don't PM me for help as I will ignore it.

JimboZA

#3
May 10, 2013, 03:37 pm Last Edit: May 10, 2013, 03:39 pm by JimboZA Reason: 1
Quote
Can you live with 3-4 minutes fast/month?


Long as I'm not flying to Mars and hit the TurboBoost button at the wrong moment  8)

Thanks for that CR and Tc ... question answered

Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

pwillard

Quote
According to Dallas' app note, it will cause the clock to run 3-4 minutes a month fast:


My personal experience confirms this.

pwillard

Oddly enough... my experience was identical... I ordered the right part as well.

Go Up