Question I2C0 Configuration? in VF5xx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question I2C0 Configuration? in VF5xx

Jump to solution
1,586 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,349 Views
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.

View solution in original post

0 Kudos
Reply
5 Replies
1,350 Views
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 Kudos
Reply
1,349 Views
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 Kudos
Reply
1,349 Views
soichiyamamoto
Contributor V

Hi all,

Thank you for reply.

We settled this matter.

I'm grateful.

Best regards,

soichi

0 Kudos
Reply
1,349 Views
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 Kudos
Reply
1,349 Views
YixingKong
Senior Contributor IV

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

Thanks,

Yixing

0 Kudos
Reply