I2C addressing

Questions on control of serial busses
Post Reply
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

I2C addressing

Post by YahooArchive » Fri Jan 25, 2013 3:49 pm

NXP/Philips the inventor of i2c refers to the address byte of a device and
defines the LSB of that address byte as a read/write bit.

We use that convention, though some other vendors documents do not, even some
old documents from Philips.

Our routines in C or BASIC (viewable in BASIClib/I2C.bas) will set that LSB
depending on read or write regardless of what value is passed to us.

So if the address is &HE0, then the i2c routine will set that bit according to
read/write. An address of &HE1 could be passed and have the same effect.

Post Reply