Forum Discussion

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

Changing Timeout Period - Interval Timer

Hello,

I would like to ask, if any of you have tried to modify the Timeout Period using an interval timer in a Nios II Application.

My application stops after I modify the period registers and I don't know why.

These are the lines I include to change the period:

iowr_altera_avalon_timer_periodh(timer_0_base, 0x017d);

iowr_altera_avalon_timer_periodl(timer_0_base, 0x783f);

Thank you very much,

Juan

2 Replies

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

    Yes I have configured it with

    fixed period - off

    Now I have tested it and if I increase the period looks like is working, but if I reduce the period the interrupt looks out of control