[En-Nut-Discussion] Timer timing changed btw. ver 2.5.2 and 3.2.1

Lars Andersson lakab at telia.com
Thu May 29 09:51:38 CEST 2003


Hi all,
I find that timers are aproximately 1% 
faster on version 3.2.1 than on ver 2.5.9
using (nearly) the same source code and the same 
ATMEGA103 board with the same 3.6864 Xtal.

timer1 = NutTimerStart(1000, TimerCallback, &event1, 0);
gives 1000 ms mean time in 2.5.2 and appr 990 ms in 3.2.1 
based on accumulating the number of times TimerCallback is
executed during a run of several days.
(Tried saveral times too)

Compiled with AVR-GCC and DEFS = -DNUT_CPU_FREQ=3686400

Any suggestions appreciated.

Regards,
Lars H. Andersson





More information about the En-Nut-Discussion mailing list