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?

1 Answer 1

8

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

3
  • So, if I have to use the internal clock, I need to change the configuration file?
    – Aneesh Sharma
    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)?
    – tgunr
    Commented Feb 7, 2018 at 10:48

Your Answer

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