<?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 manually select CS pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17770/spi-manually-select-cs-pin</link><description>Hello ! How can I configure nrf_drv_spi with me writing the CS pin to LOW and HIGH whenever I want to address a different peripheral ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Oct 2018 09:30:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17770/spi-manually-select-cs-pin" /><item><title>RE: SPI manually select CS pin</title><link>https://devzone.nordicsemi.com/thread/154025?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 09:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc1f1716-23e0-4ae5-8bcb-9ada43826dee</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, if you want to control it your self with the GPIO HAL then you can initialize the SPI driver with .ss_pin =&amp;nbsp;&lt;span&gt;NRF_SPIS_PIN_NOT_CONNECTED.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI manually select CS pin</title><link>https://devzone.nordicsemi.com/thread/153769?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 10:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcacf107-43cf-4d5d-ad7b-a199ffd77621</guid><dc:creator>TEJASWINI J</dc:creator><description>&lt;p&gt;Hi Robert and Roger Clark!&lt;/p&gt;
&lt;p&gt;We can disconnect a&amp;nbsp; PIN during the SPI Bus Initialization itself right?&amp;nbsp; ( .ss_pin = NULL)&lt;/p&gt;
&lt;p&gt;or is it necessary&amp;nbsp; to have not connected?&lt;/p&gt;
&lt;p&gt;Please correct me if I am wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI manually select CS pin</title><link>https://devzone.nordicsemi.com/thread/68453?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 10:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da9d51e-244e-47d7-b46e-12818e12ca1a</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Generally just enabling the CS pin all the time can cause problems&lt;/p&gt;
&lt;p&gt;Often the protocol for peripherals involves sending 1 or 2 byes with a register address, followed by writing or reading multiple bytes&lt;/p&gt;
&lt;p&gt;However, devices often rely on CS going low to indicate that a new transfer is about to take place and that the next data from the MCU is a command e.g. READ REGISTER&lt;/p&gt;
&lt;p&gt;You should check the data sheet for the peripheral you are using, to make absolutely sure it allows CS to be enabled all the time&lt;/p&gt;
&lt;p&gt;(Personally I would not do this, because if you get out of sync you will be sending or receiving garbage , to or from the peripheral&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI manually select CS pin</title><link>https://devzone.nordicsemi.com/thread/68454?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 09:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ca55eba-6134-4b83-922f-8f186ab4afd9</guid><dc:creator>djqtsg</dc:creator><description>&lt;p&gt;Can I just use GPIO function to set or clear the CS pin ONCE in the beginning since I have only one SPI slave device connected my MCU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI manually select CS pin</title><link>https://devzone.nordicsemi.com/thread/68452?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2016 10:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf78cfe-7d04-4c59-b364-f7937bd7afd0</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;Thank you Roger !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI manually select CS pin</title><link>https://devzone.nordicsemi.com/thread/68451?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 22:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b9c8b10-df64-492f-b635-6c1abe66d2b4</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;You can define the SS pin as not connected&lt;/p&gt;
&lt;p&gt;NRF_SPIS_PIN_NOT_CONNECTED&lt;/p&gt;
&lt;p&gt;See&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.0.0%2Fgroup__nrf__spis__hal.html&amp;amp;cp=4_0_0_6_6_27_0_0&amp;amp;anchor=gacb5fedfd2641e3d94b70cb0981a6ae59"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then use GPIO in you code to assert the CS pin youself before calling the nrf_drv_spi_transfer and clear it in the completion callback etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>