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

i2S digital microphone with nRF52832

I am using a digital microphone using i2S interface with the following signals: BCLK (bit clock), WS (word strobe), SELECT (select for Left/Right) and SDOUT (digital data output).

On nRF52 there are five main signals for i2S including MCLK, LRCLK, SCLK, SDIN and SDOUT.

How are these signals mapped to each other, in particular the MCLK?

Thanks, Faizan

Parents
  • Hi Khaled,

    check out the I2S example in the SDK. You will find a line err_code = nrf_drv_i2s_init(&config, data_handler); in the main. If you track down config, you will see it has the type nrf_drv_i2s_config_t and the default values stored in NRF_DRV_I2S_DEFAULT_CONFIG. Now it you look at that more precisely in nrf_drv_i2s.h then you will see that the pins have following values:

    #define I2S_CONFIG_SCK_PIN      22
    #define I2S_CONFIG_LRCK_PIN     23
    #define I2S_CONFIG_SDIN_PIN     25
    

    as defined in nrf_drv_config.h.

    Look here to see where those pins are on the development board.

    I hope that helps.

    NewtoM

Reply
  • Hi Khaled,

    check out the I2S example in the SDK. You will find a line err_code = nrf_drv_i2s_init(&config, data_handler); in the main. If you track down config, you will see it has the type nrf_drv_i2s_config_t and the default values stored in NRF_DRV_I2S_DEFAULT_CONFIG. Now it you look at that more precisely in nrf_drv_i2s.h then you will see that the pins have following values:

    #define I2S_CONFIG_SCK_PIN      22
    #define I2S_CONFIG_LRCK_PIN     23
    #define I2S_CONFIG_SDIN_PIN     25
    

    as defined in nrf_drv_config.h.

    Look here to see where those pins are on the development board.

    I hope that helps.

    NewtoM

Children
No Data
Related