PIC16F84A LCD interfacing code (In 8bit mode) + Proteus simulation

LCD interfacing 8bit mode (1)

This post provides the LCD[1] interfacing code using PIC16F84A 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.

LCD interfacing 8bit mode (1)

It is assumed that you know how to make an LED blink with PIC16F84A microcontroller. If you don’t then please read this page first, before proceeding with this article.

LCD interfacing circuit with PIC16F84A is shown below.

In the above figure, RA0 pin is being used as Enable pin for LCD. RA1 pin is used as RS pin and PORTB is used as Data bus for the LCD. When code starts running then Hello is displayed on the LCD.

LCD interfacing 8bit mode schematic


In the code you can easily select pins to be used for interfacing with the LCD. Following figure shows the pin selection code.

Leave a Comment

Your email address will not be published. Required fields are marked *