Forum Discussion

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

using IRQ

Hello,

I would like know:

-what is the function when I use sopc and nios

-how I manage IRQ

-how I program the IRQ

For now, I has just found that it's in many file in sopc. But when it interrupt ???? Why it interrupt and when he restart ??

Thanks for you help

3 Replies

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

    I have altera HAL.

    When I look a lot file on HAL/inc/priv I have "alt_iic_isr_register.h" and "alt_irq_table.h" but there are nothing inside.

    For information it's teh first for me to work with SOPC and NIOS
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The HAL API document is better to find information about the functions.

    What exactly are you looking for? You can know the compenents that generate interrupts from SOPC builder. When you build your bsp, the generated system.h file will contain constants with the vector numbers for all your interrupts.

    Write your own isr, and use the register function to associate it with the interrupt you want to process.