<?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>3 SPI slave sharing the same SCK, MISO and MOSI.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58722/3-spi-slave-sharing-the-same-sck-miso-and-mosi</link><description>I use the nRF52840 MCU and SDK 16 with S140 softdevice. I want to use spi interface to control 3 SPI slave. They share the same SCK, MISO and MOSI. I use 3 chip select pis to select the slave. How to change the chip select pin to control the slave? Can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Mar 2020 01:28:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58722/3-spi-slave-sharing-the-same-sck-miso-and-mosi" /><item><title>RE: 3 SPI slave sharing the same SCK, MISO and MOSI.</title><link>https://devzone.nordicsemi.com/thread/238413?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 01:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:584e0640-448b-4026-a296-21b5be68f98e</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;@Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. . I&amp;#39;ll try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3 SPI slave sharing the same SCK, MISO and MOSI.</title><link>https://devzone.nordicsemi.com/thread/238202?ContentTypeID=1</link><pubDate>Thu, 05 Mar 2020 09:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94e4c3de-ebf4-4260-b0bc-992d3affdd51</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no HW control of SS/CSN pin in the SPI/SPIM peripherals (except in High-speed SPIM3 instance). The driver has support for controlling a single SS pin from the application. If you need to control more SS pins, you need to do that from your application. Set the SS pin to&amp;nbsp;&lt;a title="This value can be provided instead of a pin number for signals MOSI, MISO, and Slave Select to specif..." href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__drv__spi.html#ga2204a1a813890874ac903a592eec94a4"&gt;NRF_DRV_SPI_PIN_NOT_USED&lt;/a&gt;/&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrfx__spi.html#ga6d860ef6c21bfddfba562289b0f7980b"&gt;NRFX_SPI_PIN_NOT_USED&lt;/a&gt;/&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrfx__spim.html#ga5294e56c58c298b1610d19035b249f75"&gt;NRFX_SPIM_PIN_NOT_USED&lt;/a&gt;&amp;nbsp;when initializing the SPI driver, configure all SS pins as output using &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__gpio__hal.html#ga5c6f584e6e01dd0c65bd1b9eee958cbb"&gt;&lt;span&gt;nrf_gpio_cfg_output&lt;/span&gt;&lt;/a&gt;&lt;span&gt;(pin_number), and control the pins using&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__gpio__hal.html#gadfd30c1e5321180f1e333cf5642058e8"&gt;nrf_gpio_pin_set&lt;/a&gt;(pin_number)/&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__gpio__hal.html#ga5c671adfb6b44f32c9d99d3156aff2b1"&gt;rf_gpio_pin_clear&lt;/a&gt;(pin_number) before and after each transfer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>