Mikroelektronika MIKROE-442 데이터 시트
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
367
I2Cx_Start
I2Cx_Restart
Prototype
sub procedure 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 3.
Number of I²C modules per MCU differs from chip to chip. Please, read the appropriate datasheet
before utilizing this library.
Prototype
sub procedure I2Cx_Restart()
Description Issues repeated 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 RESTART signal
I2C1_Restart()
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 3.
Number of I²C modules per MCU differs from chip to chip. Please, read the appropriate datasheet
before utilizing this library.