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

Detect one shot signal from Nios II

Altera_Forum
Honored Contributor II
1,293 Views

Hi 

I am new to Nios II. I need to detect a one shot signal generated by an external module. But the Nios II (e) is not receiving the signal. 

Is it possible to detect or I should make a signal with longer duration. What if I use ISR?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
403 Views

you could use a PIO-Core inside the QSYS-System, which is connectable with the NIOS and is generating an Interrupt which gets catched by the NIOS. 

 

See in [1] for further details. 

 

Maybe there are also some reference designs for your board available with a PIO-Core connected?! 

 

Regards 

 

[1] https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/ug/ug_embedded_ip.pdf
0 Kudos
Altera_Forum
Honored Contributor II
403 Views

You are more than likely missing the pulsed signal. I was running into the same issue. I was providing the nios with a 1cc pulsed signal as an interrupt. The nios was on the same clock domain, but it was still missing it. 

 

The solution was to use an active high level interrupt. This interrupt remains high until the nios acknowledges it, then the nios goes out and clears it. This was accomplished by writing to a "clear" register that I implemented in the interrupt generating component.
0 Kudos
Reply