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++
12589 Discussions

Interrupt setting procedure. in arm SoC.

Altera_Forum
Honored Contributor II
1,168 Views

I was reading the HL_GPI interrupt usage. 

https://www.altera.com/support/support-resources/knowledge-base/solutions/rd05162013_937.html 

 

Consider i have the factory version of the default fpga image on my kit. Any guide for what is the procedure i need to do to enable the interrupt usage , i 'm trying this in bare metal basis?  

 

Tsik.
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
468 Views

Hi the usage is similar like normal gpio, you can get some guide in the trm interrupt section.

0 Kudos
Altera_Forum
Honored Contributor II
468 Views

any guide which item need to be set first? any specific sequence?

0 Kudos
Altera_Forum
Honored Contributor II
468 Views

Hi, first thing to do is clear all the mask, then configure interrupt edge, then write the polarity setting. Finally enable the interrupt. you can find the register accordingly in the TRM. you can try to check the interrupt activation via a register called gpio_intstatus.

0 Kudos
Altera_Forum
Honored Contributor II
468 Views

Forgot to inform you, there is a example to refer .key word is "GPIO", do check the read me files for more details!  

https://www.altera.com/support/support-resources/design-examples.html#soc-design-examples
0 Kudos
Altera_Forum
Honored Contributor II
468 Views

Hi, this is quite helpful, how ever i ma using DE SOC board, this example. might not be fitting in...

0 Kudos
Altera_Forum
Honored Contributor II
468 Views

No no, you can still look at how the register are configured in the firmware perspective. as the procedure to use this GPI is same like normal gpio..

0 Kudos
Reply