I know this is a pretty trivial question but I'm new to building integrated circuits from scratch and I have a problem with a 16mHz crystal.
I'm currently designing a support board for a dvd player and I need help with the correct placement of the oscillator for the ATMEGA328P-AU.
I've seen a few different options online for connecting the oscillator to the arduino and I don't know which one to use/is correct for the ATMEGA328P-AU.
Below are 5 diagrams that I found, I would appreciate your help in choosing the right connection.
All arduino minis that I have in my collection have a connection to 1 ss, while boards with Atmega in IC package (standard) have the quartz connected differently. I would also like to find out what causes the differences in the quartz connection diagrams for Uno, Nano, Mega boards. I don't understand why each of these boards has the quartz connected differently to the IC.
I hope I described my problem correctly ;]
Regards!
ok I understand that other housings may have different leads, but that's not what I mean. I know which connectors on the Atmega it should be connected to. I mean what the circuit should look like before entering the IC.
I've just heard that ATMEGA328P-AU can work without an external crystal.
Only from what I've heard I have to burn a bootloader for another arduino, I think attiny.
However since I've already scalped the original nano pcb from components I'll also press this crystal.
I'm interested in its correct implementation. I've already done a project from one of the YT-bers (portable soldering iron) and after putting it together the arduino worked at half power.
I wanted to avoid such things in the future that's why I'm asking you more experienced in the Arduino network :]
Going out on a limb here as I've generally used crystals and capacitors in my setups, but perhaps some of the differences you see may be because some designs use a ceramic resonator instead of a crystal.
I can't recall any of my projects using a Mohm resistor across the crystal either.
From what I understood, none of the schematics have capacitors in the quartz circuit.
Nano has no resistor in the circuit, Uno has a resistor "before the quartz" and Mega has one behind the quartz, now I am a bit confused what and how to use xD
There are two different but similar components that can be used to control the microcontroller's clock frequency.
One is a 'crystal', these have a frequency tolerance of typically ±10 -50 parts per million. Crystals need two external capacitors to operate.
The other is a 'ceramic resonator', with a frequency tolerance of ±0.5% (= 5000 ppm)
The one used in the Arduino Uno R3 is a Murata CSTCE16M0V53-R0.
Ceramic resonators do not need external capacitors.
All your schematics show the symbol for a ceramic resonator (with integral capacitors).
The Arduino Uno R3 uses a (cheaper) ceramic resonator for the ATmega328P, but it also has a (more expensive) crystal for the ATmega16U2-MU(R).
The ATmega16U2-MU(R) needs to have the better tolerance of a crystal, as it is needed for the Serial UART timing.
As you only use a single ATmega328P-AU microcontroller in your circuit, and have RX and TX pins, you will need to use a crystal, plus 2 capacitors to get the required frequency tolerance.
Some crystal cans contain capacitors, some Arduinos use resonators instead of crystals. Some Arduinos don't use an external oscillator or frequency determining element.
You have a great deal to learn before trying to "design" circuits.