<?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>UART and SoftDevice interrupts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47534/uart-and-softdevice-interrupts</link><description>Some context: I am using an nRF51 with SoftDevice S130, which acts takes both central and peripheral roles, and uses UART to communicate to a peer MCU. I am currently facing the problem of making UART communication reliable when there is BLE activity</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 May 2019 13:54:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47534/uart-and-softdevice-interrupts" /><item><title>RE: UART and SoftDevice interrupts</title><link>https://devzone.nordicsemi.com/thread/188314?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 13:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70bb632-a551-4bc3-bba0-eb5dbba1b99b</guid><dc:creator>tlongeri</dc:creator><description>&lt;p&gt;Thank you for the clear and concise answer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and SoftDevice interrupts</title><link>https://devzone.nordicsemi.com/thread/188199?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 11:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e70a9d4d-3294-4662-bc75-cb0807dd350c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It seems you have thought of everything I could think of already, but just to confirm what you already write:&lt;/p&gt;
[quote user=""]- Are there any other interrupt sources I should be worrying about?&lt;br /&gt;- Could any interrupts (central, peripheral or other) happen back to back, effectively lengthening the duration of the SoftDevice interrupt?&lt;br /&gt;- Similarly, is it a safe assumption that I always have enough time between interrupts to empty the RX buffer into RAM when, say, using nrf_drv_uart?[/quote]
&lt;p&gt;&amp;nbsp;No, No, Yes (presuming you don&amp;#39;t have any application interrupts that prevent this).&amp;nbsp;&lt;/p&gt;
[quote user=""]So 76800 bits / second is looking like a good option.[/quote]
&lt;p&gt;Presuming the FIFO is empty at the start of the interrupt.&amp;nbsp;&lt;/p&gt;
[quote user=""]- Do you happen to know how to estimate the possible UART throughput given BLE connection parameters?[/quote]
&lt;p&gt;No.&lt;/p&gt;
[quote user=""]- Do you think it&amp;#39;s better to solve this by adding a reliable protocol on top of UART?[/quote]
&lt;p&gt;I think that is a good idea.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A better idea may be to use the nRF52832, which can use EasyDMA to write directly to RAM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>