<?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>Do peripheral events used in shortcuts still generate interrupts?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36199/do-peripheral-events-used-in-shortcuts-still-generate-interrupts</link><description>I have the nrf51 RADIO peripheral set up with the usual set of shortcuts: 
 NRF_RADIO-&amp;gt;SHORTS = RADIO_SHORTS_READY_START_Msk | RADIO_SHORTS_END_DISABLE_Msk | RADIO_SHORTS_DISABLED_RXEN_Msk; 
 This should automatically transmit a packet when I use the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jul 2018 12:25:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36199/do-peripheral-events-used-in-shortcuts-still-generate-interrupts" /><item><title>RE: Do peripheral events used in shortcuts still generate interrupts?</title><link>https://devzone.nordicsemi.com/thread/139563?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 12:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf213aa3-b37d-432c-96ec-c9d651ab12e7</guid><dc:creator>Andrew Kohlsmith</dc:creator><description>&lt;p&gt;Oh! I understand now, and this makes perfect sense.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;THANK YOU. I now understand the issue. The nRF51 is doing exactly what I told it to do, but not necessarily what I want it to do. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do peripheral events used in shortcuts still generate interrupts?</title><link>https://devzone.nordicsemi.com/thread/139556?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 12:07:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87721d0b-3e41-4fcf-bb84-36b644bf9ef7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Andrew&lt;/p&gt;
&lt;p&gt;If the DISABLED_RXEN field is set in the SHORTCUTS register when you run the _disable_radio() function, then the radio will enter RX mode before you have time to enter TX mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A simple way to check if this is the case is to clear this field at the start of _disable_radio(), and set it again afterwards:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// Clear Disabled -&amp;gt; RXEN shortcut&lt;br /&gt;&lt;/code&gt;&lt;code&gt;NRF_RADIO-&amp;gt;SHORTS &amp;amp;= ~RADIO_SHORTS_DISABLED_RXEN_Msk;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// Set Disabled -&amp;gt; RXEN shortcut&lt;br /&gt;&lt;/code&gt;&lt;code&gt;NRF_RADIO-&amp;gt;SHORTS |= RADIO_SHORTS_DISABLED_RXEN_Msk;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do peripheral events used in shortcuts still generate interrupts?</title><link>https://devzone.nordicsemi.com/thread/139497?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 03:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78029033-bf86-42d1-8347-f7f062df4782</guid><dc:creator>Andrew Kohlsmith</dc:creator><description>&lt;p&gt;Good evening, Torbj&lt;span&gt;&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I believe I am doing things correctly; is my _disable_radio() function above doing the correct thing? (clearing the event flag, then setting the task and spinning, waiting for the event flag to become set again)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do peripheral events used in shortcuts still generate interrupts?</title><link>https://devzone.nordicsemi.com/thread/139424?ContentTypeID=1</link><pubDate>Mon, 09 Jul 2018 13:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7832c16d-0d88-415f-bfcd-1b03b9f6c6d0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Andrew&lt;/p&gt;
&lt;p&gt;Do you make sure to set the SHORTCUT register only after you have run the _disable_radio() function?&lt;/p&gt;
&lt;p&gt;Otherwise you will inadvertently enable the RX mode by disabling the radio, and you won&amp;#39;t be able to enter TX.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just did a quick test using the nrf_esb library, and I can see the END interrupt firing even if the shortcuts are used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>