This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCA6416A: what is the slave address of this device for writting and reading.

Part Number: TCA6416A

I am programming this device but i am getting confused about what hex command do i need to use for reading and writting operation. I am intially with an impression that the LSB bit is read and write operation. in the datasheet it is given like this 

0 1 0 0 0 0 0 r/w , I have taken address bit as low. 

My questions are the following: 

  1. How this address is considered as 0x20 , do i need to right shift? 
  2. if i need to write some data what would be hex number ? 
  3. if i need to read what would be hex number? 

  • Hi Ashokraj,

    The first byte sent after the start condition should be the seven bit slave address followed by the read/write bit to total 8 bits. The 9th bit following will be the ACK from the slave. In the case of this device with the address pin tied LOW, the byte that would need to be transmitted on the bus would be 0x40 for a write and 0x41 for a read.
    Depending on the master device being used, the slave address may be saved separately as 0x20 and a read/write function used to handle the shifting and read/write bit. Alternatively, the master may require the programmer to store the subsequent byte for transmission on the I2C bus. 

    Let me know if this answers your question.