As calculated here?
tcnt2 = 256 - (int)((float)F_CPU * 0.001 / prescaler);
Hmm. I see. Well I don't like fiddling with counters anyway, I believe they "belong" to the timer, especially if it is running.
As calculated here?
tcnt2 = 256 - (int)((float)F_CPU * 0.001 / prescaler);
Hmm. I see. Well I don't like fiddling with counters anyway, I believe they "belong" to the timer, especially if it is running.