CPU is only using internal clock

I've made pcb with Atmel 328p, with external Xtal. Made also some before, with no problems.
Now I had problems with using serial lines, and as it seems cpu is NOT using external Xtal (16Mhz).
(made little test sketch with blinking output every 100ms, but blinking is much slower.)

Loading scetch using ISP, and arduino uno as programmer.
So Uno is loaded with software: ArduinoISP, IDE I've selected "Arduino as ISP"
And as board, I've selection pro/mini, 328p 5v-16Mhz.

So loading of the sketch seems ok. But running mode is whitout the Xtal (I think).

AMZ

Welcome to the forum

Have you tried burning a new bootloader to the chip ?

No there is no bootloader loaded at all. (the used UNO is offcourse standard.)
I only use ISP. So I had idea that bootloader is not needed.

Sorry, my mistake. As you say, if you program using the ICSP then no bootloader is needed and it is, in fact, overwritten by the program

(However, "Burn bootloader" will also set the fuses to include "use external crystal", rather than the default "use internal clock." You can do that with avrdude directly, but "upload using ISP" does NOT do it.)

Will try.
Sorry have no knowledge at the moment by direct using avrdude.
(I expect it would be possible to set only this fuses manually ?)

Why not burn the bootloader as suggested ?

Adding to post #7. After burning the bootloader, you can upload sketches via ICSP which will wipe the bootloader but maintains the fuse settings.

Thanks to all. burning bootloader did set the fuses in right way.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.