<?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>nrf52 write buffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15044/nrf52-write-buffer</link><description>In the migration guide, I can read: &amp;quot;Clearing an interrupt event may not take effect immediately.&amp;quot; 
 And an example of required code is given as: 
 NRF_TIMER0-&amp;gt;EVENTS_COMPARE[0] = 0;
 (void)NRF_TIMER0-&amp;gt;EVENTS_COMPARE[0];
 
 When looking in SDK/components</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jul 2016 13:00:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15044/nrf52-write-buffer" /><item><title>RE: nrf52 write buffer</title><link>https://devzone.nordicsemi.com/thread/57408?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 13:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04450c2f-9587-44b1-8301-a3ddd6d0136b</guid><dc:creator>Stephane D&amp;amp;#39;Alu</dc:creator><description>&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 write buffer</title><link>https://devzone.nordicsemi.com/thread/57409?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 12:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0efa2121-1225-4f59-95c5-dde6e4e841bd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Stephane,&lt;/p&gt;
&lt;p&gt;My understanding is that the possible issue with clearing the interrupt event register is more critical than writing to execute a task or to configure a register as the interrupt can be triggered multiple time if it&amp;#39;s not cleared properly before existing the IRQ handler.
I don&amp;#39;t see potential issue when there is a delay when executing writing to task or register.&lt;/p&gt;
&lt;p&gt;When writing to a task, usually you have to make sure the task has been executed with a while loop to read the register (_STARTED register).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 write buffer</title><link>https://devzone.nordicsemi.com/thread/57410?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 12:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0820e526-5d6f-4e65-8058-48abf96ca12c</guid><dc:creator>Stephane D&amp;amp;#39;Alu</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I have a side question, if write-buffer could be a problem when clearing events.
Should we also be aware of a possible issue when writing to tasks or other registers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 write buffer</title><link>https://devzone.nordicsemi.com/thread/57407?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 11:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3a64064-9b2e-427a-9ef5-661608575bab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Stephane,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s true that in some of our driver we still haven&amp;#39;t implemented that. I guess it was due to we ported the driver partly from the code from nRF51 and haven&amp;#39;t updated it to meet with the requirement for nRF52. We haven&amp;#39;t seen consequence of doing that but we should update them.&lt;/p&gt;
&lt;p&gt;You can find in some driver we actually did that, for example in nrf_clock_event_clear() function.&lt;/p&gt;
&lt;p&gt;I have reported it to R&amp;amp;D and we will try to update the code.&lt;/p&gt;
&lt;p&gt;I would suggest you to add the code to do a dummy read every time your clear an interrupt register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>