AnsweredAssumed Answered

IIC busy flag always set after IIC enable as master

Question asked by Paul-Daniel Piscoi on Nov 7, 2011
Latest reply on Nov 8, 2011 by Paul-Daniel Piscoi

Hi,

I hope someone can help me with this issue I am struggling with for the last couple of days.

Hardware: QG8 with 5.6K pull-up resistors on both SCL and SDA.

Software:

void main(void) {
  MCU_init();

  IICC = 0x00;
 
  IICC_MST = 1;
  IICC_IICIE = 1;
  IICC_IICEN = 1;
 
  while(IICS_BUSY) { }
}

Problem:

After line "IICC_IICEN=1" IICS_BUSY is set and never cleared. Is this normal? If so, how can I clear it? If it is not OK then what am I doing wrong?

This happens only if I set the master bit (i.e "IICC_MST = 1"). Currently there is no other device in the system, just my QG8 with it's pull-up resistors.

Thank you!

Paul.

Outcomes