Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

NIOS Interval Timer Problem

Hi folks,

I am sure this will be a quick one for any of you seasoned pros out there:

I have just added the interval timer to my qsys systm and rebuilt the BSP, but now when I run my program it jumps straight to the ISR for the timer as it is defaulting to being the system tick. I do not want this,I just need a timer that freely runs that I can query/stop/start and reset at my discretion.

Is it possible to disable the default as a sys tick?

I could define my own ISR that will override the default, but that means I have to allow at least one ISR branch before I can disable it. The timer is running at 10clk increments, with a 100Mhz clock input as I need quite a high resolution.

Can anyone advise please?

thank you.

deBoogle

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In the BSP editor, you ought to be able to set hal.sys_clk_timer to "none". Or if you're having trouble doing that, take the easy way out and add another timer for your sys_clk_timer and tell your BSP to use that timer.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    In the BSP editor, you ought to be able to set hal.sys_clk_timer to "none". Or if you're having trouble doing that, take the easy way out and add another timer for your sys_clk_timer and tell your BSP to use that timer.

    --- Quote End ---

    Perfect. All sorted now thank you.