Clock Speed accuracy
Gadgetman
Posts: 2,436
How accurate is the RC-clock, and is there any way to anticipate some of the deviance?
I'm asking because it states in the manual that the RC-Slow 20KHz can vary from 13 - 32KHz and the RC-Fast 12MHz can vary from 8 - 20MHz.
(The 20KHz is more important to me)
I assume the deviation is mostly caused by temperature changes?
If so, is it a gradual and predictable deviation, or is it more random?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
I'm asking because it states in the manual that the RC-Slow 20KHz can vary from 13 - 32KHz and the RC-Fast 12MHz can vary from 8 - 20MHz.
(The 20KHz is more important to me)
I assume the deviation is mostly caused by temperature changes?
If so, is it a gradual and predictable deviation, or is it more random?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
Comments
Because of the variance in frequency from the RC clock, you might consider using an inductor
for an alternative solution to using the RC clock or a Crystal
·
·
Just a few preliminary tests with some inductors I had lying around, the math seems to agree.
·
·
The Propeller Code simply defines or "sees"·the clock as if it were a crystal....
·
·
···· _clkmode = {xtal1, xtal2, or xtal3}
_xinfrequency = {this is just for reference}
·
·
·
·
Note:· xtal1 uses an internal capacitor value of 36pF
········· xtal2 uses an internal capacitor value of 26pF
········ ·xtal3 uses an internal capacitor value of 16pF
········· You can also use the PLL to synthesize a frequency in this mode.·
········· This could be useful to the Propeller so it could track it's own frequency.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.