<?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 example on Stereo mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47206/pdm-example-on-stereo-mode</link><description>I have two mic , how can I get data from Left and Right mic? Is there any example code to help me? 
 My code like this : ( I think the data from pdm_data_handler is like 0xFFFFxxxx or 0x0000xxxx, when I removed a mic from my PCBA) 
 void user_pdm_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 May 2019 07:56:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47206/pdm-example-on-stereo-mode" /><item><title>RE: PDM example on Stereo mode</title><link>https://devzone.nordicsemi.com/thread/188436?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 07:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b8b0802-b167-4093-9067-5d9f00d076ee</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Unfortunately I have not had time to try this myself, though I could find this example maybe it can be used as comparison:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/b/blog/posts/pdm-example-on-the-nrf52832"&gt;https://devzone.nordicsemi.com/nordic/b/blog/posts/pdm-example-on-the-nrf52832&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM example on Stereo mode</title><link>https://devzone.nordicsemi.com/thread/187615?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 04:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6b35f00-21dc-433a-a04e-7f6907f9a26e</guid><dc:creator>Leo2019</dc:creator><description>&lt;p&gt;I using external pull-down now,and removed the code of gpio set. but read the sample is same as before.the issue is still on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM example on Stereo mode</title><link>https://devzone.nordicsemi.com/thread/187452?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 08:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee77b0b4-387e-48ff-aead-e861cc8faa9e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you tried using external pull-down in this case? I assume the pin is floating in this case, so any data may occur.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM example on Stereo mode</title><link>https://devzone.nordicsemi.com/thread/186806?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 02:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94b26988-00b0-47c0-b42c-9d3c748b87ee</guid><dc:creator>Leo2019</dc:creator><description>&lt;p&gt;Document this : &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pdm.html?cp=3_1_0_42#concept_tyv_452_yr"&gt;infocenter.nordicsemi.com/.../pdm.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM example on Stereo mode</title><link>https://devzone.nordicsemi.com/thread/186805?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 02:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4397a49-1952-4b75-ab35-72e1292cec2c</guid><dc:creator>Leo2019</dc:creator><description>&lt;p&gt;Hi, Kenneth,&lt;/p&gt;
&lt;p&gt;Soryy ,I guess I had not make you understand what I mean.&lt;/p&gt;
&lt;p&gt;Our device is nrf52832 and work on SDK 15.0.0;&lt;/p&gt;
&lt;p&gt;There are two digital mic on it,and I want to get the sample data from each . The document&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sr3_nrf52%2FUG%2Fsr3_nrf52%2Fhw_descr_add_on%2Fdigital_mic.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sr3_nrf52%2FUG%2Fsr3_nrf52%2Fhw_descr_add_on%2Fdigital_mic.html&lt;/a&gt;&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sr3_nrf52%2FUG%2Fsr3_nrf52%2Fhw_descr_add_on%2Fdigital_mic.html"&gt;&amp;nbsp;&lt;/a&gt;tell me to get sample data from EasyDMA buffer, but I got &amp;nbsp;uint32_t sample data like this :&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;pdm_buffer_rx =0xFF7FFF70&lt;br /&gt;pdm_buffer_rx =0xFF88FF85&lt;br /&gt;pdm_buffer_rx =0xFF6EFF7F&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think these data are wrong, because I only make sound to the left mic .&amp;nbsp; I think the data from&amp;nbsp;pdm_data_handler is like 0xFFFFxxxx or 0x0000xxxx, the &amp;nbsp;bit 32-bit16 wont change,when the Right Mic working on&amp;nbsp;quiet environment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So ,my question is , how to sure right and left mic works well ,and how to get sample data from each other ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the&amp;nbsp; finished_buffer = m_cb.active_buffer;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;static void pdm_data_handler(nrfx_pdm_evt_t const * p_evt)&lt;br /&gt;{&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;if(p_evt-&amp;gt;buffer_released != 0)&lt;br /&gt;{&lt;br /&gt;pdm_block_to_fill = pdm_buffer_rx[get_finished_buffer()];&lt;br /&gt;}&lt;br /&gt;if(p_evt-&amp;gt;buffer_requested)&lt;br /&gt;{&lt;br /&gt;curr_buff_index = get_finished_buffer();&lt;br /&gt;uint32_t* buff = pdm_buffer_rx[curr_buff_index];&lt;br /&gt;uint8_t i = 0;&lt;br /&gt;for(i=0; i &amp;lt; 4;i++)&lt;br /&gt;{&lt;br /&gt;pdm_LOG(&amp;quot;pdm_buffer_rx =%x\r\n&amp;quot;(pdm_buffer_rx[curr_buff_index][i]));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;nrfx_pdm_buffer_set((int16_t *)pdm_buffer_rx[1 - curr_buff_index],PDM_BUFF_LEN);&lt;br /&gt;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PDM example on Stereo mode</title><link>https://devzone.nordicsemi.com/thread/186652?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 10:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ed6a2ce-0238-4423-970e-7d2d1f612d98</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I believe the Smart Remote 3 DK add-on can do this:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sr3_nrf52/UG/sr3_nrf52/hw_descr_add_on/digital_mic.html"&gt;https://infocenter.nordicsemi.com/topic/ug_sr3_nrf52/UG/sr3_nrf52/hw_descr_add_on/digital_mic.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Firmware can be download from:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Reference-Designs/nRFready-Smart-Remote-3-for-nRF52-Series/Download#infotabs"&gt;https://www.nordicsemi.com/Software-and-Tools/Reference-Designs/nRFready-Smart-Remote-3-for-nRF52-Series/Download#infotabs&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>