<?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>NRF52832 Sharing SPI Lines with FTDI SPI-USB Bridge</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22816/nrf52832-sharing-spi-lines-with-ftdi-spi-usb-bridge</link><description>Hi all, 
 I am making a device which involves using nfr52832(PCA10040) to communicate with a NAND flash through spi to store data acquired from the ADC. After all the data has been stored, the device is then plugged into an FTDI spi-usb (C232hm) to download</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Jun 2017 13:44:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22816/nrf52832-sharing-spi-lines-with-ftdi-spi-usb-bridge" /><item><title>RE: NRF52832 Sharing SPI Lines with FTDI SPI-USB Bridge</title><link>https://devzone.nordicsemi.com/thread/89706?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 13:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a206db7c-fccf-4a57-9f11-016f317bc20c</guid><dc:creator>bryanhsieh</dc:creator><description>&lt;p&gt;Thank you so much for answering all the questions, I think I will follow your suggestion and use an
output to tell mcu to set spi to tri.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Sharing SPI Lines with FTDI SPI-USB Bridge</title><link>https://devzone.nordicsemi.com/thread/89708?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 13:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c99fb77-0c46-40cc-9eae-f3af74e6a429</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Leaking power into a pin while the power is off could potentially cause the current to leak into VDD via internal clamping diodes on the pin (or ESD protection diodes). You could potentially be powering the chip through a GPIO,  so this should be avoided.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Sharing SPI Lines with FTDI SPI-USB Bridge</title><link>https://devzone.nordicsemi.com/thread/89709?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 13:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e9b383-6193-4bbb-8e0c-cc74390f160d</guid><dc:creator>bryanhsieh</dc:creator><description>&lt;p&gt;Hi thanks for the suggestion. Do you have any idea why as to why the problem still exists even when the board is not powered? Because originally I was thinking of putting a diode on Vdd to stop C232 from powering the board, so when it is downloading data only the nand flash is powered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Sharing SPI Lines with FTDI SPI-USB Bridge</title><link>https://devzone.nordicsemi.com/thread/89711?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 13:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b04997-5e3b-4407-971e-2eea0fc6100e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Q: If I am correct when spi is not used the chip defaults back to all pins in tri state?&lt;/p&gt;
&lt;p&gt;A: No, If you have initalized the SPI, the SCK pin will be a output pin and the pin is therefore not in the default configuration(=high impedance mode). Even if you call nrf_drv_spi_uninit(), I belive you have to manually set the SPI pins to the default configuration with &lt;code&gt;nrf_gpio_cfg_default(pin)&lt;/code&gt; afterwards.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Maybe the solution with the output from the C232 cable is the easiest? When a input pin on the nRF is pulled down/up, you make sure that the nRF disables the SPI and that the pins are set to the default configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Sharing SPI Lines with FTDI SPI-USB Bridge</title><link>https://devzone.nordicsemi.com/thread/89707?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bd62c20-b68b-4e15-a965-66cc82c0a9cb</guid><dc:creator>bryanhsieh</dc:creator><description>&lt;p&gt;To Sigurd,&lt;/p&gt;
&lt;p&gt;Hi thanks for the quick response. Even when the pca10040 is not powered I am still getting errors when inquiring the NAND flash id ( should be 2C36 but I am getting 10A1), if I dont share SCK then I get the correct id.
If I am correct when spi is not used the chip defaults back to all pins in tri state? As when it is powered but running an example that doesnt use the spi peripheral, sharing spi seems to be working.&lt;/p&gt;
&lt;p&gt;So should I use a mux in between or should I use an output from the C232 cable to tell the mcu to put all spi lines to tri?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Sharing SPI Lines with FTDI SPI-USB Bridge</title><link>https://devzone.nordicsemi.com/thread/89710?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 11:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c78b76-1cb0-4fde-bd98-f0a893362f87</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should not have any voltage on the I/O pins when the chip is not powered. When sharing the SPI lines with another master, it’s recommend to put the SPI pins in the default configuration when the other master is being used. See &lt;a href="https://devzone.nordicsemi.com/question/79398/set-spi-pins-to-tri-state/"&gt;this post&lt;/a&gt; for more information about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>