<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Three TWI (same address slave devices)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30896/three-twi-same-address-slave-devices</link><description>Hi, 
 I&amp;#39;m trying to receive sensors data from three fdc1004 that have the same address. Can you have three TWI interfaces at the same time? How do you modify the nfr_drv_twi.h to do so? 
 Thanks, 
 Greta</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2018 11:22:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30896/three-twi-same-address-slave-devices" /><item><title>RE: Three TWI (same address slave devices)</title><link>https://devzone.nordicsemi.com/thread/122118?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 11:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ed23bcf-62be-4408-b20c-35c27f4c765d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]I&amp;#39;m trying to receive sensors data from three fdc1004 that have the same address. Can you have three TWI interfaces at the same time? How do you modify the nfr_drv_twi.h to do so?&amp;nbsp;[/quote]
&lt;p&gt;No, that will break the purpose of I2C, where the bus fundamentals rely on unique addressing on the bus.&lt;/p&gt;
[quote user=""]fdc1004 [/quote]
&lt;p&gt;That sensor does not seem to be configurable wrt. I2C-address by looking at the datasheet.&lt;/p&gt;
&lt;p&gt;If you are using the nRF52832, you only have two TWI hardware peripherals. What you can do is to:&lt;/p&gt;
&lt;p&gt;1. Use a different SCL and SCK for each sensor, and reconfigure the TWI module for every time you poll each sensor.&lt;/p&gt;
&lt;p&gt;2. Or use an external mux to select which device to communicate with.&lt;/p&gt;
&lt;p&gt;3. Contact the vendor and ask them what their recommendations are wrt. this addressing issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>