How to find the I2C device address

Normally you will find the I2C slave address in datasheet (i.e.: PCA9557) like this:

0 0 1 1 A2 A1 A0 R/W

At first glance you will think the address is 0x30 (0011-0000) (case A2, A1 and A0 be 0). This it is wrong because the least significant bit needs to be eliminated.

Then it will become 0x18 (0001-1000).

Using i2cdetect I could to figure out my fault.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s