<?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 interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840</link><description>I am testing DA7212 with my nrf52840 and i have made connections but i am not sure if thats right. Also i am trying to use i2s loopback example from sdk. 
 i need some guidence</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2020 16:56:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840" /><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/241214?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 16:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2863019d-eeef-4eac-8e46-10a2a1800a96</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again Brijesh!&lt;/p&gt;
&lt;p&gt;[quote user="Brijesh"][/quote]&lt;/p&gt;
&lt;p&gt;Thanks Karl , I was able to configure the da7212 using i2c protocols and i wrote to registers using i2c interface.&lt;/p&gt;
&lt;p&gt;I was able to generate a beep tone and i was able to input audio and play it via speakers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Great, I am happy to hear this! This is highly meaningful progress.&lt;br /&gt;How did you input the audio if you did not use I2S? Aux?&lt;/p&gt;
&lt;p&gt;[quote user="Brijesh"][/quote]&lt;/p&gt;
&lt;p&gt;I want to store some audio file into the ram and play it on my command .&lt;/p&gt;
&lt;p&gt;I have been looking out for examples where i would understand how that has to be done but I couldnot find any.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you read the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/hardware_driver_i2s.html"&gt;I2S driver documentation&lt;/a&gt;? It would be a good place to start, once you successfully have configured your DA7212 using I2C(good job, by the way!).&lt;br /&gt;The full list of available functions in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrfx__i2s.html"&gt;I2S API Reference, which can be seen here&lt;/a&gt;.&lt;br /&gt;So, to proceed I suggest that you read the driver documentation for how to use the driver, than look at the API Reference to better understand each step.&lt;br /&gt;Do let me know if you encounter any issues or questions whilst doing so!&lt;/p&gt;
[quote user="Brijesh"]Thanks againg fpr being so patient with me and extreamly sorry for the late reply.[/quote]
&lt;p&gt;Absolutely no problem at all! Do not worry about late replies, I fully understand, no worries.&lt;/p&gt;
[quote user="Brijesh"]Hope you are well in the COVID 19 pandemic[/quote]
&lt;p&gt;Thank you, and I sincerely hope you are too :)&lt;br /&gt;Stay safe!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/241069?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 10:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a71cc246-270b-4957-bbc8-3de00c89c9ce</guid><dc:creator>Brijesh</dc:creator><description>&lt;p&gt;Thanks Karl , I was able to configure the da7212 using i2c protocols and i wrote to registers using i2c interface.&lt;/p&gt;
&lt;p&gt;I was able to generate a beep tone and i was able to input audio and play it via speakers.&lt;/p&gt;
&lt;p&gt;now the tough part is i have still not used i2s protocol.&lt;/p&gt;
&lt;p&gt;I want to store some audio file into the ram and play it on my command .&lt;/p&gt;
&lt;p&gt;I have been looking out for examples where i would understand how that has to be done but I couldnot find any.&lt;/p&gt;
&lt;p&gt;Thanks againg fpr being so patient with me and extreamly sorry for the late reply.&lt;/p&gt;
&lt;p&gt;Hope you are well in the COVID 19 pandemic&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/238042?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 13:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f23787f6-b074-42d1-ae68-426129594a32</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Brijesh"]Could you tell me how to achieve this?[/quote]
&lt;p&gt;By this, are you asking how you should connect the DA7212 with the nRF52840?&lt;br /&gt;Have you taken a look at the &lt;a href="https://www.dialog-semiconductor.com/sites/default/files/ard-audio-da7212-schematic.pdf"&gt;schematics for the DA7212 development kit&lt;/a&gt;? Please have a look at the different wiring options in the second page, and cross reference them with the table you linked in your previous comment. Pay attention to the different designation on each of the [option] connections, to see which option is the right one for your application.&lt;br /&gt;If you are unable to identify the correct connections, let me know and I will take a closer look at the provided schematics along with your suggestions.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Brijesh"]I am assuming this will be done if i connect mclk from nrf board.[/quote]
&lt;p&gt;I am not certain this is a valid assumption for the DA7212. After some searching I was able to find the &lt;a href="https://pdf1.alldatasheet.com/datasheet-pdf/view/858930/DIALOG/DA7212.html"&gt;DA7212 complete datasheet&lt;/a&gt;.&lt;br /&gt;Are you familiar with reading datasheets like this?&lt;br /&gt;In case you are not; search for the functionality you would like to enable/configure/control, find its associated register names, look up the register names in the 14.1 &amp;quot;register map&amp;quot;, and click on the name of each bit-field to see the different configuration options. Learning to read a datasheet like this is an essential skill when working with embedded development, even though it seems a lot on the surface it is really not much more than the procedure I explained above.&lt;br /&gt;All configuration and control of the DA7212 is done over the I2C interface, so you will need to use that as well.&lt;br /&gt;&lt;br /&gt;In Section 13.33 of the datasheet the Digital Audio Interface(DAI) is detailed, and it seems you will need to set both the DAI_CTRL register, as well as possibly changing the DAI_CLK_MODE register, using I2C. Please study the referenced datasheet, and get back to me with any questions you might have! :)&lt;br /&gt;&lt;br /&gt;I must also mention: from reading the DA7212 datasheet, it seems that the default DAI configuration is slave - which conflicts my previous statement, having only read the development kit documentation. Just a heads up.&lt;/p&gt;
[quote user="Brijesh"]i made some changes to the config in the i2s&amp;nbsp; loop back example program to configure sck , lrck and mck pin as seen below. Please tell me if thats correct.[/quote]
&lt;p&gt;I would advice against using &amp;quot;magic numbers&amp;quot; in any code, especially embedded code, since it massively decreases readability and causes a lot of confusion in the long run. Please reconfigure the I2S_CONFIG_MCK_PIN definition instead.&lt;/p&gt;
[quote user="Brijesh"]since mck pin was configured to 255 i changed it to pin 1[/quote]
&lt;p&gt;Is this a random or conscious choice? Have you chosen it with respect to the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpin.html"&gt;pin assignment documentation for the nRF52840&lt;/a&gt;?&lt;br /&gt;You need to verify that the pins you have high frequency ( &amp;gt; 10 kHz ) signals on is not designated low-frequency pins, as this will interfere with your radio.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Brijesh"]okay thanks for this i have made the necessary connections now how do i proceed.[/quote]
&lt;p&gt;The documentation and common module operation on the nRF52840&amp;#39;s end is described &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fi2s.html"&gt;here&lt;/a&gt;.&lt;br /&gt;When the DA7212 is configured correctly, you can stream audio on your speaker by following the recipe provided in the above link.&lt;br /&gt;&lt;br /&gt;I look forward to hearing how you progress with your application!&lt;br /&gt;Please let me know if you have any more questions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237987?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 10:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f09451-8c18-4216-a210-14d19b6f3eef</guid><dc:creator>Brijesh</dc:creator><description>[quote userid="87984" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237979"]Yes Carl the example is working as intended.[/quote]
&lt;p&gt;please see this answer , i created a new thread by mistake&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237979?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 09:57:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67d96ba1-8b7a-4842-af87-f87a1d16ba8c</guid><dc:creator>Brijesh</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237816"]Could you please also let me know if you were able to get the I2S example to work as intended?[/quote]
&lt;p&gt;Yes Carl the example is working as intended.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237816"]Control of the DA7212 by the nRF52840&amp;nbsp;requires using&amp;nbsp;the I2C interface.[/quote]
&lt;p&gt;Could you tell me how to achieve this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_03_2D00_04-at-12.07.11-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;As there are 2 configurations one with i2c and one with i2s&amp;nbsp;.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237816"]- I2S is used to do audio transfer, since we want the DA7212 to receive input from the nRF52840, we need the DA7212 to be in slave configuration but the default configuration is master.[/quote]
&lt;p&gt;I am assuming this will be done if i connect mclk from nrf board.&lt;/p&gt;
&lt;p&gt;i made some changes to the config in the i2s&amp;nbsp; loop back example program to configure sck , lrck and mck pin as seen below. Please tell me if thats correct.&lt;/p&gt;
&lt;pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;    config.mck_pin=1 ;
    config.lrck_pin=I2S_CONFIG_LRCK_PIN;
    config.sck_pin = I2S_CONFIG_SCK_PIN;&lt;/pre&gt;&lt;/pre&gt;
