Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHello, lrp!
I am now beginning to test Your C code for I2C initialization and I before I started have several questions / comments: 1). In the datasheet "I2C Master core" ( i2c_specs.pdf ) from Opencores prescale is calculated in a different way, than in Your code. 2). Unsleep function doesn't produce pauses, stated in corresponding comments. 3). Where from can I get "i2c.h", "links.h" files, that are# include(d) in C code? They are not included in "I2C Master core" from Opencores. Maybe should I use "i2c_opencores_regs.h" or "i2c_opencores.h" and "linker.h" instead? P.S. I found the solution by myself.