<?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 output calculation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95068/adc-output-calculation</link><description>hi team, 
 i have trying to wrote a code for analog to digital converter module in segger 5.40 using nrf52840 controller and and i found one example code related to analog to digital converter in sdk 16.0. version. 
 in that code you are using on chip</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Dec 2022 12:09:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95068/adc-output-calculation" /><item><title>RE: adc output calculation</title><link>https://devzone.nordicsemi.com/thread/401695?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 12:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a2656a8-ea1a-433c-95b9-69f14024dce6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The analog input needs to be between 0V and VDD!&lt;/p&gt;
&lt;p&gt;When you want to perform an an analog measurement you have to first configure the&amp;nbsp;gain and a voltage reference used by the ADC.&lt;/p&gt;
&lt;p&gt;For instance&amp;nbsp;can configure the ADC to have a&amp;nbsp;gain of 1/6 and using the 0.6V internal reference. This means that the analog input is divided by 6, for instance if the analog input is 3V, then the measured value of the ADC will be 3V/6=0.5V (which is less than the internal reference of 0.6V). If you now make an 8-bit measurement, then the the 3V analog input will give the result of (3V * 1/6 / 0.6V * 2^8) = 213.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>