<?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 interfacing Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4079/adc-interfacing-problem</link><description>Hi
am using a thermistor of 10 k with a known resistor of 10 k ,and am giving the voltage divided input to ANI2 (p0.02).The suppply voltage for thermistor is external of 1.5 volts battery.So normally the voltage input to adc seems to be 0.720volts .Since</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Oct 2014 08:51:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4079/adc-interfacing-problem" /><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14632?ContentTypeID=1</link><pubDate>Fri, 17 Oct 2014 08:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3ba556f-023c-4944-baa0-c66fac136c2b</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;You are welcome. If you feel that you have received an answer to your question, please accept the answer that provided the answer. Also remember to vote.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14631?ContentTypeID=1</link><pubDate>Fri, 17 Oct 2014 04:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e98e5418-72b2-46b7-ad58-4a425a38bd64</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;Thankyou Stefan  !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14633?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 09:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12e6f69e-8702-4cc9-aff7-40e4b5f70d15</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;And the analog input without any prescaling ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14630?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 09:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ee6295b-a176-41f3-b9b7-7de3230fd2c1</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@ Krzysztof: Thanks for your input and observation.&lt;/p&gt;
&lt;p&gt;In addition to Krzysztof&amp;#39;s input, it could be better to choose VDD/2 as reference voltage. That way, you will get a steady voltage measurement on the ADC AIN input pin when the battery drains and the supply voltage drops.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 16.10.2014&lt;/strong&gt;
If you have a battery voltage of 3.0V and choose VDD/2 as reference, your reference voltage is 1.5V. This means that you should not have higher input voltage than 1.5V, because that is the saturation point of the ADC where you will see value 1023 on the output when using 10 bit resolution. So if you have 1.5V as the source input to your voltage divider, and you have the resistor at 10kohm and thermistor at 10kohm then you will get 0.75V at the input and that should give you value 512 when you have no prescaler (option ADC_CONFIG_INPSEL_AnalogInputNoPrescaling). So with this setup, no prescaler would be needed on the input.&lt;/p&gt;
&lt;p&gt;Anyway, in order to utilize the range of the ADC in the best way and to maximize accuracy, the input voltage range should span as much of the reference voltage as possible. For example, if the reference voltage is 1.5V, then it would be best to dimension the voltage divider on the input so that temperature changes will make the input voltage vary between 0V and 1.5V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14627?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 08:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de2671b2-23b2-416d-a49c-0b809990046a</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;Also how to use the voltage input prescalar for the supply voltage of 3.0 volt ???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14629?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 08:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4af6d98a-ddb0-427d-b54d-d138bb10ca9c</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;Thankyou i got to know that ref voltage make sense much here ! is it correct if we suply external ref voltage as the supply voltage ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14626?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 08:27:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:134cb42f-ffa7-48ad-afb1-c4b77bbb1270</guid><dc:creator>hrg</dc:creator><description>&lt;p&gt;no ,it is an NTC thermistor with 10k at 25C . The resistor R_1 is connected to the source side  &amp;amp; the themistor to the ground side. so at normal temperature 25C i need to dislay the adc value to be 511 range !  so should i take the supply voltage as reference ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14625?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 08:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7ec8e1-4a68-4303-8e93-5900ece1ed04</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi.  I have questions regarding your setup. Is the range of your thermistor 0kohm-10kohm? How are your schematics, are they similar to the schematics on &lt;a href="https://devzone.nordicsemi.com/blogs/30/measuring-lithium-battery-voltage-with-voltage-div/"&gt;this blog&lt;/a&gt;, where you have your resistor as R_1 and your thermistor as R_2?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC interfacing Problem</title><link>https://devzone.nordicsemi.com/thread/14628?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 07:28:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51d6796-fb32-4c55-81a8-39179bbfa956</guid><dc:creator>Krzysztof Rosinski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please check the reference manual page 176 and product specification on page 49.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re using internal ADC reference which is 1.2V (ADC_CONFIG_REFSEL_VBG) so you&amp;#39;re 1024 ADC is 1.2V, then you&amp;#39;re using 1/3 voltage divider for input (ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling). I believe that you should use the following equation:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ADC = (Vin / 3) * 1024 / 1.2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;e.g. for 0.75 Vin is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ADC = (0.75 / 3) * 1024 / 1.2 = 213
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which is roughly what you get.&lt;/p&gt;
&lt;p&gt;Krzysztof&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>