cancel
Showing results for 
Search instead for 
Did you mean: 

i2c 7 bit addressing question when device needs 8 bit

bmagnan
Associate II
Posted on July 07, 2010 at 16:06

i2c 7 bit addressing question when device needs 8 bit

2 REPLIES 2
swhite2
Associate III
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).

http://www.i2c-bus.org/addressing/

Thus in your code you have to shift the physical device address (0xA0) right by one bit (0x50) when you send it.

bmagnan
Associate II
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?