ABL electronic PIC16 Personal Computer User Manual


 
MikroElektronika:
Development
tools
-
Books
-
Compilers
25 5
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Prototype
void Soft_I2C_Start(void);
Description Issues START signal. Needs to be called prior to sending and receiving data.
Requires Soft I²C must be configured before using this function. See Soft_I2C_Config.
Example
Soft_I2C_Start();
Soft_I2C_Start
Prototype
char Soft_I2C_Read(char ack);
Returns Returns one byte from the slave.
Description Reads one byte from the slave, and sends not acknowledge signal if parameter ack is 0,
otherwise it sends acknowledge.
Requires START signal needs to be issued in order to use this function. See Soft_I2C_Start.
Example
tmp = Soft_I2C_Read(0); //Read data, send not-acknowledge signal
Soft_I2C_Read