Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

Configure GPIO pins on DE0-Nano for I2C

Altera_Forum
Honored Contributor II
2,798 Views

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!

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
1,841 Views

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
0 Kudos
Reply