<?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>SAADC in polling mode instead of interrupt/callback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43135/saadc-in-polling-mode-instead-of-interrupt-callback</link><description>Hello, 
 
 Can the SAADC driver be modified to be used in a polling mode instead of interrupt? 
 E.g. I modify the driver to not use any interrupt(comment out interrupt enabling calls). And then in a periodic task(thread) 
 Sample pseudo code below 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Sep 2022 04:47:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43135/saadc-in-polling-mode-instead-of-interrupt-callback" /><item><title>RE: SAADC in polling mode instead of interrupt/callback</title><link>https://devzone.nordicsemi.com/thread/387381?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 04:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:498423a6-7677-4ee7-b099-4459e196c872</guid><dc:creator>Steven Bauer</dc:creator><description>&lt;p&gt;The SAADC driver can be modified to be used in a polling mode instead of interrupting. This is done by changing the SAADC driver to be configured as a polling driver. This means that the SAADC driver will only be activated when the polling mode is enabled &lt;a href="https://slopeunblocked.app"&gt;slope unblocked&lt;/a&gt;. This is useful for situations where a polling mode is required but the SAADC driver is not required to &lt;a href="https://mapquestdrivingdirections.app"&gt;mapquest driving directions&lt;/a&gt;. For example, a polling mode may be required for a polling application but the SAADC driver is not required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC in polling mode instead of interrupt/callback</title><link>https://devzone.nordicsemi.com/thread/170187?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 21:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c438377e-8ccc-44c9-8469-ed39fb0c0df1</guid><dc:creator>himanshu pande</dc:creator><description>&lt;p&gt;Thanks Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC in polling mode instead of interrupt/callback</title><link>https://devzone.nordicsemi.com/thread/169180?ContentTypeID=1</link><pubDate>Sun, 03 Feb 2019 14:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9114b832-4c60-4080-8cf0-b4cbdb9ae729</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I do notice that&amp;nbsp;nrfx_saadc_sample_convert() is calling&amp;nbsp;nrf_saadc_int_disable() on entry and&amp;nbsp;nrf_saadc_int_enable() on exit. So I think you may need to comment out those also, but I assume it should work yes. The easiest may just be to comment out&amp;nbsp;NRF_SAADC-&amp;gt;INTENSET and NRF_SAADC-&amp;gt;INTENCLR&amp;nbsp;in nrf_saadc.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC in polling mode instead of interrupt/callback</title><link>https://devzone.nordicsemi.com/thread/168943?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 20:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281f9e74-ded5-4b26-9ea3-331ae936c7ce</guid><dc:creator>himanshu pande</dc:creator><description>&lt;p&gt;Hello Kenneth,&lt;/p&gt;
&lt;p&gt;Blocking mode is understood. Thanks. But is there any scenario in blocking mode that would trigger SAADC interrupt?&lt;/p&gt;
&lt;p&gt;If the interrupt is not going to be used, I can comment the code in SAADC init:&lt;/p&gt;
&lt;p&gt;//NRFX_IRQ_PRIORITY_SET(SAADC_IRQn, p_config-&amp;gt;interrupt_priority);&lt;br /&gt;//NRFX_IRQ_ENABLE(SAADC_IRQn);&lt;/p&gt;
&lt;p&gt;Right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC in polling mode instead of interrupt/callback</title><link>https://devzone.nordicsemi.com/thread/168692?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 12:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f087db5b-f4b1-422d-a169-fb6a185931e5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you checked out:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/hardware_driver_saadc?96#saadc_blocking"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/hardware_driver_saadc?96#saadc_blocking&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>