<?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 print value accuracy?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14429/adc-print-value-accuracy</link><description>Hi, 
 I am programming the NRF51-DK on mbed compiler. I have compiled some code below for using an analog to digital converter. I was able to print a voltage measurement but I&amp;#39;m not sure if it is accurate. I am trying to use a 10 bit ADC and configure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 12 Jun 2016 13:29:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14429/adc-print-value-accuracy" /><item><title>RE: ADC print value accuracy?</title><link>https://devzone.nordicsemi.com/thread/55133?ContentTypeID=1</link><pubDate>Sun, 12 Jun 2016 13:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b31babda-570c-4b69-9b76-de99caf81edf</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Normally there is no need for a pull-down resistor. That would just mess with your results. But for the record, the pull up/down resistors are &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.0%2Fabout.html&amp;amp;cp=2_2_0_0&amp;amp;anchor=concept_ebh_qjg_bt"&gt;between 11kOhm and 16kOhm&lt;/a&gt; on all GPIOs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC print value accuracy?</title><link>https://devzone.nordicsemi.com/thread/55132?ContentTypeID=1</link><pubDate>Sat, 11 Jun 2016 15:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:268376ef-86a9-4b42-b6d1-0fd30cebedfd</guid><dc:creator>Sri_guy</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Also do you have to use a pull down resistor connected to Analog Pin? If so, what resistance?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC print value accuracy?</title><link>https://devzone.nordicsemi.com/thread/55131?ContentTypeID=1</link><pubDate>Sat, 11 Jun 2016 07:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce44fff-9341-4e51-981c-bfc6303f0b11</guid><dc:creator>Kapil Rawat</dc:creator><description>&lt;p&gt;Hi
see this thread &lt;a href="https://devzone.nordicsemi.com/question/102/what-voltage-range-can-be-measured-with-the-adc/"&gt;adc&lt;/a&gt;
Also see attached file &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ADC_5F00_Config.pdf"&gt;ADC_Config.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think in your config.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;First thing is to use ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling for Analog pin as input. The ADC_CONFIG_INPSEL_SupplyOneThirdPrescaling is to use the VCC supply input&lt;/li&gt;
&lt;li&gt;Second multiply with 1.2 instant of 3.6 ( value = (value * &lt;strong&gt;&lt;em&gt;&lt;code&gt;3.6&lt;/code&gt;&lt;/em&gt;&lt;/strong&gt;) / 1024) because you are using 1.2 reference voltage.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>