<?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>Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84458/need-help-with-sd-card-mounting-time</link><description>Hello nordic. I&amp;#39;ve been using the PPK2 to measure the current draw of the nRF9160DK. However, spi peripherals are not included in these measurements. I was told that if you power the peripherals from nRF_ref they would be but I&amp;#39;m not getting any/the right</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Feb 2022 12:42:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84458/need-help-with-sd-card-mounting-time" /><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/352067?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 12:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29165a2e-7d0a-4820-99ec-bcb55037b1e6</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="nWre"]source mode was to be able to measure the SPI peripherals. [/quote]
&lt;p&gt;Yes of course. So you will need to use Source mode.&lt;/p&gt;
[quote user="Sigurd Hellesvik"]I suggest you stick to ampere mode for measuring.[/quote]
&lt;p&gt;Disregard my previous statement, I were confused for a bit since Source and Ampere showed different measurements. &lt;br /&gt;Then I found that the USB is supplying 5V, while in Source Mode the PPK2 is supplying 3.3V.&lt;br /&gt;This is the reason for the different current measurements. If you want Ampere mode to measure the same as Source, set the Power of the Source Mode to 5V. &lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;strong&gt;Be careful to check if your peripherals can handle 5V.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So both Source Mode is fine.&lt;/p&gt;
&lt;p&gt;I still would recommend every part one at a time and sum it up once, it will give some more insight and a good double check of things.&lt;br /&gt;Then you can measure everything at once and know approx what you should get.&lt;/p&gt;
&lt;p&gt;Did this make sense?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/352057?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 12:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da128045-85a3-40aa-ba1d-bd22b518029b</guid><dc:creator>nWre</dc:creator><description>&lt;p&gt;Why I changed to source mode was to be able to measure the SPI peripherals. If I go back to ampere mode, the peripherals are not included unless supplied by the VDD_nRF but that voltage is not enough to use the peripherals. Can I assume the current draw from perihperals measured from source mode is the same in ampere mode? That is, in source mode, voltage from dk with sensors - voltage from dk = sensor consumption.&lt;br /&gt;&lt;br /&gt;Thank you Sigurd :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/352047?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 11:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77227f5c-f498-43f9-9c0f-846f229445c4</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You connection diagram looks fine.&lt;/p&gt;
&lt;p&gt;Keep in mind that on the nRF9160DK, there are three chips.&lt;/p&gt;
&lt;p&gt;Debugger&lt;br /&gt;nRF9160&lt;br /&gt;nRF52840&lt;/p&gt;
&lt;p&gt;When you measure on the nRF_VDD, you only measure the power consumption of the nRF9160.&lt;/p&gt;
&lt;p&gt;I suggest you stick to ampere mode for measuring.&lt;/p&gt;
&lt;p&gt;Also see &lt;a href="https://devzone.nordicsemi.com/guides/cellular-iot-guides/b/hardware-design/posts/getting-started-with-current-measurements-on-the-nrf9160"&gt; Getting started with current measurements on the nRF9160&lt;/a&gt; for some tips.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/352006?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 10:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69c4e81e-577e-4471-a405-23d58524e172</guid><dc:creator>nWre</dc:creator><description>&lt;p&gt;expanded picture for clarity&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1644401999094v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/351799?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 12:45:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dbf8061-be5a-46bd-8ea5-2abd45ddbbb5</guid><dc:creator>nWre</dc:creator><description>&lt;p&gt;Hi! This is my setup(forgive my paint skills) when using source mode:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1644324140227v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;I do have a usb connected to the DK for programming and that would explain the noise. However, can I split the vout from the PPK2 to connect to both nrf_ref on P22 AND supply on P21? If not, would there be a reasonable assumption that the current from ampere mode is the correct one and the added one I get in source mode is due to noise? I should also point out that the ground from PPK2 is connected to the negative terminal on P21.&lt;br /&gt;&lt;br /&gt;Regarding the second part: This would be ideal, however the sd-card mounting procedure takes too much time when it is needed and data is lost. I have created a second ticket for this, thank you very much for your help.&lt;br /&gt;&lt;br /&gt;Edit: When in ampere mode, I have connected it according to the instructions on the PPK2 tutorial video from nordic on youtube.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/351794?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 12:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:531b4d91-67f1-4153-996e-915ea656dc62</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="nWre"]My first question is: when using the ppk2 in source mode, I get 3,39mA but in ampere mode, I get 2,5mA. What should I go on? Is it the voltage regulator that experiences a loss when in source mode?[/quote]
&lt;p&gt;Both modes should measure the same current if you have set up the measurement correctly.&lt;br /&gt;Source Mode and Ampere Mode should be connected in two different ways. Could you send pictures of how you have connected the PPK2 in the different modes?&lt;/p&gt;
&lt;p&gt;Did you remember to prepare the DK for power measurement? See &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/hw_measure_current.html?cp=2_0_5_4"&gt;Measuring current for the nRF9160&lt;/a&gt;.&lt;/p&gt;
[quote user="nWre"]and also: do you know of a way to idle the sd-card in a lower current than 2,18mA? I have ordered transistor and will try to &amp;quot;cut&amp;quot; the power once it is mounted but I fear it will not work to cut power to a mounted device.[/quote]
&lt;p&gt;Yea, once it is mounted, it will work poorly to just remove the power from it.&lt;/p&gt;
&lt;p&gt;SD Card storage is for long time storage. So my guess is that you will write to it infrequently.&lt;br /&gt;If this is the case, I suggest that you only turn the SD Card reader on when you need to write to it.&lt;br /&gt;So Power -&amp;gt; Mount -&amp;gt; Read/Write -&amp;gt; Unmount -&amp;gt; Poweroff.&lt;/p&gt;
&lt;p&gt;To save more power for the nRF, concider also disabling the SPI peripheral when not using it.&lt;/p&gt;
&lt;p&gt;Would this work for your application?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/351784?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 12:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7571d126-8fb4-49ea-8472-3a420336473a</guid><dc:creator>nWre</dc:creator><description>&lt;p&gt;Hi again Sigurd! And thank you! I&amp;#39;ve now been able to measure the total current. What I&amp;#39;ve found is this:&lt;br /&gt;&lt;br /&gt;only the DK: &lt;span style="font-family:Arial;font-size:10pt;font-style:normal;"&gt;3,39mA&lt;/span&gt;&lt;br /&gt;The DK and sensors: &lt;span style="font-family:Arial;font-size:10pt;font-style:normal;"&gt;4,06mA&lt;/span&gt;&lt;br /&gt;The DK, sensors and SD-card: &lt;span style="font-family:Arial;font-size:10pt;font-style:normal;"&gt;6,17mA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My first question is: when using the ppk2 in source mode, I get 3,39mA but in ampere mode, I get 2,5mA. What should I go on? Is it the voltage regulator that experiences a loss when in source mode?&lt;br /&gt;&lt;br /&gt;and also: do you know of a way to idle the sd-card in a lower current than 2,18mA? I have ordered transistor and will try to &amp;quot;cut&amp;quot; the power once it is mounted but I fear it will not work to cut power to a mounted device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/351531?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 12:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0645fa0-6ae3-449d-ac55-41677163df32</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="nWre"]So the transistor would function as an and gate of sorts?[/quote]
&lt;p&gt;A very simplified way to look at a transistor is a switch controlled by an electronic signal.&lt;/p&gt;
[quote user="nWre"] I&amp;#39;m new to the electronics part of this, would any transistor do or is there a specific one I need?[/quote]
&lt;p&gt;There are a lot of good tutorials on transistors on the internet. I recommend you have a look at a couple of those, as the ones made them for sure know more than me about transistors and are likely better at the explaining part.&lt;/p&gt;
[quote user="nWre"] Do I need anything more than a transistor, breadboard and wire?[/quote]
&lt;p&gt;Yes, you would need a breadboard and some wire for prototyping (often called &amp;quot;jumper wire&amp;quot; or &amp;quot;dupont wire&amp;quot;).&lt;/p&gt;
[quote user="nWre"]When using the ppk2 as source, can I jump the vout to both the dk and the sd-card reader without the transistor using breadboard and wires?[/quote]
&lt;p&gt;To connect the PPK2 to two different devices, you will need to branch the cable in two. &lt;br /&gt;A wire to do is not included in the PPK2 kit. I would say the simplest way to do this is to use a breadboard and dupont wires.&lt;br /&gt;However, as long as you are able to connect all three devices,it will work.&lt;br /&gt;There are a lot of ways to do this. Another alternative would for example be to solder together three cables to make a three-way cable.&lt;/p&gt;
&lt;p&gt;If you do not include the transistor, you will not be able to toggle the power of the SD-Card reader, and it will be on all the time.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/351521?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 12:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97222f9c-3cff-443c-bc2a-e3800a4733c0</guid><dc:creator>nWre</dc:creator><description>&lt;p&gt;Hi Sigurd and thank you! So the transistor would function as an and gate of sorts? I&amp;#39;m new to the electronics part of this, would any transistor do or is there a specific one I need? Do I need anything more than a transistor, breadboard and wire? When using the ppk2 as source, can I jump the vout to both the dk and the sd-card reader without the transistor using breadboard and wires?&lt;br /&gt;&lt;br /&gt;I will create a new ticket for the last question, thank you very much for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with sd-card mounting time</title><link>https://devzone.nordicsemi.com/thread/351516?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 12:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb8928ff-8146-41e0-82c3-a433592dd5bc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user=""]2. I need to be able to turn on and off power to the sd-card which requires a configurable pin. That is, I need a gpio pin with an output equal to VDD[/quote]
&lt;p&gt;Supplying peripherals from the GPIO pins are not recommended. To see the capabilities of the GPIO pins, see &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/gpio.html?cp=2_0_0_5_3_4#unique_1131180181"&gt;GPIO: Electrical specification&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I would recommend using a transistor for toggling the power to the SD-Card module. For example like this:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/sd_5F00_card_5F00_transistor.png" /&gt;&lt;/p&gt;
[quote user=""]1. I need to measure spi-consumption on the PPK2 but the nRF_ref does not provide the same voltage as VDD[/quote]
&lt;p&gt;If your goal is to measure the current of the nRF9160 and the SD Card reader, I think the simplest solution would be to power both directly from the PPK2 in Source Mode, like this:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/sd_5F00_card_5F00_PPK2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Will this solution work for you?&lt;/p&gt;
[quote user=""]3. Is there a way to run the mounting procedure in parallel with data recording to RAM such that I don&amp;#39;t miss data? How?[/quote]
&lt;p&gt;This question is quite different from the other two. &lt;br /&gt;To keep DevZone tidy, please create a new ticket for this question?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>