<?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>PDM Data to I2S on nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101033/pdm-data-to-i2s-on-nrf5340</link><description>Hello, 
 I&amp;#39;m using an Adafruit PDM microphone on nrf5340 audio dk. 
 The code of the PDM Microphone part has been completed, and I can successfully receive the PDM Microphone data. 
 Next, I want to convert the data received from PDM Microphone into I2S</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Apr 2024 02:37:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101033/pdm-data-to-i2s-on-nrf5340" /><item><title>RE: PDM Data to I2S on nrf5340</title><link>https://devzone.nordicsemi.com/thread/480784?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 02:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3ca764-9f8d-46b8-9c66-f7c129f13f2c</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;As mentioned in the answer, just set I2S to 16-bit mono,the PDM data can be compatible with the I2S module.&lt;br /&gt;Add it to prj.conf:&lt;br /&gt;CONFIG_AUDIO_SAMPLE_RATE_16000_HZ=y&lt;br /&gt;Then change the I2S channels to NRF_I2S_CHANNELS_LEFT.&lt;br /&gt;After I made these modifications, the stored pdm mic data can be processed in i2s audio format.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM Data to I2S on nrf5340</title><link>https://devzone.nordicsemi.com/thread/480337?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 07:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:036b1cef-e815-45d8-8f8a-1178aecc4c50</guid><dc:creator>Anushikha</dc:creator><description>&lt;p&gt;I am doing the same with the nrf5340 audio DK board, It has an onboard PDM mic which I am using to capture the audio, want to transfer the audio data to head out through the I2S interface.&lt;br /&gt;However, I am facing an issue regarding storing the PCM data and transferring it through I2s. I am new and don&amp;#39;t know how to configure I2s, it will be very helpful if you please guide me.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM Data to I2S on nrf5340</title><link>https://devzone.nordicsemi.com/thread/433112?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 07:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75254359-531f-4b50-bdf9-85455d6300f3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The PDM module automatically converts the PDM data to PCM for you, you don&amp;#39;t have to do this yourself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please read through the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/pdm.html?cp=4_0_0_6_21_2#concept_eqb_fw2_yr"&gt;module operation chapter from the product specification&lt;/a&gt; for more information about this. If you search for &amp;quot;PCM&amp;quot; you will find a couple of references to this in the documentation.&amp;nbsp;&lt;/p&gt;
[quote user="LandyWang"]I don&amp;#39;t quite understand the meaning here, as long as I2S is set to 16-bit mono, can I directly transmit PDM data as I2S audio?[/quote]
&lt;p&gt;This hasn&amp;#39;t been explicitly tested so I can&amp;#39;t guarantee it, but in theory the PDM data should be compatible with the I2S module as long as you make sure to configure the I2S interface to use 16-bit mono data. The PDM module provides 16-bit mono PCM samples, so if you can configure the I2S interface to use 16-bit mono PCM data you should be able to forward the data directly without any conversion.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM Data to I2S on nrf5340</title><link>https://devzone.nordicsemi.com/thread/432833?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 03:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2556d6e9-0018-4da3-8206-15b2d9725684</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;To be precise, I want to convert PDM data to PCM format.&lt;/p&gt;
&lt;p&gt;I want to&amp;nbsp;send PDM microphone data to I2S interface, so I think the PDM data received from the microphone must be converted into PCM data first.&lt;/p&gt;
&lt;p&gt;Is there any sample of converting PDM data to PCM format for reference?&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/101033/pdm-data-to-i2s-on-nrf5340/432236"]If you configure the I2S peripheral in 16-bit mono mode you should be able to forward the PDM data directly, without having to add any data conversion first.&amp;nbsp;[/quote]
&lt;p&gt;I don&amp;#39;t quite understand the meaning here, as long as I2S is set to 16-bit mono, can I directly transmit PDM data as I2S audio?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM Data to I2S on nrf5340</title><link>https://devzone.nordicsemi.com/thread/432236?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 09:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22d90f0-d67f-4acc-b6e0-8da0da29fd09</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mean you want to forward your PDM microphone data directly to the I2S interface, without any additional processing?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think we have any samples showing how to do this unfortunately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you configure the I2S peripheral in 16-bit mono mode you should be able to forward the PDM data directly, without having to add any data conversion first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>