11-16-2018 01:01 AM - edited 11-16-2018 02:48 AM
Hello I'm trying to make it works PS IIC on ultrazed-EV SOM + carrier card. SCL/SDA pin are MIO 24-25. As you can see in Zynq configuration they are configured pulled-up. But if I execute with sdk an elf running a PS IIC xilinx example II2 stucks. On ultrazed-EV there is a PS_USER_LED connected to MIO 26 and I can drive it without any problem.
Could someone help me?
Edit: Another question. The driver functions need in the argument of
1) 7-bit address (7 bit)
2) 7-bit address + R/W bit (8 bit)?
3) 7-bit address + LSB always 0 and send/recv function decide if OR address with 0x00 or with 0x01
12-05-2018 11:19 PM
On which line the PS IIC xilinx example IIC is stuck and which example are you trying to use?
Did you try with polled example first?
12-06-2018 02:27 AM
thanks for the help. I tried with polled example first but it doesn't. It seems that SCL and SDA are always High. In the end I solved my problem driving PSIIC MIO pin as GPIO pin ,unconnecting them from IIC PS in Zynq configuaration, and implementing I2C using bit banging. In this way it worked to do what I needed and now I'm dealing with other things. So I workarounded the problem but I didn't solved it.
I think that there are some bugs in PS I2C or I did some mistake.
Thank you very much for the help!