Forum Discussion

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

about the IRQ

when i use the pio interrupt,it need a long time for the request . the system act so slow.

could anyone help me?

2 Replies

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

    You can set interrupt entry to a onchip memory, and save the interrupt stack there.

    That is, handle intrrupt service yourself instead of by HAL.

    You can look at the source of HAL, and modify them to improve response time.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Alternately, you could start with a full_featured design, which locates the HAL's exception handling code in a tightly coupled memory (an onchip RAM that should be just as quick as cache). If you're using >=5.0 Nios II/Quartus II, you should also be able to place the exception stack and, with some effort, your own ISR, there, as well!

    Best of luck!

    Cheers,

    - slacker