Hello everybody,
i'm trying to setup my TAS5707 board without the PSIA interface board from the eval kit.
By now, i'm struggeling to initialise the TAS5707 from an AVR via I2C. The I2C is tested working, so sending bytes should work. The device address is set to 0x36.
I implemented the init sequence from the datasheet, so that is my simplified code:
//wait 50ms delay_ms(50); //Trim oscillator (write 0x00 to register 0x1B) out_buffer[0] = TRIM_OSC; out_buffer[1] = 0x00; i2c_write(DEVICE_ADDRESS, out_buffer); //wait 100ms delay_ms(100); //Exit shutdown sequence (write 0x00 to register 0x05) out_buffer [0] = SYSCTRLREG2; out_buffer [1] = 0x00; i2c_write(DEVICE_ADDRESS, out_buffer); //wait 50ms delay_ms(50); //Set master volume (write 0x00 to register 0x07) out_buffer [0] = MASTER_VOL; out_buffer [1] = 0x00; i2c_write(DEVICE_ADDRESS, out_buffer); //wait 50ms delay_ms(50);
Before I go on debugging the system, can you please verify if that procedure is sufficient for playing audio. The data format, clock setting etc. are the same as the default values which are set.
Greets Markus