Forum Discussion

AHoek's avatar
AHoek
Icon for New Contributor rankNew Contributor
5 years ago

Using Qsys to interface with mpu6050 I2C

Im currently working on a project for school, my teammates and I are getting stuck.

We want to use two gpio pins of the de2-115 as a sda and scl pin. We don't have that much time to code our own I2C protocol in VHDL. Therefore we want to use the Qsys tool in Quartus. We are all beginners of this tool and can't seem to get it working. Is there some tutorial or pdf file to use Qsys and set up I2C in Qsys.

5 Replies

  • Hello Arie, sorry for the late response,

    There's a wiki where you can find and work with an I2C wrapper attached in the link [1], you can follow the wiki, then when you finish those steps you need to add to your Quartus project with the following steps.

    (1) Put I2c_opencores_12.0 in your Quartus installation directory->ip directory.

    (2) Open Qsys

    (3) You will see I2C Master(opencores.org) component.You can find it in Interface Protocols->Serial->I2C Master.

    Regards,

    Isaac.

    [1] https://forums.intel.com/s/createarticlepage?articleid=a3g0P0000005Rd2QAE&action=view&language=en_US

    • AHoek's avatar
      AHoek
      Icon for New Contributor rankNew Contributor

      Hi Isaac,

      Thanks for your answer. I will see if it works. I will keep you up to date.

  • AHoek's avatar
    AHoek
    Icon for New Contributor rankNew Contributor

    Hi Isaac,

    I just saw that it uses a wishbone interface. But our teacher told us to work with a avalon memory mapped interface. Do you have some kind of documentation with that too?