<?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>gpiote with softdevice in sdk8.1 not work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11964/gpiote-with-softdevice-in-sdk8-1-not-work</link><description>Hello,all 
 I want to use timer,ppi and gpiote to toggle a pin in sdk8.1 but not working.Here are details: 
 Firstly I use the example project &amp;quot;gpiote&amp;quot; which does not contain softdevice, and it works.
Then I add the code to my project in sdk8.1 which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Feb 2016 01:49:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11964/gpiote-with-softdevice-in-sdk8-1-not-work" /><item><title>RE: gpiote with softdevice in sdk8.1 not work</title><link>https://devzone.nordicsemi.com/thread/45314?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2016 01:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dc7cbd0-4132-4fd5-b778-e13c3f80f02f</guid><dc:creator>kk</dc:creator><description>&lt;p&gt;Thank you for your fast reply!&lt;/p&gt;
&lt;p&gt;It is exactly the same as what you said. After setting:&lt;/p&gt;
&lt;p&gt;1.set the third parameter(compare value) of nrf_drv_timer_extended_compare() to less than 65535.&lt;/p&gt;
&lt;p&gt;2.change TIMER1_CONFIG_FREQUENCY to NRF_TIMER_FREQ_1MHz&lt;/p&gt;
&lt;p&gt;the timer runs, and gpiote and ppi also work fine without any change.&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gpiote with softdevice in sdk8.1 not work</title><link>https://devzone.nordicsemi.com/thread/45313?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 12:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5f933d-3251-41ff-af88-0c5e54221ec1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The reason for this is probably that TIMER1 and TIMER2 is 16 bit, whereas TIMER0 is 32 bit. In the call to &lt;code&gt;nrf_drv_timer_extended_compare()&lt;/code&gt;, the third parameter is the compare value. In the example this is 200*1000, which is more than 16 bits, as ceil(log2(200*1000)) = 18. If you change it to 50*1000 instead, you should see the LEDs blink as expected, though four times faster.&lt;/p&gt;
&lt;p&gt;Remember to change &lt;code&gt;TIMER1_CONFIG_FREQUENCY&lt;/code&gt; to &lt;code&gt;NRF_TIMER_FREQ_1MHz&lt;/code&gt; in nrf_drv_config.h in your project (same as for TIMER0) if you have not already done so, as it &lt;code&gt;NRF_TIMER_FREQ_16MHz&lt;/code&gt; by default. You can also set it to &lt;code&gt;NRF_TIMER_FREQ_250kHz&lt;/code&gt;, which would result in the same LED blink frequency as you got with a compare value of 200*1000 and the 1 MHz timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>