PIC18F4550 interface with LCD using CCS PIC C compiler

PIC18F4550 LCD Example

This topic shows a simple example for interfacing LCD display with HD44780 controller with PIC18F4550 microcontroller using CCS PIC C compiler. 
In 4-bit mode there are 7 data lines between the PIC microcontroller and the LCD which are: RS, R/W, E, D4, D5, D6 and D7.

Interface PIC18F4550 with LCD circuit:
PIC18F4550 LCD example circuit schematic is shown below.
PIC18F4550 LCD example circuit
PIC18F4550 internal oscillator is used at 8MHz and MCLR pin function is disabled.
The button connected to RC0 used to increment a number displayed in the 2nd row as shown in the video below.
The PIC18F4550 microcontroller must be supplied with 5V (Pins VDD and VSS).

Hardware Required:

  • PIC18F4550 microcontroller   —> datasheet
  • 1602 LCD screen
  • Push button
  • 10k ohm resistor
  • 10k ohm variable resistor
  • Bread board and some jumper wires
  • PIC microcontroller programmer (PICkit 2, PICkit 3…)

Interfacing PIC18F4550 with LCD CCS C code:
The C code below was tested with CCS C compiler version 5.051.

Interfacing PIC18F4550 with LCD video:
The following video shows the example in a hardware circuit.


Discover more from Simple Circuit

Subscribe to get the latest posts sent to your email.

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