Forum Discussion
Altera_Forum
Honored Contributor
14 years agoUsing 2 timers ?
We are trying to use 2 interval timer (200ms and 500ms) on a nios 2 processor. One is configure as a system clock timer and its work fine., but the second don’t ...
Altera_Forum
Honored Contributor
14 years agoWith 'not working' do you mean the timer irq handler function is not called or did you actually check timer is not running at all?
Is the 500ms period fixed or programmable? Ialso suggest you use this one to control the timer: IOWR_ALTERA_AVALON_TIMER_CONTROL(TIMER_500M_IRQ, ALTERA_AVALON_TIMER_CONTROL_CONT_MSK | ALTERA_AVALON_TIMER_CONTROL_START_MSK | ALTERA_AVALON_TIMER_CONTROL_ITO_MSK); which is more portable.