code

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 Β»

Interfacing of PIC16F84A with DS1307

Interfacing of PIC16F84A with DS1307 (RTC) code and Proteus simulation

This post provides theΒ code for interfacing DS1307 RTC with PIC16F84AΒ microcontroller. ThisΒ DS1307Β RTCΒ 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 at the bottom

Interfacing of PIC16F84A with DS1307 (RTC) code and Proteus simulation Read More Β»

Create Musical Tone using PIC Code

Create Musical Tone using PIC Code

The mikroC PRO for PIC provides a Sound Library to supply users with routines necessary for sound signalization in their applications. Sound generation needs additional hardware, such as piezo-speaker (example of piezo-speaker interface is given on the schematic at the bottom of this page). Library Routines Sound_Init Sound_Play Sound_Init Prototype void Sound_Init(char *snd_port, char snd_pin);

Create Musical Tone using PIC Code Read More Β»