??? 02/24/05 02:58 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#88265 - Re: LCD code problem. Responding to: ???'s previous message |
Dear Lian,
I think the problem is with subroutine display. I should clr RW, setb Enable and setb RS then only "move P1, a" then clr Enable, right? There's absolutely no problem with subroutine display. The alternative you mentioned wont improve the situations. It seems your LCD is not intiatialised properly. add these lines at the start of your code. MOV A,#30H LCALL COMMAND MOV R3,#10 LCALL DELAY MOV A,#30H LCALL COMMAND MOV R3,#10 LCALL DELAY MOV A,#30H LCALL COMMAND Delay souroutine: DELAY : MOV R5,#0FFH SUBDELAY : PUSH 05H MOV R5,#0BH DJNZ R5,$ POP 05H DJNZ R5,SUBDELAY DJNZ R3, DELAY RET regards, Prahlad |
Topic | Author | Date |
Problem with LCD code | 01/01/70 00:00 | |
Re: LCD code problem.![]() | 01/01/70 00:00 |