Lcd which i am using is from Samsung. Its number is unknown. Only a number UC24202, GNAR4PA, 010429, is written on its back. Also it is mentioned “Made in China” 😀 I found this lcd on an old control system panel. Control panel is out of use so i removed this lcd from the panel and used it in my diy project. I could not found the lcd pin out on internet. I managed to locate the pin names by mapping the header with standard character lcd’s .
Interfacing 24×2 lcd with 8051(89c51,89c52) microcontroller
I am going to display ‘ABC’ Alphabets on lcd. First Row of lcd will display Upper case Characters and on second row lower case alphabets will be displayed, up to ‘X’. Displaying text on lcd is not a hard task. Tutorial How to display text on character lcd is very helpful resource in order to carry out this task. I recommend you to please take the tutorial(Link given above the paragraph).
Interfacing 24×2 lcd with Microchip Pic16f877 Microcontroller
Interfacing 24×2 lcd with pic16f877 microcontroller is same like interfacing it with 8051(89c51). The only difference is in the ports. 8051 has Ports-1,2,3&4, where as pic has Ports-A,B,C,D & E. I am interfacing lcd in 8-bit mode with pic 16f877. Port-B of Pic16f877 is connected to data pins of lcd. Lcd controlling pins en(enable) is connected to Port-D Pin#7,Rs(Register select) is connected to Port-D pin#6, Rw(Read-Write) is connected to Port-D Pin#5. Circuit diagram of the project is given below.
Code is also same like 8051(89c51). The difference is in libraries 89c51 is programmed using keil Compiler, where as pic is programmed using high tech c compiler. Both compilers need different libraries to compile the code. Main function code is also similar to the 89c51 microcontroller main function code.