You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently tried to run my Atmega328p with a 1.8432Mhz crystal (to use a faster baud rate). I managed to recompile the bootloader by changing AVR_FREQ and FUSES in Optiboot Makefile, boards.txt
However I found out some timing issue with Arduino's implementation of delay, millis, micros....
As defined
in Arduino.h (line 96) #define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
in wiring.c (line 103)
I recently tried to run my Atmega328p with a 1.8432Mhz crystal (to use a faster baud rate). I managed to recompile the bootloader by changing AVR_FREQ and FUSES in Optiboot Makefile, boards.txt
However I found out some timing issue with Arduino's implementation of delay, millis, micros....
As defined
in Arduino.h (line 96)
#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
in wiring.c (line 103)
This integer division really limit the choices of clock!
The baud rate is correct and avr version of delay (_delay_ms) work correctly for me. I am not sure if any other libraries are affected.
The text was updated successfully, but these errors were encountered: