Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
Need Forum Guidance? Click here

Search our FPGA Knowledge Articles here.
19208 Discussions

Interrupt reading in NIOSII

Altera_Forum
Honored Contributor II
807 Views

Hi, 

 

I am very new to NIOSII programming.  

 

So I generate an interrupt using PIO on QSYS  

Direction : Input 

Synchronusly capture : Rising Edge 

IRQ type: Edge 

 

I export the conduit to connect to an FPGA board pin. 

 

What I want to do is when there is an interrupt generated on this pin I want to be able to read it on NIOSII and use it as a variable in coding. 

 

For example I=interrupt then I want to able to write a onditional for loop 

 

If I=1 then  

else.... 

 

Does anyone know how to do this in NIOSII??
0 Kudos
0 Replies
Reply