I'm trying to pick a crystal and load capacitor combination for the atmel UC3C series micro controller. The target CPU clock I'm shooting for is close to the max frequency of 66 MHz.
Here's the configuration I think would best achieve this goal:
A 11MHz
crystal is attached between XIN0/XOUT0 with the appropriate load capacitors. Then use the PLL to multiply the frequency by 6
. Use the PLL 66MHz
as the cpu clock with no division.
Now here's where I have a few questions:
I've spec'd out a variety of 11MHz crystals. All of them have 50ppm frequency stability and 30ppm frequency tolerance. However, there are various ESR. According to this source the ESR represents roughly the bulk losses in the crystal so a lower ESR value would be the better choice. Correct?
Is there a significant difference between how I arrive at the CPU clock 66HMz frequency?
I have a few choices in addition to my original choice of a PLL multiplier of 6:
- Multiply
11MHz
by12
, then divide by2
for a PLL output of66MHz
. No CPU clock divider. - Multiply
11MHz
by24
(multiplier = 12
,divider = 0
). CPU clock divider of4
. - Multiply
11MHz
by12
,PLL divider = 1
for132MHz PLL output
. Use a CPU clock divider of2
.
All of these appear to be equally valid minus the level of code complexity to achieve each choice. Should I stick with my current "simplest is best" assumption, or do one of these other solutions create a better cpu clock?
All of the crystal I've found at 11MHz
require either a load capacitance of 18pF
or are in series
. Is there any reason to choose one over the other? I can't tell anything different between the specs (same frequency tolerance/stability, same ESR, roughly same temperature range) Atmel's documentation only shows parallel crystal configurations.
If I do end up using a parallel configuration, how close should the load capacitors be to the specified load capacitance of the crystal?
Atmel's datasheet provides an equation for calculating the value of each load capacitor:
$$ C_{LEXT} = 2(C_L – C_i) – C_{PCB} $$
C_i
is provided in the datasheet as 1.7pF
. I'm unsure how to calculate C_{PCB}
, but I would imagine it is greater than 0. This means that C_LEXT
is at most 32.6pF
. There are some 30pF
, 32pF
, and 33pF
1% C0G
capacitors. I would think that the 30pF
capacitors are the best choice because they are still relatively cheap compared to the 32pF
capacitors, and don't exceed the 32.6pF
limit as the cheapest 33pF
capacitors. Am I right in my assumptions and conclusions?
Finally, is this a good setup? Are there other frequency crystals I should consider researching?
[7.6, 8.4] MHz
, which could provide an error up to ~8%. Crystals are fairly cheap so I decided that would be a good way to provide a better clock. Plus I'm taking this as an opportunity to learn more about crystal oscillator circuits. 50ppm just happens to be pretty much the only tolerance I can find at 11MHz. \$\endgroup\$