Altera_Forum
Honored Contributor
20 years agoHow to Using OpenCores i2c master controller
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.