[En-Nut-Discussion] Timer is not accurate anymore?

Lars Andersson lars at larsandersson.com
Mon Feb 6 22:32:21 CET 2006


Hi group,

I have upgraded from version 3.3.0.1 to 4.0.1.0 in an application
running on 1.3F boards and after that I find that the setup like
	timer1 = NutTimerStart(1000, TimerCallback, &event1, 0);
yields a timer that is a little too quick, about 1 second to the minute. 

NutGetCpuClock() returns 
    Clock = 14.7444 MHz for Version 4.0.1.0
    Clock = 14.7438 MHz for Version 3.3.0.1
which is much less difference than 1/60 so this is OK.
 
Any help or thoughts is appreciated!

Btw, this particular application has been running continiously since
Dec 22 2003 20:46:55 connected to a small local network without any 
thread hangups. The old 3.3.0.1 version is still running on one NUT. 

Regards,
Lars H. Andersson




More information about the En-Nut-Discussion mailing list