Forum Discussion

swapnilturambekar's avatar
swapnilturambekar
Icon for New Contributor rankNew Contributor
5 years ago

interfacing of i2c with nios2 processor

Hi All,

I am using cyclone VE development kit for to interface eeprom over i2c interface. I want to perform read/write operation on it. I tried to configure the i2c(master) intel fpga ip with nios2 processor and generate the code but i am facing some issue.

This is my connections for i2c and nios processor. is these connections are ok?

if yes then i2c_0 needs 4 pins to connect with it.

1. i2c_0_scl_in

2. i2c_0_scl_oe

3. i2c_0_sda_in

4. i2c_0_sda_oe

from this I come to know that 2 pins are output and 2 pins are input pins. out of which i2c_0_scl_oe and i2c_0_sda_oe are connected to eeprom. Can anyone please tell me what is the purpose of other two pins (i2c_0_sda_in andi2c_0_scl_in)?

Is there any example on i2c, that guide me to interface this?