Arduino Forum

Products => MKR Boards => MKRVIDOR4000 => Topic started by: nameless2905 on Jun 29, 2020, 02:01 am

Title: Pin direction declarations on MKR Vidor Atmel and Cyclone 10
Post by: nameless2905 on Jun 29, 2020, 02:01 am
Hi everybody

Currently I'm working on a project using a MKR Vidor 4000, but I come across a doubt.

If I want to send data from the FPGA to the Atmel chip, or from the Atmel chip to the FPGA using the digital pins that both devices share, how should I declare this pins direction?

IE, if I write a digital value using the Atmel for the FPGA to read it, how should I declare the pins on both the Arduino IDE code, and the Verilog description? Looking to avoid damaging any device.

Should I declare the pin as output in the atmel and as a input on the FPGA, or as inout port on both of them (if that's even possible)?

My BR

Thanks
Title: Re: Pin direction declarations on MKR Vidor Atmel and Cyclone 10
Post by: Limba on Jul 01, 2020, 01:32 pm
Sending side configured as output and receiving side as input.

For inout / tristate. This you need some control signal or protocol level control who is sending. You can't send from both at same time (you can if they are same. like buses that uses IO to pull down and there are resistor to pull bus up). FPGA should have driver strength but there is possibility to kill IO from FPGA.

If you don't configure IO:s shared with SAMD as input/tristate or you left these unconfigured. check that from configuration unused pins is aren't driving GND.