I want to connect my Zybo to a gyroscope that communicates via I2C but I have not been able to do it. I want to do this in bare-metal. What I gathered so far is that I have 2 options:
1) connect it directly to the MIO, i.e., to JF PMOD or
2) connect it to another PMOD and from the PL, instantiate an AXI IIC IP and access the values via AXI.
Either of the options are fine by me. I have many questions regarding both options. Starting with option 1)
Where do I physically connect my gyroscope SCL and SDA lines? Does it depend on the MIO configuration?
To which MIO should I assign I2C? Should I use I2C 0 or I2C 1?
Which functions are available for reading/writing from/to the I2C interface? Could you provide an example for reading/writing from/to a certain memory position?
And for option 2)
Which are the constraints I need to place on the SCL and SDA signals?
How to I connect the SCL and SDA signals to the I2C port that is on the AXI IIC IP?
Which functions are available for reading/writing from/to the I2C interface? Could you provide an example for reading/writing from/to a certain memory position?
I know this may be simple and intuitive but I have not been able to discover it by myself. Thank you very much in advance
Question
miguel_rodrigues
Hello everybody,
I want to connect my Zybo to a gyroscope that communicates via I2C but I have not been able to do it. I want to do this in bare-metal. What I gathered so far is that I have 2 options:
1) connect it directly to the MIO, i.e., to JF PMOD or
2) connect it to another PMOD and from the PL, instantiate an AXI IIC IP and access the values via AXI.
Either of the options are fine by me. I have many questions regarding both options. Starting with option 1)
And for option 2)
I know this may be simple and intuitive but I have not been able to discover it by myself. Thank you very much in advance
Best regards,
Miguel
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.