<?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 overwrite by GPIO input</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55376/spi-overwrite-by-gpio-input</link><description>Hello . 
 We have an issue with the SPI channel. 
 We found out that when our GPIO config as SPI the CS drawn a lot of current when it connect to the slave device device AD7770. It is most problematic when we want to be on lowest current when no communicate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2019 17:04:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55376/spi-overwrite-by-gpio-input" /><item><title>RE: SPI overwrite by GPIO input</title><link>https://devzone.nordicsemi.com/thread/224538?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 17:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f145a885-dd85-4513-9e6d-3322b1e4113c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;How about using one of the SPIM instances that don&amp;#39;t have hardware support for CSN (e.g 0-2), then you can configure/use the CSN pin as you see fit at any time. Just set CSN pin to&amp;nbsp;NRFX_SPIM_PIN_NOT_USED during init of SPIM (then the driver will not use the CSN pin at all). Then you can from the application set CSN as any GPIO as you wish at any time, though you likely want to set it low before you start spi transfer, and clear it afterwards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI overwrite by GPIO input</title><link>https://devzone.nordicsemi.com/thread/224537?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 16:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea2e1e3a-d8b6-462d-804f-84a474b63c22</guid><dc:creator>Bar</dc:creator><description>&lt;p&gt;Hi Kenneth. I found the reason for the current. The AD7770 with no power make a path threw the protecting diode from CS &amp;quot;1&amp;quot; to VDD &amp;quot;0&amp;quot;. So I need an input. I try to make the SPI disable then the SEL.CS disconnect (there isn&amp;#39;t unused in the SPI config). and then config that pin to GPIO input. But when I need again the SPI to active I need to reconfig it as in SPI_init. and for that I need first uninit to that SPI.&lt;/p&gt;
&lt;p&gt;Bar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI overwrite by GPIO input</title><link>https://devzone.nordicsemi.com/thread/224432?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 12:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd4340fa-b9f9-4462-bbb6-bb361375097d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not sure how the CS pin is drawing current, can it be that VDD to&amp;nbsp;&lt;span&gt;AD7770 is cut, and you are sourcing current through the CS pin to the AD7770? If you have an unused GPIO I assume you could just disable SPIM, reconfigure PSEL.CSN to unused pin, configure GPIO, and enable SPIM again.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>