Question I2C0 Configuration? in VF5xx

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

Question I2C0 Configuration? in VF5xx

ソリューションへジャンプ
1,566件の閲覧回数
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,329件の閲覧回数
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,330件の閲覧回数
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,329件の閲覧回数
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,329件の閲覧回数
soichiyamamoto
Contributor V

Hi all,

Thank you for reply.

We settled this matter.

I'm grateful.

Best regards,

soichi

0 件の賞賛
返信
1,329件の閲覧回数
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,329件の閲覧回数
YixingKong
Senior Contributor IV

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

Thanks,

Yixing

0 件の賞賛
返信