FAQ

FAQ

How to handle I2C bus hang-up in slave mode?  Issue Date:2015-03-18

The I²C controller provides a 14-bit time-out counter to handle I2C bus hang-up. If the I2C bus is hung up, it causes I2CSTATUS and the flag SI not updated for a period, and the 14-bit time-out counter may overflow and acknowledge CPU the I2C interrupt. Refer to the following figure for the 14-bit time-out counter. User may write 1 to clear TIF to 0 and reset I²C.

FAQ50

For example, if Pclk is 1 MHz, the time-out value is 1us*214= 16384us.

Products: Microcontrollers ,Arm Cortex-M0 MCUs ,M051 Base Series ,M0518 Series ,Mini51 Base Series ,Nano100/102 Base Series ,Nano110/112 LCD Series ,Nano120 USB Series ,Nano130 Advanced Series ,NUC029 Series ,NUC100/200 Advanced Series ,NUC120/122/123/220 USB Series ,NUC130/230 CAN Series ,NUC131/NUC1311 CAN Series ,NUC140/240 Connectivity Series ,Arm Cortex-M4 MCUs ,M451 Base Series ,M451M Series ,M452 USB Series ,M453 CAN Series ,NUC442/472 Series ,NUC505 Series
Applications:
Function: Peripherals,Connectivity,I2C
This website uses cookies to ensure you get the best experience on our website. Learn more
OK