AnsweredAssumed Answered

I2C STOP mode generation problem

Question asked by HU Qiang on Jun 7, 2016
Latest reply on Jun 13, 2016 by HU Qiang

Hi, everybody!

 

When I want to generate a stop signal in I2C of MPC5748G, there is something puzzle me.

 

In master transmiting and slave receiving mode

(I2C_2 is the master node, I2C_3 is the slave node),

the stop signal can be generated right by

Here's the question,

In master receiving and slave transmiting mode

(I2C_2 is the master node, I2C_3 is the slave node),

why the stop signal can not be generated right by

After I run this function, the IBB bit of IBCR register is still equals to 1, which means the bus is busy, the stop signal isn't generated. The whole program will stuck at

What should I do when I want to generate a stop signal in master receiving and slave transmiting mode?

 

Attachment is my program project for reference.

 

Thanks a lot!

Original Attachment has been moved to: mpc5748g_Z4_1.zip

Outcomes