How to interface keypad with PIC16F877

This PIC microcontroller tutorial provides a simple method to interface any keypad (e-g 4x4 or 4x3 etc) with PIC16F877 microcontroller. 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. In this post, it is assumed that you know, how to interface LCD with PIC16F877 microcontroller, If you don't then plea ...

Read more

PIC16F877 internal EEPROM code and Proteus simulation

This post provides the internal EEPROM reading and writing code for PIC16F877 microcontroller. As we know[1], PIC16F877 microcontroller has 256 x 8 bytes of built in EEPROM data space with an address range of 0x000 to 0x7FF. 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. It is assumed that you know h ...

Read more

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

This post provides the code for interfacing 24LC64 EEPROM with PIC16F877 microcontroller. This 24LC64 EEPROM has i2c based interface. 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. It is assumed that you know how to interface LCD with PIC16F877 microcontroller in 4bit mode. If you don't then please r ...

Read more

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

This post provides the code for interfacing DS1307 RTC with PIC16F877 microcontroller. This DS1307 RTC has i2c based interface. 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. It is assumed that you know how to interface LCD with PIC16F877 microcontroller in 4bit mode. If you don't then please read th ...

Read more

PIC16F877 ADC code and Proteus simulation

This post provides the ADC code using PIC16F877 microcontroller. 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.   It is assumed that you know how to interface LCD with PIC16F877 microcontroller. If you don't then please read this page first, before proceeding with this article. The result of sim ...

Read more

PIC16F877 stop watch code and Proteus simulation

This PIC16F877 microcontroller tutorial answers the question, " How to implement a stop watch using PIC16F877 ? " Using PIC16 simulator (Proteus) you can verify this stop watch code and change it according to your needs. Using three push buttons (As shown in figure below) you can adjust time as you desire. Then after setting the time, value displayed on the LCD starts to decrease with each second and when t ...

Read more

PIC16F877 up down counter code and Proteus simulation

This PIC16F877 microcontroller tutorial answers the question, " How to implement a up down counter using PIC16F877 ? "   Using PIC16 simulator (Proteus) you can verify this counter code and change it according to your needs. Using one push button (Labeled as Count, as shown in figure below) you can increment (When SW1 switch is towards up position) or decrement (When SW1 switch is towards down position ...

Read more

PIC16f877 based simple calculator project

This PIC microcontroller tutorial provides a simple calculator implementation for PIC16F877 microcontroller. This is a simple one digit[1] calculator which implements only 4 functions addition(+), subtraction(-), multiplication(x) and division(/). The code for PIC16F877 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 ...

Read more

Microchip pic16f877 to FTDI USB interface

Introduction This is a simple design that interfaces a PIC 16F877 microcontroller to the USB bus using the FTDI FT245 USB FIFO device. It has been designed using a simple single sided PCB with only one surface mount device, the USB chip itself. All schematics, PCB layouts and software are available for download This work is licensed under a Creative Commons Attribution 3.0 Unported License. Update, May 2nd ...

Read more

Digital alarm clock using PIC16F877 microcontroller

This is an alarm clock I built. It was very effective during the sort time I used it, because I programmed it to play a very annoying tune through a speaker. I actually started to wake up before the alarm went of, so other people in the house didn't wake up from the annoying pitches it played. The JAL source code is available on my download page Features Timekeeping using the PIC's timer0 interrupt 4x20 hd4 ...

Read more
Scroll to top