Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNios instability
Hello, I'm using nios II processor with a high_res_timer for different test before continuing my project. The test i'm trying to do is to generate on a pin a square frequency with a 400µs period...
Altera_Forum
Honored Contributor
16 years agoI'm not exactly sure how that timer counts, but it looks as though there will be a variable number of clock cycles between when you detect the count > 100000 and then set it to zero.
You either need to get the couter to reset itself, or use a free-running counter and use modulo arithmetic to detect when the count gets reset.