<?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>I2S pins inconsistencies</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94883/i2s-pins-inconsistencies</link><description>Hello I am playing with Arduino / nrf52840 but I cannot seem to use I2S reliably. 
 On the first board, Seeed XIAO BLE Sense, the only pins that seem to work are 4, 5, 6. When I try a multisample (which requires double buffering) it outputs really poor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Dec 2022 13:17:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94883/i2s-pins-inconsistencies" /><item><title>RE: I2S pins inconsistencies</title><link>https://devzone.nordicsemi.com/thread/401069?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 13:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cc27ba8-af11-4671-8923-d3780b2a221d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, you are right. All pin assignments are with reference to GPIO pin number (which for the nRF52840 consists of port and number, and for port 1 that in practice just means adding 32). You can see the mapping between GPIO pin number and pin on the package for different package variants under &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pin.html?cp=4_0_0_6_0"&gt;Pin assignments&lt;/a&gt;&amp;nbsp;in the product specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S pins inconsistencies</title><link>https://devzone.nordicsemi.com/thread/400928?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 17:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72154226-7e19-4c3b-a8d3-92e328d31990</guid><dc:creator>EnzoLombardi</dc:creator><description>&lt;p&gt;Thank you Einar.&lt;br /&gt;I agree with you with the part &amp;quot;low level code should work the same&amp;quot;, I mean I am literally setting values in HW registers and that is what makes the mystery intriguing.&lt;br /&gt;The hardware is pretty simple, I am using the two dev boards as they are.&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://cdn-learn.adafruit.com/assets/assets/000/110/600/original/adafruit_products_Adafruit_ItsyBitsy_nRF52840_pinout.png?1649279496"&gt;is the pin out&lt;/a&gt; for the ItsyBitsy. Notice that pin 4 and 6 are not available. Notice also Adafruit claims any pin (GPIO I assume) works with I2S.&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://how2electronics.com/wp-content/uploads/2022/05/Pinout.jpg"&gt;is the pin out&lt;/a&gt; for the Xiao BLE Sense.&lt;/p&gt;
&lt;p&gt;-enzo&lt;/p&gt;
&lt;p&gt;OK, oscilloscope response on the boards.&lt;br /&gt;When I choose pins (4,5,6) (OUT, SCLK, LRCLK), everything works fine, oscilloscope confirms.&lt;br /&gt;When I choose pins (5,7,9) - or any other quiet combination - the oscilloscope shows all the 3 pins toggling with LRCLK frequency.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wonder if this code requires some form of mapping? I can see some signal appearing on different pins.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;NRF_I2S-&amp;gt;PSEL.SCK = (PIN_SCK &amp;lt;&amp;lt; I2S_PSEL_SCK_PIN_Pos); &lt;br /&gt; NRF_I2S-&amp;gt;PSEL.LRCK = (PIN_LRCK &amp;lt;&amp;lt; I2S_PSEL_LRCK_PIN_Pos); &lt;br /&gt; NRF_I2S-&amp;gt;PSEL.SDOUT = (PIN_SDOUT &amp;lt;&amp;lt; I2S_PSEL_SDOUT_PIN_Pos);&lt;/span&gt;&lt;br /&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Argh. It&amp;#39;s not the&amp;nbsp;logical pin number, but&amp;nbsp;the physical one&amp;nbsp;which explains... a lot!&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1671137204662v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S pins inconsistencies</title><link>https://devzone.nordicsemi.com/thread/400857?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 13:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad89253f-8207-451f-905c-afade046caba</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not support Arduino directly, so for anything Arduino specific you may be better off in some Arduino forum. The low-level code you refer to should be the same regardless though, but it should also work the same on any nRF52840 board, so I wonder what your HW looks like? Are these pins you use available? Or are they connected to some external circuitry that cause problems?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>