MCUdude / MightyCore

Arduino hardware package for ATmega1284, ATmega644, ATmega324, ATmega324PB, ATmega164, ATmega32, ATmega16 and ATmega8535
Other
637 stars 181 forks source link

OSCCAL byte atmega16 #242

Closed Harshal-Sakhale closed 2 years ago

Harshal-Sakhale commented 2 years ago

I have greatly benefited by the atmega16 optiboot boot loader source running at internal 8 MHz. However I realized much later to use it correctly you need to read osccal byte and load it at runtime to calibrate the oscillator. Is it already documented somewhere in the repository ?

MCUdude commented 2 years ago

You don't have to calibrate the internal oscillator if you're not using it for timing-sensitive applications. It is up to the user how it would like to deal with OSCCAL, and it is well documented in the microcontroller datasheet, but not in this repo.