[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237762"]you are able to see the expected output from the loopback test, as described in the loopback&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/i2s_example_loopback.html"&gt;documentation&lt;/a&gt;?[/quote]
&lt;p&gt;yes i got the expected result wit the loopback test but i noticed in the example the mclk , sck and lrck pins were not configured so i found 2 of the in sdk config&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifndef I2S_CONFIG_SCK_PIN
#define I2S_CONFIG_SCK_PIN 31
#endif
// &amp;lt;o&amp;gt; I2S_CONFIG_LRCK_PIN - LRCK pin  &amp;lt;1-31&amp;gt; 
#ifndef I2S_CONFIG_LRCK_PIN
#define I2S_CONFIG_LRCK_PIN 30
#endif
// &amp;lt;o&amp;gt; I2S_CONFIG_MCK_PIN - MCK pin 
#ifndef I2S_CONFIG_MCK_PIN
#define I2S_CONFIG_MCK_PIN 255
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;since mck pin was configured to 255 i changed it to pin 1&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237816"]Are you familiar with how to find the correct pins on the different headers mentioned in the datasheet?[/quote]
&lt;p&gt;yes i have some idea about it&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237816"]After reading the datasheet, this seems incorrect to me. Please see the &lt;em&gt;J5 - Speaker&lt;/em&gt; &lt;em&gt;output &lt;/em&gt;section&amp;nbsp;of table 2 in the datasheet you linked.[/quote]
&lt;p&gt;okay thanks for this i have made the necessary connections now how do i proceed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237816?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 14:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9b77612-6a11-4698-9498-a1ff33711109</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Could you please also let me know if you were able to get the I2S example to work as intended?&lt;br /&gt;Were you able to see the serial output from the loopback test, as described in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/i2s_example_loopback.html"&gt;documentation&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Brijesh"]Yes i am using the development kit from the vendor Dialogue you may find the&amp;nbsp; data sheet &lt;a href="https://www.dialog-semiconductor.com/sites/default/files/ard-audio-da7212-user-manual-rev1-0.pdf"&gt;here&lt;/a&gt;.[/quote]
&lt;p&gt;Thank you. After having taken a look in the datasheet, the following things stood out to me:&lt;br /&gt;&lt;br /&gt;- Control of the DA7212 by the nRF52840&amp;nbsp;requires using&amp;nbsp;the I2C interface.&lt;br /&gt;&lt;br /&gt;- I2S is used to do audio transfer, since we want the DA7212 to receive input from the nRF52840, we need the DA7212 to be in slave configuration but the default configuration is master.&lt;br /&gt;&lt;br /&gt;- J2 Pin 7 is used for Memory CLK, which needs to come from the nRF52840.&lt;br /&gt;&lt;br /&gt;- I2S requires pins WCLK(Pin 3), BCLK(Pin 1), DI(Pin 5) and DO(Pin 15) connected to the nRF52840.&lt;br /&gt;&lt;br /&gt;- Power: VDD(3V3) on Pin 4 and 8, 5V on Pin 10, GND on Pin 12 and 14.&lt;br /&gt;&lt;br /&gt;Please review this, and see if you would agree.&lt;br /&gt;This is the information that needs to be matched with the information from the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/i2s_example_loopback.html"&gt;I2S example documentation&lt;/a&gt; from the SDK.&lt;br /&gt;&lt;br /&gt;Are you familiar with how to find the correct pins on the different headers mentioned in the datasheet?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Brijesh"]i also connected dout pin of DA7212 to a speakers +ve and -ve to the gnd.[/quote]
&lt;p&gt;After reading the datasheet, this seems incorrect to me. Please see the &lt;em&gt;J5 - Speaker&lt;/em&gt; &lt;em&gt;output &lt;/em&gt;section&amp;nbsp;of table 2 in the datasheet you linked.&lt;/p&gt;
[quote user="Brijesh"]Thankyou for understanding[/quote]
&lt;p&gt;Absolutely, no worries.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237776?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 13:38:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb94673-d28f-4bca-b0f1-ecfabc0050e8</guid><dc:creator>Brijesh</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237762"]If the former, could you provide a schematic of your circuitry, and in case of the latter, could you provide a more detailed name of the breakout board you are using, or a link to its datasheet?[/quote]
&lt;p&gt;Yes i am using the development kit from the vendor Dialogue you may find the&amp;nbsp; data sheet &lt;a href="https://www.dialog-semiconductor.com/sites/default/files/ard-audio-da7212-user-manual-rev1-0.pdf"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I have gone through a few docs on using i2s but i dont think i am heading in the right direction.&lt;/p&gt;
&lt;p&gt;So i have nrf52840, DA7212 and a small speaker. And i want to know how to use them.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237762"]I do not think it will produce any noticeable sound on a speaker.[/quote]
&lt;p&gt;yes thats something i was wondering about. How do you suggest i may go forward to make things work?&lt;/p&gt;
&lt;p&gt;I just want to get started with these 3 things.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237762"]Absolutely no problem at all, we were all new to this at some point! I am happy to help, and will do my best to understand and help with your issue.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thankyou for understanding&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237762?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 13:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a102ef5-6809-4f68-a374-3dc0a232977e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Brijesh"]&amp;nbsp;the connections i made are as follows[/quote]
&lt;p&gt;Could you tell me, are you using a custom board for your DA7212 chip, or are you using a breakout board? If the former, could you provide a schematic of your circuitry, and in case of the latter, could you provide a more detailed name of the breakout board you are using, or a link to its datasheet?&lt;br /&gt;It is hard for me to know your setup and potential problems without this information.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Brijesh"]to see if the reception is happening which is fine.&amp;nbsp;[/quote]
&lt;p&gt;By this, are you saying that the example works as intended, and you are able to see the expected output from the loopback test, as described in the loopback&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/i2s_example_loopback.html"&gt;documentation&lt;/a&gt;?&lt;br /&gt;If it worked as intended, what is the issue you are currently facing?&lt;br /&gt;I see from another comment you have made that you are seeking to play any kind of audio on the speaker, but are unable to do so with the loopback example.&lt;br /&gt;The loopback example, as provided, just checks that the communication is happening as it should, without error. I do not think it will produce any noticeable sound on a speaker.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Brijesh"]i am completely new to audio codec and i2s protocol so please forgive me for any blunder that&amp;nbsp; i might have made. thanks .[/quote]
&lt;p&gt;Absolutely no problem at all, we were all new to this at some point! I am happy to help, and will do my best to understand and help with your issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237735?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 12:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39a7bc0f-a15c-4bd6-b252-c442a9a01a61</guid><dc:creator>Brijesh</dc:creator><description>&lt;p&gt;i just wanna know what do i have to do in order to generate any sound given that i have an nrf52 ,DA7212 and a mini speaker.&lt;/p&gt;
&lt;p&gt;And i know its not the schematic , i don&amp;#39;t have one yet, i didn&amp;#39;t feel it was necessary for making small connections.&lt;/p&gt;
&lt;p&gt;If you want i can share with you the data sheet of DA7212.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237713?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 12:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac1dc22e-7952-4244-842a-b11fc380de94</guid><dc:creator>Brijesh</dc:creator><description>&lt;p&gt;yup i do but i an not an expert.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237689?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 10:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c47c1f-c303-4d5e-bf5f-be22d26e5815</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;That&amp;#39;s not a &lt;em&gt;&lt;strong&gt;schematic&lt;/strong&gt;&lt;/em&gt;!&lt;/p&gt;
&lt;p&gt;trying to explain connections in words is extremely inefficient and usually ineffective - this is exactly why we have schematics (aka &amp;quot;circuit diagrams&amp;quot;).&lt;/p&gt;
[quote userid="87984" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237660"]i am completely new to audio codec and i2s[/quote]
&lt;p&gt;Do you have any experience with electronics in general ?&lt;/p&gt;
&lt;p&gt;Or microcontrollers in general ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237680?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 10:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5339ec79-6428-4a19-9179-23f6cbd4b297</guid><dc:creator>Brijesh</dc:creator><description>&lt;p&gt;[quote userid="6462" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840/237649"][/quote]&lt;/p&gt;
&lt;p&gt;So what have you tried so far?&lt;/p&gt;
&lt;p&gt;What were the results?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i am just trying to play any kind of audio so that i can later work in the algorithms&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237660?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 09:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a74828-3bf3-42f4-a730-dc7dc0745e4a</guid><dc:creator>Brijesh</dc:creator><description>&lt;p&gt;So i am using the i2s loopback example . I am using nrf sdk 16.0,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;the connections i made are as follows&lt;/p&gt;
&lt;p&gt;nrf52840&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DA7212.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pin 27(sdout).&amp;nbsp; &amp;nbsp; Din j2 pin 5&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;5v&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; J7 pin 10&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Gnd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0v&lt;/p&gt;
&lt;p&gt;sck&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j2 Pin 1 (I2S BCLK)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;LRCK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j2 Pin 3 (I2S WCLK)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i also connected dout pin of DA7212 to a speakers +ve and -ve to the gnd.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in the loop back example i was supposed to connect pin 26&amp;nbsp; to pin 27 of nrf52 to see if the reception is happening which is fine.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i am completely new to audio codec and i2s protocol so please forgive me for any blunder that&amp;nbsp; i might have made. thanks .&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237659?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 09:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a5a29a4-e7db-4be0-97fa-98a681082b8f</guid><dc:creator>Brijesh</dc:creator><description>&lt;p&gt;So i am using the i2s loopback example . I am using nrf sdk 16.0,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;the connections i made are as follows&lt;/p&gt;
&lt;p&gt;nrf52840&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DA7212.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pin 27(sdout).&amp;nbsp; &amp;nbsp; Din j2 pin 5&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;5v&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; J7 pin 10&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Gnd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0v&lt;/p&gt;
&lt;p&gt;sck&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j2 Pin 1 (I2S BCLK)&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;LRCK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j2 Pin 3 (I2S WCLK)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;i also connected dout pin of DA7212 to a speakers +ve and -ve to the gnd.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;in the loop back example i was supposed to connect pin 26&amp;nbsp; to pin 27 of nrf52 to see if the reception is happening which is fine.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;i am completely new to audio codec and i2s protocol so please forgive me for any blunder that&amp;nbsp; i might have made. thanks .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237649?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 09:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:062876d8-7145-4d63-b0b3-c74867cfe9a7</guid><dc:creator>awneil</dc:creator><description>[quote userid="87984" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840"]i have made connections but i am not sure if thats right[/quote]
&lt;p&gt;Have you checked with &lt;em&gt;&lt;strong&gt;both&lt;/strong&gt;&lt;/em&gt; the&amp;nbsp;&lt;span&gt;DA7212&amp;nbsp;&lt;strong&gt;documentation&lt;/strong&gt; and the&amp;nbsp; nrf52840 &lt;strong&gt;documentation&lt;/strong&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We cannot see what connections you have made - so cannot comment on whether they are right or not!&lt;/p&gt;
&lt;p&gt;You need to post your schematic!&lt;/p&gt;
[quote userid="87984" url="~/f/nordic-q-a/58599/how-to-interface-da7212-codec-with-nrf52840"]i am trying to use i2s loopback example from sdk[/quote]
&lt;p&gt;So what have you tried so far?&lt;/p&gt;
&lt;p&gt;What were the results?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interface DA7212 codec with nrf52840?</title><link>https://devzone.nordicsemi.com/thread/237646?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 09:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:815c7363-5b46-4ea6-aa3f-f0c3c7eed5ec</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]I am testing DA7212 with my nrf52840 and i have made connections but i am not sure if thats right.[/quote]
&lt;p&gt;Could you please elaborate on what you are trying to achieve, are you attempting to do audio transfer to/from the nRF52840 over the I2S interface?&lt;br /&gt;What hardware connections have you made, and which SDK are you using?&lt;/p&gt;
[quote user=""]i need some guidence[/quote]
&lt;p&gt;Have you seen &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/i2s_example_loopback.html"&gt;the documentation of the I2S loopback example&lt;/a&gt;? It details how the connections for the example must be made, and how you can verify that it is working correctly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>