
Originally Posted by
Dispersion123
Any suggestions on how to get the correct device address sent ($10), and read the address $22?
If the device address is $10 then doesn't the address have to be left shifted one place?
$10 = %00010000
PBP handles the R/W bit (bit.0), so your sending out address %0001000R (Read or Write bit) and the address "seen" by the receiving device is %00001000
Remember that I2C device addresses are shifted left one place to allow for the read/write bit. You'll never (edit: never say never - there are 10 bit addressing in some devices, though this is not part of the original I2C design data) see an I2C device address over $7F, or %01111111 or DEC127.
So, I think you should be using the DEVICE ADDRESS of $20
Last edited by JD123; - 2nd April 2008 at 23:10.
No, I'm not Superman, but I did stay at a Holiday Inn Express last night!
Bookmarks