tda7314 problem - not working

Hello,
I have problem with starting up tda7314. I read the datasheet and i was thinking i understood it but i couldnt comunicate with this chip so far. I send all the options for test without changing sound, just for test but i dont get any output signal. Here is code i 'wrote' :slight_smile:

void setup(){
Wire.begin();

Wire.beginTransmission(136); adres
Wire.write(0) ; //full volume
Wire.write(192); //att lr to 0db
Wire.write(224); //att rr to 0db
Wire.write(128); //att lf to 0db
Wire.write(160); //att rf to 0db
Wire.write(B11000); //stereo
Wire.write(111); //bass 0db
Wire.write(127); //treble 0db
Wire.endTransmission(); //stop
}

i2c line is working, i2c scanner found chip at adr 0x40

0x40 != 136

I know, but in datasheet adress is 10001000 = 136 = 0x88, i tried 0x40, doesnt work either

Try 0x44.

Note

There are both 7- and 8-bit versions of I2C addresses. 7 bits identify the device, and the eighth bit determines if it's being written to or read from. The Wire library uses 7 bit addresses throughout. If you have a datasheet or sample code that uses 8 bit address, you'll want to drop the low bit (i.e. shift the value one bit to the right), yielding an address between 0 and 127. However the addresses from 0 to 7 are not used because are reserved so the first address that can be used is 8.

still doesnt work, maybe something is wrong with the program

There could be a wiring issue.

Im sure there is not but i will check. Are u sure the written program is good for this tda? will it work ?

  Wire.write(B11000);      //stereo

is the wrong command, it should be:

  Wire.write(B01011000);      //stereo

It works now, problem with piece of code by aarg and adr is 0x40 :slight_smile: also test it on audio input on sound card or directly on amp because sound level is to small :slight_smile: