Moving Text On 16x2 LCD USING 8051/AT 89C51
Here in this post I’ll explain you that how we can scroll text message on 16x2 LCD. If you are new to embedded programming then I’ll suggest you that first read my older post which is “How to interface 16x2 LCD” so that you can understand this post completely.
Before explaining you about the program I’ll show you the connection diagram first so that you can have a clear picture of about circuit that I have used in my program. Now here in below image you can see the connection diagram of 16x2 LCD to 8051 Microcontroller.
I feel that from above picture the connection between 8051 microcontroller and 16x2 LCD is clear.
Now I will explain you that how can we move the text on 16x2 LCD. You can see the main program file of my program in image given below:-
Here in the program which is shown in above image firstly I have initialized the 16x2 LCD and then I write my name and my Profession on first line of LCD which is “VAIBHAV SINGHAL (Firmware Developer )” after that I have write my blog URL on Second Line of LCD which is “www.embeddedsolutions4u.blogspot.com”.
After displaying data on LCD the only thing that I did to keep this text moving is sending the command of 0x1c for shifting display right and put 500 millisecond delay. So from LCD right shift command and 500 millisecond delay the text will start moving on 16x2 LCD after every 500 millisecond.
Note :-
· Also read my older post “How to interface 16x2 LCD” to understand this post completely.
Download Link :-
· To download complete code of “Moving text on 16x2 LCD” click here. If you are unable to download the complete code please drop your email-id in comment section so that I can send the complete code to you.
1 comment:
Send me code
Post a Comment