I have recently bought an arduino uno R3 (the type where the atmega328 is surface mount and not removable on a mainly blue PCB); the board has two crystals on it one for the clock for the USB serial and the other for the atmega328 clock. Suppose I have built a fully completed circuit using the arduino (this means the arduino needs not to be further connected to a PC). Will my arduino uno based circuit still work if I simply replace (desolder) the 16Mhz (for the atmega328) crystal with a 12Mhz crystal (soldered in its place)? The circuit doesn't use the serial ports or the the crystal for USB serial. Actually the circuit is simply the blink LED example built into the IDE. I am guessing it will still work but blink slower-but I don't know the answer for sure.
Asked
Active
Viewed 189 times
2
-
look at page 2 ... https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf – jsotola Dec 17 '21 at 18:37
-
3Per the @jsotola link, the datasheet says the chip will do 0-16MHz. https://forum.arduino.cc/t/arduino-with-internal-oscillator-on-1mhz/24547/4 suggests that it would mess with the bootloader, and gives guidance for compiling for lower speed operation. – Dave X Dec 17 '21 at 21:49
2 Answers
1
Sure the device will work, but all time related peripherals won't behave. The USART will run at the wrong baud rate, the millisecond timer's intervals will be too long, and so on.
0
Assembling an answer from the comments. Ever-terse @jsotola points the OP to page two of the data sheet which @Dave X summarizes as saying that yes, the chip will operate at 0 to 16 MHz. There is a caveat though, discussions on the Arduino forum suggest that the reduction in clock speed proposed by OP might interfere with the boot loader. The same discussion provides guidance for compiling for lower speed operation.
RowanP
- 871
- 5
- 21