4

I had seen some tutorials on how to assemble an Arduino on a breadboard. They all just place the external crystal oscillator according to the circuit and then, just burn the bootloader and it starts working. According to my little knowledge the fuse bits have to be set before using the external clock.

My question is - How does the microcontroller know which clock to use internal or external? Is there any setting already in the bootloader that tells the microcontroller to use the external clock?

asked Oct 27, 2017 at 5:46

1 Answer 1

8

Burning the bootloader via the Arduino IDE also sets the fuse bits according to its configuration files.

answered Oct 27, 2017 at 5:59
3
  • So, if I have to use the internal clock, I need to change the configuration file? Commented Oct 27, 2017 at 6:03
  • Yes, or you could find and use a core meant to be used with bare chips. I know of at least one that has the correct configuration. Commented Oct 27, 2017 at 6:03
  • So your keeping it a secret? Which core(s)? Commented Feb 7, 2018 at 10:48

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.