<?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 usage question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119360/npm1300-usage-question</link><description>Hello, 
 I am using the nPM1300 IC on a custom PCB with the nRF5340 + nRF7002 + nPM1300 configuration. sdk v2.8.0 
 I am trying to read the battery status (ADC value) via TWI , but I am unable to retrieve the battery information. 
 I have a few questions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Mar 2025 11:41:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119360/npm1300-usage-question" /><item><title>RE: NPM1300 usage question</title><link>https://devzone.nordicsemi.com/thread/526136?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 11:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ed57b27-d659-4e1f-873a-162a435cffa7</guid><dc:creator>SergeiOv</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In your source code you&amp;#39;re not using i2c communication properly.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;d like to access registers directly without much abstraction, I suggest using `mfd_npm1300_reg_*` functions (please refer to&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/doxygen/html/group__mdf__interface__npm1300.html"&gt;docs.zephyrproject.org/.../group__mdf__interface__npm1300.html&lt;/a&gt; for API).&lt;/p&gt;
&lt;p&gt;But to take the most out of Zephyr abstractions, consider using standard APIs (e.g. sensor API for ADC measurements: &lt;a href="https://docs.zephyrproject.org/latest/doxygen/html/sensor_8h.html"&gt;docs.zephyrproject.org/.../sensor_8h.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Take a look at this sample as well: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/shields/npm1300_ek/src/main.c"&gt;github.com/.../main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NPM1300 usage question</title><link>https://devzone.nordicsemi.com/thread/525168?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 22:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:544d62a8-7778-4917-b671-cc2ac1ff7d24</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]When using the &lt;strong&gt;nPM1300&lt;/strong&gt;, is it necessary to export the configuration from the &lt;strong&gt;nPM PowerUP app&lt;/strong&gt; as an overlay and include it in the project during development?[/quote]
&lt;p&gt;It is not necessary per se, but an easy way to configure everything and then include it in your project.&lt;/p&gt;
[quote user=""]If so, where should this overlay be placed in &lt;strong&gt;VS Code&lt;/strong&gt;? (Is the part shown in the image correct?)&amp;nbsp;[/quote]
&lt;p&gt;That looks fine I think.&lt;/p&gt;
&lt;p&gt;Could you show me what do you get as a console output?&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></channel></rss>