<?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>SPI configuration, How to define the interrupt handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19625/spi-configuration-how-to-define-the-interrupt-handler</link><description>My project is to communicate with the AD7780 via SPI.
Nrf is the master and AD7780 is slave. I am know implementing my solution referring to an example i found about SPI under SDK11.
I don&amp;#39;t want to use the driver API ( &amp;quot;nrf_drv_spi.h&amp;quot; &amp;quot;nrf_drv_spi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Feb 2017 15:49:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19625/spi-configuration-how-to-define-the-interrupt-handler" /><item><title>RE: SPI configuration, How to define the interrupt handler</title><link>https://devzone.nordicsemi.com/thread/76384?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 15:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:243999b3-7a47-4dae-88c4-d1ecf4379d95</guid><dc:creator>ToTo</dc:creator><description>&lt;p&gt;That is what i am looking for . Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI configuration, How to define the interrupt handler</title><link>https://devzone.nordicsemi.com/thread/76383?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 11:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7f4c27a-59c9-45cb-9257-615c0108c37d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;If you don&amp;#39;t want to use the driver from the SDK you can use the registers directly. The peripheral is described in the &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf"&gt;Reference Manual&lt;/a&gt;. The interrupt handler is called &lt;code&gt;SPIx_TWIx_IRQHandler&lt;/code&gt;, where x is the SPI instance. You implement it like this (for instance 0):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void SPI0_TWI0_IRQHandler(void)
{
    //clear the ready event
    NRF_SPI0-&amp;gt;EVENTS_READY = 0;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also remember to enable interrupt for the READY event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI configuration, How to define the interrupt handler</title><link>https://devzone.nordicsemi.com/thread/76386?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 08:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16ccb863-f4af-4281-94ab-d06cde425c88</guid><dc:creator>ToTo</dc:creator><description>&lt;p&gt;I did,, there is a driver developed by Nordic i don&amp;#39;t want to use it..but i tried to understand how they do  i didn&amp;#39;t get it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI configuration, How to define the interrupt handler</title><link>https://devzone.nordicsemi.com/thread/76385?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2017 23:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73095bc5-d0d7-4751-824d-29e06b1d5002</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Look in the spi example in examples/peripheral/spi  it uses the callback&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>