Forum Discussion
Altera_Forum
Honored Contributor
22 years agoNios II Timer
I have the need for a 10 mS periodic timer interrupt for my system. I used the timer in the SOPC builder and selected a time base of 10 mS. To keep the size low, I opted for the simple periodic tim...
Altera_Forum
Honored Contributor
22 years agoHello,
In most of the example designs, included with Nios II, a 1ms timer is included for clock ticks. If you look at how this is implemented (hardware in SOPC Builder, software in the ./components/altera_avalon_timer). Focus on the./components/altera_avalon_timer/altera_avalon_timer_sc.c file. This timer generates an interrupt every 1ms. At first glance, it looks like it's doing exactly what you want, only at 1ms intervals. Regards, - slacker