<?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>Switching between UART and I2C runtime on the same pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112189/switching-between-uart-and-i2c-runtime-on-the-same-pins</link><description>Hi there, 
 Is switching between UART and I2C runtime on the nRF52840 with Zephyr possible when utilizing the same two pins for TX/RX vs SDA/SCL? 
 Thanks in advance, 
 Laci</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2024 10:05:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112189/switching-between-uart-and-i2c-runtime-on-the-same-pins" /><item><title>RE: Switching between UART and I2C runtime on the same pins</title><link>https://devzone.nordicsemi.com/thread/512917?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 10:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d32706e-cc14-4dc0-a386-08acbd5f2ea7</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;I haven&amp;#39;t gone this way because it seemed too problematic, so I have no experience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between UART and I2C runtime on the same pins</title><link>https://devzone.nordicsemi.com/thread/512892?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 08:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5118f4e0-daab-4305-800f-1fd7c3c53371</guid><dc:creator>Erlend Isachsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Apologies for reviving this thread so late, but we have a very similar case as the original and the mentioned solution doesn&amp;#39;t quite work in our case.&lt;/p&gt;
&lt;p&gt;In the suggested solution, one UART is used with two different sets of pins. However, in our case we have one external sensor that can be either I2C or UART. Since we use all other serial ports for other things, it would be useful to actually swap from i2c2 to uart2 if i2c sensor is not present on i2c2.&lt;/p&gt;
&lt;p&gt;Is it possible to achieve this, and if so what is the best approach?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between UART and I2C runtime on the same pins</title><link>https://devzone.nordicsemi.com/thread/489233?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 09:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7cbb17a-5750-41f4-985c-67cd4b81cfbe</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107135/uart-function-switching-runtime-on-nrf5340"&gt;UART function switching runtime on nRF5340&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Does that work?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>