I2CReset

Syntax:

    I2CReset

Command Availability:

Available on all microcontrollers except 12 bit instruction Microchip PIC microcontrollers (10F, 12F5xx, 16F5xx chips)

Explanation:

This will attempt a reset of the I2C by changing the state of the I2C bus.

Example:

    'Call if the I2C bus appears to be stuck, for example a slave device holding SDA low
    I2CReset          ' <<< the I2CReset instruction

Key line: I2CReset — toggles the I2C bus lines in an attempt to clear a stuck or hung bus condition, such as a slave device holding SDA low.

Supported in <I2C.H>

See Also: