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
11 years agoPersonally, for an embedded system, I'd not use a timer interrupt but just read a 'time counter' register at appropriate times.
It is likely that the timer interrupt just sets a flag that the main processing loop checks - so it is just as easy for the processing loop to check the time itself. Getting rid of the interrupt removes all the ISR entry/exit costs and all the places where the interrupt would have to be disabled.