Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHow to Use Opencore's I2C IP for Nios?
hello everyone: I integrated the Opencore's I2C core into SOPC builder. But I don't know what PIN primitive for the SDA and SCL output should I place in the Quartus2's BDF des...
Altera_Forum
Honored Contributor
21 years agoHello trout,
If you have integrated the I2C IP from Opencores into your system correctly there are only some more steps to bring it to work. 1. Insert -> Symbol ... 2. 2x primitives -> buffer -> tri 3. 2x primitives -> logic -> not 4. 2x primitives -> pin -> bidir 5. connect "scl_padoen_o" and "sda_padoen_o" to the input of the "not"-logics 6. connect "scl_pad_o" and "sda_pad_o" to the input of the "tri"-buffers 7. connect the output of the "not"-logics to the corresponding output-enables of the "tri"-buffers 8. name the output of the "tri"-buffers "i2c_scl" and "i2c_sda" 9. connect "i2c_scl" and "i2c_sda" to the corresponding inputs of the I2C IP 10. connect "i2c_scl" and "i2c_sda" to "bidir"-pins That's it! Bye, niosIIuser PS: Why can't we upload images? This function would be very helpful.