<?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>Ship/Hibernate mode firmware logic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115188/ship-hibernate-mode-firmware-logic</link><description>Hello, 
 I&amp;#39;m working with the npm1300, and I was recently trying to implement sleep/hibernate mode. The datasheet states that before entering these modes we should check if we are connected to VBUS. It is suggested that you check the register EVENTSVBUSIN0SET</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Oct 2024 05:35:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115188/ship-hibernate-mode-firmware-logic" /><item><title>RE: Ship/Hibernate mode firmware logic</title><link>https://devzone.nordicsemi.com/thread/504920?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 05:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63ba8d3-06db-47dc-a683-5c06b2e09230</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I will forward the feedback&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t hesitate to create a new case if other questions pops up i the future&lt;/p&gt;
&lt;p&gt;Regards and happy weekend&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ship/Hibernate mode firmware logic</title><link>https://devzone.nordicsemi.com/thread/504843?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 13:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eb00323-4071-4a16-8256-e797396541f1</guid><dc:creator>Yaxit</dc:creator><description>&lt;p&gt;I&amp;#39;m using a custom driver (the one in zephyr is not very flexible and complete).&lt;/p&gt;
&lt;p&gt;I suggest updating the datasheet and refer to the STATUS register then instead of the EVT register.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ship/Hibernate mode firmware logic</title><link>https://devzone.nordicsemi.com/thread/504838?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 13:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f478de-ec04-4793-b32f-287c9ac24145</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;To set it in shipmode you can do like in this thread&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108668/wirelessly-setting-an-npm1300-pmic-in-ship-mode-thanks?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/108668/wirelessly-setting-an-npm1300-pmic-in-ship-mode-thanks?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you can also find the command &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/8005d4e87b9bcba25f441a51f4f5d29b541022b9/drivers/regulator/regulator_npm1300.c#L492"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Other then that I agree with Dacr, just checking the register is nice and easy&amp;nbsp;&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><item><title>RE: Ship/Hibernate mode firmware logic</title><link>https://devzone.nordicsemi.com/thread/504756?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 19:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b5a9448-ec1a-4b82-ab39-9ccc1f4a2632</guid><dc:creator>Yaxit</dc:creator><description>&lt;p&gt;Thanks, don&amp;#39;t know how I missed this one. If this is the recommended method, maybe it should be updated on the datasheet :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ship/Hibernate mode firmware logic</title><link>https://devzone.nordicsemi.com/thread/504731?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 16:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd20b894-eb45-411e-abca-2890ebe458af</guid><dc:creator>dacr</dc:creator><description>&lt;p&gt;Hi Yaxit,&lt;/p&gt;
&lt;p&gt;You can read the VBUSINSTATUS register to check if USB is connected:&lt;br /&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/pastedimage1727885062416v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>