<?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>Minimize blocking time on Rev 3 nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10249/minimize-blocking-time-on-rev-3-nrf51822</link><description>I&amp;#39;ve been reading about minimizing the amount of time that the SoftDevice blocks the CPU for, but most of the answers have to do with old revs of the chip and old versions of the stack, and recommend calling an API function which blocks the CPU less.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Nov 2015 10:35:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10249/minimize-blocking-time-on-rev-3-nrf51822" /><item><title>RE: Minimize blocking time on Rev 3 nRF51822</title><link>https://devzone.nordicsemi.com/thread/38054?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2015 10:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ef8f8c-4855-4f55-99c0-38e305bfcc07</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;&amp;quot;So if I advertise with very little data and send very little during a connection, all of my times will stay far below max?&amp;quot;&lt;/p&gt;
&lt;p&gt;Yes, I would expect so.&lt;/p&gt;
&lt;p&gt;You can not have 2 GPIOTE channels controlling the same output pin, that is correct. We fixed this problem in the nRF52 series by introducing separate SET and CLEAR tasks for each GPIOTE channel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimize blocking time on Rev 3 nRF51822</title><link>https://devzone.nordicsemi.com/thread/38055?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 19:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad9ae311-0ceb-4ded-8e9d-227c4ddecda7</guid><dc:creator>Nikolaus Wittenstein</dc:creator><description>&lt;p&gt;Luckily I don&amp;#39;t have that much data to send, so hopefully I&amp;#39;ll be good on that front!&lt;/p&gt;
&lt;p&gt;I was mostly curious because the max time is highest at the end of a connection event. It wasn&amp;#39;t clear to me if that time changed based on how much data was sent (vs. e.g. the 290μs after sending a packet). So if I advertise with very little data and send very little during a connection, all of my times will stay far below max?&lt;/p&gt;
&lt;p&gt;I may just have to try the GPIO toggling, unless I can figure out some way to gate a PWM using the PPI. Turns out you can&amp;#39;t have two different GPIOTE blocks controlling the same output pin??&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimize blocking time on Rev 3 nRF51822</title><link>https://devzone.nordicsemi.com/thread/38053?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 10:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37b067f9-6462-4cef-9baa-4a67852b5cbc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;The short answer is to try to send as little data as possible ;)&lt;/p&gt;
&lt;p&gt;The worst case numbers in the SDS typically occur if you are sending 6 packets per connection event (which is the maximum for the S110).
If you don&amp;#39;t send anything, or only send a single packet per connection event, the interrupt times will be much shorter.&lt;/p&gt;
&lt;p&gt;Exactly how long the interrupts are depends on many factors, and isn&amp;#39;t specified in detail, but if you have a scope available you could do some measurements on your own. Simply use the old trick where you toggle a GPIO quickly in the main loop, and observe on the scope how long the pauses in the toggling is.&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>