Quantcast
Channel: Zedboard - Zedboard Hardware Design
Viewing all articles
Browse latest Browse all 243

Zedboard pins banks and MIO

$
0
0

Hi!
I am trying to learn how to use the LEds and switches in the Zedboard.
I have been following this article form Adam Taylor:
https://forums.xilinx.com/t5/Xcell-Daily-Blog/Driving-the-Zynq-SoC-s-GPI...
 
My doubts come when assigning the proper number to the peripherals, LED and switches. I have seen in the .xdc that for example for the LEDs, they are on Bank 33. I have defined the constraints for all of them.  
So, for LED0, the pin is T22, Bank 33. From that data, how can I know the MIO I must set in the .c code?
Adams blog says: "Define the output pin we want to toggle. In this case it is pin 8 within the bank of 10, MIO 47"
And defines the pin:
#define ledpin 47
But I don't know where does it come from. I don't know to translate it into my project.
Can somebody help me? Thanks in advance for your help
This is the line I use for LEd0 in my constraints file:
set_property PACKAGE_PIN T22 [get_ports {LD0}] # "LD0"
How can I access it form my C code to change the state through the function XGpioPs_WritePin ?


Viewing all articles
Browse latest Browse all 243

Trending Articles