Page 1 of 1
Resonator vs Crystal
Posted: Mon Nov 10, 2008 7:28 pm
by jeremybrooks
Hi,
I'm new at this, so forgive me if this is a stupid question.
It looks like the BBB and RBBB use a resonator for the clock frequency. Is it possible to substitute a crystal for more accurate timing? My application needs to be able to do 15 second countdowns that are 15 seconds, not 14 or 16.
Thanks!
Re: Resonator vs Crystal
Posted: Mon Nov 10, 2008 9:31 pm
by oz
The accuracy difference between a regulator and a crystal are on the order of .1% for a resonator vs .01% for a crystal. So in timekeeping - a resonator will be accurate to 10 seconds a day and a crystal might be accurate to 1 or 2 seconds a day.
What most people don't understand is that neither the resonator or the crystal will be absolutely accurate for timekeeping, because of interrupt firing and other things that can't be predicted so if you want long term time keeping, you need to use a real time clock chip. On the other hand though if you just need relative accuracy then both will do an admirable job and you'll be hard pressed to see any differences.
In a worse case scenario, your 15 second time interval might be 15 ms off. In reality though most parts are going to be much closer to the mark I think I'd be surprised if you were be 2 or 3 ms off in 15 seconds. And if you were, it might be hard to blame it on the resonator without a lot of other experiments.
I have a crystal kit though, that fits the BBB. I just don't have it on the website. You can buy one for $1.30. It uses surface mount caps though that are fairly tiny but not that big a deal to solder - just so you are warned. Order it on the bottom of the shipping page if you want one.
Hope that helps,
Paul
Re: Resonator vs Crystal
Posted: Tue Nov 11, 2008 4:25 pm
by jeremybrooks
Paul,
Thanks for the quick response! I knew a RTC was required for long term accuracy, but wasn't sure about the difference in accuracy between a resonator and a crystal. Sounds like the resonator will work perfectly for my application.
Thank you!