<?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>3 I2C bus with nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83438/3-i2c-bus-with-nrf52832</link><description>We are evaluating nRF52832 for our next product. One of the requirement for us is to interface 3 set of sensors with nRF52832 over I2C. 
 Because our sensors can&amp;#39;t share the I2C Bus, we need separate I2C Bus for for each sensor. 
 As per datasheet of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jan 2022 16:40:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83438/3-i2c-bus-with-nrf52832" /><item><title>RE: 3 I2C bus with nRF52832</title><link>https://devzone.nordicsemi.com/thread/347002?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 16:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ccd3cd-f574-4b7f-855c-f079ff68f481</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be possible to reconfigure the pins during runtime. You need to use the nrfx_twi(m) driver for this. Kindly take a look at this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/78379/changing-uart-tx-and-rx-pins-during-zephyr-runtime-with-nrfx/324220#324220"&gt;ticket&lt;/a&gt; (the same would work with TWI as long as the previous transfer is done before changing pins.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3 I2C bus with nRF52832</title><link>https://devzone.nordicsemi.com/thread/346756?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 17:50:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a7de5ba-95b3-4929-aa29-46b0f36d6963</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Thanks Swathy for the reply.&lt;/p&gt;
&lt;p&gt;Can we use 1 I2C instance for 1 Sensor&amp;nbsp; as at a time and change the SDA/SCL lines at runtime?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Something like:&lt;/p&gt;
&lt;p&gt;Connect sensors to different GPIOs for SDA-SCL.&lt;/p&gt;
&lt;p&gt;Instantiate the I2C for first sensor with for first set of GPIOs, finish the transaction.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Instantiate the I2C for&amp;nbsp;second sensor with for first set of GPIOs, finish the transaction.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Instantiate the I2C for&amp;nbsp;third&amp;nbsp;sensor with for first set of GPIOs, finish the transaction.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To do this we need to change the SDA/SCL lines at run time, I don&amp;#39;t see an option to do it in 1.8.0 SDK.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3 I2C bus with nRF52832</title><link>https://devzone.nordicsemi.com/thread/346708?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 12:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b1fe82-067c-4158-9f69-e65137121ed4</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately that is not possible. Since the nrf52832 only has two TWI(M) instances, it can only have two sensors enabled at the same time. The nRF5340 is the only BLE chip we have that can support more than 2 TWI instances.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>