??? 01/27/05 03:46 Read: times |
#85885 - lcd display problem Responding to: ???'s previous message |
Dear friends
actually what is happenning is ..... -- dark rectangle boxes are being displayed long with the text which i have send. ( see by tilting the lcd display text is visible , but directly only dark boxes are visible) -- second line is clear with out dark rectangle boxes and I tryed to display the same text still it uses the same first line with same problem. -- as soon as i turned on my board same rectangle boxes appears on lcd display before initializing display and after initialization also it continueus to be there. (is it not getting initialized properly...?) here is my code( which I had got from 8052 website... DB0 EQU P1.0 DB1 EQU P1.1 DB2 EQU P1.2 DB3 EQU P1.3 DB4 EQU P1.4 DB5 EQU P1.5 DB6 EQU P1.6 DB7 EQU P1.7 EN EQU P3.4 RS EQU P2.0 RW EQU P3.3 DATAPORT EQU P1 ORG 030H LCALL INIT_LCD LCALL CLEAR_LCD MOV A,#'H' LCALL WRITE_TEXT MOV A,#'E' LCALL WRITE_TEXT MOV A,#'L' LCALL WRITE_TEXT MOV A,#'L' LCALL WRITE_TEXT MOV A,#'O' LCALL WRITE_TEXT MOV A,#'W' LCALL WRITE_TEXT MOV A,#'O' LCALL WRITE_TEXT MOV A,#'R' LCALL WRITE_TEXT MOV A,#'L' LCALL WRITE_TEXT MOV A,#'D' LCALL WRITE_TEXT SJMP $ INIT_LCD: SETB EN CLR RS MOV DATAPORT,#38h CLR EN LCALL WAIT_LCD SETB EN CLR RS MOV DATAPORT,#0Eh CLR EN LCALL WAIT_LCD SETB EN CLR RS MOV DATAPORT,#06h CLR EN LCALL WAIT_LCD RET CLEAR_LCD: SETB EN CLR RS MOV DATAPORT,#01h CLR EN LCALL WAIT_LCD RET WRITE_TEXT: SETB EN SETB RS MOV DATAPORT,A CLR EN LCALL WAIT_LCD RET I got structed with this problem ...and couldn't progress in my project.. pl help me .. with warm regards P.Ravi Kalpakkam,TN ravi.p@rocketmail.com or pravi@igcar.ernet.in |
Topic | Author | Date |
C Code for LCD | 01/01/70 00:00 | |
code | 01/01/70 00:00 | |
Changes as comments | 01/01/70 00:00 | |
re: code | 01/01/70 00:00 | |
debugging? | 01/01/70 00:00 | |
Points to check | 01/01/70 00:00 | |
solution | 01/01/70 00:00 | |
lcd display problem | 01/01/70 00:00 | |
how to help when not knowing with what | 01/01/70 00:00 | |
lcd display problem | 01/01/70 00:00 | |
Contrast Problem. | 01/01/70 00:00 | |
CONTRAST pot ? | 01/01/70 00:00 | |
lcd display problem ....solved![]() | 01/01/70 00:00 |