Forum Discussion
I2C master with NIOS 2
Hi @Gerhard56,
Thank you for posting in Intel community forum, hope this message find you well and apologies for the delayed in response.
Can you please explain more on the what is looking strange on the design for us to better understand the situation.
In the meantime, I would recommend to check on the following reference design on I2C master with NIOS example here which contain a simple C code to test on the I2C interface.
Warm regards.
BB
Hi BoonBang,
I expected two lines, sda and scl, but I get 4 lines ...
Later on I found out, that I have to add some additional buffers to implement the correct hardeware behaviour, cause the FPGA cant do that simpler.
Maybe it will be a nice idea, to include grafics and code in the description so it is easier to start with.
Thanks for the sample. I need a I2C master interface, hope I can find something, but to have a I2C slave ist very good too.
With best regards
Gerhard
- Gerhard565 years ago
Occasional Contributor
... oh, see the your text now. You wanted to send me the i2c_master_sampe_1.zip but I get i2C_slave_sample_1.zip.
With best regads
Gerhard
- BoonBengT_Altera5 years ago
Moderator
Hi @Gerhard56,
The example does comes with the i2c master ip interface, it should be a good example to start with.
Please do let us know if the example mention does not suit what you are looking for.Warm regards
BB- BoonBengT_Altera5 years ago
Moderator
Hi @Gerhard56,
Good day, by any chances did you managed to go through the example?
Please do let us know if any other clarification that we can help with.Warm regards
BB