Sequence to Disable I2C Module After Transmission for FCR4 MCUs - KBA211486

Version: **

 

Question:

What is the right way to disable the I2C module after the I2C transmission is completed for FCR4 MCUs?

 

Answer:

If the I2C module has to be disabled after a transmission, it is necessary to give time to the module to reach the idle state. There is a bit flag in the register I2Cn_IBCSR called BB (Busy Bit) that is ‘1’ while the communication is in progress and ‘0’ when the communication is ended and the module is in idle state. So the user must check this Busy Bit to ensure that the module is in idle state, and then disable the module.

  1. The program flow is as follows:
  2. Generate the I2C start condition.
  3. Issue read/write I2C commands.
  4. Generate the I2C stop condition.
  5. Wait until BB is 0.
  6. Disable the I2C module.

Disabling the I2C module is not necessary for normal I2C operation.