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

i2S SCLK and LRCK nRF52832 DK

Any updates on this from anyone? Please advise

Hi,

The i2S microphone that I am using requires a over sampling rate fixed at 64 therefore the WS signal (LRCLK on nrf52) must be BCLK/64 and therefore synchronized to the BCLK (SCLK on nrf52). This translates to valid BCLK frequencies from 2.048MHz to 4.096MHz and sampling rates from 32kHz to 64kHz, respectively.

The data format is I2S, 24 bit, 2's complement.

My question is, how do I obtain these frequencies with the nrf52832 DK?

The rules for the SCLK and LRCLK on nRF52 are as follows:

  1. LRCK = MCK/CONFIG.RATIO
  2. SCK = 2 * LRCK * CONFIG.SWIDTH
  3. CONFIG.RATIO/(2 * SWIDTH) needs to be an integer

Since 2 * CONFIG.SWIDTH = 2 * 24 = 48, equation (2) becomes SCK = 48 * LRCK. Based on our requirements, we want this ratio to be 64.

Any insights on how to make this work?

Thanks.

Related