Interfacing PIC16F877A with 3-wire LCD – CCS C

3-Wire LCD using 74HC595 shift register

This post shows how to work with the 3-wire LCD library for CCS PIC C compiler which discussed in the following  topic:
3-Wire LCD driver for CCS PIC C compiler

The microcontroller used in this project is PIC16F877A and the shift register is 74HC595 but other serial-in parallel-out types can be used such as 74HC164 or HEF4094.
By adding a shift register we can make a cheap serial LCD.

PIC16F877A interface with 3-wire LCD hardware circuit

Interfacing PIC16F877A with 3-wire LCD circuit:
The following image shows project circuit schematic. The shift register data line is connected to RB0 pin and the clock line is connected to RB1 pin. LCDs enable pin is connected to pin RB3.
The LCD can be 1602 or 2004 or any compatible LCD.
PIC16F877A 3-wire LCD 74HC595 shift register circuit

Interfacing PIC16F877A with 3-wire LCD CCS C code:

Interfacing PIC16F877A with 3-wire LCD video:
The following video shows a prototype hardware circuit of the project where a two LCDs (1602 and 2004) are used and connected in parallel.

Leave a Comment

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

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

Scroll to Top