# LCD second line working in proteus but not in reality?

Status
Not open for further replies.

#### shockoshocko

##### Junior Member level 1
I can print text on the first line but nothing appears on the second line at all, although in proteus simulation both lines work OK, I am using the code found in 8051projects.net tutorial, plz i want to know what could make the simulation differ from reality, i have spent too much time on the issue, and can't find the solution.

here are the subroutines used:

INIT_LCD:

MOV A,#38H
LCALL LCD_CMD
MOV A,#0EH
LCALL LCD_CMD
MOV A,#01H
LCALL LCD_CMD
MOV A,#06H
LCALL LCD_CMD
MOV A,#80H
LCALL LCD_CMD
RET

CLR_LCD:

MOV A,#01H
LCALL LCD_CMD
RET

WAIT_LCD:

MOV R7,#35H
BACK:
MOV R6,#0FFH

#### jumper2high

##### Full Member level 3
Try sending a 41+ char string to the LCD...
Normally, a 16x2 LCD has a memory of 80 locations. First row is locations 0-15 and the second line is locations 40-55.

Status
Not open for further replies.