<?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>[nRF5340/nPM1304] Fail to configure PMIC charge current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127167/nrf5340-npm1304-fail-to-configure-pmic-charge-current</link><description>Hi, What specific steps must be followed to modify the charging current (BCHGISET) of the nPM1304? The information I found says to disable the charger first (set BCHGENABLECLR to 0x01), then set BCHGISET, and finally enable the charger (set BCHGENABLESET</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Mar 2026 12:19:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127167/nrf5340-npm1304-fail-to-configure-pmic-charge-current" /><item><title>RE: [nRF5340/nPM1304] Fail to configure PMIC charge current</title><link>https://devzone.nordicsemi.com/thread/563017?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2026 12:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dc59a26-36c1-48ee-bcd3-1f519419add2</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Kevin,&lt;/p&gt;
&lt;p&gt;I have following explanation from team.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;By &amp;quot;measuring the charging current&amp;quot; we actually mean using an&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;external&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;ampere-meter to check the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;actual&lt;/strong&gt;&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;current flowing into and out of the battery.&lt;/p&gt;
&lt;p&gt;The problem with reading the ADC (or the Zephyr npm13xx sensor driver) value is that it, unfortunately, doesn&amp;#39;t take the actual charging current setting into account when calculating the return value. In Zephyr, the current range is taken from the &lt;strong&gt;Device Tree setting.&amp;nbsp;&lt;/strong&gt;It uses the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;DTS setting `current-microamp`&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for calculating the &amp;quot;full scale&amp;quot; value which it uses to then calculate the current measured by the ADC. When the charging current is changed by&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;direct register writes&lt;/em&gt;, the sensor driver is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;not&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;aware of this, so it keeps showing the same value due to the same &amp;quot;full scale&amp;quot; value.&lt;/p&gt;
&lt;p&gt;Hopefully, this makes it clear.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF5340/nPM1304] Fail to configure PMIC charge current</title><link>https://devzone.nordicsemi.com/thread/562750?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2026 03:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c03507c-05b6-4f02-a047-8dc551163b02</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Sorry for the late reply; I wasn&amp;#39;t in the office the past few days.&lt;br /&gt;&lt;br /&gt;Yes, I did measure the current, and it was similar to the value I read. Sorry, I didn&amp;#39;t quite understand your explanation of the ADC. I&amp;#39;m not sure if it&amp;#39;s using the ADC value; I ported the &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/abc2b47fd84976254677a7127af125fc35df7de5/samples/pmic/native/npm13xx_fuel_gauge" rel="noopener noreferrer" target="_blank"&gt;npm13xx_fuel_gauge&lt;/a&gt; example to my custom code and then directly checked the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/abc2b47fd84976254677a7127af125fc35df7de5/samples/pmic/native/npm13xx_fuel_gauge/src/fuel_gauge.c#L160" rel="noopener noreferrer" target="_blank"&gt;current&lt;/a&gt; value.&lt;br /&gt;&lt;br /&gt;What&amp;#39;s the difference between this method and reading an ADC value?&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Kevin&lt;/span&gt;&lt;/p&gt;
&lt;div id="gtx-anchor" style="height:13.44px;left:372.4px;position:absolute;top:64.32px;width:202.35px;"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble gtx-bubble" style="left:87px;top:87px;"&gt;
&lt;div id="bubble-4" class="jfk-bubble-content-id"&gt;
&lt;div id="gtx-host" style="max-width:400px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowup" style="left:465.4px;"&gt;
&lt;div class="jfk-bubble-arrowimplbefore"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrowimplafter"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF5340/nPM1304] Fail to configure PMIC charge current</title><link>https://devzone.nordicsemi.com/thread/562259?ContentTypeID=1</link><pubDate>Sat, 28 Feb 2026 21:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258002c5-1423-42e4-976a-79d48c589fef</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you measured the charging current? Or you are relying on the current ADC reading?&lt;/p&gt;
&lt;p&gt;Note the current ADC full scale current scales with the charging current set. :&amp;quot;When charging, the full-scale current is the weighted sum of registers BCHGISETMSB and BCHGISETLSB multiplied by 1.25.&amp;quot; So basically you would get always the same reading from the ADC if you change the charging current.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF5340/nPM1304] Fail to configure PMIC charge current</title><link>https://devzone.nordicsemi.com/thread/562111?ContentTypeID=1</link><pubDate>Thu, 26 Feb 2026 06:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3b01e7-6eb3-435c-bcd9-0fad825d173c</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;The BCHGISET value will be one of the following: 0x07 (3.5mA), 0x0A (5mA), 0x0E (7mA), 0x13 (9.5mA), 0x1A (13mA), 0x23 (17.5mA), 0x4C (38mA), 0x6A (53mA), and 0x8C (70mA).&lt;br /&gt;&lt;br /&gt;I have not set a value for VBUSINILIM0, so it should be using the default value. The value I read back is 0x01, which, according to the nPM1304 datasheet, corresponds to 100 mA.&lt;br /&gt;&lt;br /&gt;Therefore, could I assume that the maximum input current limit is set to 100 mA? However, all desired charging current values are below this maximum.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thank you very much for your help!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Best regards,&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Kevin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF5340/nPM1304] Fail to configure PMIC charge current</title><link>https://devzone.nordicsemi.com/thread/562061?ContentTypeID=1</link><pubDate>Wed, 25 Feb 2026 14:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6feacef-f249-4a83-842a-57d18a843491</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Kevin,&lt;/p&gt;
&lt;p&gt;The steps you followed is correct. What is the BCHGISET&lt;span&gt;&amp;nbsp;value you set in the code? The BCHGISET register value is 0x8.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What value you selected for&amp;nbsp;VBUSINILIM0?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>