cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
387 Views
Registered: ‎05-28-2019

Button interrupt

I'm trying to switch on and off a led when I press a button. I'am using Zynq7000 on Zedboard. I don't know how handle interrupt for button (MIO50) from code using XScuGic and XGpioPs. Can somebody help me?

Thanks.

0 Kudos
3 Replies
Highlighted
Moderator
Moderator
357 Views
Registered: ‎06-27-2017

Hi luca.padovan@t3lab.it 

 

Could you please refer below SDK GPIO examples for interrupt mode and polled mode?

 

 

 

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
342 Views
Registered: ‎05-28-2019

0 Kudos
Highlighted
Moderator
Moderator
253 Views
Registered: ‎06-27-2017

Hi luca.padovan@t3lab.it 

MIO50 belongs to BANK1 so could you please modify the BANK macro to XGPIOPS_BANK1,

Please refer UG585 for more info about Registers 

 

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos