This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to interface DA7212 codec with nrf52840?

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

Parents
  • Hello,

    I am testing DA7212 with my nrf52840 and i have made connections but i am not sure if thats right.

    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?
    What hardware connections have you made, and which SDK are you using?

    i need some guidence

    Have you seen the documentation of the I2S loopback example? It details how the connections for the example must be made, and how you can verify that it is working correctly.

    Best regards,
    Karl

     

  • So i am using the i2s loopback example . I am using nrf sdk 16.0,

     the connections i made are as follows

    nrf52840             DA7212.                      

    pin 27(sdout).    Din j2 pin 5  

    5v                      J7 pin 10  

    Gnd                     0v

    sck                    j2 Pin 1 (I2S BCLK)

    LRCK                j2 Pin 3 (I2S WCLK)

    i also connected dout pin of DA7212 to a speakers +ve and -ve to the gnd.

    in the loop back example i was supposed to connect pin 26  to pin 27 of nrf52 to see if the reception is happening which is fine. 

    i am completely new to audio codec and i2s protocol so please forgive me for any blunder that  i might have made. thanks .

     

  • Hello,

    Brijesh said:
     the connections i made are as follows

    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?
    It is hard for me to know your setup and potential problems without this information.

    Brijesh said:
    to see if the reception is happening which is fine. 

    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 documentation?
    If it worked as intended, what is the issue you are currently facing?
    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.
    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.

    Brijesh said:
    i am completely new to audio codec and i2s protocol so please forgive me for any blunder that  i might have made. thanks .

    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.

    Best regards,
    Karl

  • 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?

    Yes i am using the development kit from the vendor Dialogue you may find the  data sheet here.

    I have gone through a few docs on using i2s but i dont think i am heading in the right direction.

    So i have nrf52840, DA7212 and a small speaker. And i want to know how to use them.

    I do not think it will produce any noticeable sound on a speaker.

    yes thats something i was wondering about. How do you suggest i may go forward to make things work?

    I just want to get started with these 3 things.

    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.

    Thankyou for understanding

  • Could you please also let me know if you were able to get the I2S example to work as intended?
    Were you able to see the serial output from the loopback test, as described in the documentation?

    Brijesh said:
    Yes i am using the development kit from the vendor Dialogue you may find the  data sheet here.

    Thank you. After having taken a look in the datasheet, the following things stood out to me:

    - Control of the DA7212 by the nRF52840 requires using the I2C interface.

    - 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.

    - J2 Pin 7 is used for Memory CLK, which needs to come from the nRF52840.

    - I2S requires pins WCLK(Pin 3), BCLK(Pin 1), DI(Pin 5) and DO(Pin 15) connected to the nRF52840.

    - Power: VDD(3V3) on Pin 4 and 8, 5V on Pin 10, GND on Pin 12 and 14.

    Please review this, and see if you would agree.
    This is the information that needs to be matched with the information from the I2S example documentation from the SDK.

    Are you familiar with how to find the correct pins on the different headers mentioned in the datasheet?

    Brijesh said:
    i also connected dout pin of DA7212 to a speakers +ve and -ve to the gnd.

    After reading the datasheet, this seems incorrect to me. Please see the J5 - Speaker output section of table 2 in the datasheet you linked.

    Brijesh said:
    Thankyou for understanding

    Absolutely, no worries.

    Best regards,
    Karl 

Reply
  • Could you please also let me know if you were able to get the I2S example to work as intended?
    Were you able to see the serial output from the loopback test, as described in the documentation?

    Brijesh said:
    Yes i am using the development kit from the vendor Dialogue you may find the  data sheet here.

    Thank you. After having taken a look in the datasheet, the following things stood out to me:

    - Control of the DA7212 by the nRF52840 requires using the I2C interface.

    - 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.

    - J2 Pin 7 is used for Memory CLK, which needs to come from the nRF52840.

    - I2S requires pins WCLK(Pin 3), BCLK(Pin 1), DI(Pin 5) and DO(Pin 15) connected to the nRF52840.

    - Power: VDD(3V3) on Pin 4 and 8, 5V on Pin 10, GND on Pin 12 and 14.

    Please review this, and see if you would agree.
    This is the information that needs to be matched with the information from the I2S example documentation from the SDK.

    Are you familiar with how to find the correct pins on the different headers mentioned in the datasheet?

    Brijesh said:
    i also connected dout pin of DA7212 to a speakers +ve and -ve to the gnd.

    After reading the datasheet, this seems incorrect to me. Please see the J5 - Speaker output section of table 2 in the datasheet you linked.

    Brijesh said:
    Thankyou for understanding

    Absolutely, no worries.

    Best regards,
    Karl 

Children
No Data
Related