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 »