??? 07/28/05 15:13 Read: times |
#98381 - Ok then try this Responding to: ???'s previous message |
Craig Steiner said:
What happens if you change the 0C0h to, say, 8Ah? That should position the "J" on the 11th character position of the first line. J Cena said:
I have just checked different cursor position on fist line and it does works. It has displayed the data on required position but still on top line. Ok, so now that we know that the cursor positioning works, try replacing the cursor positioning command--replace the following: CLR RS MOV DATA, #0C0H SETB EN CLR EN LCALL DELAY With: MOV R7,#40h SPACELOOP: MOV A,#' ' LCALL WRITE DJNZ R7,SPACELOOP Then that follows with your two lines that display 'J'. What this should do is write to 64 space characters to the LCD. That should take the cursor position past the end of the first line and onto the second line. The "J" should appear on the second line one space to the right of the "E" in HELLO. Please check to see if that works. Is it possible by any chance that this LCD has completely different bottom line memory addresses? I doubt it. Otherwise it should work, also I have just checked the LCD as well just now by connecting it with another machine and it does give display on both lines. You mean the same physical LCD works and displays on two lines when connected to another device? In any case, please do the above test and see what you get. Regards, Craig Steiner |
Topic | Author | Date |
89C2051 and LCD | 01/01/70 00:00 | |
Notes | 01/01/70 00:00 | |
8052 tutorial, ever used? | 01/01/70 00:00 | |
STOP! | 01/01/70 00:00 | |
Nope | 01/01/70 00:00 | |
and read the tutorial - see left column | 01/01/70 00:00 | |
which he clearly states he has done | 01/01/70 00:00 | |
Whats wrong with 2nd line? | 01/01/70 00:00 | |
Works here | 01/01/70 00:00 | |
re: works here | 01/01/70 00:00 | |
Try different cursor position | 01/01/70 00:00 | |
Different Cursor position | 01/01/70 00:00 | |
Whats on screen | 01/01/70 00:00 | |
re: darkish lines | 01/01/70 00:00 | |
Contrast | 01/01/70 00:00 | |
True, | 01/01/70 00:00 | |
Maybe | 01/01/70 00:00 | |
What about this? | 01/01/70 00:00 | |
Strange | 01/01/70 00:00 | |
Ok then try this | 01/01/70 00:00 | |
or maybe this | 01/01/70 00:00 | |
re: or may be this | 01/01/70 00:00 | |
c language ? | 01/01/70 00:00 | |
I think | 01/01/70 00:00 | |
LCD is fine | 01/01/70 00:00 | |
Try this | 01/01/70 00:00 | |
re: Try This | 01/01/70 00:00 | |
Yes it works | 01/01/70 00:00 | |
my flat forehead | 01/01/70 00:00 | |
I agree | 01/01/70 00:00 | |
Or... | 01/01/70 00:00 | |
today | 01/01/70 00:00 | |
PROBLEM SOLVED | 01/01/70 00:00 | |
it was discussed | 01/01/70 00:00 | |
Isn't that because... | 01/01/70 00:00 | |
Glad you got it working | 01/01/70 00:00 | |
Startup delay![]() | 01/01/70 00:00 |