Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
mikroC PRO for PIC32
MikroElektronika
339
I2Cx_Init_Advanced
Prototype
void I2Cx_Init_Advanced(unsigned long Fclk_Khz, unsigned long scl);
Description This function configures and initializes the desired I²C module using Peripheral Bus Clock and default
initialization settings.
As per the I²C standard, SCL clock may be 100 kHz or 400 kHz. However, the user can specify any
clock rate up to 1 MHz.
Parameters -
Fclk_Khz
: Peripheral Bus Clock frequency in kHz.
-
scl
: requested serial clock rate.
Returns
Nothing.
Requires
MCU with the I²C module.
Used I²C module must be initialized before using this function. See I2Cx_Init routine.
Example
Notes
Notes
- I²C library routines require you to specify the module you want to use. To select the desired I²C
module, simply change the letter
x in the routine prototype for a number from 1 to 5.
- Number of I²C modules per MCU differs from chip to chip. Please, read the appropriate datasheet
before utilizing this library.
I2Cx_Start
Prototype
void I2Cx_Start();
Description Determines if the I²C bus is free and issues START signal.
Parameters None.
Returns
Parameters None.
Returns
Nothing.
Requires
MCU with at least one I²C module.
Used I²C module must be initialized before using this function. See I2Cx_Init routine.
Example
// Issue START signal
I2C1_Start();
Notes
- I²C library routines require you to specify the module you want to use. To select the desired I²C
module, simply change the letter
x in the routine prototype for a number from 1 to 5.
- Number of I²C modules per MCU differs from chip to chip. Please, read the appropriate datasheet
before utilizing this library.