You are here

I2C Address

Every slave device, connected to the I2C bus, must have an unique I2C address. The I2C address can be either 7-bits or 10-bits long.

You can specify the I2C address in slaveDeviceAddress parameter when you call DlnI2cMasterWrite() or DlnI2cMasterRead() function.

If you use I2C slave interface of a DLN-series adapter, call DlnI2cSlaveSetAddress() to configure the I2C address. You can specify several I2C slave addresses. DLN-series adapter will respond to any of these addresses. After I2C master generates Stop Condition, DLN series adapter sends DLN_I2C_SLAVE_WRITE_EV or DLN_I2C_SLAVE_READ_EV event to your application. These events contain the I2C address in the slaveAddress field.

7-bit I2C Addressing

The first byte (immediately after the START condition) contains the I2C slave address.

The I2C address is 7-bits long. It is transmitted in the seven most significant bits (MSB). The last (eighth bit) of the I2C address byte is a data direction bit - a 'zero' indicates a transmission (I2C WRITE), a 'one' indicates a request for data (I2C READ).

You have to specify the 7-bit I2C slave address when you call the DlnI2cMasterRead() or DlnI2cMasterWrite() function. DLN-series PC-I2C adapters automatically add the direction bit. In fact the provided I2C address is shifted left and is supplemented by 0 (for I2C write transactions) or by 1 (for I2C read transactions).

DLN-series adapters can scan the bus for I2C addresses of the connected slave devices. Call the DlnI2cMasterScanDevices() function to get the list of I2C addresses.

Some slave device vendors specify the 8-bit I2C addresses in their documentation. In fact they specify the entire address byte (I2C address + direction bit). You need to discard the least significant bit and shift this byte right to obtain the real 7-bit I2C address.

10-bit I2C Addressing

With 7-bit addressing only 112 I2C slave addresses are available. To prevent address clashes Philips Semiconductors (now NXP Semiconductors) has introduced a 10 bit address scheme. Devices with 7-bit and 10-bit addresses can be connected to the same I2C-bus.

The 10-bit address is transmitted within the first two bytes following a START condition or a repeated START condition.

Five most significant bits of the first address byte are predefined (1111 0). I2C slave devices with 7-bit addressing ignore transactions with the first byte in the form of '1111 0XXX'.

The I2C address occupies bits 5 and 6 of the first byte and the eight bits of the second byte.

The transfer direction (read or write) is specified in the eighth bit of the first byte. As in the case of 7-bit I2C address, a 'zero' indicates a transmission (I2C WRITE), a 'one' indicates a request for data (I2C READ).

Slave devices with 10-bit I2C addressing will react to a general call in the same way as slave devices with 7-bit I2C addressing. I2C master devices can transmit the 10-bit I2C address after a general call.

I2C General Call Address

The general call address is used to address all I2C slave devices simultaneously. If I2C slave device doesn't support general call addressing, it ignores this transaction and doesn't issue an acknowledgment. The I2C master devise can't determine how many slave devices acknowledge the general call address.

You can enable the I2C general call address support for I2C slave interface with the DlnI2cSlaveGeneralCallEnable() function.

Reserved I2C slave addresses

There are 16 reserved I2C addresses. These addresses corresponds to one of the two patters: 0000XXX or 1111XXX. The table below describes the purposes of the most commonly used reserved I2C addresses:

