<?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>nRF52832 TWI0 and SPI1 conflicts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111297/nrf52832-twi0-and-spi1-conflicts</link><description>Hi, 
 I have the separate working codes for the TWI0 and the SPI1. However, when I combine them, it doesn&amp;#39;t work: sometimes it takes forever waiting for the NRF_DRV_TWI_EVT_DONE after nrf_drv_twi_tx(), sometimes it makes the SPI communication stops, but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 19 May 2024 22:28:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111297/nrf52832-twi0-and-spi1-conflicts" /><item><title>RE: nRF52832 TWI0 and SPI1 conflicts</title><link>https://devzone.nordicsemi.com/thread/484888?ContentTypeID=1</link><pubDate>Sun, 19 May 2024 22:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2453b81c-550a-471a-8e10-2fb84aa40541</guid><dc:creator>HanCatNguyen</dc:creator><description>&lt;p&gt;Actually, never mind. I think I&amp;#39;ve figured it out: after adding capacitors to the&amp;nbsp;I2C lines and SPI lines (and to GND), both communications seem to be stable now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 TWI0 and SPI1 conflicts</title><link>https://devzone.nordicsemi.com/thread/484871?ContentTypeID=1</link><pubDate>Sat, 18 May 2024 18:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7610bb05-b536-4bfe-aaec-f981184658ba</guid><dc:creator>HanCatNguyen</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I have just realized that my TWI works when I connected a logic analyzer to the SDA and SCL pins, but it&amp;nbsp;returns the&amp;nbsp;NRF_DRV_TWI_EVT_ADDRESS_NACK if I didn&amp;#39;t have the logic analyzer connected. I have verified that the ICM20948 module I&amp;#39;m using has 10kOhm pull-up resistors connected to SDA and SCL. I have tried changing the SDA and SCL pins configuration to no-pull instead of pull-up, but still the same unstable TWI communication.&lt;/p&gt;
&lt;p&gt;#define SCL_PIN_INIT_CONF \&lt;br /&gt; ( (GPIO_PIN_CNF_SENSE_Disabled &amp;lt;&amp;lt; GPIO_PIN_CNF_SENSE_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_DRIVE_S0D1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos) \&lt;br /&gt; | (&lt;strong&gt;GPIO_PIN_CNF_PULL_Disabled&lt;/strong&gt;&amp;nbsp;&amp;lt;&amp;lt; GPIO_PIN_CNF_PULL_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_INPUT_Connect &amp;lt;&amp;lt; GPIO_PIN_CNF_INPUT_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_DIR_Input &amp;lt;&amp;lt; GPIO_PIN_CNF_DIR_Pos))&lt;/p&gt;
&lt;p&gt;#define SDA_PIN_INIT_CONF SCL_PIN_INIT_CONF&lt;/p&gt;
&lt;p&gt;#define SDA_PIN_UNINIT_CONF \&lt;br /&gt; ( (GPIO_PIN_CNF_SENSE_Disabled &amp;lt;&amp;lt; GPIO_PIN_CNF_SENSE_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_DRIVE_H0H1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_PULL_Disabled &amp;lt;&amp;lt; GPIO_PIN_CNF_PULL_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_INPUT_Disconnect &amp;lt;&amp;lt; GPIO_PIN_CNF_INPUT_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_DIR_Input &amp;lt;&amp;lt; GPIO_PIN_CNF_DIR_Pos))&lt;/p&gt;
&lt;p&gt;#define SCL_PIN_UNINIT_CONF SDA_PIN_UNINIT_CONF&lt;/p&gt;
&lt;p&gt;#define SCL_PIN_INIT_CONF_CLR \&lt;br /&gt; ( (GPIO_PIN_CNF_SENSE_Disabled &amp;lt;&amp;lt; GPIO_PIN_CNF_SENSE_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_DRIVE_S0D1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos) \&lt;br /&gt; | (&lt;strong&gt;GPIO_PIN_CNF_PULL_Disabled&lt;/strong&gt;&amp;nbsp;&amp;lt;&amp;lt; GPIO_PIN_CNF_PULL_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_INPUT_Connect &amp;lt;&amp;lt; GPIO_PIN_CNF_INPUT_Pos) \&lt;br /&gt; | (GPIO_PIN_CNF_DIR_Output &amp;lt;&amp;lt; GPIO_PIN_CNF_DIR_Pos))&lt;/p&gt;
&lt;p&gt;What else can cause this, and how may I fix it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 TWI0 and SPI1 conflicts</title><link>https://devzone.nordicsemi.com/thread/484849?ContentTypeID=1</link><pubDate>Fri, 17 May 2024 21:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4ea07e1-7080-4914-be23-76b8ff3bd5a0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Most of the staff is away for a long weekend in Norway, so there will be some delays in response time.&amp;nbsp;Thanks for&lt;span&gt;&amp;nbsp;&lt;/span&gt;your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>