<?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>Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103457/battery-voltage-result-of-nrf5-sdk-v16-0-0-and-ncs-v-2-4-0-are-not-the-same</link><description>I have ported battery voltage measurement from nRF5 SDK v16.0.0 to ncs v.2.4.0. But battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same. I found ADC value of SAADC are very small (from 0 to 115). 
 The following are log messages</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Sep 2023 14:26:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103457/battery-voltage-result-of-nrf5-sdk-v16-0-0-and-ncs-v-2-4-0-are-not-the-same" /><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444549?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 14:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8223c922-5cf6-4655-9f25-eeab7e3dde6c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Is this ticket also resolved with &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103459/adc_nrfx_saadc-channel-0-not-configured-adc_read-failed-with-error-code--22"&gt;the solution from your other ticket&lt;/a&gt;, or do you still require some technical support with this?&lt;br /&gt;If so, please update on your most recent issue here.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444413?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 05:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4d85630-7054-4024-a3b1-050e7daafcd1</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;When I change gain of struct adc_channel_cfg from ADC_GAIN_1 to ADC_GAIN_4. ADC value of SAADC increased (range from 364 to 387). But it still too small.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; batteryVoltageEnable(1) e
00&amp;gt; Enabling battery measurement ok
00&amp;gt; ddp-&amp;gt;raw=372, _gBattLvlmv=1854
00&amp;gt; mv=1854, percent=0
00&amp;gt; batteryVoltageEnable(0) e
00&amp;gt; Disabling battery measurement ok
00&amp;gt; _basTimerHandler: 137925
00&amp;gt; batteryVoltageEnable(1) e
00&amp;gt; Enabling battery measurement ok
00&amp;gt; ddp-&amp;gt;raw=364, _gBattLvlmv=1819
00&amp;gt; mv=1819, percent=0
00&amp;gt; batteryVoltageEnable(0) e
00&amp;gt; Disabling battery measurement ok
00&amp;gt; _basTimerHandler: 197925
00&amp;gt; batteryVoltageEnable(1) e
00&amp;gt; Enabling battery measurement ok
00&amp;gt; ddp-&amp;gt;raw=365, _gBattLvlmv=1819
00&amp;gt; mv=1819, percent=0
00&amp;gt; batteryVoltageEnable(0) e
00&amp;gt; Disabling battery measurement ok
00&amp;gt; _basTimerHandler: 257925
00&amp;gt; batteryVoltageEnable(1) e
00&amp;gt; Enabling battery measurement ok
00&amp;gt; ddp-&amp;gt;raw=387, _gBattLvlmv=1930
00&amp;gt; mv=1930, percent=0
00&amp;gt; batteryVoltageEnable(0) e
00&amp;gt; Disabling battery measurement ok&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*accp = (struct adc_channel_cfg) {
        .gain = ADC_GAIN_4, //ADC_GAIN_1,
        .reference = ADC_REF_INTERNAL,
        .acquisition_time = ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 40),
    };&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444400?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 02:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3913c7a-885c-46be-8d59-a250a948e6c0</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;snapshot of battery level of ncs v2.4.0&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/battery_5F00_ncs_5F00_v2.4.0.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444399?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 02:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed6855f0-f009-4ef0-8c8d-123f1550dbb3</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;snapshot of battery level of nRF5 SDK v16.0.0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/battery_5F00_nRF5_5F00_SDK_5F00_v16.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444398?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 02:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efcd9a38-cbd1-413a-8231-9df289770d09</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;battery_voltage.c of ncs v2.4.0&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6012.battery_5F00_voltage.c"&gt;devzone.nordicsemi.com/.../6012.battery_5F00_voltage.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444397?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 02:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ed7722-5537-4d71-8e42-6a132467493b</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;battery_voltage.c of nRF5 SDK v16.0.0&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/battery_5F00_voltage.c"&gt;devzone.nordicsemi.com/.../battery_5F00_voltage.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444396?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 02:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18500183-b935-45c5-8cf7-05e465475f4e</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5125.minimal_5F00_log_5F00_battery.zip"&gt;devzone.nordicsemi.com/.../5125.minimal_5F00_log_5F00_battery.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery voltage result of nRF5 SDK v16.0.0 and ncs v.2.4.0 are not the same</title><link>https://devzone.nordicsemi.com/thread/444395?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 02:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64a598ce-5957-4d78-bd41-b12aad2f6375</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8053.custom_5F00_nrf52832.zip"&gt;devzone.nordicsemi.com/.../8053.custom_5F00_nrf52832.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>