Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by dough1a+mar 20 2006, 01:38 pm--><div class='quotetop'>quote (dough1a @ mar 20 2006, 01:38 pm)</div>
--- quote start ---
<!--quotebegin-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 --- <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13614)</div> [/b] --- Quote End --- Thanks. I used the same code for the highres timer and it worked fine; but when I add an additional timer with the same attributes as the highres timer I can't seem to get the interrupt to be generated. Doug