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

Wavefile playback Problem in nRF52'I2S

Currently, it using the I2S at nRF52832.

I want to play the wave file,But can not play well.

So, I ask you for a check because there is the following question.

[Question]

Is it possible the playback of the wave file with the following [environment 1]?

[ENVIRONMENT 1]

· Nrf52 (I2S Slave) ⇔ Codec-ak4951 (I2S Master) → AMP → Speaker

· details

             Codec                           |        nRF52

             ←  MCK(22579200Hz )     

             LRCK(44100Hz)                   →         LRCK

             SCK(2822400Hz)                  →         SCK

             SDINPUT                         ←         SDOUT

[Config settings]

#define I2S_ENABLED 1

#if (I2S_ENABLED == 1)
#define I2S_CONFIG_SCK_PIN 24
#define I2S_CONFIG_LRCK_PIN 23
#define I2S_CONFIG_MCK_PIN NRF_DRV_I2S_PIN_NOT_USED
#define I2S_CONFIG_SDOUT_PIN 22
#define I2S_CONFIG_SDIN_PIN NRF_DRV_I2S_PIN_NOT_USED
#define I2S_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
#define I2S_CONFIG_MASTER NRF_I2S_MODE_SLAVE
#define I2S_CONFIG_FORMAT NRF_I2S_FORMAT_I2S
#define I2S_CONFIG_ALIGN NRF_I2S_ALIGN_LEFT
#define I2S_CONFIG_SWIDTH NRF_I2S_SWIDTH_16BIT
#define I2S_CONFIG_CHANNELS NRF_I2S_CHANNELS_STEREO
#define I2S_CONFIG_MCK_SETUP NRF_I2S_MCK_32MDIV11
#define I2S_CONFIG_RATIO NRF_I2S_RATIO_64X
#endif
Related