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.

PCA9548A: PCA9548A I2C switch control register and device probe

Part Number: PCA9548A

Hi Sir,

I want to know how to directly using i2c-tool command control register to access sensors through I2C switch?

I can probe I2C switch(PCA9548A) and get address (0x71) currently.

Because of PCA9548A driver seems not probe in my platform,so I want to check sensors through I2C switch that can probe address in the first.

Can you help me and provide how to control register to enable channel on 8-I2C switch and get address information?

Thank you very much.

  • Vicky,

    An applications engineer has been notified of this thread and will respond accordingly.

    Regards,

    Eric Hackett

  • Hi Vicky,

    In order to enable the different channels in the PCA9548A you will have to send an I2C write command:

    The command starts with the address of the PCA9548A and a write bit. Since the address you are using is 0x71, the full byte of data that you will send will be 0xE2. This includes your address field a 0 for the write bit.

    After you receive an ACK (a low on the bus) from the PCA9548A you will send your control register bits:

    For example if you wanted to enable channel 7, 4, and 2 but leave every other channel disabled you would write: 0b10010100 or in hex this would be 0x94. After another ACK from the PCA9648A you are done with enabling the channels.

    Let me know you need any further clarification.

    Best,

    Chris

  • Thank you very much.

    I will discuss with you if I have any further question about PCA9548A.