Hi.
Maybe a silly question but here goes.
I have a program that runs just find using millis and delay on an atmega16 that is set in Auduino ide and with using Mightycore set to a 1mhz internal clock.
I just tried the same program with setting the internal clock to 4mhz,
everything still works, BUT it takes 4 times longer for anything to work, IE: A 2000 millis set function takes 8 second to run instead of 2 seconds.
I thought the 4mhz instead of the 1 Mhz clock would run faster ??
what am I misunderstanding ?
Thanks
Mightycore may have tinkered with the timer clock prescaler settings.
I just tried the internal 8 MHZ and that works fine, So maybe something is wrong with the 4Mhz. All it says in the MightyCore notes , that the 4, 2 and 1 are derived from the 8Mhz.
Thanks
Some Arduino core functions only work at 16 or 8 MHz. Some also work at 20 MHz. I would expect the MightyCore to replace the Arduino internals with versions that support other CPU rates but you seem to have discovered that that is not the case.
yep 1Mhz worked perfectly fine, but I needed to get HC-05 bluetooth modules to work and that needed me to raise the baud to 115200 and the clock speed to 8MHZ to get it to recognize the on and off code for the momentary switches
Now, I have to figure out if I can get the bluetooth to work in a switch case statement that I now have running using regular momentary switches
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.