AnsweredAssumed Answered

i.mx6 i2c set to slave?

Question asked by guohn on Feb 15, 2017
Latest reply on Feb 15, 2017 by igorpadykov

We need set i.mx6's i2c to slave mode.But not occur interrupt.


The following is my initialization step:

writeb(0x20, i2c_imx->base + IMX_I2C_IADR);//set i2c slave addr to 0x20


writeb(I2CR_IEN, i2c_imx->base + IMX_I2C_I2CR);//enable i2c 


temp = readb(i2c_imx->base + IMX_I2C_I2CR);//

temp |= I2CR_IIEN;
writeb(temp, i2c_imx->base + IMX_I2C_I2CR);//enable i2c interrupt


Then other device i2c send to mx6, and i.mx6 not occur interrupt.


Who knows what's the problem?


Best Regards,