cancel
Showing results for 
Search instead for 
Did you mean: 

How to interface external audio codec like ADAU1978 to STM32F407?

Niyathi Shenoy
Associate II
Posted on April 23, 2018 at 11:37

I have an ADC ADAU1978 which i need to interface with STM32F407. How do start with it?

2 REPLIES 2
AvaTar
Lead
Posted on April 23, 2018 at 13:35

Reading the datasheets.

Posted on April 23, 2018 at 23:16

There are two interfaces to most such devices: control interface (here, I2C or SPI) and data interface (here, uni-directional I2S with two data lines). You need to handle both. So - after having thoroughly read the datasheets :) - you might first try to connect and handle the control interface, reading and writing various registers. The I2S with two data lines may sound scary and there's no pre-chewed example for that, but in fact if you configure the codec to generate all the needed clocks (i.e. it being the master) and use two I2S modules in the 'F4 set both to slave receiver, it will work just fine if you connect the bitclock and wordclock of both of them externally. You can use also one I2S/SPI and one of the corresponding I2SExt; the clocks then are interconnected internally.

JW