<?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>Disabling/enabling peripherals at runtime on nrf91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51446/disabling-enabling-peripherals-at-runtime-on-nrf91</link><description>Are there any examples for disabling/enabling peripherals at runtime for low power purposes on the nRF91 on ncs v1.0.0? 
 I&amp;#39;ve seen these threads but they didn&amp;#39;t have the info I wanted 
 https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/hardware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 22 Sep 2019 07:37:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51446/disabling-enabling-peripherals-at-runtime-on-nrf91" /><item><title>RE: Disabling/enabling peripherals at runtime on nrf91</title><link>https://devzone.nordicsemi.com/thread/211058?ContentTypeID=1</link><pubDate>Sun, 22 Sep 2019 07:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:173edbd7-16fb-42a9-8b6f-0329b01863b7</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This still keeps UART in pull-up mode ,&lt;/p&gt;
&lt;p&gt;how can I disable it ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling/enabling peripherals at runtime on nrf91</title><link>https://devzone.nordicsemi.com/thread/209007?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 15:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c343aa-b0b7-48f8-925f-90fc59d66c2f</guid><dc:creator>RonanB96</dc:creator><description>&lt;p&gt;I was able to bring the current back down by calling gpio_disable_callback on the pin and enable a basic interrupt on the pin using the&amp;nbsp;nrf_gpio_cfg_sense_set. I have opened up another ticket about the idle question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling/enabling peripherals at runtime on nrf91</title><link>https://devzone.nordicsemi.com/thread/208721?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 13:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5793a069-4d2f-4d16-8325-a238a8407506</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;You should post this question separately in order to get better support. It is somewhat unrelated to the original question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling/enabling peripherals at runtime on nrf91</title><link>https://devzone.nordicsemi.com/thread/208546?ContentTypeID=1</link><pubDate>Sat, 07 Sep 2019 11:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:612bfc7d-024b-4485-aa1a-aff65f76cc9f</guid><dc:creator>RonanB96</dc:creator><description>&lt;p&gt;Sorry about the delay, I have only got around to testing this now. I have tested disabling the UART and I2C successfully but I have three more questions.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;With an interrupt enabled on one pin I am seeing an increase of 45uA, is there a way to decrease this? The pin is configured with the following settings:&amp;nbsp;GPIO_INT | GPIO_INT_EDGE | GPIO_INT_ACTIVE_HIGH | GPIO_INT_DOUBLE_EDGE | GPIO_INT_DEBOUNCE&lt;/li&gt;
&lt;li&gt;Is there a common place where I can reenable my peripherals when leaving k_cpu_idle? I either leave idle from an interrupt or from a k_timer. I am not calling k_cpu_idle myself in any of my loops, just when all of my threads and inactive it is called.&lt;/li&gt;
&lt;li&gt;I didn&amp;#39;t find a function called disable_i2c() anywhere, where is it defined? I got around it by setting NRF_TWIM0_NS-&amp;gt;ENABLE = 0&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling/enabling peripherals at runtime on nrf91</title><link>https://devzone.nordicsemi.com/thread/206792?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 08:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ade95385-646b-4fc7-923f-71a7a4aee64b</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;The following two lines shoud do it&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;disable_i2c();
NRF_UARTE0_NS-&amp;gt;ENABLE = 0;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can change NRF_UARTE0_NS to whichever UART device you want to disable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling/enabling peripherals at runtime on nrf91</title><link>https://devzone.nordicsemi.com/thread/206455?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 19:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12362092-cba5-4cda-9566-6c54a04e6248</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Check this thread for info&amp;nbsp;on the UART:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50601/nrf91-power-save-mode-with-config_serial-y"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50601/nrf91-power-save-mode-with-config_serial-y&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>