i.mx6 i2c set to slave?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.mx6 i2c set to slave?

7,532件の閲覧回数
guohn
Contributor III

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,
Shannon

ラベル(4)
0 件の賞賛
返信
1 返信

6,971件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Shannon

as stated in sect.35.3 Driver Features attached Linux Manual :

The I2C driver does not support the I2C slave mode of operation.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信