UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
6,328 Views
Registered: ‎08-25-2014

PS I2C interfacing with Zynq ZC702

I am trying to connect an I2C sensor with ZC702, through the TCA6416 (U80-IO expander) provided at the board. However, it has been mentioned in the datasheet that it requires the IIC_PMOD [0:7] to be connected to a Pmod peripheral module.  

 

Does this mean that the Development board cannot be used independently to a device without any external device? Is there any application note on the same?

Tags (2)
0 Kudos
8 Replies
Xilinx Employee
Xilinx Employee
6,318 Views
Registered: ‎07-01-2010

Re: PS I2C interfacing with Zynq ZC702

Hi,

Please refer to this XAPP, which used the FMC IIC.

http://www.xilinx.com/support/documentation/application_notes/xapp794-1080p60-camera.pdf


Regards,
Achutha
---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
6,313 Views
Registered: ‎08-25-2014

Re: PS I2C interfacing with Zynq ZC702

We have interfaced the HDMI and EEPROM with the I2C, but the main issue is with interfacing of an I2C sensor to be connected through the IO expander. 

0 Kudos
6,291 Views
Registered: ‎08-25-2014

Re: PS I2C interfacing with Zynq ZC702

Looking forward to replies. 

0 Kudos
Teacher muzaffer
Teacher
6,270 Views
Registered: ‎03-31-2012

Re: PS I2C interfacing with Zynq ZC702

U80 is a gpio extender ie it generates an 8 bit register which can be read/write through I2C. It would be somewhat difficult to convert these gpio back to i2c. As your device is an i2c device, it would be easier to connect it to one of the outputs of the U44. Look at page 44 in ug850. There is a J59 which is connected to PMBUS i2c. If you are careful about address assignment you should be able to connect your device there.

 

Another option is to connect your device to J54 directly (check the voltage levels) and then generate I2c transactions by bitbanging the gpio. ie connect sda/sclk of your device to 2 pins on the connector (no pmod connector needed) and generate the correct bit patterns by writing to the gpio through i2c. This would be quite slow but possible.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
6,209 Views
Registered: ‎08-25-2014

Re: PS I2C interfacing with Zynq ZC702

Dear Muzaffer,

 

Thanks for your reply. I though had some queries associated with your previous replies and would be great to have your reply on the same. 

 

You have mentioned to connect i2c device to one of the outputs of U44. However, out of the available options most of them are connected to RTC/ HDMI/ IO expander without any option of feeding signal through any of them except PMBUS. We just wanted to confirm, if you referred the PMBUS_Data and PMBUS_CLK of J59 to be connectd to SDA and SCL of I2C device for interfacing the sensor directly. And, if there is an application note on the same! 

 

Another option to connect the device to J54 directly seems a mystery still. The pins of J54 are not directly addressable, and thus does not understand your proposed solution of bit-banging the GPIO. However, connecteing the I2C device through any other GPIO pin or an FMC pin might still seem to work out, though have not tried that. 

0 Kudos
Teacher muzaffer
Teacher
6,201 Views
Registered: ‎03-31-2012

Re: PS I2C interfacing with Zynq ZC702

PMBUS_Data and PMBUS_CLK of J59 to be connectd to SDA and SCL of I2C device for interfacing the sensor directly

 

Yes, that what I meant. The TI parts are also connected the same way. and it's possible to execute i2c transactions against them. Once you find a suitable address for your sensor and program the switch to select pmbus, it is just like talking to a regular i2c device. I don't know an app note but the board user guide says somethings on this topic.

 

The pins of J54 are not directly addressable, and thus does not understand your proposed solution of bit-banging the GPIO.

 

The pins of the j54 are connected to a register the bits of which are controlled by an i2c slave. So you execute a byte write to an i2c address and the byte appears at j54 pins. As I have said, it would be quite slow and complicated as the direction of the pin connected to sda needs to be changed etc. but at a high abstraction level this can be treated like a byte gpio. If you can do byte gpio to control bits of the same to do i2c, this can be used for that method.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
6,163 Views
Registered: ‎08-25-2014

Re: PS I2C interfacing with Zynq ZC702

We tried connecting the PMBUS_Data and PMBUS_CLK of J59 with SDA and SCL of I2C but was unable to find any dedicated address provided for J59 in the guide provided. My sensor has an address of 0x6B as known while interfacing with micro-controller, but in order to connect it through J59, we need to select PMBUS compatible to address this sensor. 

 

So, could you please let us know how to select suitable address for J59, to connect a sensor!

 

 

 

0 Kudos
Teacher muzaffer
Teacher
6,157 Views
Registered: ‎03-31-2012

Re: PS I2C interfacing with Zynq ZC702

I don't know to what table 1-19 refers. The pca9548 is just a switch so after you set channel 7 as the target by writing to its control register you should be able to talk to any i2c device on that channel which doesn't conflict with the existing ti chips on the same bus; and your sensor doesn't. Just try and see if it would work.
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
0 Kudos