Sorry, you need to enable JavaScript to visit this website.

EMIO PIN number

Solved
4 posts / 0 new
nanjunneo
Junior(0)
EMIO PIN number

Hello, today I wanted to control four EMIOs (2 inputs and 2 outputs) for two LEDs and  two Buttons. The LEDs are lighted through XGpioPs_WritePin functon with number 54 and number 55 GPIO. But the pin number of another two input pins are not found. Their pin numbers are not assigned directly behind the first two GPIOs (54 and 55).  In which file I can get the information? Thank you!

JFoster
Moderator(69)
Hello Nan,

Hello Nan,

Please see the "ZedBoard Master XDC Rev C/D v3". There you will be able to find the constraints needed to connect up to the PL LEDs and Buttons.

http://zedboard.org/support/documentation/1521

--Josh

nanjunneo
Junior(0)
Thanks Josh,

Thanks Josh,
yes, as your suggestion I set the pin assignment from I/O planning in VIVADO, and I connect the four GPIOs to the two leds and two buttons via EMIO.  In SDK  XGpioPs_SetDirectionPin(&psGpioInstancePtr, 55,1) , where the second parameter set to 54 or 55(Pin Number in GPIO) can be used to control two input leds. However, if I want to control the two input GPIO for buttons, which PIN Number should I set?

JFoster
Moderator(69)
Hello,

Hello,

Please take a look at this post.

http://picozed.org/content/gpio-access-zedboard

Regards,

Josh