<?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>Not able to understand the TWI and SPI Instance problem.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37570/not-able-to-understand-the-twi-and-spi-instance-problem</link><description>Hi Everyone 
 I am trying to use BME which is an i2c/twi sensor and EPaper which is an SPI based module. In my code i am using TWI INSTANCE ID 0 AND SPI INSTANCE ID 0. 
 I came across a question which says that spi and twi can not share the same instances</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Aug 2018 06:30:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37570/not-able-to-understand-the-twi-and-spi-instance-problem" /><item><title>RE: Not able to understand the TWI and SPI Instance problem.</title><link>https://devzone.nordicsemi.com/thread/144623?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 06:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74f2d1c6-19c9-48a6-a0c0-9721a2669360</guid><dc:creator>Rajat</dc:creator><description>&lt;p&gt;Thanks mrono!&lt;/p&gt;
&lt;p&gt;I tried that out and it worked. I disabled other SPI Instances and also TWI Instances and changed the TWI Instance from 0 to 1 and kept the SPI Instance as 0.&lt;/p&gt;
&lt;p&gt;If someone else faces this&amp;nbsp; issue. Go to SDK_CONFIG.h file and disable all other instances except which you are using and SPI instance and TWI Instance should not be same.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Rajat!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to understand the TWI and SPI Instance problem.</title><link>https://devzone.nordicsemi.com/thread/144621?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 06:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c641558e-181b-4511-808a-bdde84d77470</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;Just change TWI0 to TWI1 or SPI0 to SPI1 and you should be fine.&lt;/p&gt;
&lt;p&gt;Pin configuration doesn&amp;#39;t need to be changed, but you of course need to configure the new instance instead of the old. If you&amp;#39;re using Nordic libraries I believe this is handled by the libraries.&lt;/p&gt;
&lt;p&gt;The relevant section in the product specification is called &amp;quot;Peripheral interface&amp;quot;. That describes what instances share resources.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>