<?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>Disable VBUS reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96088/disable-vbus-reset</link><description>Hi, 
 I have designed a hardware with NRF52840 and i connected VBUS pin for future operation. Now i want to disable reset to disable wakeup from SYSoff mode by VBUS rising) 
 Can i use NRF_POWER -&amp;gt; RESETREAS or any other register exist to detect it ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jan 2023 14:47:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96088/disable-vbus-reset" /><item><title>RE: Disable VBUS reset</title><link>https://devzone.nordicsemi.com/thread/406888?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 14:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a02cc673-28d5-461a-ab2f-4c8b7dc06108</guid><dc:creator>hamit</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for help, below code was ok for my application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;...init main...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt; // If reset caused by VBUS rising/falling edge, ignore and continue sysoff mode&lt;br /&gt; uint32_t resetReason = NRF_POWER -&amp;gt; RESETREAS;&lt;br /&gt; NRF_POWER-&amp;gt;RESETREAS = 0xFFFFFFFF; // Clear Reset Flags.&lt;br /&gt; if (resetReason &amp;amp; 0x00100000)&lt;br /&gt; {&lt;br /&gt; &amp;nbsp;// PREPARE SYSOFF AGAIN&lt;br /&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;Regards,&lt;/p&gt;
&lt;p&gt;Hamit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable VBUS reset</title><link>https://devzone.nordicsemi.com/thread/406843?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 12:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06240d20-d783-4222-bfb5-76836b8c94f2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, VBUS DETECT will give a wakeup condition when the device is system-off: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/89194/wake-on-vbus-connected-but-not-disconnectedw/374061"&gt;RE: Wake on VBUS connected but not disconnectedW&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Can i use NRF_POWER -&amp;gt; RESETREAS or any other register exist to detect it ?[/quote]
&lt;p&gt;RESETREAS will reflect the&amp;nbsp;reset source, including if it is from VBUS detect.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>