Forum Discussion
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.