Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHi Jan,
Within your itimer code, the delivery of the signal SIGALRM to your application is a source of offset in term of accuracy. The signal is generated within one clock tick (10 ms for Nios II) of the timer expiring, but your application needs to be scheduled first in order to handle that signal. If the system is busy enough, you could lose some signals. Currently the kernel does not utilize the other nios timer built in the core. I don't know of any reason why you can not use that timer and do some work in the timer interrupt service routine. In fact, I think this is the best solution if you have a high requirement for accuracy. regards, wentao