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
解決済! 解決策の投稿を見る。
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.
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.
Hi all,
you can change mode of operation (master (slave) even module is working - not only in reset state. Default is slave mode.
/Jiri
Hi all,
Thank you for reply.
We settled this matter.
I'm grateful.
Best regards,
soichi
Hi Soichi,
Q1. Yes MDIS = 0 make I2C module enabled: see RM
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:
/Jiri