<?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>How many peripheral instance i can use in nRF5340?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107681/how-many-peripheral-instance-i-can-use-in-nrf5340</link><description>Hi, 
 Greetings.. 
 I am starting developing one application using nRF5340 MCU . My concern is related to peripheral instance . In my application i want to use 5 sensor/Peripheral at the same time so my question is.. 
 1. Can i use 5 peripheral(3 I2C</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Feb 2024 11:35:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107681/how-many-peripheral-instance-i-can-use-in-nrf5340" /><item><title>RE: How many peripheral instance i can use in nRF5340?</title><link>https://devzone.nordicsemi.com/thread/467141?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 11:35:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ec0d9cc-8b9b-4b8f-80ff-4081d249f340</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="G gautam"]so i can connect only five instance at time right?[/quote]
&lt;p&gt;No, Each peripheral have different amount of instances. You should look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fchapters%2Fsoc_overview%2Fdoc%2Fsoc_overview.html&amp;amp;cp=4_0_0_2_0&amp;amp;anchor=blockdiagram"&gt;block diagram of peripheral in the application core&lt;/a&gt;&amp;nbsp;where you can see that SPIM have 5 instances but other serial peripherals have only 4 instances.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1706787033916v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So you should be able to use only 4 instances at a time except that SPIM have the fifth instance.&lt;/p&gt;
[quote user="G gautam"]2. If your ans of first question is YES then can i implement with BLE ?[/quote]
&lt;p&gt;Not sure what you mean here, but BLE protocol stack does not use any serial peripherals, so you can use combination of these serial devices along with BLE feature.&lt;/p&gt;
[quote user="G gautam"]3. Can i use 2 sensors with same i2c instance? If yes please provide me example for that.[/quote]
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/File:Iicrp.png"&gt;That is how I2C/TWI work&lt;/a&gt;&amp;nbsp;by specification. You can connect as many slaves as possible to the same SDA/SCL lines and since each slave can be addressed with a unique address bits, I2C/TWI master can communicate to any slave using it unique address but still using the same two pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many peripheral instance i can use in nRF5340?</title><link>https://devzone.nordicsemi.com/thread/466382?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 05:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34f8bf21-4899-4529-b1b3-9833a602612f</guid><dc:creator>G gautam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the answer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so i can connect only five instance at time right?&lt;/p&gt;
&lt;p&gt;and what about the those que?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;2. If your ans of first question is YES then can i implement with BLE ?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;3. Can i use 2 sensors with same i2c instance? If yes please provide me example for that.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many peripheral instance i can use in nRF5340?</title><link>https://devzone.nordicsemi.com/thread/466088?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 16:17:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7b730d-cdd0-41b2-a61a-7ddf7e902149</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;These peripherals are available (among others) on the NRF5340&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1706199146541v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, several of the peripherals share the same ID and only one from those could be used at a time.&lt;/p&gt;
&lt;p&gt;SPIM0, SPIS0, TWIM0, TWIS0, UARTE0 share the same ID # 8, and hence only one could be used,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Similarly for other peripherals that share the ID, please go through the product specificaiton (e.g pg 110 and chapter for peripherals):&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF5340_PS_v1.3.1.pdf"&gt;nRF5340 (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>