<?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>TIMER1-&amp;gt;INTENSET cause a ble connection drop problem.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10801/timer1--intenset-cause-a-ble-connection-drop-problem</link><description>Hi, 
 I want to use timer1 or 2 interrupt ISR to generate complicated PWM signal.
but the timer-&amp;gt;intenset setting cause ble connection drop problem. 
 Please refer to my code below. 
 NRF_TIMER2-&amp;gt;MODE = TIMER_MODE_MODE_Timer;
NRF_TIMER2-&amp;gt;BITMODE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Dec 2015 11:21:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10801/timer1--intenset-cause-a-ble-connection-drop-problem" /><item><title>RE: TIMER1-&gt;INTENSET cause a ble connection drop problem.</title><link>https://devzone.nordicsemi.com/thread/40379?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 11:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fcecf9b-0c60-4e6d-ade8-7b0f3b281c98</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;No, it cannot be guarenteed (infact, it is not possible) if your PWM signal depends on the interrupt service and while BLE activity. SDK PWM library in SDK uses PPI, TIMERS and GPIOTE to make hardware connections so that its timing does not depend on any ISR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER1-&gt;INTENSET cause a ble connection drop problem.</title><link>https://devzone.nordicsemi.com/thread/40378?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 10:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e3c093d-1c79-4596-9faf-6e1e83872922</guid><dc:creator>shadow</dc:creator><description>&lt;p&gt;Connection drop problem was caused by Unstable LFCLK. After adjust LFCLK(32768), connection drop problem is disappeared But the TIMER2 capture interrupt is missed some time, so It is impossible to make guaranteed 250us ISR for PWM. Is there anyway to make 250us ISR without delay or missing.&lt;/p&gt;
&lt;p&gt;Best regards, Joy Kang.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TIMER1-&gt;INTENSET cause a ble connection drop problem.</title><link>https://devzone.nordicsemi.com/thread/40377?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 07:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff36a2ea-7b87-43e2-b5ae-4f1ce01e175d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If you have not set the priority of this IRQ then it is by default running at highest priority which BLE softdevice will not accept. This is because only SD is allowed to used the highest priority interrupts.
Set priority of your timer to APP_PRIORITY_LOW or APP_PRIORITY_HIGH.
The timing of your PWM signal will be affected with BLE activity as your interrupt execution might be delayed and it depends totally on the BLE activity.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>