<?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>how to disable twi in NCS ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105673/how-to-disable-twi-in-ncs</link><description>I used to enable / disable twi using nrf_drv_twi_enable/nrf_drv_twi_disable in SDK in order to lower power consumption when not using i2c. 
 
 How to do that in NCS? 
 
 
 thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Nov 2023 11:29:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105673/how-to-disable-twi-in-ncs" /><item><title>RE: how to disable twi in NCS ?</title><link>https://devzone.nordicsemi.com/thread/455943?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2023 11:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04cc467f-0819-4514-a9ee-4cf378c8a90d</guid><dc:creator>kfcube</dc:creator><description>&lt;p&gt;OK. thanks&amp;nbsp; lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable twi in NCS ?</title><link>https://devzone.nordicsemi.com/thread/455903?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2023 09:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4403a941-17b2-4a56-b5b6-84f43602509f</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;You can use the power management api to turn off the devices as per your need.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72145/dynamically-disable-i2c"&gt;This ticket&lt;/a&gt; (and the referred link) discusses the issue of enabling and disabling peripherals like I2C and UART.&lt;/p&gt;
&lt;p&gt;Please make sure that the pins are properly configured for the active and sleep states using the &lt;a href="https://docs.zephyrproject.org/latest/hardware/pinctrl/index.html"&gt;pinctrl&lt;/a&gt;&amp;nbsp;api.&lt;/p&gt;
&lt;p&gt;In this &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/063ce9caf54fa656f02ae48f3c9d537659a10dec/samples/boards/nrf/system_off/src/main.c#L63C1-L64C1"&gt;sample&lt;/a&gt;&amp;nbsp;you can see how power management api is used in latest zephyr.&lt;/p&gt;
&lt;p&gt;/BR, Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>