I2C Slave Address R/W Bit Description
0000 000 0 general call address
0000 000 1 START byte[
0000 001 X  CBUS address
0000 010 X reserved for different bus format
0000 011 X reserved for future purposes
0000 1XX X Hs-mode master code
1111 1XX X reserved for future purposes
1111 0XX X 10-bit slave address

The full list of I2C address assignments you can see at I2C Address Allocation Table page or i2c-address-allocation-table.pdf document.

Rating: 
Average: 2.5 (4 votes)
Trey Bianco Trey
Trey Bianco Trey's picture
Offline
Last seen: 12 months 3 days ago
Joined: 09/21/2018 - 04:09
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Had the symtoms below 30 against all viagra new uk. Tia <a href='http://www.ugeltacna.gob.pe/foro/index.php?topic=1192566.0'>viagra generic</a> car donation nyc.
Gulf your generosity with your penis to achieve that you are related Viagra com enough for sex.

Shalanda Hearn ...
Shalanda Hearn Shalanda's picture
Offline
Last seen: 7 months 4 weeks ago
Joined: 01/20/2019 - 23:41
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Ahaa, its fastidious discusssion concerning this piece of writing at this place
at this website, I hafe read all that, so now me also commenting here.

My website ... how to lose weight with hypothyroidism and pcos - http://www.xn----9sbnkqezol.xn--p1ai/?option=com_k2&view=itemlist&task=user&id=2880

Shalanda Hearn ...
Shalanda Hearn Shalanda's picture
Offline
Last seen: 7 months 4 weeks ago
Joined: 01/20/2019 - 23:41
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Ahaa, itts fastidious discussion concewrning this piece
of writing at this place at this website, I have read
aall that, sso now me also commentng here.

My website; hoow to lose weight with hypothyroidism and pcos
- http://www.xn----9sbnkqezol.xn--p1ai/?option=com_k2&view=itemlist&task=user&id=2880

Casie Sampson Casie
Casie Sampson Casie's picture
Offline
Last seen: 7 months 4 weeks ago
Joined: 01/23/2019 - 21:59
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Thanks for a maqrvelous posting! I definitely enjoyed reading it, you hsppen to be a great author.I will always bookmark your blog and definitely will come back later
on. I want tto encourage yoursekf to continue your great posts,
have a nice weekend!

Here is my website :: read aany man review, http://lib.akb.nis.edu.kz/user/RolandKenney59/ - http://lib.akb.nis.edu.kz/user/RolandKenney59/ ,

Casie Sampson Casie
Casie Sampson Casie's picture
Offline
Last seen: 7 months 4 weeks ago
Joined: 01/23/2019 - 21:59
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Thanks foor a marvelous posting! I definitely enjoyed reading it, you
happen to be a great author.I wull always bookmark your blog and definitely will
come back later on. I want to encourage yourseslf too continue your great posts,
have a nice weekend!

My webpage; read anny man review, http://lib.akb.nis.edu.kz/user/RolandKenney59/ - http://lib.akb.nis.edu.kz/user/RolandKenney59/ ,

Jeannette Gross...
Jeannette Grosse Jeannette's picture
Offline
Last seen: 7 months 3 weeks ago
Joined: 01/25/2019 - 05:15
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Excellent items from you, man. I've consider your stuff prevjous to
and you are just too great. I really like what
you have bought here, really ljke what you are stating and
the way in which you are saying it. You make it
enjoyable and you continue to take care of to stay it
wise. I cant wait tto learn far more froim you.

This is actually a wonderful web site.

Here is my website: pick bboy jaxz guitar pixks ( Tegan - http://www.smarthomeuniversity.com/?option=com_k2&view=itemlist&task=user&id=380985)

Hildegarde Lins...
Hildegarde Linsley Hildegarde's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/03/2019 - 11:53
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Pretty section of content. I just stumbled upon your website and in accession capital tto assert that I acquire
in fact enhoyed acckunt your blog posts. Any way I'll be subscribing to your augment and even I achievement you access consistently quickly.

My web-site: agrochemical intermediates [ Benito - https://18news.000webhostapp.com/2019/01/perform-away-from-your-very-best-qualities-with-your-job-interview ]

Hildegarde Lins...
Hildegarde Linsley Hildegarde's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/03/2019 - 11:53
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Pretty section of content. I just stumbled upon your website and in accession capital to assert that I acquire in fact enjoyed account your blog posts.
Any way I'll be subscribing to your augment and even I achievement you access consistently quickly.

Here is my web site ... agrochemical intermediates [ Benito - https://18news.000webhostapp.com/2019/01/perform-away-from-your-very-best-qualities-with-your-job-interview ]

Corazon Standle...
Corazon Standley Corazon's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/05/2019 - 10:08
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Pretty section of content. I just stumbled upon your weblog
and in accession capital to assert that I
get in fact enjoyed account your blog posts. Any way I will be subscribing to your
feeds and even I achievement you access consistently
fast.

Feel free to visit my website; test ( http://mobtak.mihanblog.com/post/104 - http://mobtak.mihanblog.com/post/104 )

Corazon Standle...
Corazon Standley Corazon's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/05/2019 - 10:08
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Pretty section of content. I just stumbled upon your
weblog and in accession capital to assert that I get in fact enjoyed account your blog posts.
Any way I will be subscribing to your feeds and even I achievement you access consistently fast.

Look into my webpage: test ( http://mobtak.mihanblog.com/post/104 - http://mobtak.mihanblog.com/post/104 )

Zella Pryor Zella
Zella Pryor Zella's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/06/2019 - 01:23
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Somebody essentially lend a hand to make critically
articles I'd state. That is the first time I frequented your website page and up to
now? I surprised with the analysis you made to make
this particular put up amazing. Fantastic process!
viagra online - https://elcig.lt/user/profile/148118

Zella Pryor Zella
Zella Pryor Zella's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/06/2019 - 01:23
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Somebody essentially lend a hand to make critically articles I'd state.
That is the first time I frequented your website page and up to now?
I surprised with the analysis you made to make this particular put up amazing.
Fantastic process! viagra online - https://elcig.lt/user/profile/148118

Helene Harness ...
Helene Harness Helene's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/07/2019 - 18:09
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

I have learn some just right stuff here. Certainly worth bookmarking for revisiting.
I wonder how so much effort you put to make such a
magnificent informative website. viagra coupons - https://bbs.fckx.net/home.php?mod=space&uid=2059444&do=profile&from=space

Helene Harness ...
Helene Harness Helene's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 02/07/2019 - 18:09
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

I have learn some just right stuff here. Certainly worth bookmarking for revisiting.
I wonder how so much effort you put to make such a magnificent informative website.
viagra coupons - https://bbs.fckx.net/home.php?mod=space&uid=2059444&do=profile&from=space

Inez Davenport Inez
Inez Davenport Inez's picture
Offline
Last seen: 4 months 1 week ago
Joined: 05/10/2019 - 13:04
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

"Fast one of several young along with passionate,Inch affirms Professor Professor of human the field of biology with Stanford School They Lun Te, every time a person in excess of twenty years old, you are able to get to a crescendo throughout 2-5 min's following a commence; along with the partner may also heat up. After consuming this drug, it starts its execution within 15 to 20 minutes and its effects stays within the body for four to six hours. Women often find it hard to wind down once they constantly anticipate that intercourse will be painful but have reported which they don't feel this in any respect after only while using the product several times.

my weblog: best site - http://hackworker.ru/t/1109750

Inez Davenport Inez
Inez Davenport Inez's picture
Offline
Last seen: 4 months 1 week ago
Joined: 05/10/2019 - 13:04
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

"Fast one of several young along with passionate,Inch affirms Professor Professor of human the field of biology with Stanford School They Lun Te, every time a person in excess of twenty years old, you are able to get to a crescendo throughout 2-5 min's following a commence; along with the partner may also heat up. After consuming this drug, it starts its execution within 15 to 20 minutes and its effects stays within the body for four to six hours. Women often find it hard to wind down once they constantly anticipate that intercourse will be painful but have reported which they don't feel this in any respect after only while using the product several times.

my blog; best site - http://hackworker.ru/t/1109750

Lorene Wilkins ...
Lorene Wilkins Lorene's picture
Offline
Last seen: 3 months 2 weeks ago
Joined: 06/06/2019 - 07:15
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Never overlook your quality of life whenever taking part in. Should you play traditional films that need one to
take a moment, a balance golf ball can help you sustain position. In the
event that far more active films trailer are your thing,
remember to stretch and get fails. This will aid stop you from obtaining movies-related injuries.
https://meninblackinternational-fullmovie.de/

Also visit my weblog; watch Men in Black International - https://meninblackinternational-fullmovie.de/

Lorene Wilkins ...
Lorene Wilkins Lorene's picture
Offline
Last seen: 3 months 2 weeks ago
Joined: 06/06/2019 - 07:15
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Never overlook your quality of life whenever taking part in. Should you play traditional
films that need one to take a moment, a balance golf ball can help
you sustain position. In the event that far more active films trailer
are your thing, remember to stretch and get fails.
This will aid stop you from obtaining movies-related injuries.
https://meninblackinternational-fullmovie.de/

my web blog :: watch Men in Black International - https://meninblackinternational-fullmovie.de/

Maximilian Lewa...
Maximilian Lewandowski Maximilian's picture
Offline
Last seen: 3 months 1 week ago
Joined: 06/13/2019 - 01:17
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Wow! This blog looks just like my old one! It's
on a totally different subject but it has pretty much the
same page layout and design. Great choice of colors!

Stop by my weblog: jewelers sf ( Leigh - http://bling.ie/jewelers-sf-46503.html)

Maximilian Lewa...
Maximilian Lewandowski Maximilian's picture
Offline
Last seen: 3 months 1 week ago
Joined: 06/13/2019 - 01:17
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Wow! This blog looks just like myy old one! It's on a totally different subject but it has pretty mych the same page layout and design. Grea
choice of colors!

Review my blog :: jewelers sf ( Leigh - http://bling.ie/jewelers-sf-46503.html )

Latisha Greenle...
Latisha Greenleaf Latisha's picture
Offline
Last seen: 3 months 1 week ago
Joined: 06/14/2019 - 11:20
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Simploy want to sayy yopur articlle is as astounding. The clarity
in your post is simply cool and i can assume you're an expert oon this subject.
Weell with your permission allow me to grawb your RSS feed to keep
updated with forthcoming post. Thanks a million and please continue the gratifying work.

my page: custom design engagement ring settings - Anddy - http://Bling.ie/
-

Latisha Greenle...
Latisha Greenleaf Latisha's picture
Offline
Last seen: 3 months 1 week ago
Joined: 06/14/2019 - 11:20
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

Simply want tto say yolur article is as astounding.
The clarity iin your post is smply cool and i can assume you're an expert on this subject.
Well with your permission llow me to grab yur RSS feed to
keep updated with forthcoming post. Thanks a million and please continue the
gratifying work.

my web site: custom design engagement ring settings - Andy - http://Bling.ie/ -

Dorothea Tully ...
Dorothea Tully Dorothea's picture
Offline
Last seen: 2 months 4 days ago
Joined: 07/17/2019 - 14:06
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

bookmarked!!, I like your site! http://twinbookmarks.com/story.php?title=the-best-way-to-put-together-for-your-next-sportfishing-vacation

Feel free to surf to my webpage - Merissa - http://proline.physics.iisc.ernet.in/wiki/index.php?title=Tips_And_Tricks_On_The_Way_To_Improve_At_Sport_fishing

Dorothea Tully ...
Dorothea Tully Dorothea's picture
Offline
Last seen: 2 months 4 days ago
Joined: 07/17/2019 - 14:06
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

bookmarked!!, I like your site! http://twinbookmarks.com/story.php?title=the-best-way-to-put-together-for-your-next-sportfishing-vacation

Stop by my site Merissa - http://proline.physics.iisc.ernet.in/wiki/index.php?title=Tips_And_Tricks_On_The_Way_To_Improve_At_Sport_fishing

Arden Schlink Arden
Arden Schlink Arden's picture
Offline
Last seen: 1 month 1 week ago
Joined: 08/12/2019 - 04:10
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

casino game internet portal site
jeux de casino - http://casinoflashexx.com/
download casino mobile

Arden Schlink Arden
Arden Schlink Arden's picture
Offline
Last seen: 1 month 1 week ago
Joined: 08/12/2019 - 04:10
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

casino game internet portal site
jeux de casino - http://casinoflashexx.com/
download casino mobile

Florencia Iqbal...
Florencia Iqbal Florencia's picture
Offline
Last seen: 6 days 9 hours ago
Joined: 09/13/2019 - 12:21
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

I think that is among the most vital info for me. And i'm happy studying your article.
But should remark on some basic issues, The website taste iis wonderful, the articles
is in point of fact nice : D. Excellent task, cheers

Here iss myy site: Satanizm - https://spirituelsatanizm.org/

Florencia Iqbal...
Florencia Iqbal Florencia's picture
Offline
Last seen: 6 days 9 hours ago
Joined: 09/13/2019 - 12:21
I2C Address | USB-I2C/SPI/GPIO Interface Adapters

I think that is among the most vital info for me.
And i'm haply studying your article. But should remark on some bbasic issues, The webgsite taste is wonderful, the
articles is in point of fact nice : D. Excellent task, cheers

Also visit my web page ... Satanizm - https://spirituelsatanizm.org/

User login