

PIC MCU is connected (SCL, SDA pins) to 24c02 EEPROM.
#DOWNLOAD MIKROC PRO FOR PIC CRACKED CODE#
This code demonstrates use of I☬ library. Sends data byte (parameter data) via I☬ bus.

Unsigned short I2C1_Wr( unsigned short data_) Read data and send not acknowledge signal: unsigned short take Reads one byte from the slave, and sends not acknowledge signal if parameter ack is 0, otherwise it sends acknowledge.Īlso, START signal needs to be issued in order to use this function. Unsigned short I2C1_Rd( unsigned short ack) Returns 1 if I☬ bus is free, otherwise returns 0. I☬ must be configured before using this function. If there is no error, function returns 0.ĭetermines if I☬ bus is free and issues START signal. That is why this parameter needs to be a constant, and not a variable. Therefore, compiler needs to know the value of the parameter in the compile time. Calculation of the I☬ clock value is carried out by the compiler, as it would produce a relatively large code if performed on the library level.
