<?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 microphone not working with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86207/pdm-microphone-not-working-with-nrf-connect-sdk</link><description>I wrote some code to read the Adafruit PDM Microphone Breakout board sensor output (ST MP34DT01-M microphone) with Zephyr and nRF Connect SDK into the Thingy 91. 
 I do this by connecting the microphone board to the externally available GPIO SPARE 1 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Mar 2022 12:12:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86207/pdm-microphone-not-working-with-nrf-connect-sdk" /><item><title>RE: PDM microphone not working with nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/359989?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 12:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7ee1aa5-2405-4a2e-9303-bb950da9e805</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It looks like you are using the nrfx api directly, in that case you also need to define the&amp;nbsp;pdm interrupt handler by using the IRQ_CONNECT() as shown for instance in this example using nrfx gpiote:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/boards/nrf/nrfx/src/main.c#L35"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/boards/nrf/nrfx/src/main.c#L35&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another example using nrfx is found here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71737/lpcomp-in-ncs-zephyr-on-nrf52/"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/71737/lpcomp-in-ncs-zephyr-on-nrf52/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know a specific example using PDM, but the above should show how you can use the nrfx api.&lt;/p&gt;
&lt;p&gt;I recommend to also check if any of the api calls return an error code, seems you are not doing this at the moment (e.g. nrfx_pdm_init() you don&amp;#39;t check if there is an error).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>