Question about Propeller RTC emulator?
Ravenkallen
Posts: 1,057
I was just playing around with Beau's RTC emulator and it got me thinking... Okay call me a weirdo, but conceivably couldn't a individual use a crystal with a lower frequency and get more accurate timing? OR do they sell crystals with a better accuracy rating... I assume Beau used the standard 5mhz Parallax crystal, which has an error rate of +/- 30 parts per million. He claimed accuracy of 12 minutes per year, which isn't bad but could be better. Is there a crystal more accurate than that? Sorry if my question seems silly, but it would be really cool to implement time functions in software and not have to worry about an external RTC chip...
Comments
And then there are the crystal oscillators.
Some are temperature compensated.
And even better yet, temperature controlled oven oscillators.
Some are as good as 1 part in 10^9.
Of course, the more accurate the more expensive.
Duane
The way you find these things is to search on-line catalogs from companies like DigiKey and Mouser. Try "crystal oscillator" first. You'll learn more about what's available by browsing the couple of catalog pages involved. You can also do a broader internet search. Dallas / Maxim makes a variety of oscillators, some of them temperature compensated.
-Phil
In general, accuracy is independent of frequency.
OK, PLL type clock sources can introduce gitter but that doesn't change the accuracy.
Last, in general crystal oscillators in the 1 to 20MHz range or so tend to have higher accuracy at lower cost.
Your'e better off looking at Digikey. Mouser has some stuff, but not as much as Digikey in the oscillator field. Do a search on Digikey for "oscillator", then narrow it down to the parts that have +/- ppb, that's Parts per Billion. That will get you some accuracy.
Ordering from Digikey is as easy as Mouser. I use them both based on the price quotes and quantity available.
-Phil
1. Generate an NTSC signal and tweak the timing until all the "creepie crawlies" disappear from the screen -- that is to say the diagonal crosshatching that causes a stable picture to shimmer.
2. Tune a shortwave receiver to WWV at 10 MHz. Program a counter (using a PLL mode and starting from clkfreq for the frqa computation) to output a 10 MHz signal, and attach a short length of wire to the pin. Listen for the beat frequency between WWV and the counter on your radio. Adjust _XINFREQ until the beat frequency goes to zero.
-Phil
Whichever method you choose, test it afterwards against a longer-term time-keeping standard.
-Phil