Hello,
I want to use the TCA9544A to communicate with four light sensors. I want to use it as multiplexer and also as a level shifter to get from a 5V I2C from my Master to a 3.3V level of my slave. But I can't select the channels of the TCA9544A. My Master is an ATmega328P.
At first I just want to select channel 0
I send a start condition with the address 0x70h and a write bit
--> i2c_start(MUX_adr + I2C_WRITE);
afterwards I want to selct channel 0 with 0x04h
--> i2c_write(MUX_channel_adr);
after this i just set a stop condition and want to talk with my light sensor
--> i2c_stop();
I tried to debug a bit and it seems that I can send the start condition, but it gets stucked somewhere in the part where I want to write to the register to select the Channel.
I use a I2C clock frequency with 400kHz do I have to enable the fast Mode somehowe?
Thank you already for your help!