<?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 port for 2 devices ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82098/spi-port-for-2-devices</link><description>Dear Members, 
 
 I want to use SPI LCD and Sdcard, they have different CS, but sharing the same SPI ports, I have used different SPI instance but not giving us a good response yet, any clues ? 
 SPI1 for SDcard, SPI2 for LCD, 
 
 SPI configuration for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Nov 2021 13:38:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82098/spi-port-for-2-devices" /><item><title>RE: SPI port for 2 devices ?</title><link>https://devzone.nordicsemi.com/thread/340921?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 13:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2435e6-170c-4633-a7bd-1cea5109317b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Could you share more of your code and elaborate a bit more on what the issue is?&lt;/p&gt;
[quote user=""]I want to use SPI LCD and Sdcard, they have different CS, but sharing the same SPI ports,[/quote]
&lt;p&gt;So the two SPI instances use the same GPIOs? Do you initialize and un-initialize the instances when you switch from one instance to the other? Only one instance should drive any GPIO at a time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>