??? 02/13/07 06:41 Read: times |
#132717 - Help on LCD code Responding to: ???'s previous message |
First thing is you should write comments as it becomes quite easy to understand the code.
Anyways, I had gone through your code and found that you are not initizlizing the LCD properly. You have to give 38H command three times at the start. Here I am assuming that you are configuring the LCD in auto increment cursor postion left entry mode. After initializing you have to give clear display command in which the cursor will be automatically set on line 1 and position 0. If you want to move your message then set the cursor at appropriate location using set cursor command. It is always advisable to set the cursor at required location. Regards! Girish R. Ghanekar |