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 »

UART Communication using PIC Code

UART Communication using PIC Code

The UART hardware module is available with a number of PIC compliant MCUs. The mikroC PRO for PIC UART Library provides comfortable work with the Asynchronous (full duplex) mode. You can easily communicate with other devices via RS-232 protocol (for example with PC, see the figure at the end of the topic – RS-232 HW

UART Communication using PIC Code 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 »