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 ago --- Quote Start --- originally posted by paolo.gai@Mar 20 2006, 11:47 AM i 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
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=13611)</div> --- Quote End ---