Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
공지
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

using IRQ

Altera_Forum
명예로운 기여자 II
1,259 조회수

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
0 포인트
3 응답
Altera_Forum
명예로운 기여자 II
522 조회수

It depends on the operating system you run your software on. If you use ucOS or the Altera HAL, have a look at the hal api (http://www.altera.com/literature/hb/nios2/n2sw_nii52010.pdf). 

The alt_ic_* functions are used to manage IRQ's and ISR's
0 포인트
Altera_Forum
명예로운 기여자 II
522 조회수

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
0 포인트
Altera_Forum
명예로운 기여자 II
522 조회수

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.
0 포인트
응답