Forum Discussion
Altera_Forum
Honored Contributor
21 years agohi Scott,
thanks, now it works well - I have forgotten to include line which saves old CPU times, from /proc/stat, so it produced averaged values from the time when the application started http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif maybe, if you are not disgusted with my small problems, you can give me advice how to get exact 20ms timing in uClinux running in NIOS2. I tried classic timer using interrupt with SIGVTALRM signal, but the time, which I measured did not correspond to the time period, which was set before timer started and even more the timer delay is not equivalent, I found this unpleasant feature, when tried to make my own CPU usage monitoring application - It looks like the timer has very low interrupt priority... So it was the "lucky" reason to get back to your advices and search for error in my code.. But the unlucky issue is, that there is no chance to get precise continuous timing or yes? with regards jan