<?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>BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65698/ble-saadc-interrupt-base</link><description>Hello! 
 I am using an saadc examole to get sensor value using AIN3 and sending it on ble but now i want to make it interrupt base example can someone help me out how to do this????. 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Sep 2020 08:51:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65698/ble-saadc-interrupt-base" /><item><title>RE: BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/thread/268886?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 08:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec3bffd5-70e5-493b-a04c-c98498ebfa13</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I linked to the &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.4/drivers/src/nrfx_saadc.c#L95-L201"&gt;IRQHandler in the SAADC driver&lt;/a&gt; in my previous comment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/thread/268885?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 08:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0beb01e0-6d88-44f9-989e-a2d39073a904</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you are referring to the interrupt from the SAADC, you should place the code in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/blob/master/ble_app_uart__saadc_timer_driven__scan_mode/main.c#L749-L790"&gt;saadc_callback&lt;/a&gt;().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The time between each timer event is given by the &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/blob/master/ble_app_uart__saadc_timer_driven__scan_mode/main.c#L113"&gt;SAADC_SAMPLE_RATE&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/thread/268865?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 07:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a741383-8b79-41a1-917d-f894470715d3</guid><dc:creator>faizan12</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I also wanted to ask that u have written previously IRQ handler calls the saadc callback where is that IRQ handdler which calls saadc callback???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/thread/268838?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 06:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c384f0b-0580-4378-85f0-ddf73047cb53</guid><dc:creator>faizan12</dc:creator><description>&lt;p&gt;If i want that data on ble and uart should be sent when interrupt occur where should i paste the code of ble and uart.Also where to set the timer timing to make tinterrupt early or late.????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/thread/268695?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 09:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79988fd4-b79b-48b1-a168-814cf1bd10fa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/blob/master/ble_app_uart__saadc_timer_driven__scan_mode/main.c#L793"&gt;saadc_init()&lt;/a&gt;, the SAADC peripheral is configured along with buffers for storing samples directly in RAM During init, the &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.4/drivers/src/nrfx_saadc.c#L236"&gt;interrupt for END event is enabled&lt;/a&gt; in the SAADC driver.. A &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/blob/master/ble_app_uart__saadc_timer_driven__scan_mode/main.c#L714-L746"&gt;timer is configured along with PPI&lt;/a&gt;, to trigger the SAADC sample task at a regular interval, without any CPU intervention. Then the SAADC sample task has been triggered enough times to fill the buffer, an END event is generated by the peripheral, triggering the &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.4/drivers/src/nrfx_saadc.c#L95-L201"&gt;IRQHandler in the SAADC driver&lt;/a&gt;. The IRQHandler calls the&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/blob/master/ble_app_uart__saadc_timer_driven__scan_mode/main.c#L749-L790"&gt;saadc_callback()&lt;/a&gt;&amp;nbsp;where samples are processed and buffer are setup for re-use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/thread/268591?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 16:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:569c500c-569e-4b49-bc87-97e5331633d3</guid><dc:creator>faizan12</dc:creator><description>&lt;p&gt;can u help to understand where is Interrupt defined in this example and how its using interrupt and where is its interrupt handler. i am using the same example but i want that when interrupt occurs using ticks of timer it sends data over ble and uart also .i thnk its only doind adc on interrupt but i also dont knoe where.???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE SAADC INTERRUPT BASE</title><link>https://devzone.nordicsemi.com/thread/268552?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 13:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d499380-27f0-4a29-96f0-43772d9baa33</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find a interrupt based SAADC + BLE example in &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/ble_app_uart__saadc_timer_driven__scan_mode"&gt;this GitHub repository&lt;/a&gt;. The example samples multiple SAADC input channels, but you can disable the channels that you do not need.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>