<?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  float up 0.2V</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14355/nrf51822-adc-float-up-0-2v</link><description>Hi, Now I use the NRF51822 ADC to sample VCC , 1.2V internal reference，internal prescaling 1/3.The PCB connection show as the pictrue .My application develop base on soft device-6.0 .The ADC starts to sample VCC when the application is waked up from sd_app_evt_wait</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2016 13:51:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14355/nrf51822-adc-float-up-0-2v" /><item><title>RE: NRF51822 ADC  float up 0.2V</title><link>https://devzone.nordicsemi.com/thread/54811?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 13:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b89737c1-05f7-4de2-96c8-21939e8f0411</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The voltage at AIN after prescaling should not be more than 2.4V, so for example if you use prescaler 2/3 the maximum voltage can be 2.4V / (2/3) = 3.6V, see &lt;a href="https://devzone.nordicsemi.com/question/100/what-is-the-maximum-input-voltage-for-the-adc/?answer=101#post-id-101"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What are the resistor values of the voltage divider? Using an external voltage divider is not that straight forward, see this &lt;a href="https://devzone.nordicsemi.com/blogs/30/measuring-lithium-battery-voltage-with-nrf51/"&gt;blogpost&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The ADC of nRF51 should be adequate for battery measuring.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 ADC  float up 0.2V</title><link>https://devzone.nordicsemi.com/thread/54810?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 03:11:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60a8979c-0eae-42fc-ba8c-db4b4b5fe57b</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Thanks.It is better than before,but error is beyond acceptable.The NRF5122&amp;#39;s ADC is too bad  to  minitor a battery charging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822 ADC  float up 0.2V</title><link>https://devzone.nordicsemi.com/thread/54809?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 15:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60fb31a0-135b-4681-8d53-5f9efa08e1d3</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;This may be because of the HFCLK is running of RC oscillator. Then the accuracy will be as bad as the accuracy of the RC oscillator. Try to sample with the crystal running. Turn it on with this code (can be done once):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t p_is_running = 0;
sd_clock_hfclk_request();
while(! p_is_running) {                             //wait for the hfclk to be available
    sd_clock_hfclk_is_running(&amp;amp;p_is_running);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>