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 ?
I'm trying to find the MIO Pin Numbers for the LEDs on the PYNQ-Z1 / ArtyZ7 board.
The solution for the above user seemed to be checking out some table in the HW Guide.
Question
Trillian
Hi,
I'm having exactly the same problem that this person had: http://www.zedboard.org/content/zedboard-pins-banks-and-mio
I'm trying to find the MIO Pin Numbers for the LEDs on the PYNQ-Z1 / ArtyZ7 board.
The solution for the above user seemed to be checking out some table in the HW Guide.
My board doesnt even seem to have a HW guide.
Ich checked the following resopurces:
https://reference.digilentinc.com/reference/programmable-logic/arty-z7/start
https://reference.digilentinc.com/_media/reference/programmable-logic/pynq-z1/pynq-rm.pdf
So where can I find the complete MIO?
thanks!
T
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.