| FORUM

FEDEVEL
Platform forum

Opinion on - Crystals and external caps :)

Agronov , 06-19-2019, 10:26 AM
Hi all

Currently I`m designing a board with Atmega32u4 and I came up with question about the external capacitor value for the XTOL, and i`ve wondered if I may get your opinion on that.

It seems like there is no clear answer for how to calculate the exact value of them, with different formulas are there on the internet and different approaches being taken with different designers.
I`ve noticed also an 18pF external caps with CL = 18pF were used in the Udemy course.
- I`d be glad to know how you should choose the external caps.
Recommended capacitance for the Atmega32u4 at@16MHz 12-22pF.

P.S Thank`s for the helpful course on Udemy, it was very detailed!


Eli Agronov
Paul van Avesaath , 06-20-2019, 04:10 AM
usually it given by the XTAL datasheet, or given in by you as user, (make your own partnumber) there are lots of calaculations.. but in my experience i jus put in a default value, like 12 or 16 pf.. if it doesnt work change it to something else..
Agronov , 06-20-2019, 04:45 AM
Thanks for the input Paul

The XTAL I choose is this one:
Order today, ships today. ABM8AIG-16.000MHZ-12-2Z-T3 – 16 MHz ±20ppm Crystal 12pF 70 Ohms 4-SMD, No Lead from Abracon LLC. Pricing and Availability on millions of electronic components from Digi-Key Electronics.

The datasheet defines the CL value, not the actual capacitors value to be in the design.

- So you are saying it doesn't matter what the caps value is, as long as it`s in the required range of the MCU manufacturer?
Is it safe, and wouldn't it change the resonance frequency, which might stop XTAL from oscillating?
robertferanec , 06-21-2019, 12:37 AM
but in my experience i jus put in a default value, like 12 or 16 pf.. if it doesnt work change it to something else..
- be careful with choosing a capacitors and crystals which just seems to be working fine. I have seen boards what were NOT booting up for different temperatures if capacitor was not correctly calculated. In most cases and in lab most of the boards worked just fine ... but occasionally and for some conditions some boards were stuck and didn't boot up.

It seems like there is no clear answer for how to calculate the exact value
- I do not remember exactly, but I think you are right. I think I had some problems to decide on the exact capacitors and crystal ... I think, I went through some calculations to get approximate values what I need, but in final I found a similar board from ATMEL and that was the capacitor and crystal what I used .... but I do not remember exactly.
Paul van Avesaath , 06-21-2019, 04:22 AM
that is what I meant by " if it doesn't work try something else" i have never had these problems since i would order a specific crystal with a manually selected cap value.(no need to calculate ). if it needs to be that critical or temp depended a Xtal is not your best solution. the you have other components to look into.. but in most cases this rarely happens...
Agronov , 06-23-2019, 01:11 AM
Thanks!

Originally posted by robertferanec
I have seen boards what were NOT booting up for different temperatures if capacitor was not correctly calculated. In most cases and in lab most of the boards worked just fine ... but occasionally and for some conditions some boards were stuck and didn't boot up.
Yes, I would test this to UL and NEMA in temperature chamber and in EMC chamber after initial design.
Wanted to select correctly on the first attempt, so I think I`ll try your suggestion finding a proved design with schematics.
- When using from known schematics the xtal-caps combination, Is there a rule of thumb here for verification, just to be on the safe side?
Lakshmi , 06-26-2019, 06:59 AM
Generally we do follow the what's been used in reference design given by the Manufacturer.
Paul van Avesaath , 06-27-2019, 06:40 AM
,,I would test this to UL and NEMA in temperature chamber and in EMC chamber after initial design.'' that will cost you a pretty penny...
robertferanec , 06-28-2019, 01:41 AM
When using from known schematics the xtal-caps combination, Is there a rule of thumb here for verification, just to be on the safe side?
- maybe it would be good if the values are in the range what you theoretically calculated - that I would consider to be on the safe side. Also, I consider schematics from bigger companies like ATMEL as a quite reliable source .... but I do not trust schematics which are just downloaded from somewhere created by someone (these schematics can sometimes actually cause more harm than good).
Use our interactive Discord forum to reply or ask new questions.
Discord invite
Discord forum link (after invitation)

Didn't find what you were looking for?