<?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>Can I control CSN pin as output in slave mode on nrf52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62916/can-i-control-csn-pin-as-output-in-slave-mode-on-nrf52840</link><description>I think spi slave pins should set as input but I want to control CSN pin as output in spi slave mode on nrf52840. Is it possible it? 
 I know that CSN pin is controlled by external chip but my external chip can not control it. so I want to control it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jun 2020 11:56:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62916/can-i-control-csn-pin-as-output-in-slave-mode-on-nrf52840" /><item><title>RE: Can I control CSN pin as output in slave mode on nrf52840?</title><link>https://devzone.nordicsemi.com/thread/256421?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 11:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83cc1241-cceb-47f0-b8e0-7c3c43972555</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;The SPI protocol specification dictates the behavior of a SPI slave device, and it may not be the one controlling the slave select pin.&lt;br /&gt;The slave select pin is used by the SPI master device to initiate comunication with specific devices on a bus shared by multiple slaves - it would therefore violate the SPI specification and possibly cause lock-ups and errorous communication if a slave was to control the slave select bus.&lt;br /&gt;&lt;br /&gt;How many devices is sharing the SPI bus in question, and what is the design reason behind why you would like the SPI slave to controll the slave select pin?&lt;br /&gt;If you can elaborate more on the use-case / the functionality you would like to achieve I can advice you on how to implement it.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>