<?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>NRF52840 v1 vs v2 TWIM pins leak consumption migitation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81399/nrf52840-v1-vs-v2-twim-pins-leak-consumption-migitation</link><description>Hi, 
 I have a circuit with an I2C peripheral on a separate power switch. There is excessive power consumption (about 50&amp;#181;A extra) due to leakage after TWIM is disabled and the power switch is off. On 52840v1, this code eliminated the leak: 
 But on 52840v2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Nov 2021 12:57:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81399/nrf52840-v1-vs-v2-twim-pins-leak-consumption-migitation" /><item><title>RE: NRF52840 v1 vs v2 TWIM pins leak consumption migitation</title><link>https://devzone.nordicsemi.com/thread/337478?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 12:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c21a29b6-a13c-4796-8032-4a648b650be9</guid><dc:creator>plotkin1996</dc:creator><description>&lt;p&gt;It turns out that replacing nrfx_twim_enable/disable (which is useless, as driver runs it for every transaction internally) with pm_device_state_set did the trick. Still something to be wary about, as behavior is different between hardware releases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>