<?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>Interfacing between nRF52840 and BME680: I2C or SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63517/interfacing-between-nrf52840-and-bme680-i2c-or-spi</link><description>Hi! Currently I have a nrf52840 devkit hooked up to an SD-card for storage through FATFS (using SPI). I would like to add a BME680 environment-sensor to the board and have ordered a breakout-board. I was wondering what the recommended way to go was of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Jul 2020 10:18:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63517/interfacing-between-nrf52840-and-bme680-i2c-or-spi" /><item><title>RE: Interfacing between nRF52840 and BME680: I2C or SPI</title><link>https://devzone.nordicsemi.com/thread/258966?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 10:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1ad7e26-fb38-45f5-8821-aa7685399a3a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;This really has nothing to do with the nRF chip: the&amp;nbsp;&lt;span&gt;BME680&amp;nbsp; and the SD-Card - &lt;em&gt;like &lt;strong&gt;any&lt;/strong&gt; other external devices&lt;/em&gt; - neither&amp;nbsp;know nor care what microcontroller you use.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So it&amp;#39;s really just a question of whether it&amp;#39;s &lt;em&gt;ever&lt;/em&gt; wise&amp;nbsp;to share an SPI connection between an SD-Card and other devices.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would suggest that it&amp;#39;s best avoided - so go for a separate SPI connection, or use I2C.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;EDIT&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For &lt;em&gt;some&lt;/em&gt; of the issues to consider, see:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://elm-chan.org/docs/mmc/mmc_e.html#spibus"&gt;http://elm-chan.org/docs/mmc/mmc_e.html#spibus&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There may well be others&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugging SD-Card issues can be hard&amp;nbsp;enough just&amp;nbsp;on its own - you don&amp;#39;t want to be adding extra complications!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- hence my recommendation is, &amp;quot;&lt;em&gt;just &lt;strong&gt;don&amp;#39;t do it!&lt;/strong&gt;&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>