Forum Discussion
Altera_Forum
Honored Contributor
20 years agoNIOS II Problem with Interrupt Timer
I'm using the Cyclone II Development Kit. Using SOPC builder I added a timer to the NIOS2 in "standard" project. I configured the timer to be an Interrupt timer with a period of 500 microsecond...
Altera_Forum
Honored Contributor
20 years agoI used something like
/* set to free running mode */
IOWR_ALTERA_AVALON_TIMER_CONTROL (HIGH_RES_TIMER_BASE,
ALTERA_AVALON_TIMER_CONTROL_ITO_MSK |
ALTERA_AVALON_TIMER_CONTROL_CONT_MSK |
ALTERA_AVALON_TIMER_CONTROL_START_MSK);
/* register the interrupt handler, and enable the interrupt */
alt_irq_register (HIGH_RES_TIMER_IRQ, NULL, handle_timer_interrupt); to program the highres timer in the standard example... It worked for me. Paolo