<?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>Reading digital output pin with analog input</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60108/reading-digital-output-pin-with-analog-input</link><description>Hi!, 
 I am trying to use one of the analog inputs for reading the voltage using saadc. 
 Since a don&amp;#39;t have a battery now that is about 3.5V or less, I decided to use one of the digital outputs as source. 
 So I have successfully activated a pin to output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Apr 2020 08:05:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60108/reading-digital-output-pin-with-analog-input" /><item><title>RE: Reading digital output pin with analog input</title><link>https://devzone.nordicsemi.com/thread/244276?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2020 08:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4962ce4d-3800-49b4-955d-655d0fbc988a</guid><dc:creator>Crom87</dc:creator><description>&lt;p&gt;I have rechecked that the input pin was the correct one, and after reading the documentation from my board again (PCA10040)&amp;nbsp;and you are right, the AIN0 is for pin 2, but I had it connected to pin 3. It confused me that the board says P0.03(A0), but A0 is not AIN0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is documented in:&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/boards/arm/nrf52_pca10040/doc/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/boards/arm/nrf52_pca10040/doc/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So everything is now working correctly :). Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading digital output pin with analog input</title><link>https://devzone.nordicsemi.com/thread/244265?ContentTypeID=1</link><pubDate>Sun, 12 Apr 2020 23:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e65efe9-42af-4107-aaf1-f9a28f27b215</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Edit - I see pin 5 was the output, my mistake. Is the input on pin 2? (AIN0 is pin 2 if I recall ..)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>