<?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>Atomic FIFO example and queries about interrupts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34371/atomic-fifo-example-and-queries-about-interrupts</link><description>Hi, I&amp;#39;m trying to use Atomic FIFO in my application, where multiple interrupts of different priorities are trying to read from and write to same FIFO. I couldn&amp;#39;t find any simple example which uses Atomic FIFO. I&amp;#39;m using SDK 14.2 on nrf52832. The documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 May 2018 12:31:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34371/atomic-fifo-example-and-queries-about-interrupts" /><item><title>RE: Atomic FIFO example and queries about interrupts</title><link>https://devzone.nordicsemi.com/thread/132276?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 12:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8de519c-def0-40fb-bbd2-ec0fb999d407</guid><dc:creator>Salman Azmat</dc:creator><description>&lt;p&gt;Thanks, and about the at_fifo example I was able to implement the fifo read function by simply using &amp;quot;item_get&amp;quot; and &amp;quot;item_free&amp;quot; functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Atomic FIFO example and queries about interrupts</title><link>https://devzone.nordicsemi.com/thread/132001?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 09:43:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af6d4c91-83e9-434f-9b19-9d1f86d35d8b</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;&amp;gt; If i have multiple interrupts of same priorities, can a new interrupt pause the execution of the interrupt being currently executed ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Nope. Only interrupt with a lower priority number can preempt a running interrupt. The next handler function gets called as soon as the running one finished (see tail chaining).&lt;/p&gt;
&lt;p&gt;You may want to read the NVIC documentation on infocenter.arm.com, because that is an ARM standard component.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Nothing prevents you from setting many (up to all available) interrupts to &amp;quot;pending&amp;quot; in the same instruction cycle, and the result could work - as in &amp;quot;every handler gets called eventually&amp;quot;.This assumes interrupt handlers behave by properly resetting the respective interrupt flags (NRF DRV handlers do this for you in almost all cases).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>