Hi I'm ordering parts from digikey and I'm not sure what crystal I need, I'm Running a ATMEGA 328p with 22pf capacitors (399-8034-1-ND). I Have found two types of crystals a 16mhz 20pf (X1103-ND) and 16mhz 18pf (CTX1085-ND). Which one should I go for. The 18pf's are cheaper.
Also Would anyone know the exact crystals the arduino uno boards use something similar to those would work for me.
Thanks Ian
It's probably not going to matter a lot realistically, unless you really want to really hit the marks as it were. Either will be fine.
If you want to get into specifics though, there is a formula for calculating the capacitor values, given the load capacitance of the crystal from a datasheet.
CX = 2(CL - Cstray)
CX is the capacitor value you use (assuming you use the same value for both caps),
CL is the load capacitance specified by the crystal
Cstray is stray capacitance inherent in the construction
Let's say you call the stray capacitance 5pF, that means for
Crystal 1 which has 20pF load, each capacitor should be 2(20-5) = 30pF
Crystal 2 which has 18pF load, 2(18-5) = 26pF
I'd probably use the 18pF one, because it's cheaper.