I have one project based on Arduino nano. I would like to switch to something simpler (minimal possible configuration).
I'm using function to receive data via some software serial (non standard) - it's based on delays and delayMicroseconds.
I'm familiar with MicroCore and burning bootloader.
When i set nano to internal 8 MHz clock, received data is garbage - as expected, since it is quite inaccurate. So i was wondering if i can use quite accurate 16 MHz nano clock and divide it by 2 or even more.
Should i use:
#ifdef F_CPU #undef F_CPU #endif #define F_CPU 8000000L ... clock_prescale_set (clock_div_2);
Or must I use "build.f_cpu=800000L"?
And when i must use delay_us?
Or maybe internal clock is ok, but there is problem somewhere else?