<?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>nRF51822 ADC battery level detection example question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51/nrf51822-adc-battery-level-detection-example-question</link><description>Based on nRF51822\Board\pca10001\ble\ble_app_hrs example,
How nRF51822 detect ADC input? Which ADC pin? 
 Configuration code:
NRF_ADC-&amp;gt;CONFIG = (ADC_CONFIG_RES_8bit &amp;lt;&amp;lt; ADC_CONFIG_RES_Pos) |
(ADC_CONFIG_INPSEL_SupplyOneThirdPrescaling &amp;lt;&amp;lt; ADC_CONFIG_INPSEL_Pos</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jan 2016 08:30:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51/nrf51822-adc-battery-level-detection-example-question" /><item><title>RE: nRF51822 ADC battery level detection example question</title><link>https://devzone.nordicsemi.com/thread/269?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 08:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b33406-058c-4558-b8f7-43d2e2bf86f5</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;if vdd is used， vdd_test ＊ 1/3 ＝ vbg * result_value/ 255, vdd_test=1.2v *( result_value/255) *3,
so i read result_value in order to monitor/caculate the vdd_test value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 ADC battery level detection example question</title><link>https://devzone.nordicsemi.com/thread/268?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2016 08:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83804ead-42a2-4f02-a011-2ef78c63d54c</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;if vdd is used，   vdd_test ＊ 1/3 ＝ vbg * result_value/ 255,   vdd_test=1.2v *( result_value/255) *3,&lt;/p&gt;
&lt;p&gt;so i read result_value in order to monitor the vdd_test value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 ADC battery level detection example question</title><link>https://devzone.nordicsemi.com/thread/267?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2013 08:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc007aaf-8588-414c-81df-b5e5ec12cfa1</guid><dc:creator>Sam Wei Quan</dc:creator><description>&lt;p&gt;Thank for the fast reply :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 ADC battery level detection example question</title><link>https://devzone.nordicsemi.com/thread/266?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2013 07:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f51250-40c9-41c7-89ca-8da952b26955</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As you can see, the INPSEL field is set to be the supply. If you take a look at the description of the CONFIG register in the reference manual, you can see that the PSEL field is used only if the INPSEL is set to one of the fields where the description says it will be used. For both the Supply values, the VDD is used as an input, and the PSEL field is not used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>