HI2CStop

Syntax:

    HI2CStop

Command Availability:

Only available for microcontrollers with the hardware I2C or TWI module.

Explanation:

HI2CStop should be called at the end of every I2C transmission.

Note:

This command is also available on microcontrollers with a second hardware I2C port.

    HI2C2Stop

Example:

    'Writes a single byte to a hardware I2C EEPROM at device address 0xA0, memory address 0x00
    HI2CStart
    HI2CSend 0xA0
    HI2CSend 0x00
    HI2CSend 0x55
    HI2CStop          ' <<< the HI2CStop instruction

Key line: HI2CStop — sends the stop condition that ends the hardware I2C transmission.

See Also:

Supported in <HI2C.H>