<?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>SPI MISO is missing pulldow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20430/spi-miso-is-missing-pulldow</link><description>Hello,
I did used nrf_drv_spis.c (SDK SPI Slave) with nrf_drv_spi.c (SDK SPI Master). And I notice that both module configure SPI MISO line as input without any pull (neither up nor down).
In datasheet for SPIS block is written &amp;quot;The MISO line is set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Aug 2017 08:33:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20430/spi-miso-is-missing-pulldow" /><item><title>RE: SPI MISO is missing pulldow</title><link>https://devzone.nordicsemi.com/thread/79654?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 08:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90bfd2cf-18bb-4607-b6e6-2b0bfb54e664</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;It&amp;#39;s not a good solution to force a pull down for the SPI MISO. The SD card need a pull up for the MISO, so it would increase consumption or/and make it not working. I think the best solution is to allow the configuration of the pull in &lt;code&gt;nrf_drv_spi_config_t&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO is missing pulldow</title><link>https://devzone.nordicsemi.com/thread/79653?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 20:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50546167-9edd-4b94-9349-8647f3d3e79e</guid><dc:creator>vit bernatik</dc:creator><description>&lt;p&gt;SDK can be modifed in function: &lt;code&gt;nrf_drv_spi_init()&lt;/code&gt; the line: &lt;code&gt;nrf_gpio_cfg_input(miso_pin, NRF_GPIO_PIN_NOPULL);&lt;/code&gt; can be changed into: &lt;code&gt;nrf_gpio_cfg_input(miso_pin,NRF_GPIO_PIN_PULLDOWN);&lt;/code&gt;. This will solve possible higher nRF consumption when SPI MISO is disconnected when Chip Select is disabled.&lt;/p&gt;
&lt;p&gt;Adding pull down has also disadvantage - it actually increase power consumption of SPI slave during SPI transfer and it may slow down maximum possible SPI frequency depending on SPI Slave MISO pin drive strength. So the best if user disables MISO pulldown every time he activate ChipSelect of any SPI slave. And reenable MISO pulldown just after deselects SPI Chip Select.&lt;/p&gt;
&lt;p&gt;Note that floating pin power consumption is hard to detect. It may not be visible on development kit or when you have attached logic analyzer, but it may appear in product. To check if your input pin is configured properly and not posing possibility to increase chip power consumption you can check with signal generator. Set it to 1MHz square wave. Amplitude according your Vcc. Duty 50%. Then add generator signal to input pin but through some big serial resistor (for example 300K ohm). If input pin has pull down or externally the line is pulled down/up then nRF chip power consumption shall not increase. If pin is set input and there is no driver setting line to 0 or 1 then attached signal generator start to toggle pin and nRF chip internal logic start to detect pin changes and it start to have high power consumption. Power consumption is proportional to frequency. So if you increase frequency more than 1Mhz to the nRF floating input then power consumption of nRF chip also increases. For my measurement on floating input pin I measured instead of 2uA in sleep 100uA (@1MHz input signal).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO is missing pulldow</title><link>https://devzone.nordicsemi.com/thread/79652?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 11:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb1b1d60-11ba-4d99-978b-99d2171a5198</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, we should fix this. I know you already have a fix for the issue, it would be good if you can share it here also. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>