Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Configure GPIO pins on DE0-Nano for I2C

Hi I'm new to FPGA and I'm trying to use I2C on DE0-Nano. However, there's no I2C I/O pins on the board and I'm wondering if I can configure the I/O pins for this purpose. I have a PICKit serial analyzer for I2C and I want to use my PC as master. If we can access I2C externally, how can I do that? Thank you!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes, you can use the FPGA as an I2C slave (or master). You can configure one (or more) FPGA pins such that they can be input or output signals, as required for I2C. This behavior is all captured in your design.

    Have a look at this link (http://www.fpga4fun.com/i2c_2.html) that discussed an I2C slave implementation for an FPGA. I don't think it's a fantastic example but I'm sure it's enough to get you thinking.

    Cheers,

    Alex