i2c 7 bit addressing question when device needs 8 bit
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-07-07 7:06 AM
Posted on July 07, 2010 at 16:06
i2c 7 bit addressing question when device needs 8 bit
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:57 AM
Posted on May 17, 2011 at 13:57
I2C device addresses are either 7-bits or 10-bits. In 7-bit mode the LSB of the sent byte is the R/W flag. All I2C transfers are in multiples of 8-bits (byte).
Thus in your code you have to shift the physical device address (0xA0) right by one bit (0x50) when you send it.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:57 AM
Posted on May 17, 2011 at 13:57 I tried that, and it sent 0x28... am i making this harder than it has to be?
