<?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>Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23670/interrupt-priority-each-100us</link><description>Hi, 
 I have to make a interrupt each 100us. This interrupt should be priority on the BLE. In my interrupt I have only one condition (if/else) and I have to change PWM value. 
 Is this a problem ? Can I lose connection of BLE ? 
 My seconde question</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jul 2017 08:59:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23670/interrupt-priority-each-100us" /><item><title>RE: Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/thread/93046?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 08:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa58dce-fbe9-40fd-a0dd-e01d7e419b57</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;yes it will be delayed for up to many ms depending on whether you&amp;#39;re in connection and how many connections. The softdevice spec should give the max time you&amp;#39;ll be blocked, but it would take some wading through.&lt;/p&gt;
&lt;p&gt;You cannot do precision interrupt-based timing operations with the softdevice running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/thread/93043?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 08:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e5c563f-d18d-48f8-8f68-e60f2f364206</guid><dc:creator>Milena</dc:creator><description>&lt;p&gt;Thanks for your answer.
To be clear, we plan to the PWM module. But we need to change the duty cycle every 100us (following a lookup table). Seems that if a BLE IRQ comes at this moment, the PWM duty cycle change will be delayed. Right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/thread/93047?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 08:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd9ca2e-62cc-4477-a32a-02f07ad2a06d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;the timings are all in the softdevice spec, although they seem harder to decipher than they used to be. Either way - people &lt;em&gt;keep&lt;/em&gt; trying to do PWM with interrupts and it &lt;em&gt;never&lt;/em&gt; works. Please use the search feature and read some of the hundreds of questions about PWM, PWM with interrupts, PWM with the softdevice and any other variation. You need to use the hardware PWM peripheral or another non-interrupt based solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/thread/93045?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 08:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cae8e832-b9de-401c-88bb-56b4118a362e</guid><dc:creator>Milena</dc:creator><description>&lt;p&gt;Ok, I put transitors! Thanks.&lt;/p&gt;
&lt;p&gt;For my application I have to make a driver motor brushless. I have three coil and each 100us I have to change the coil and the PWM.&lt;/p&gt;
&lt;p&gt;I will test with my EVM the precision of my interrupts of 100us. Do you know the critical tasks how long is it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/thread/93044?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 08:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4ecce29-c897-42f5-89c9-4bf3c0eecb90</guid><dc:creator>RK</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You need a transistor - this is in the datasheet somewhere - look for paragraphs about high and low drive strength and the max number of pins you can use with high enabled. It&amp;#39;s a lot less than 60mA&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you are doing PWM then instead of trying to do it with interrupts, which isn&amp;#39;t going to work very well, how about using the PWM module on the chip.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/thread/93042?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 07:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cecb0426-12a6-4b0c-a352-edaa39ada18f</guid><dc:creator>Milena</dc:creator><description>&lt;p&gt;Ok, I put transitors! Thanks.&lt;/p&gt;
&lt;p&gt;For my application I have to make a driver motor brushless. I have three coil and each 100us I have to change the coil and the PWM.&lt;/p&gt;
&lt;p&gt;I will test with my EVM the precision of my interrupts of 100us. Do you know the critical tasks how long is it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt priority each 100us</title><link>https://devzone.nordicsemi.com/thread/93048?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 07:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e27590e9-72c6-408b-8c26-4510ed70819f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Milena,&lt;/p&gt;
&lt;p&gt;It is not possible to give the application priority over BLE. The softdevice have the highest priority level reserved for timing critical tasks. You can see the interrupt priority levels in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/processor_avail_interrupt_latency/exception_mgmt_sd.html?cp=2_3_0_0_15_1"&gt;S132 softdevice specifications&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The current will vary with chip type and configuration. Which chip are you looking into? What current are you asking about? Current consumption or something else?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>