How to display text on 16×2 LCD using PIC18F4550




Several automated and semi-automated devices require a message to be displayed in order to indicate their working status. In continuation to LCD interfacing with PIC18F4550, this article explains how to display a message or string on a 16×2 character LCD.

text on 16x2 LCD

In the previous article, a single character was displayed on LCD by properly configuring its data and command registers. A string is nothing but a sequential arrangement of several characters that can be displayed on LCD by using the programming steps mentioned here. The circuit connections and user-defined functions are same as earlier. The LCD data pins are connected to PortB of PIC18F4550 while the control pins are connected to first three pins of PortA.

Programming steps:
·         Configure the LCD.
·         Store a string in a character array.
unsigned char data[20]=“EngineersGarage”;
·         Run a loop till the loop counter encounters the null character ‘\0’ of the string.

·         Use lcddata() function to send individual character values of the string to be displayed on LCD.

 

For more detail: How to display text on 16×2 LCD using PIC18F4550




Current Project / Post can also be found using:

  • program for rolling text display on lcd 16*2 with pic 18f4550 microcontroller
  • How to display text on 16×2 LCD using PIC18F4550 Microcontroller
  • how to display text on lcd using pic18f4550
  • Lcd pic18f4550

Leave a Comment

*
= 5 + 5

Read previous post:
PIC Microcontroller timer Video Project
PIC Microcontroller timer Video Project

PIC Microcontroller timer/counter by Dr. Tom Lombardo  

Close
Scroll to top