Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

I2C is a pain in the ass

FuzzyDaddy (584528) writes | more than 6 years ago

User Journal 0

I just added a new device to the I2C bus on my system. It always takes an hour to figure out the damn address on the thing. You set it up, it doesn't work, and if you are inexperienced you hook up the oscilloscope. I've finally learned to go back and reread the datasheet, where on page 673 they mention, "oh by the way" that the device in the MSOP package has a different address then the SOT package. Then does the configuration software bit shift the address to the left by 1 to make roI just added a new device to the I2C bus on my system. It always takes an hour to figure out the damn address on the thing. You set it up, it doesn't work, and if you are inexperienced you hook up the oscilloscope. I've finally learned to go back and reread the datasheet, where on page 673 they mention, "oh by the way" that the device in the MSOP package has a different address then the SOT package. Then does the configuration software bit shift the address to the left by 1 to make room for the write bit, or does it just OR it on the end?

Arghh... at least I finally got the damn thing working this time before I pulled out the scope.

cancel ×

0 comments

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...