Instructions

270Libraries
© 2013 Conrad Electronic
The Bitrate can be calculated as follows: Bitrate = ((CPU_CLOCK / TARGET_I2C_SPEED) - 16) / 2
5.12.1.2 I2C_Read_ACK
I2C Functions
Syntax
byte I2C_Read_ACK(void);
Sub I2C_Read_ACK() As Byte
Description
This function receives a byte and acknowledges with ACK. Afterwards the status of the interface can be re-
turned with I2C_Status().
Return Parameter
value read from the I2C bus
5.12.1.3 I2C_Read_NACK
I2C Functions Example
Syntax
byte I2C_Read_NACK(void);
Sub I2C_Read_NACK() As Byte
Description
This function receives a byte and acknowledges with NACK. Afterwards the status of the interface can be
returned with I2C_Status().
Return Parameter
value read from the I2C bus
5.12.1.4 I2C_Start
I2C Functions Example
Syntax
void I2C_Start(void);
Sub I2C_Start()