Forum Discussion
Altera_Forum
Honored Contributor
16 years agoI2C interface on Linux (with MMU)
I have a few questions about I2C interfaces on Nios II on Linux with MMU. I found this thread http://www.alteraforum.com/forum/showthread.php?t=18441 (though forum search for "i2c" or "I2C" doe...
Altera_Forum
Honored Contributor
16 years agoWell, I had them switch to the OpenCores I2C interface.
I pointed them at both http://www.opencores.org/project,i2c and http://www.niosforum.com/pages/project_details.php?p_id=111&t_id=18 as sources for the design. I compiled the kernel with I2C_0_FREQ defined as 400000 (400 kHz), and the ds1307 Real Time Clock support. The I2C initialized, and the RTC was read. I have not tried to write to the RTC, but the OpenCores I2C interface and driver seem to work just fine.