Can I connect audio codec AD1934 with BF547 through I2C bus? Hope you have similar experience to share with me. Thanks!
I do not know if there is an example for AD1934. But the datasheet says you can interface with SPI or I2C for control configuration. There is an example for SPI already with VDSP, for the same family - AD1938.
C:\Program Files\Analog Devices\VisualDSP 5.0 (1)\Blackfin\Examples\ADSP-BF537 EZ-Kit Lite\Audio EZ-Extender Talkthrough (C)
There is no much info in the device datasheet and it only says:
CONTROL REGISTERSDEFINITIONSThe format is the same for I2C and SPI ports. The global address for the AD1934 is 0x04, shifted left 1 bit due to the R/W bit. However, in I2C, ADR0 and ADR1 are OR’ed into Bit 17 and Bit 8 to provide multiple chip addressing. All registers are reset to 0, except for the DAC volume registers that are set to full volume.
But I believe it is trivial, if you know the transfer sequence for configuration. You can also search for some threads or discussions here on TWI/I2C.
Retrieving data ...