Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
5.2.8.1 I2C_Init – Initializes I2C module
Prototype
sub procedure I2C_Init(const Clock as longint)
Description Initializes I2C module. Parameter <Clock> is a desired I2C clock (refer to device data sheet for correct values in
respect with Fosc).
Example
I2C_Init(100000)
5.2.8.2 I2C_Start – Issues start condition
Prototype
sub function I2C_Start as byte
Description Determines if I2C bus is free and issues START condition; if there is no error, function returns 0.
Example
I2C_Start
5.2.8.3 I2C_Repeated_Start – Performs repeated start
Prototype
sub procedure I2C_Repeated_Start
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (56 sur 112)05/11/2004 02:20:52