<?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 to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113374/how-to-access-the-pdm-mic-present-in-nrf5340-audio-dk-board</link><description>Hi, I recently got nRF5340 Audio DK for my work. I have been try to use the onboard mic for collecting audio and transmit it via BLE, since I&amp;#39;m a newbie I couldn&amp;#39;t do it. Can anyone help me with that. I also checked audio application example but I don</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2024 05:47:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113374/how-to-access-the-pdm-mic-present-in-nrf5340-audio-dk-board" /><item><title>RE: How to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/thread/498161?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 05:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0cf137-c7aa-4949-bb94-3cae2913d8ab</guid><dc:creator>laksh</dc:creator><description>&lt;p&gt;Hi Maria,&lt;br /&gt;&lt;br /&gt;Thanks, Let me check.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lakshmanan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/thread/498083?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 13:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1c5d33-1250-4bf8-89cb-a1ca2dd77c04</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Laksh,&lt;/p&gt;
&lt;p&gt;Today I found the &lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/hal/nrf_i2s.h#L206"&gt;NRF_I2S_SWIDTH_24BIT_IN32BIT&lt;/a&gt; sample width enumeration which looks promising. In &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93732/lc3-codec-with-24-bit-pcm"&gt;this previous ticket&lt;/a&gt; they had a similar use-case to you as well.&lt;/p&gt;
&lt;p&gt;See the I2S configuration used in the nRF5340 Audio applications &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/nrf5340_audio/src/modules/audio_i2s.c#L43-L63"&gt;here&lt;/a&gt;. Functions for initialising, starting, and stopping I2S are also found in the previous link. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/thread/497645?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 13:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86fc3bbb-591a-4755-8dd9-9d343aa96d06</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Laksh,&lt;/p&gt;
&lt;p&gt;I have been studying the datasheet for the SPH0645 microphone and found a possible hurdle. The microphone is 24 bit, and the nRF5340 audio application does not have support for that bit depth (only 16 and 32). I will ask internally for some guidance on this and get back to you by Tueday. &lt;/p&gt;
&lt;p&gt;Thank you for your continued patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/thread/496318?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 05:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa72a896-8ed0-4b8e-8281-f41b76b6d547</guid><dc:creator>laksh</dc:creator><description>&lt;p&gt;Hi Maria,&lt;br /&gt;&lt;br /&gt;Also, Can you help me with how to configure I2S and connect. Because in&amp;nbsp;nRF Connect SDK Fundamentals they have given only for UART and I2C. It would be great If I get any reference material for that.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m Using nRF5340 Audio DK borad and trying to connect SPH0645 Mic with I2S. For brief info check this thread -&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/113509/not-getting-i2s-data."&gt;devzone.nordicsemi.com/.../not-getting-i2s-data.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Laksh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/thread/496244?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 13:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d09c1bd8-4bbf-410d-ba39-69d772b7b735</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Laksh,&lt;/p&gt;
&lt;p&gt;You can use &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/src/audio/audio_system.c#L133-L141"&gt;this code block&lt;/a&gt; from encoder_thread() in &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/src/audio/audio_system.c"&gt;nrf5340_audio/src/audio/audio_system.c &lt;/a&gt;as a reference for getting the PCM data.&lt;/p&gt;
&lt;p&gt;I forgot to mention this last week, but since you are a newbie, you should look into our courses on DevAcademy. They cover both basics and intermediate topics and are also good reference material during development.&lt;/p&gt;
&lt;p&gt;The courses which seems most relevant for you are:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;nRF Connect SDK Fundamentals&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/"&gt;Bluetooth Low Energy Fundamentals&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/"&gt;nRF Connect SDK Intermediate&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/thread/495397?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 11:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb48cdb-7afc-4e2b-84da-7798a0554bb6</guid><dc:creator>laksh</dc:creator><description>&lt;p&gt;Hi Maria,&lt;br /&gt;&lt;br /&gt;I want a PCM data for sending.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to access the PDM Mic present in nRF5340 Audio DK board.</title><link>https://devzone.nordicsemi.com/thread/495396?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 10:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f126817-2c8a-4ca1-b47f-7bd648702b28</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Laksh, &lt;/p&gt;
[quote user=""] I also checked audio application example but I don&amp;#39;t know how to set the project for BIS or CIS.[/quote]
&lt;p&gt;This is documented in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/index.html"&gt;documentation for the nRF5340 Audio applications&lt;/a&gt;, specifically in the section on &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/configuration.html"&gt;configuring the nRF5340 Audio applications&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Considering that you want to use the PDM microphone the walkie-talkie demo seems like a good start. The walkie-talkie demo configuration of the nRF5340 Audio applications enables bidirectional CIS and uses the PDM microphones on both the headset and gateway devices. To use this configuration you just need to add &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/configuration.html#enabling_the_walkie-talkie_demo"&gt;&lt;code&gt;&lt;span&gt;CONFIG_WALKIE_TALKIE_DEMO=y&lt;/span&gt;&lt;/code&gt;&lt;/a&gt; to your preferred configuration file and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/doc/building.html"&gt;build with your preferred method&lt;/a&gt;.&lt;/p&gt;
[quote user=""] It would be great if anyone guide me to access the mic and get the data.[/quote]
&lt;p&gt;In the application, the PDM microphone is configured through the hardware codec CS47L63, so the relevant code is found in src/modules/&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/src/modules/hw_codec.c"&gt;hw_codec.c&lt;/a&gt; and &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/src/modules/hw_codec.h"&gt;hw_codec.h&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Which part of the process do you wish to get the data from? Before sending it or after receiving it?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>