PIC16F877A – Keypad Interfacing

In this tutorial we will learn Keypad Interfacing with PIC16F877A.

Prerequisites

Components Required

  • 4×4 Keypad
  • PIC16F877A Microcontroller

Keypad Interfacing with PIC16F877A

Circuit Diagram

LCD:

  • RS – Port D.2
  • RW – GND
  • EN – Port D.3
  • Data Lines – Port D.4 – Port D.7

Keypad:

  • Row1 – RB0
  • Row2 – RB1
  • Row3 – RB2
  • Row4 – RB3
  • Col1 –  RB4
  • Col2 –  RB5
  • Col3 –  RB6
  • Col4 – RB7

Code 

You can download the full project Here.

Output

Whatever we are typing in the keypad, it will display that character in LCD Module.

Keypad Interfacing with PIC16F877A[ Please find the output image Here ]

0 0 vote
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Linda
Linda
October 22, 2019 4:02 AM

Hi everyone, I am new here. I need help with writing a code in c that will make a node(pic16f877a, a 16×2 LCD and a 4×4 keypad) to communicate with another node(same as mentioned) wirelessly using 433Mhz RF module. Am suppose to use Mplabx ide and XC8 for my compiler. The protocol specifications must include data frames, flow control and error control. I have already bought the components but I have no idea where to start.

1
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: