Forum Discussion
Altera_Forum
Honored Contributor
20 years agonp_timersnapl doesn't change
Hi Friends! I use the following program: #include <stdio.h># include "nios2_system.h"
int main (int argc, char* argv)
{
np_timer* timer0=((np_timer*) na_high_res_timer);
float r=0;
...
Altera_Forum
Honored Contributor
20 years agoHi Friend!
The solution is a little bit curios. Before the value of np_timersnapl and np_timersnaph is available np_timersnapl or np_timersnaph has to be set with 0. I think, this setting with 0 effected that the register value of the timer is written to np_timersnapl and np_timersnaph. Thanks for your mindfulness, Lothar.