<?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>Managing multiple SPI and TWI peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23061/managing-multiple-spi-and-twi-peripherals</link><description>Hello, 
 I&amp;#39;m working on an application where we have a number of sensors and a radio that each require a connection to the nRF52. Specifically, 4 of these peripherals need a SPI connection to the nRF52 and one needs an I2C connection. We can put two</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jun 2017 01:46:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23061/managing-multiple-spi-and-twi-peripherals" /><item><title>RE: Managing multiple SPI and TWI peripherals</title><link>https://devzone.nordicsemi.com/thread/90760?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 01:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16b24a8f-4c43-4f93-860f-22f16eb190d9</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;For the critical one use SPI2. It is not shared with TWI.  You can of course put multiple SPI devices together and use manual chip select.  It would be faster than switching between TWI and SPI.&lt;/p&gt;
&lt;p&gt;There is an &lt;a href="https://github.com/I-SYST/EHAL"&gt;open source library&lt;/a&gt; that take cares of this sort of thing for you.  It does not have much documentations but has few examples that show how to use.  Follow &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;this blog&lt;/a&gt; to setup the environment.  The blog also has links to source code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>