Forum Discussion
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