<?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>Is it impossible to use TWI and SPI together on nrf52810?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83099/is-it-impossible-to-use-twi-and-spi-together-on-nrf52810</link><description>As the title says, 
 
 I combined the TWI function with the ble_app_uart example and the three i2c sensor communication was successful. 
 
 However, when I added SPI to develop TFT LCD, SPI communication was not possible. 
 
 Can&amp;#39;t I use TWI and SPI together</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Dec 2021 19:04:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83099/is-it-impossible-to-use-twi-and-spi-together-on-nrf52810" /><item><title>RE: Is it impossible to use TWI and SPI together on nrf52810?</title><link>https://devzone.nordicsemi.com/thread/344997?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 19:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97049a2f-b1af-4a23-80ac-c47701a529b7</guid><dc:creator>Shahar</dc:creator><description>&lt;p&gt;Are you using a&amp;nbsp;nRF52 (&lt;span&gt;nRF52832)&lt;/span&gt;&amp;nbsp;DevKit in nRF52810 emulation? or&amp;nbsp;an actual nRF52810?&lt;/p&gt;
&lt;p&gt;If in emulation, check to see if there&amp;#39;s an oversight on the instance id when in emulation mode.&lt;/p&gt;
&lt;p&gt;Try with selecting 0 and 1 for the instance ID&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it impossible to use TWI and SPI together on nrf52810?</title><link>https://devzone.nordicsemi.com/thread/344996?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 18:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c1f6cc8-4c45-43c4-9cd2-437a3e6e539e</guid><dc:creator>donghu kim</dc:creator><description>&lt;p&gt;&lt;span&gt;That&amp;#39;s right. The spi and twi instances are set to zero.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First of all, I need to make sure the cause of the problem is clear.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t found out whether the circuit is a problem or my code is a problem yet.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It was very helpful just to make sure that there was no problem using twi and spi together.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it impossible to use TWI and SPI together on nrf52810?</title><link>https://devzone.nordicsemi.com/thread/344993?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 18:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6900f68-b10f-4972-8d12-e82617d527f9</guid><dc:creator>Shahar</dc:creator><description>&lt;p&gt;Did you enable the SPIM instance in the sdk_config?&lt;/p&gt;
&lt;p&gt;In other MCUs (like the nRF52840) the TWI0/SPI0 for example share the same address, so you need to use different instance IDs.&lt;/p&gt;
&lt;p&gt;But in the nRF52810, as there&amp;#39;s only 1 of each (SPI0, TWI0, UARTE0) - each has its own address, so use the same instance ID for each instance&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const nrfx_spim_t m_spim0 = NRFX_SPIM_INSTANCE(0);
static const nrfx_twim_t m_twim0 = NRFX_TWIM_INSTANCE(0);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>