<?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>High power consumption when using SPIM3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104177/high-power-consumption-when-using-spim3</link><description>I am working with an nRF52840 on a custom board with an SD card connected on SPI, running Zephyr 3.2.99/NCS 2.2.0. 
 I would like to use SPI frequency &amp;gt;8 MHz for the SD card, which would require using the SPIM3 instance. When using an Otii Arc to measure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Sep 2023 12:21:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104177/high-power-consumption-when-using-spim3" /><item><title>RE: High power consumption when using SPIM3</title><link>https://devzone.nordicsemi.com/thread/448153?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 12:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35cbde72-6d39-4b7a-b725-e4e2cdd2e609</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Martin Sollie"]just like the radio uses power only when it needs to.[/quote]
&lt;p&gt;Radio is always disabled after use, to achieve lowest possible current.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In order to achieve low power consumption, we recommend that you follow the description in the PS:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/spim.html?cp=5_0_0_5_24_4#concept_twi_low_power"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/spim.html?cp=5_0_0_5_24_4#concept_twi_low_power&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In addition to the above, as you&amp;#39;ve also pointed out, errata #195 is required to enter lowest possible sleep mode after using (and disabling) the peripheral.&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><item><title>RE: High power consumption when using SPIM3</title><link>https://devzone.nordicsemi.com/thread/448002?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 15:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45310eb1-9257-4695-90a1-147615b596b2</guid><dc:creator>Martin Sollie</dc:creator><description>&lt;p&gt;Is&amp;nbsp;the increased standby current of SPIM3&amp;nbsp;not related to the product anomaly then, but simply expected, even when using SPIM3 at low frequencies (&amp;lt;= 8 MHz)? In other words, should I expect to see approximately the same increase in current if the anomaly were to be fixed in a later revision of the nRF52840?&lt;/p&gt;
&lt;p&gt;I would not have expected SPIM3 to draw so much current when not actively in use, just like the radio uses power only when it needs to. The SD card is used by a logging backend, but it can be a long time between each write. The increase in standby current consumption when using SPIM3&amp;nbsp;without manually suspending instead of SPIM2 is extreme.&lt;/p&gt;
&lt;p&gt;The situation would be more understandable&amp;nbsp;if the &amp;quot;stuck&amp;quot; high power consumption is the result of the anomaly also affecting idling between transfers, and not just a failure to properly disable the peripheral when un-initializing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption when using SPIM3</title><link>https://devzone.nordicsemi.com/thread/447987?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 14:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c0adae0-5190-4f8c-96ac-f83b01edf266</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SPIM3 does draw more power when enabled compared to other (slower) SPIM peripherals.&lt;/p&gt;
&lt;p&gt;The driver port, zephyr/drivers/spi/spi_nrfx_spim.c, does not automatically uninit the SPIM peripheral. This has to be done by the application at this time, using the call to &amp;quot;pm_device_action_run(my_spi_dev, PM_DEVICE_ACTION_SUSPEND);&amp;quot;&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>