Tool/software:
Hi!
I have been developing a product for a while now and I have been recommended the Texas Instruments Codec TLV320AIC3101IRHBR. Unfortunately, I have never programmed a codec like this and am a little confused. I have ordered many boards with this and just need some help getting it going. This is connected to an ESP32S3 and I put the pins below. Basically, I need to know how to initialize this and send audio through I2S to it. The outputs of this are connected to a PAM8403 amp. This is only going to play mp3 at 44.1k in stereo. But I am not sure what things need to be initialized. I also have a potentiomter connected I want to use the ADC to control the volume. I have put the pins below. Can someone help me?
I2C_SDA = IO15
I2C_SCL = IO12
I2S_DOUT = IO17
I2S_DIN = IO18
I2S_WCLK = IO19
I2S_BCLK = IO20
I2S_MCLK = IO21
Potentiometer A0 = IO1