AnsweredAssumed Answered

MC9S08GT60A - I2C arbitration lost

Question asked by Martin Dusek on May 1, 2009
Latest reply on May 2, 2009 by Martin Dusek

Hello,

I try to write data to I2C bus, but everytime immediately after I set IIC1C_MST bit in I2CWrite() function, IIC1S_ARBL bit is set so I2C interrupt routine is executed. What can cause that it?

 


void I2CInit() {  IIC1C_IICEN = 1;  IIC1A = 0x00;  IIC1F = 0x8D;    IIC1C_IICIE = 1;}void I2CWrite() {  IIC1S;  IIC1S_IICIF=1;  IIC1C_TX = 1;  IIC1C_MST = 1;  wait_5us();  IIC1D = 0x10;}

Outcomes