<?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>Beginner&amp;#39;s questions - Hi-Res timer + BLE SoftDevice / SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45051/beginner-s-questions---hi-res-timer-ble-softdevice-sdk</link><description>Hi, 
 we&amp;#39;re evaluating NRF52 as a platform for a project in the agricultural space and I have some beginner&amp;#39;s questions: 
 
 Is it feasible to use a timer firing at 100kHz together with the BLE soft device? The timer service routine needs to set a few</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Mar 2019 20:08:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45051/beginner-s-questions---hi-res-timer-ble-softdevice-sdk" /><item><title>RE: Beginner's questions - Hi-Res timer + BLE SoftDevice / SDK</title><link>https://devzone.nordicsemi.com/thread/177177?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 20:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c1c8046-76fe-4d09-a110-19d5fdddedba</guid><dc:creator>Hans23</dc:creator><description>&lt;p&gt;I think my question is answered already - We cannot use the BLE soft device together with a fast timer that has hard real time requirements.&amp;nbsp; We&amp;#39;re going to consider this in our design going forward, and probably use two nRF52 in order to make things simpler for us.&lt;/p&gt;
&lt;p&gt;Thanks! Hans&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beginner's questions - Hi-Res timer + BLE SoftDevice / SDK</title><link>https://devzone.nordicsemi.com/thread/177042?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 13:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d85e9df-f337-4c32-9670-b1aaf87c3729</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Maybe the SPIM peripheral can be used, but I do not know your specification.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you need a BLE connection while you&amp;#39;re generating the bitstream?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beginner's questions - Hi-Res timer + BLE SoftDevice / SDK</title><link>https://devzone.nordicsemi.com/thread/177006?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 12:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ec9691-51cf-4d8d-b152-df1539106fbe</guid><dc:creator>Hans23</dc:creator><description>&lt;p&gt;The number of pulses required and the frequency and overall cycle time need to be adjustable, and we&amp;#39;ll probably also need the duty cycle of the pulse train to be changed during development as we&amp;#39;re working on a scientific instrument.&amp;nbsp; We have experimented with the PWM peripheral, but in our initial assessment we found it difficult to precisely control the number of pulses sent.&amp;nbsp; We&amp;#39;re now considering to use SPI as that&amp;#39;d give us good control over the pulse train as well as DMA.&amp;nbsp; In terms of conflicts with the Bluetooth stack, we&amp;#39;re considering to use a separate CPU for communications if that&amp;#39;d be necessary.&amp;nbsp; The application is not extremely cost sensitive, but we&amp;#39;d like to avoid having to use an FPGA for the signal generation as that&amp;#39;d be less flexible and more involved on the development side of things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beginner's questions - Hi-Res timer + BLE SoftDevice / SDK</title><link>https://devzone.nordicsemi.com/thread/176995?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 12:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f08bc88-3dbe-477b-aa4b-b6ce9ef0df4f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Maybe the PWM peripheral can be used.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What determines the changes, is it predetermined or based of input from somewhere?&lt;br /&gt;&lt;br /&gt;Can you share a spec of the ping toggling/communication?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beginner's questions - Hi-Res timer + BLE SoftDevice / SDK</title><link>https://devzone.nordicsemi.com/thread/176903?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 09:07:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42217d10-c1a5-4a6d-a5d0-5154a1fd85ef</guid><dc:creator>Hans23</dc:creator><description>&lt;p&gt;Thanks for getting back.&amp;nbsp; I need to generate short bursts of 100kHz on an output pin with a specified, adjustable number of pulses (10-250) and an adjustable pause between the bursts (20&amp;micro;s-1ms).&amp;nbsp; In fact, we want to be able to control the duty cycle of the pulse bursts as well, so it may overall not be feasible to do this in software.&amp;nbsp; Any thoughts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beginner's questions - Hi-Res timer + BLE SoftDevice / SDK</title><link>https://devzone.nordicsemi.com/thread/176897?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 08:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4329e442-83b2-4bd3-b3ba-dc9f8f28d23c</guid><dc:creator>haakonsh</dc:creator><description>&lt;ol&gt;
&lt;li&gt;SW interrupts with real-time requirements at 100kHz is not possible with the SoftDevice. You either have to turn off the SoftDevice or find another solution using PPI and peripherals.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you share more details on exactly what you need to do with the GPIOs?&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Best practice is to modify an existing example. The ble_app_uart example is a fairly good one to use as a template.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>