<?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>Nrf51 Fast GPIOTE + Ble</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18723/nrf51-fast-gpiote-ble</link><description>Hi, 
 Im using S130softdevice.i wanna make dimmer by using experimental_ble_app_blinky project on gpioet
But i have a problem with detecting 10 milisecond time (it means that i expect interrupt but it doesnt happen after each 10 milisecond)the lamb</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Jan 2017 11:58:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18723/nrf51-fast-gpiote-ble" /><item><title>RE: Nrf51 Fast GPIOTE + Ble</title><link>https://devzone.nordicsemi.com/thread/72300?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2017 11:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baad0c47-7c6e-4f9f-8db0-a6632b90a69c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What SDK are you using?&lt;/p&gt;
&lt;p&gt;GPIOTE_IRQHandler() is already implemented in nrf_drv_gpiote, and you should not modify it.&lt;/p&gt;
&lt;p&gt;You are calling button_handler() when pin 29 goes from low to high. What does button_handler do?&lt;/p&gt;
&lt;p&gt;If you want high priority for the GPIOTE, this can be done in SDK 12 by changing GPIOTE_CONFIG_IRQ_PRIORITY to 1(nRF51).
If you are using SDK 11, set the priority to APP_IRQ_PRIORITY_HIGH in nrf_drv_config.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 Fast GPIOTE + Ble</title><link>https://devzone.nordicsemi.com/thread/72302?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2017 13:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aab0dc52-4bd1-4711-80ba-62d217562b60</guid><dc:creator>Oguz Emre</dc:creator><description>&lt;p&gt;Im using AC LAMB. I need zero crossing therefore I want gpiote.
Help me please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 Fast GPIOTE + Ble</title><link>https://devzone.nordicsemi.com/thread/72301?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2017 12:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e218b4-901e-46bc-82ee-592a87b7c6d4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If your goal is to make a dimmer for a LED, I would recommend using PWM.&lt;/p&gt;
&lt;p&gt;Using the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/lib_low_power_pwm.html?cp=4_0_1_3_18"&gt;Low-power PWM library&lt;/a&gt;, this can be done something like in the code snippet below, and then you can set the LED brightness using the function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/group__low__power__pwm.html#ga616ab7cfd1e779813dd1b6b83bfe1920"&gt;low_power_pwm_duty_set()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is also a &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/low_power_pwm_example.html?cp=4_0_1_4_5_14"&gt;Low-Power PWM example&lt;/a&gt; in the SDK you can take a look at.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static low_power_pwm_t low_power_pwm_0;

static void pwm_init(void)
{
    uint32_t err_code;
    low_power_pwm_config_t low_power_pwm_config;

    APP_TIMER_DEF(lpp_timer_0);
    low_power_pwm_config.active_high = false;
    low_power_pwm_config.period = UINT8_MAX;
    low_power_pwm_config.bit_mask = BSP_LED_2_MASK;
    low_power_pwm_config.p_timer_id = &amp;amp;lpp_timer_0;

    err_code = low_power_pwm_init((&amp;amp;low_power_pwm_0), &amp;amp;low_power_pwm_config, NULL);
    APP_ERROR_CHECK(err_code);
    
    err_code = low_power_pwm_duty_set(&amp;amp;low_power_pwm_0, 20);
    APP_ERROR_CHECK(err_code);
    err_code = low_power_pwm_start((&amp;amp;low_power_pwm_0), low_power_pwm_0.bit_mask);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>