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

user push button

Unsolved
4 posts / 0 new
ludwig's picture
ludwig
Junior(0)
user push button

Hi,

So I just would like to know with the SW1 which is a USER GPIO button. In the documentation it says it is connected to B9 and when checking UG865, this pin is connected to the PS. Is their a way of simply using it to trigger something in the PL? Or is there another way of triggering something in the PL with the microZed?

Ludwig

TroutChaser's picture
TroutChaser
Moderator(18)
PL is connected to the two MicroHeaders

You are correct, SW1 is connected to the PS portion of the Zynq device and there is no way for it to directly control or trigger logic it the PL section. You could use the switch indirectly by having one of the ARM processors read the state of SW1, and set a GPIO output routed via the EMIO to the PL section accordingly, to control PL logic.
 
Or you could connect to the PL section via one of the two MicroHeaders on the MicroZed. The IO Carrier board has four push button switches and four dip switch inputs available.
 
http://www.zedboard.org/product/io-carrier-card
 
-Gary
 

g.durand's picture
g.durand
Junior(0)
Hi Gary

Hi Gary

I'm working with MicroZed too. I'm interested in your following option:

"You could use the switch indirectly by having one of the ARM processors read the state of SW1, and set a GPIO output routed via the EMIO to the PL section accordingly, to control PL logic."

How could I do it with Vivado 2013.4 ?

I added an AXI_GPIO_0 bloc but Vivado doesn't propose to me any "run connexion automation" solution.

Thanks

Guillaume

TroutChaser's picture
TroutChaser
Moderator(18)
You need to enable the M AXI GP0 interface

You probably need to 'customize' the Zynq processing block to enable the GM Master AXI GP0 Interface. Then adding the axi_gpio block should give you a 'run connection automation' option.

 

 

If you are going to connect anything to the MicroZed Programmable Logic (PL) you are going to need to connect the MicroZed MicroHeaders, probably with one of the MicroZed Carrier Cards. The MicroZed IOCC carrier card has both user switches and push buttons as well as user LEDs on board that you could connect directly to GPIO.  http://zedboard.org/product/microzed-io-carrier-card

 

The MicroZed FMC carrier card has user push buttons and LEDs you could connect to as well: http://zedboard.org/product/microzed-io-carrier-card

 

If you do want to use the switch connected to the PS GPIO you can take a look at section 3 of the Zynq Concept Tools and Techniques for the Zedboard for an example of how to do that: http://zedboard.org/design/1521/11

 

-Gary