<?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>ADC on nrf51 pin 26 &amp;amp; 27</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9310/adc-on-nrf51-pin-26-27</link><description>Hello,
I&amp;#39;m using an PTR5188 development board for my project which breaks out PIN 26 &amp;amp; 27 for ADC only. I&amp;#39;m using mbed as my development platform and haven&amp;#39;t been able to read my sensors output on either of these two pins. I&amp;#39;ve done a minor modification</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Sep 2015 09:20:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9310/adc-on-nrf51-pin-26-27" /><item><title>RE: ADC on nrf51 pin 26 &amp; 27</title><link>https://devzone.nordicsemi.com/thread/34370?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2015 09:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca390cb4-509f-4db2-bb12-4baf6b7cea64</guid><dc:creator>Jens Str&amp;#252;mper</dc:creator><description>&lt;p&gt;Fantastic! That fixed the problem. Thanks a lot Wojtek!
Cheers,
Jens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nrf51 pin 26 &amp; 27</title><link>https://devzone.nordicsemi.com/thread/34369?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2015 08:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d12d5ef-1a0b-49cf-ac44-018cdf6eb06d</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;I know nothing about mbed, but maybe try that:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static const PinMap PinMap_ADC[] = {
{p1, ADC0_0, 4},
{p2, ADC0_0, 8},
{p3, ADC0_0, 16},
{p4, ADC0_0, 32},
{p5, ADC0_0, 64},
{p6, ADC0_0, 128},
{p27, ADC0_0, 2},
{NC, NC, 0} };
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and probably for p26 it will be {p26, ADC0_0, 1}
I assume the last value is the value that will be written in ADC CONFIG.PSEL register, that selects input of the ADC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>