AnsweredAssumed Answered

I2C Detecting Idel bus

Question asked by Alexander Agudelo on Mar 1, 2016
Latest reply on Mar 29, 2016 by Alexander Agudelo


Hi, I'm working with a KL25Z MCU in an I2C multimaster configuration (yes, it's a nightmare but such is life) and sometimes the bus gets locked up when 2 masters are trying to initiate communication at the same time.

 

I'm trying to use the SHTF1 bit from the SMB register to determine if the I2C bus is idle but I've got mixed results (sometimes the bit is set sometimes it isn't). I have a custom hardware already produced and cannot use external pins to detect the state of the lines.

 

Have any of you worked with the SMBus register before? Any advice?

 

Cheers,

 

Alex.

Outcomes