Instructions
269 C-Control Pro IDE
© 2013 Conrad Electronic
Sub ETH_SetConnBuf(ByRef buf As Byte, size As Word, TCP_conn As Byte)
Description
Creates an Ethernet receive buffer where received TCP/IP and UDP packets are stored.
Parameter
buf address of receive buffer
size size of buffer
5.12 I2C
The Controller provides an I2C Logic which allows effective communication. The Controller
operates as an I2C Master (single master system). A slave operating mode is possible
but not yet implemented in the current version.
5.12.1 Mega
5.12.1.1 I2C_Init
I2C Functions Example
Syntax
void I2C_Init(byte I2C_BR);
Sub I2C_Init(I2C_BR As Byte)
Description
This function initializes the I2C interface.
Parameter
I2C_BR describes the baud rate. The following values are predefined:
I2C_100kHz
I2C_400kHz
Definition
14,7456 Mhz
16 Mhz
I2C_100kHz
66
72
I2C_400kHz
10
12