i2c

PIC16F84A i2c

PIC16F84A i2c (bit banging) code and Proteus simulation

This post provides the i2c bit bangingΒ code for PIC16F84AΒ microcontroller. As we know[1],Β PIC16F84AΒ microcontroller doesn’t have any built in i2c modules, so we have to create it in the software. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the ‘Downloads‘Β section at the bottom of this page.

PIC16F84A i2c (bit banging) code and Proteus simulation Read More Β»

PIC12F675 i2c bit banging code and Proteus simulation

PIC12F675 i2c (bit banging) code and Proteus simulation

This post provides the i2c bit bangingΒ code for PIC12F675Β microcontroller. As we know[1],Β PIC12F675Β microcontroller doesn’t have any built in i2c modules, so we have to create it in the software. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the ‘Downloads‘Β section at the bottom of this page.

PIC12F675 i2c (bit banging) code and Proteus simulation Read More Β»

Basics of the I2C Communication Protocol

Basics of the I2C Communication Protocol

So far, we’ve talked aboutΒ the basics ofΒ SPI communicationΒ and UART communication, so now let’s go into the final protocol of this series, the Inter-Integrated Circuit, or I2C. You’ll probably find yourself using I2C if you ever build projects that useΒ OLED displays, barometric pressure sensors, or gyroscope/accelerometerΒ modules. I2C combines the best features of SPI and UARTs. With

Basics of the I2C Communication Protocol Read More Β»

Interfacing of PIC16F84A with i2c based 24LC64 EEPROM

Interfacing of PIC16F84A with (i2c based) 24LC64 EEPROM (Code + Proteus simulation)

This post provides theΒ code for interfacing 24LC64 EEPROM with PIC16F84AΒ microcontroller. This 24LC64 EEPROM has i2c based interface and PIC16F84A doesn’t have any built in i2c modules, so software i2c module is created in the code.Β This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the ‘Downloads‘Β section

Interfacing of PIC16F84A with (i2c based) 24LC64 EEPROM (Code + Proteus simulation) Read More Β»

Connect IΒ²C with PIC

Connect IΒ²C with PIC

The IΒ²C full master MSSP module is available with a number of PIC MCU models. mikroC PRO for PIC provides library which supports the master IΒ²C mode. Β  Important : Some MCUs have multiple IΒ²C modules. In order to use the desired IΒ²C library routine, simply change the number 1 in the prototype with the

Connect IΒ²C with PIC Read More Β»