Announcements

Learn how to optimise USB-C for your designs at 18 May's USB-C PD Webinar.
Click here to register.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

duli_3411451
Level 1
Level 1
First like given

What's the slave address of CCG3' I2C2 port(GPIO3.4、GPIO3.5),when used as slave I2c?

1 Solution
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi ,

If your question is I2C bootloader for this two pin and working as I2C slave via HPI SPEC, the I2C slave address is 0x40, 0x42, and 0x08 with difference state on I2C_CFG pin (Pin#16 GPIO P2[1]).

/**

* @brief I2C slave address to be used for HPI interface, when the I2C_CFG pin is sensed as LOW.

*/

#define HPI_ADDR_I2C_CFG_LOW            (0x40)

/**

* @brief I2C slave address to be used for HPI interface, when the I2C_CFG pin is sensed as HIGH.

*/

#define HPI_ADDR_I2C_CFG_HIGH           (0x42)

/**

* @brief I2C slave address to be used for HPI interface, when the I2C_CFG pin is sensed as FLOATING.

*/

#define HPI_ADDR_I2C_CFG_FLOAT          (0x08)

Best Regards,

Lisa

View solution in original post

0 Likes
1 Reply
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi ,

If your question is I2C bootloader for this two pin and working as I2C slave via HPI SPEC, the I2C slave address is 0x40, 0x42, and 0x08 with difference state on I2C_CFG pin (Pin#16 GPIO P2[1]).

/**

* @brief I2C slave address to be used for HPI interface, when the I2C_CFG pin is sensed as LOW.

*/

#define HPI_ADDR_I2C_CFG_LOW            (0x40)

/**

* @brief I2C slave address to be used for HPI interface, when the I2C_CFG pin is sensed as HIGH.

*/

#define HPI_ADDR_I2C_CFG_HIGH           (0x42)

/**

* @brief I2C slave address to be used for HPI interface, when the I2C_CFG pin is sensed as FLOATING.

*/

#define HPI_ADDR_I2C_CFG_FLOAT          (0x08)

Best Regards,

Lisa

0 Likes