Jump to content
43oh

I2C1 - Wire setModule


Recommended Posts

On the Energia pinout image of the Tiva C, it shows that PG0/PG1 and PN4/PN5 are both connected to the I2C module. Will the Wire library for the Tiva C connected send/receive I2C data on both sets of pins? Or are we supposed to somehow specify which pins we want I2C on? 

 

I'm having difficulty reading an MS5837 I2C depth sensor on module 1. I call the Wire.setModule(1) function before calling the Wire.begin(), and I have verified that pull-ups are in place. I was intending to use PG0/PG1 for this, but don't have anything connected to PN4/PN5. I have no issues reading the depth sensor with a bit-banged I2C master, but I would really prefer to use the I2C hardware to get faster read/writes. 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...