Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

SDA line always low (Opencores I2C)

Altera_Forum
Honored Contributor II
1,319 Views

Hi, 

 

I'm working on "OpenCores I2C" with µClinux on the DBM_3C40 devboard.  

As indicated in the i2c_specs.pdf from Richard Herveille, I pulled-up the both lines SDA and SCL to VCC by external resistors (4.7k). 

 

When I scope the SDA and SCL lines with a working system on the FPGA : 

 

- line SCL is always high and I can observe some I2C sequences (adress+R/W+ack) 

 

- line SDA is always low whereas in the "opencores_i2c.v" source file there are some lines about tri-state : 

 

assign sda_pad_i = sda_pad_io; 

assign sda_pad_io = sda_padoen_o ? 1'bz : sda_pad_o; 

 

which means line SDA must always be high when not used... 

 

Thanks for your help ! 

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
494 Views

HI..Did you get why that was happening becoz i m facing a similar situation ..even though my whole code runs to last and access happens..my sda line is low at last due to which my next access is going wrong. I m not able to get why this is happening. I have pullups on both the lines and code is also working for others.

0 Kudos
Reply