mikroElektronika PIC Microcontrollers PIC12 User Manual page 263

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...
Soft_I2C_Start
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
Example
Soft_I2C_Start();
Soft_I2C_Read
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
Example
tmp = Soft_I2C_Read(0); //Read data, send not-acknowledge signal
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
.
Soft_I2C_Config
Soft_I2C_Start
255
.
page

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents