Usinb i2c to setup switch using MAX 4571

I am using Arduino Nano and I2C protocol to select a pair of switches on MAX 4571. MAX 4571 expects address and mode as two bytes and then two bytes to select pair of switches. Below is the code I am using:
Wire.beginTransmission(MAX_ADDRESS);
Wire.write(MAX_SWITCH_MODE);
delay(3);
Wire.write(maxDataL, 2); // first byte
Wire.write(maxDataR, 2); // second byte

Wire.endTransmission();

Unfortunately it looks that the chip does not switch the inputs to common ports (all common ports are connected together per each channel (L, R). Max address is -> #define MAX_ADDRESS B01101100 and max switch mode is = #define MAX_SWITCH_MODE B11000000 (axactly as in chip documentation and A0 and A1 are wired as recommended in documentation (A0 -GND, A1 to +5V over 10K resistor).
Chip does not switch inputs on changing the values of maxDatL and maxDataR and the output is always then same (almost square 1kHz). Input is 1kHz sine wave regardless of data sent to change switch

Appreciate if someone can help me properly use i2c to get max start switching.. (attached is the data sheet for the chip)

Thanks Igor

MAX4571-MAX4574.pdf (315 KB)

are you sure you using the right i2c address for your setup?

https://playground.arduino.cc/Main/I2cScanner

Thanks for the link. Scanner showed me the right address used so now it works. :slight_smile: