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 16x2 character LCD.
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 ‘ ’ of the string.
· Use lcddata() function to send individual character values of the string to be displayed on LCD.
Code:
while(data[i]!=’