Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
5.2.18.2 Soft_I2C_Start – Issues START condition
Prototype sub procedure Soft_I2C_Start
Description Issues START condition.
Example
Soft_I2C_Start
5.2.18.3 Soft_I2C_Write – Send data byte via I2C bus
Prototype sub function Soft_I2C_Write(dim Data as byte) as byte
Description After you have issued a start signal you can send <Data> byte via I2C bus. The function returns 0 if there are no
errors.
Example
Soft_I2C_Write($A3)
5.2.18.4 Soft_I2C_Read – Receives byte from slave
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (103 sur 112)05/11/2004 02:20:55