UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Newbie tug78140
Newbie
320 Views
Registered: ‎02-17-2019

Zybo Board Interrupt to specific button pin in C

Jump to solution

Hi,

I'd like to set an interrupt that only happens when PB0 is pressed. Right now I have it working where all the buttons can trigger the ISR, but I want to know if I can be more specific with the buttons. I'm doing this in C in the SDK.  Thanks for the help.

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
272 Views
Registered: ‎09-12-2007

Re: Zybo Board Interrupt to specific button pin in C

Jump to solution

You can just read the GPIO data register in your interrupt handler to know what button was pressed

View solution in original post

0 Kudos
1 Reply
Moderator
Moderator
273 Views
Registered: ‎09-12-2007

Re: Zybo Board Interrupt to specific button pin in C

Jump to solution

You can just read the GPIO data register in your interrupt handler to know what button was pressed

View solution in original post

0 Kudos