<?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 GPIO Analog Input on NRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12807/reading-gpio-analog-input-on-nrf52</link><description>I am trying to read an analog value on the GPIO port into my application. Looking through the examples, there aren&amp;#39;t any that help solve this problem as the ADC example is only for the NRF51. 
 I am trying to read a sensor value connected to the board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 27 Mar 2016 01:40:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12807/reading-gpio-analog-input-on-nrf52" /><item><title>RE: Reading GPIO Analog Input on NRF52</title><link>https://devzone.nordicsemi.com/thread/48676?ContentTypeID=1</link><pubDate>Sun, 27 Mar 2016 01:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f78545f-a0c8-47df-b2e4-d228604d94da</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You don&amp;#39;t read analog voltages off the pins by using the nrf_gpio_pin_read() functions, they are used for reading digital 0 or 1 from digital inputs. And the nrf_gpio_port_read() does something completely different and unrelated and doesn&amp;#39;t take a pin number as parameter.&lt;/p&gt;
&lt;p&gt;Reading analog values is an entirely different process which requires setting up the ADC, asking for a value, waiting for conversion etc. A 10 second grep in the SDK for &amp;#39;saadc&amp;#39; shows the ble_app_proximity example uses ADC and has both nRF51 and nRF52 code in it. So perhaps you&amp;#39;d be better off taking a look at that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>