Like the title says I need to choose the right capacitance for the right high noise environment in the datasheet of the ATMEGA328P au it says the recommended capacitance is 12-22PF now I know I need an 8Mhz resonator for a high noise environment. how should I proceed what capacitor value should I pick?
Do you know what the datasheet defines as "high noise"? How have you determined that your environment meets that definition?
I would pick one near the middle of the range. Just whatever's cheapest: you don't need to spend $5 more to get a high-precision device exactly in the middle.
MorganS:
Do you know what the datasheet defines as "high noise"? How have you determined that your environment meets that definition?
I would pick one near the middle of the range. Just whatever's cheapest: you don't need to spend $5 more to get a high-precision device exactly in the middle.
So the lower the capacitance is the more stable it is in high noise environments right?
then why not having all arduino with that resonator what are the cons?
Also I know the environment is high noise because when operating an arduino nano near it(High power video transmitter) it simply goes crazy So I'm redesigning it with better hardware and protection.
Your high power video transmitter may exceed the datasheet's definition of "high noise". It may be impossible to do this without more shielding.
The resonator is usually less accurate than a crystal. But a crystal costs more, which is significant for large-scale manufacturing. If you can make a million devices $1 cheaper, then you just made another million dollar profit.
If you're only making one or ten then you can afford to use more expensive parts to do the same job more reliably or more accurately.
MorganS:
Your high power video transmitter may exceed the datasheet's definition of "high noise". It may be impossible to do this without more shielding.
The resonator is usually less accurate than a crystal. But a crystal costs more, which is significant for large-scale manufacturing. If you can make a million devices $1 cheaper, then you just made another million dollar profit.
If you're only making one or ten then you can afford to use more expensive parts to do the same job more reliably or more accurately.
More shielding will definitely help but that still doesn't answer my question...