Hi@allen90310
For example: Set Slave Address = 0x27,
1.Configure slave Address 0x27 (Slave address,7-bit or 10-bit) in Ipi2c1.h
lpi2c_slave_user_config_t lpi2c1_SlaveConfig0 = {
.slaveAddress = 39U,//0x27
.is10bitAddr = false,
.slaveListening = true,
.operatingMode = LPI2C_STANDARD_MODE,
.transferType = LPI2C_USING_INTERRUPTS,
.dmaChannel = 0U,
.slaveCallback = lpi2c1_SlaveCallback0,
.callbackParam = NULL,
};
2.Use "LPI2C_DRV_SlaveInit(INST_LPI2C1, &lpi2c1_SlaveConfig0, &lpi2c1SlaveState);",it will call function" LPI2C_Set_SlaveAddr0();" and then set Slave address7-bit or 10-bit.

3.Register value.

BR!
Jim,
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------