<?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 issue with nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37291/saadc-issue-with-nrf52</link><description>SDK version: nRF5_SDK_15.0.0_a53641a 
 Softdevice version: s132_nrf52_6.0.0_softdevice 
 PDK: PCA10040 
 
 I am trying to read the ADC pin value using the SAADC module, I have softdevice enabled and running. I am adding the section of code for your reference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Aug 2018 01:55:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37291/saadc-issue-with-nrf52" /><item><title>RE: SAADC issue with nRF52</title><link>https://devzone.nordicsemi.com/thread/143643?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 01:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d052d931-8399-4ffb-b85a-624876752e26</guid><dc:creator>Avi A</dc:creator><description>&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; I verified once more and found what you said to be right. I had the wrong pin. When I connected P0.02 (AREF) to GND I did see the value going down to zero and go up when I connected the pin to VDD. Thank you for clarifying. I consider this issue resolved.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC issue with nRF52</title><link>https://devzone.nordicsemi.com/thread/143642?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 01:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9be2172c-8327-41e7-bd1e-192a7117aac1</guid><dc:creator>Avi A</dc:creator><description>&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thank you for your response. I do receive a random value whenever I call it, it does not hang.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Maybe my pin is wrong, I was measuring pin marked as&lt;span style="font-family:inherit;"&gt;&amp;nbsp;P0.03 (A0). On the board PCA10040 (1.2.4 2018.16) board that I have I find that&amp;nbsp; A0 to A5 are on P8 header. I dont see P0.02 on the board. Can you please clarify if P0.03 (A0) is correct?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp; &amp;nbsp;I have not yet tried the&amp;nbsp;&lt;span&gt;SDK15\examples\peripheral\saadc mainly because I was trying to get simple version of the SAADC blocking working with my softdevice code before I try out the non-blocking with SAADC-buffer.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC issue with nRF52</title><link>https://devzone.nordicsemi.com/thread/143575?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 13:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a901b72-c5b1-43ad-9c32-62787b650a13</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Does your&amp;nbsp;nrfx_saadc_sample_convert() ever return, or does it hang there forever?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it returns, and you get a new (but random) value whenever you call it, are you sure that you are measuring on the correct pin? AIN0 is pin P0.02.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tested the saadc example found in SDK15\examples\peripheral\saadc? Here the callback function should be called, but it is not called before it has received 5 measurements, since the size of the saadc-buffer is 5. What is the size of your saadc-buffer?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC issue with nRF52</title><link>https://devzone.nordicsemi.com/thread/143441?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 18:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffee9ea-dfac-4941-a310-7b5a11a566e2</guid><dc:creator>F Iannce</dc:creator><description>&lt;p&gt;I think your problem is that you are using the blocking function&amp;nbsp;&lt;span&gt;nrfx_saadc_sample_convert().&amp;nbsp; I believe that this function specifically disables the interrupt until it finishes.&amp;nbsp; If you want to use the interrupt you should look at nrfx_saadc_buffer_convert()...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>