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++
12622 Discussions

How to Using OpenCores i2c master controller

Altera_Forum
Honored Contributor II
2,243 Views

Hi, 

 

I inserted the OpenCores i2c Master Controller into my custom board design (NIOS-II CPU) for communicating with an external RTC. Verilog source files were downloaded from the OpenCores website; also a header file named "oc_i2c_master.h". After re-compiling the system library project, in file "system.h" several #define were added. 

 

Questions are:  

- How do I write the code for using this controller? Some sample code would be very helpful. 

 

As it's seen, I'm completely new to this topics. 

 

Thanks a lot in advance.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
964 Views

Hi VLorenzo, 

I used it and it works. 

Give me your e-mail and i'll send you sample file. 

bye
0 Kudos
Altera_Forum
Honored Contributor II
964 Views

my mail id 

 

[venkateshace@gmail.com

 

 

please send me I2C RTC(ds1307) verilog code for altera DE2 board..................... 

 

 

real time clock interface with fpga............
0 Kudos
Altera_Forum
Honored Contributor II
964 Views

hi, 

i also work with DE2 and need to connect ds1307 as part of BSc final project and i have problems. 

one of you can send me the vhdl code for this RTC ? 

thanks a lot!! 

my mail is oriya1992@gmail.com
0 Kudos
Reply