![]() The easier way is to tell the IDE what speed the ATmega328P is at. This can be changed by modifying the ATmega328P clock speed by what are called the "fuse bits" but that takes some extra work. This difference between what the IDE thinks the clock speed is set to and what the Atmega328P is actually running at will mean the delay times in the code will be incorrect. An ATmega328P straight from the manufacturer is set to run at 1MHz. While 8MHz is one of the clock speeds of the microcontroller, it is likely not operating at that speed. You should now see "ATmega328 on a breadboard (8 MHz internal clock)" as an option in the boards list.Īs stated in the name, the configuration we just loaded into the Arduino IDE (ATmega328 on a breadboard (8 MHz internal clock)), assumes that the internal clock speed of the ATmega328P is set to 8MHz.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |