<?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 cs pin question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96649/spi-cs-pin-question</link><description>Hello 
 I am trying to use spi for 2 sensors. 
 I want to use mosi, miso, and sck in common and use only cs separately. If one sensor is set to spi as shown below, it works normally. 
 
 However, if used as below to manage with cs, it does not work. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Feb 2023 07:26:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96649/spi-cs-pin-question" /><item><title>RE: SPI cs pin question</title><link>https://devzone.nordicsemi.com/thread/409986?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 07:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e14be017-d577-4069-80ae-b49c47c32772</guid><dc:creator>cabin</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I solved it.&lt;/p&gt;
&lt;p&gt;Adjusted only one cs pin.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t care about the rest of the sensors because I didn&amp;#39;t use them right away.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have nice day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI cs pin question</title><link>https://devzone.nordicsemi.com/thread/409856?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 12:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daf9fbdf-eda1-4319-8fac-cde0068a5565</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As you have two slaves connected to the same bus you need to control the two&amp;nbsp;CS pins yourself. That means configuring them as outputs, and asserting before using a device, waiting some time (the datasheet of the slave should indicate how long), and then start communicating with it, and dessert when done. Also, make sure you never assert both&amp;nbsp;CS pins at the same time.&lt;/p&gt;
&lt;p&gt;If you still don&amp;#39;t make any progress, then it would be good to see what you are doing, and to know what actually happens on the SPI lines (including two two CS lines).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI cs pin question</title><link>https://devzone.nordicsemi.com/thread/409774?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 09:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0662cc9-d0d4-4eaa-9cff-7a0ad8959d6d</guid><dc:creator>cabin</dc:creator><description>&lt;p&gt;Dear Turbo J&lt;/p&gt;
&lt;p&gt;The oscilloscope is not in a situation to use right now&lt;br /&gt;So I need to check if the above setting is the right way. (How to control only CS pin separately)&lt;br /&gt;cs pin is output mode.&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI cs pin question</title><link>https://devzone.nordicsemi.com/thread/409766?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 08:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:decc3813-6316-4d1f-9ee7-1d5f9c2c647e</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Use oscilloscope to qualify &amp;quot;does not work&amp;quot; further. Did you remember to manually set the CS pin(s) to gpio output?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>