<?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>Re: Interfacing SPI ADC with nRF52840 SPIM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77312/re-interfacing-spi-adc-with-nrf52840-spim</link><description>Would like to interface a SPI ADC – MCP3461 via the nRF52840 serial peripheral interface master with EasyDMA (SPIM). I was not able to find whether or not there is an available external trigger for the data acquisition, that can be driven via the ADC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jul 2021 07:36:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77312/re-interfacing-spi-adc-with-nrf52840-spim" /><item><title>RE: Re: Interfacing SPI ADC with nRF52840 SPIM</title><link>https://devzone.nordicsemi.com/thread/319522?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 07:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b6ca40a-310f-4876-a80c-1159a9b94561</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I was not able to find whether or not there is an available external trigger for the data acquisition, that can be driven via the ADC data ready pin.[/quote]
&lt;p&gt;You could do this by using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fppi.html"&gt;the PPI peripheral&lt;/a&gt; to connect a GPIOTE in event to the SPIM &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/spim.html?cp=4_0_0_5_24_5#register.TASKS_START"&gt;TASKS_START&lt;/a&gt;&amp;nbsp;task, to have the external interrupt trigger a transaction start on the SPIM.&lt;br /&gt;The PPI peripheral&amp;#39;s fundamentals are demonstrated in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf_dev_saadc_example.html"&gt;the SAADC example&lt;/a&gt;, where a TIMER CC Event is connected to a TASKS_SAMPLE sampling task in the SAADC. Whenever the TIMER CC event is generated, the TASKS_SAMPLE is started in the SAADC.&lt;br /&gt;The dedicated &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ppi_example.html"&gt;PPI example&lt;/a&gt; goes a little further, and demonstrates using multiple PPI channels.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>