I'm just wondering if there are any board definitions already out there for an ATmega32u4 running at 8MHz with the internal oscillator. I have some bare ATmega32u4 microcontrollers and I want to run them at 8MHz so I don't have to use an external crystal or resonator.
I thought that the Lilypad USB used the internal oscillator but it turns out it uses an 8MHz external one.
The f_cpu is a variable that should be reflected in the arduino core code. There may be some side-effects, but in looking at my 328P board.txt file for breadboard, only the high/low fuses change, the f_cpu, and the bootloader build.
Sparkfun offers a 32U4 with 8/16MHz settings, so you should be able to get everything there:
Don't expect the USB interface to work if you are using the internal oscillator. The USB interface needs an accurate clock.
The standard ATmega32u4 is shipped with the fuses set for the low power crystal oscillator (the ATmega32u4RC is the version set to use the internal oscillator initially). So you will need to supply either a crystal or an external clock initially, in order to change the fuses to use the internal oscillator.
Don't expect the USB interface to work if you are using the internal oscillator. The USB interface needs an accurate clock.
Yeah, I read some discussion about that but there wasn't a solid conclusion as to whether or not the internal clock would be accurate enough for USB (the datasheet does mention "Crystal-less operation for Low Speed mode"). I'd still like to know for sure.
skootles:
Yeah, I read some discussion about that but there wasn't a solid conclusion as to whether or not the internal clock would be accurate enough for USB (the datasheet does mention "Crystal-less operation for Low Speed mode"). I'd still like to know for sure.