<?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>nPM1300 BCHGISETDISCHARGE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117141/npm1300-bchgisetdischarge</link><description>We&amp;#39;re using the Nordic Zephyr library (SDK v2.5) to configure the nPM1300. Using the library, the battery discharge current limit is set to 1000mA. However, using a logic analyzer to decode the I2C traffic shows that 0x9A (decimal 154) is written to register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Dec 2024 12:45:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117141/npm1300-bchgisetdischarge" /><item><title>RE: nPM1300 BCHGISETDISCHARGE</title><link>https://devzone.nordicsemi.com/thread/514250?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 12:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69804c6e-629b-42df-a829-1344eaed0095</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Update:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The battery current calculation uses the old definition of the battery current discharge limit, and the PS has not been updated yet to reflect this. As I understand it, the update is coming but I&amp;#39;m not sure about the timeline&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NCS 2.5.0 is not updated to reflect this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Zephyr main driver was only very recently updated, and this change has not made its way into NCS yet:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://github.com/zephyrproject-rtos/zephyr/commit/ab6bca66ac9c3352559fdbe786cb38a34c8fa29c" href="https://github.com/zephyrproject-rtos/zephyr/commit/ab6bca66ac9c3352559fdbe786cb38a34c8fa29c" rel="noopener noreferrer" target="_blank"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/ab6bca66ac9c3352559fdbe786cb38a34c8fa29c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So PowerUP and NCS is at the moment using the old definition of the discharge limit configuration. After the next upmerge, NCS will start using the new definition, and the PowerUP overlay export functionality will be updated accordingly. At that point, you will get a compile error if you try to use an overlay with a discharge current limit other than 200 mA or 1000 mA.&lt;/p&gt;
&lt;p&gt;1. The table only shows the high and low value, is is possible to select values between min and high value&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. The PS at the moment states that you can calculable the battery current from the ADC measurement value&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;A value of 01 means the battery is discharging. During a discharge, the full scale current is the weighted sum of registers BCHGISETDISCHARGEMSB and BCHGISETDISCHARGELSB multiplied by 0.836.&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But the PS does not mention that the fullscale is actually calculated based on 270 mA or 1340 mA &amp;nbsp;values instead of 200 mA and 1000 mA as mentioned here:&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/pastedimage1733834676220v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So to properly calculate the battery current, you need use an ADC fullscale value of 270 mA or 1340 mA, multiplied by 0.836.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 BCHGISETDISCHARGE</title><link>https://devzone.nordicsemi.com/thread/514237?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 12:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2a92ea4-6cf6-4dc4-ab58-afdaa86ce5e3</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Kevin&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking into your issue&lt;/p&gt;
&lt;p&gt;Regarding question 2. What is the value you are seeing?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>