cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
274 Views
Registered: ‎11-02-2019

EMIO pins ultra96

Jump to solution

Hi!

I am using the ultra96-v2 board and I want to read EMIO input and write it on ps MIO leds in SDK. I do:

emio[0] = XGpioPs_ReadPin(&Gpio, xx);
emio[1] = XGpioPs_ReadPin(&Gpio, xx);
emio[2] = XGpioPs_ReadPin(&Gpio, xx);
emio[3] = XGpioPs_ReadPin(&Gpio, xx);

XGpioPs_WritePin(&Gpio, 17, emio[0]);
XGpioPs_WritePin(&Gpio, 18, emio[1]);
XGpioPs_WritePin(&Gpio, 19, emio[2]);
XGpioPs_WritePin(&Gpio, 20, emio[3]);

My problem is that I don´t know which EMIO pins are (xx). Where can I find this information?

Thank you

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
joancab
Advisor
Advisor
265 Views
Registered: ‎05-11-2015

WritePin and ReadPin use the same values.

What happens with EMIO pins is that there is an offset of 78. EMIO 0 corresponds to your xx = 78, EMIO 1 to 79, etc. (for ultrascale+)

This is because that numbering is shared with MIO pins. There are 78 of them (0 .. 77). EMIO come after, start from 0, but function-wise are consecutive.

View solution in original post

1 Reply
joancab
Advisor
Advisor
266 Views
Registered: ‎05-11-2015

WritePin and ReadPin use the same values.

What happens with EMIO pins is that there is an offset of 78. EMIO 0 corresponds to your xx = 78, EMIO 1 to 79, etc. (for ultrascale+)

This is because that numbering is shared with MIO pins. There are 78 of them (0 .. 77). EMIO come after, start from 0, but function-wise are consecutive.

View solution in original post