Yet another ISR question (Buttons)

Yet another ISR question (Buttons)

by Jon Märki -
Number of replies: 2

Hi,

I was trying to get the buttons to generate ISR with the configuration below but it doesn't work and I wonder why. Any help would be very welcome. 

Thank you very much.





In reply to Jon Märki

Re: Yet another ISR question (Buttons)

by René Beuchat -

Hello,

Where do you enable the mask in your PIO module?

Look at the documentation of the PIO used.

Draw all the element you have in your system for interrupt path.

Button --> GPIO input --> edge IRQ AND mask --> IRQ from PIO --> NIOS II pin AND mask at NIOS --> and global PIE --> interrupt the proc.

All the conditions in the sequence must be active to receive an interrupt.

Hope it will help.

Did you connect correctly the pins (component link).

Did you run the .tcl file for pin assignment?

Best.

RB 

In reply to René Beuchat

Re: Yet another ISR question (Buttons)

by Jon Märki -
Hello,
Indeed I forgot to enable the mask from the code, fixed now !
Thank you very much.
Regards,
Jon