2022-11-15 12:18 AM
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
2022-11-15 01:07 AM
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
I recommend you watch this video for more information
Thx
Ghofrane
2022-11-15 01:10 AM
cpu as master...was also my first setup. but problem with master clk for dac. which dac/codec u want to use?