This tutorial is about making and displaying custom characters on 16×2 lcd using 8051(89c51,89c52) microcontroller. By custom i mean characters that are not alphabets, digits or ASCII value characters. Rather they are new and designed by us. I first recommend you to please go through the following simple tutorial. This will clear you about the internal structure of character lcd’s its registers, memory and controller used for controlling the displayed characters (HD4478). But if you only require project code than proceed further.
Custom characters on 16×2 lcd Circuit diagram
Custom character generation with 8051 microcontroller project code
I defined the required Custom characters in the form of Character arrays which are used later for generating characters. Port-1 of 89c51 microcontroller is used to send data and commands to lcd. The rest of the code is simple the delay function is their for generating some arbitrary delay. The lcdint() function is initializing the lcd. In my main function i am generating the custom characters and then printing them on 16×2 lcd. The main function is in while(1) continuous loop. Due to this while(1) continuous loop characters are continuously displaying on the character 16×2 lcd screen.