<?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>Need help on setting up low level interrupt handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56801/need-help-on-setting-up-low-level-interrupt-handler</link><description>I&amp;#39;m trying to get the most performance per mA out of my nRF52, for test purposes I&amp;#39;ve used the nrfx libraries to communicate to the peripherals but I want to make my own. 
 
 I’ve successfully created a TWI driver using the HAL library direct register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jan 2020 10:02:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56801/need-help-on-setting-up-low-level-interrupt-handler" /><item><title>RE: Need help on setting up low level interrupt handler</title><link>https://devzone.nordicsemi.com/thread/230024?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 10:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33bc87dc-8916-4e80-a1e9-e4c1ee539e98</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;Well, as always I&amp;#39;ve spoken too soon.&lt;/p&gt;
&lt;p&gt;After fiddling around I&amp;#39;ve managed to get it working.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve changed the NRFX_IRQ_XXX to&lt;/p&gt;
&lt;p&gt;NVIC_SetPriority(SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn, p_config-&amp;gt;interrupt_priority);&lt;br /&gt; NVIC_EnableIRQ(SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn);&lt;/p&gt;
&lt;p&gt;And this made it work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;P.S. the 4k optimized is wrong, it is unoptimized. Optimized is 1.9k max which is still 3x as much as the bare code I&amp;#39;ve written.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>