Question I2C0 Configuration? in VF5xx

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Question I2C0 Configuration? in VF5xx

跳至解决方案
1,570 次查看
soichiyamamoto
Contributor V

Hi,

I use master mode in i2c0.

In the case of I2C0_IBCR[MDIS] = 1, I can set I2C0_IBCR[MSSL] =1 .

And, In the case of I2C0_IBCR[MDIS] = 0, I can not set I2C0_IBCR[MSSL] =1 .

I ask about this problem matter.


Q1)

Is I2C0_IBCR[MDIS] = 0 enable of I2C0 ?

Q2)

In the case of I2C0_IBCR[MDIS] = 1, I can set I2C0_IBCR[MSSL] =1 .

Is this specifications of this I2C module?

Q3)

In the case of I2C0_IBCR[MDIS] = 0,What should I2C0_IBCR[MSSL] = 1 do to set it?

Best Regards,

soichi

标签 (1)
0 项奖励
回复
1 解答
1,333 次查看
MehmetAliIpin
Contributor V

Dear Soici San,

When the MDIS(module disable) bit is set, the  module is disabled, and then you can set the working modes/states like Master/Slave, Tx/Rx, etc.

When MDIS bit is cleared, this means module is enabled/working, then you are not allowed to change the mode/state.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,334 次查看
MehmetAliIpin
Contributor V

Dear Soici San,

When the MDIS(module disable) bit is set, the  module is disabled, and then you can set the working modes/states like Master/Slave, Tx/Rx, etc.

When MDIS bit is cleared, this means module is enabled/working, then you are not allowed to change the mode/state.

0 项奖励
回复
1,333 次查看
jiri-b36968
NXP Employee
NXP Employee

Hi all,

you can change mode of operation (master (slave) even module is working - not only in reset state. Default is slave mode.

/Jiri

0 项奖励
回复
1,333 次查看
soichiyamamoto
Contributor V

Hi all,

Thank you for reply.

We settled this matter.

I'm grateful.

Best regards,

soichi

0 项奖励
回复
1,333 次查看
jiri-b36968
NXP Employee
NXP Employee

Hi Soichi,

Q1. Yes MDIS = 0 make I2C module enabled: see RM

pastedImage_3.png

Q2.

Setting of any bit has no effect if module is in SW reset state (MDIS == 1). You can set it but it become valid after module is enabled (MDIS == 0).

Q3. see RM:

pastedImage_4.png

/Jiri

0 项奖励
回复
1,333 次查看
YixingKong
Senior Contributor IV

jiri-b36968, could you help the customer's question?

Thanks,

Yixing

0 项奖励
回复