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

Interrupt handling

Altera_Forum
Honored Contributor II
1,095 Views

Hi, 

I connected a counter pin to the PIO in order to generate IRQ every 256 cycles. Appropriate IRQ handler is called after the interrupt triggers. However, after handling the interrupt, the alt_irq_handler stays in the loop because ipending is still set. So, how shall I clear the interrupt request ?  

 

Best regards, 

Joel
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
372 Views

problem solved

0 Kudos
Altera_Forum
Honored Contributor II
372 Views

Hi, 

 

Can you please write how you solved the problem? 

 

thanks
0 Kudos
Altera_Forum
Honored Contributor II
372 Views

In the handler routine reset the edge register by writing 0 to it or ones ( ones didnt work for me but the manual states it) in dependence of PIO configuration. 

 

regards
0 Kudos
Altera_Forum
Honored Contributor II
372 Views

thank you :)

0 Kudos
Reply