Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
304 Discussions

interfacing of i2c with nios2 processor

swapnilturambekar
276 Views

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.

swapnilturambekar_0-1620909953219.png

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)? 

swapnilturambekar_1-1620910281244.png

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

0 Kudos
1 Reply
EricMunYew_C_Intel
Moderator
209 Views
Reply