<?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>Can I use SPI and I2C at the same time on nRF5340? Do I use the same pins?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94335/can-i-use-spi-and-i2c-at-the-same-time-on-nrf5340-do-i-use-the-same-pins</link><description>Hey! 
 Would it be possible to use I2C and SPI simultaneously on the nRF5340? I&amp;#39;m using I2C/TWI for sensor data (optical based) and SPI for a DAC - need both of them operating at the same time. The DAC can interface with SPI, 3-Wire, QSPI, and Microwire</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Nov 2022 10:21:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94335/can-i-use-spi-and-i2c-at-the-same-time-on-nrf5340-do-i-use-the-same-pins" /><item><title>RE: Can I use SPI and I2C at the same time on nRF5340? Do I use the same pins?</title><link>https://devzone.nordicsemi.com/thread/398061?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 10:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48026bcb-17e0-49cc-9679-f2e9e2551a05</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The nRF5340 can support up to 5 SPI instances or up to 4 I2C (TWI) instances, where TWI0 shares the same peripheral resource (address) with SPI0, and so on. But you can use the SPI0 instance simultaneously as you use TWI1 for example, so you can indeed run SPI and TWI at the same time. You can however&amp;nbsp;&lt;strong&gt;not&amp;nbsp;&lt;/strong&gt;use the same GPIOs for both at the same time, and I&amp;#39;d recommend configuring pins separately for the SPI and TWI instances you decide on using. You can find detailed information on all our peripherals and instances in the n&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF5340_PS_v1.3.pdf"&gt;RF5340 product specification here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The nRF5340 has 48 GPIOs that you can configure at your leisure so it should not be a problem to find space for both TWI and SPI.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>