<?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 current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83127/high-current-consumption-when-we-are-using-accelerometer-lis3dh-with-spi-with-no-transfer-at-all-on-spi</link><description>we have high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI 
 
 We have 2 SPI’s in the circuit. The first SPI is connecting to serial Flash. It consumes almost nothing when there is no transfer. 
 When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Dec 2021 12:59:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83127/high-current-consumption-when-we-are-using-accelerometer-lis3dh-with-spi-with-no-transfer-at-all-on-spi" /><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345472?ContentTypeID=1</link><pubDate>Thu, 30 Dec 2021 12:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c82263f0-5694-42dc-b21a-8859e4e5d6f9</guid><dc:creator>alonmat</dc:creator><description>&lt;p&gt;the following steps solved the problem:&lt;/p&gt;
&lt;p&gt;1) Removing the pullup resitors for SCL and SDO&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;2) writing 90h to the accelrometer register 1Eh&amp;nbsp; &amp;nbsp;(canceling the SDO internal pullup)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thnaks for helpful assitance &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345423?ContentTypeID=1</link><pubDate>Thu, 30 Dec 2021 07:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:633bd7cf-e896-4bb9-b82b-6c20fc3e4868</guid><dc:creator>alonmat</dc:creator><description>&lt;p&gt;We are trying to check it without pullup resistors on SPI lines&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345263?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 14:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2ab421-d82f-497b-8da0-1a32676a8120</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I understand, but the problem is lying on the pullups you are using for the I2C it&amp;#39;s where it&amp;#39;s drawing current when you switch to SPI.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345212?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 09:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b86d47a9-2a6a-4a17-8fcf-800ebc1417c2</guid><dc:creator>alonmat</dc:creator><description>&lt;p&gt;in I2C, we doesn&amp;#39;t have any problems. when no transfer of data, there is no currrent consumptiomn.&lt;/p&gt;
&lt;p&gt;the problem is only in SPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345210?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 09:38:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:615e116f-3483-4338-98a6-b86ab55ecb7b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Alon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The errata is applied only for some built code and the workaround is usually implemented already in the SDK. So most likely it&amp;#39;s not the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your case it seems the pullups is causing the trouble ?&amp;nbsp;&lt;br /&gt;Is it possible to remove the pullups and use the internal pullup on the pin when you are communicate via I2C&amp;nbsp; ?&amp;nbsp;&lt;br /&gt;On SPI you don&amp;#39;t need to use pullups.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345199?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 08:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc879804-036c-4869-81d0-f3504be1e6d2</guid><dc:creator>alonmat</dc:creator><description>&lt;p&gt;1) SPI driver is implemented on version 1.6.4 and works with DMA&lt;br /&gt;&lt;br /&gt;2) SPI consume a lot of current, even if it not actually transfer data :&lt;/p&gt;
&lt;p&gt;- the other SPI to flash doesn&amp;#39;t consume current if no data is transfered.&lt;br /&gt; &lt;br /&gt; - even if only initializing the SPI using nrfx_spim_init cause the current consumption to increase significantly&lt;br /&gt; &lt;br /&gt; - it seems the driver init function assert the CLK, MISO and MOSI to ground and this cause &lt;br /&gt; &lt;br /&gt; - changing the SPI mode clock to mode 3 - change the CLK default to high&lt;br /&gt; &lt;br /&gt; - changing NRFX_SPIM_MISO_PULL_CFG to 0 - changed the default MISO to high&lt;br /&gt; &lt;br /&gt; - MOSI is set to ground and I think this cause a problem.&lt;br /&gt; &lt;br /&gt; - calling nrfx_spim_uninit reduce the current but not all of the current before the SPI initialized&lt;br /&gt; &lt;br /&gt; - also setting all SPI to input with PULLUP reduce the current but not all of the current before the SPI initialized&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345194?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 08:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beb634aa-9b2a-4f58-94cb-e65981fa9492</guid><dc:creator>alonmat</dc:creator><description>&lt;p&gt;about the errata.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;we are using SPIM2 and we have configured interrupts on INT1 and INT2 of the accelerometer to the nordic cpu.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;do you think is it applied to my case ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345191?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 08:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04d5813b-8d63-4d17-a37e-267bac689fb1</guid><dc:creator>alonmat</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/SPI-accelerometer-issue.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are using Pullup in the SPI signals&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: high current consumption when we are using Accelerometer lis3dh with SPI with no transfer at all on SPI</title><link>https://devzone.nordicsemi.com/thread/345142?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 16:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71c0435c-f720-40a4-a79c-15c46cdd75d4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Alon,&lt;/p&gt;
&lt;p&gt;Do you use any pull up resistors in your SPI wire connections ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you share the schematic on how you connect I2C and SPI to the chip ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also have you check if&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_89.html?cp=4_2_1_1_1_26"&gt; this errata &lt;/a&gt;is applied for you ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>