<?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>ble with timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30258/ble-with-timer</link><description>hi ; 
 now after i maked a successful connection between smart phone and nrf51822 and i could change the state of gpio pin 20 i find a new problem 
 i want my pin is still an state high until 3 secondes after that, it change its state to low, when i aded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Feb 2018 15:19:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30258/ble-with-timer" /><item><title>RE: ble with timer</title><link>https://devzone.nordicsemi.com/thread/120315?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2018 15:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381138e3-43d3-443d-a3b3-b70bc771bbe9</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try to use&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;sd_nvic_EnableIRQ(TIMER2_IRQn);&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;instead of&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;NVIC_EnableIRQ(TIMER2_IRQn);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After you have enabled the Softdevice, it&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=3_7_2_0_6_0"&gt;restricts access&lt;/a&gt; to the &lt;a href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0179b/ar01s01s01.html"&gt;Nested Vectored Interrupt Controller (NVIC)&lt;/a&gt;&amp;nbsp;.&amp;nbsp;When a peripheral is restricted by the Softdevice like this, there is usually an alternative Softdevice API (function prefixed with sd_) that you can use instead. As an example you can use&amp;nbsp;&lt;code&gt;sd_clock_hfclk_request()&lt;/code&gt; to turn on the HF clock when the CLOCK peripheral is restricted by the Softdevice.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>