How to interface external audio codec like ADAU1978 to STM32F407?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-23 02:37 AM
I have an ADC ADAU1978 which i need to interface with STM32F407. How do start with it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-23 04:35 AM
Reading the datasheets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-23 02:16 PM
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