<?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 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119470/npm1300-ibat-0-and-adcibatmeasstatus-00</link><description>With a npm1300 I&amp;#39;m able to charge (for instance, the LED showing charging status is on, BCHGCHARGESTATUS is reporting the different steps..... ) but the battery current reporting is not working properly: IBAT always 0, and ADCIBATMEASSTATUS is 00 (it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Mar 2025 09:25:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119470/npm1300-ibat-0-and-adcibatmeasstatus-00" /><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/528778?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 09:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78298ddb-9d4f-41a9-830c-e97ba1ecefc5</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;I&amp;#39;m checking internally about the details, but here is our sample code that you can look into:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/npmx/blob/main/drivers/src/npmx_adc.c#L612"&gt;https://github.com/NordicSemiconductor/npmx/blob/main/drivers/src/npmx_adc.c#L612&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/528681?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 15:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef612f55-c616-43ae-9fc0-eace2354bf37</guid><dc:creator>dani_martin</dc:creator><description>&lt;p&gt;EEEYYY!!! It works. I was NOT triggering &lt;span&gt;TASKVBATMEASURE manually. I thought that setting&amp;nbsp;ADCCONFIG.VBATAUTOENABLE to true was enough.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now I&amp;#39;m triggering manually TASKVBATMEASURE and it gives me VBAT and IBAT values.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Did I understand wrong the description of &lt;span&gt;VBATAUTOENABLE&lt;/span&gt;? Or perhaps this mode is not triggering IBAT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/528583?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 11:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54fe9d9c-402b-45dd-ab13-efa0ff1d9996</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;I got a question, are you writing to &lt;span&gt;ADC.TASKVBATMEASURE register every time you want to make a measurement?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/528154?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 08:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06aaab72-d062-416e-9d5d-c83a73c313ba</guid><dc:creator>dani_martin</dc:creator><description>&lt;p&gt;Thanks for the answer. Let&amp;#39;s see if the experts can find what is missing!!&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Yes, I get the same result in both ways of triggering the IBAT measurement: automatically after VBAT measurement (configured in ADCCONFIG) or manually (triggering it in TASKIBATMEASURE)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/528083?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 19:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5162a899-1598-497f-8144-a816a58578be</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;sorry for the delay, I&amp;#39;m back in office and back to analyzing your issue.&lt;/p&gt;
&lt;p&gt;I have checked the different configs and couldn&amp;#39;t find anything obvious, registers like the ADCIBATMEASEN should look correct I think, but there is probably some config missing.&lt;/p&gt;
&lt;p&gt;I have asked the experts about this, hoping they will find out something we both may have missed.&lt;/p&gt;
&lt;p&gt;What happens when you trigger just a single measurement using &lt;a href="https://docs.nordicsemi.com/bundle/ps_npm1300/page/chapters/core_components/saadc/doc/frontpage.html#register.ADCCONFIG"&gt;ADCCONFIG&lt;/a&gt; instead?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/526896?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 11:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93141e20-6afc-4a5c-a303-440acdf0cc65</guid><dc:creator>dani_martin</dc:creator><description>&lt;p&gt;ok, let&amp;#39;s wait until Monday. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/526895?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 11:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7cdba48-39d7-47b7-af81-2befed529e13</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hey Dani,&lt;/p&gt;
&lt;p&gt;Our apologies for the delay. Michal is travelling this week, and will be back on Monday. Are you ok with waiting until then?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/526336?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 11:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7548a08-bdd3-4e09-bb9d-b030c84fc307</guid><dc:creator>dani_martin</dc:creator><description>&lt;p&gt;Any new on this? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/526064?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 20:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1431eb2-a252-4ace-8b4c-fb05a97543ad</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Thank you for the information.&lt;/p&gt;
&lt;p&gt;I will check that internally and get back to you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/525866?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 07:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd5f600-414b-4ab2-a8d7-6bde61daf68a</guid><dc:creator>dani_martin</dc:creator><description>&lt;p&gt;Yes, in any situation&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/525840?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 00:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d91994-cebc-4288-bc80-652865fd0476</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is the&amp;nbsp;IBAT = 0 both when charging the battery and not?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npm1300 IBAT = 0 and ADCIBATMEASSTATUS = 00</title><link>https://devzone.nordicsemi.com/thread/525649?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 07:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf3751b-17e8-46af-85fe-f6ceb16b7c02</guid><dc:creator>dani_martin</dc:creator><description>&lt;p&gt;Just to complete the information: the voltage and current are working fine&amp;nbsp; (see oscilloscope screenshot of IBAT and VBAT for a charging session).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0243.image-_2800_3_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And this is the configuration that I&amp;#39;m applying&amp;nbsp; (It is not in zephyr format, but I think it is easy to understand)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    { LEDDRV0MODESEL, LEDDRV_MODESEL_ERROR },                           // Configure LED_0 for error reporting
    { LEDDRV1MODESEL, LEDDRV_MODESEL_CHARGING },                        // Configure LED_1 for charging reporting
    { LEDDRV2MODESEL, LEDDRV_MODESEL_HOST },                            // Configure LED_2 for host control
    { LEDDRV2SET, 1 },

    { ADCCONFIG,      ADC_ADCCONFIG_VBATAUTOENABLE_AUTOENABLE },        // VBAT measurement every 1s
    { ADCAUTOTIMCONF, ADC_ADCAUTOTIMCONF_MAX_TIME_TEMP },               // NTC meas each 1024 ms and interal temp each 32 ms
    { ADCIBATMEASEN,  ADC_ADCIBATMEASEN_IBATMEASENABLE_ENABLE },        // Enable IBAT measures after every VBAT measure

    { GPIOMODE1,      GPIOS_GPIOMODE1_GPIOMODE_GPOIRQ },                // GPIO1 reports interrupts     (configured in XX)
    { GPIOMODE2,      GPIOS_GPIOMODE2_GPIOMODE_GPOPLW },                // GPIO2 reports Power Loss Warning (configured in POC)
    { POFCONFIG,      POF_ON_CONFIG },                                  // Power fails will reported via GPIO


    // Load Switch
    {LDSWCONFIG,  LDSWCONFIG_SOFT_START_DISABLED   },                   // Disable soft start for LDSW1 and LDSW2
    
    // battery configuration
    { ADCNTCRSEL,     ADC_ADCNTCRSEL_ADCNTCRSEL_10K },                  // Battery has a 10kOhm NTC
    {BCHGDISABLESET,  BCHGDISABLESET_IGNORE_NTC},                       // Ignore NTC

    // Charging
    { BCHGVTRICKLESEL, BCHGVTRICKLESEL_2V9},                            // Minimun voltage to start constant current charging (2.9V)
    { BCHGISETMSB,     BCHGISETMSB_215MA },                             // Charging current 215mA (MSB)
    { BCHGISETLSB,     BCHGISETLSB_215MA },                             // Charging current 215mA (LSB)
    { BCHGVTERM,       BCHARGER_BCHGVTERM_BCHGVTERMNORM_4V20 },         // Voltage to change from constant current charging to costant voltage charging while normal temp (4.2V)
    { BCHGVTERMR,      BCHARGER_BCHGVTERM_BCHGVTERMNORM_3V60 },         // Voltage to change from constant current charging to costant voltage charging while warm temp (3.6V)
    { BCHGITERMSEL,    BCHGITERMSEL_SEL20},                             // Current to stop charging in contant voltage (20% of charging current, so 43mA)
    { BCHGCONFIG,      BCHGCONFIG_ENABLE_CHARING_IF_WARM},              // Enable Charging if battery is warm


    // Discharging
    { BCHGISETDISCHARGEMSB,     BCHGISETDISCHARGEMSB_1000MA },           // Discharging current limit of 1 A (MSB)
    { BCHGISETDISCHARGELSB,     BCHGISETDISCHARGELSB_1000MA },           // Discharging current limit of 1 A (LSB)

    //Enable charging
    { BCHGENABLESET,  BCHARGER_ENABLECHARGING },   // Enable Battery Charging and cool charging
    
    {TASKAUTOTIMUPDATE, ADC_TASKAUTOTIMUPDATE_UPDATEAUTOTIM}, // Auto update NTC and DIE temp measurements&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>