Skip to main content
Niyathi Shenoy
Associate III
April 23, 2018
Question

How to interface external audio codec like ADAU1978 to STM32F407?

  • April 23, 2018
  • 2 replies
  • 838 views
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?

    This topic has been closed for replies.

    2 replies

    AvaTar
    Senior III
    April 23, 2018
    Posted on April 23, 2018 at 13:35

    Reading the datasheets.

    waclawek.jan
    Super User
    April 23, 2018
    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