cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f407-Discovery : Configuration of I2S full duplex mode for using external audio codec

SJoo.1
Associate II

Hi, expert,

I'd like to use external audio codec with STM32f407-Discovery.

STM32 is master and Audio data is receved and transfered using I2S3 Interface.

Below is connection between STM32F407 and Audio Codec.

And I used I2S DMA for transfer and receive data.

<STM32F4> <Audio Codec>

I2S3CK (PA10) ------------------> BCLK

I2S3WS (PA4) ------------------> WCLK

I2S3_SD(PC12) ------------------> SDIN

I2S3_ext_SD(PC11) <------------------ SDOUT

I2S3CK : give bclk to audio codec.

I2S3WS : give wclk to audio codec.

I2S3_SD : transfer pcm data to audio codec.

I2S3_ext_SD : receive pcm data from audio codec.

My questions are

1. Is it correct to configure audio system like above?

2. If it is correct, then do I use transfer and receive DMA data at the same time?

Thanks,

SeungKyu Joo

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @SJoo.1​ 

First let me thank you for posting.

According to the UM1472 page 34

I2S3_MCK (PC7) --> CLK

I2S3_WS (PC10) --> SCLK

I2S3_SCK (PC12) --> SDIN

I2S3_SD (PA4) --> LRCK

0693W00000WIMpUQAX.pngI recommend you watch this video for more information

Thx

Ghofrane

AScha.3
Chief II
  1. yes, but not perfect.
  2. shure, and use circular DMA 2x .

cpu as master...was also my first setup. but problem with master clk for dac. which dac/codec u want to use?

If you feel a post has answered your question, please click "Accept as Solution".