cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

duli_3411451
New Contributor II

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

0 Likes
1 Solution
ShifangZ_26
Moderator
Moderator

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

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