Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Lcd Display

Status
Not open for further replies.

malaiem

New Member
I WRITE THIS PROGRAM BUT NOT WORK PROPERLY


MOV A,80H
ACALL COMMAND
MOV A,'H'
ACALL DISPLAY
MOV A,'I'
ACALL DISPLAY
MOV A,0C0H SOCOND LINE INSTRUCTION
ACALL COMMAND
MOV A,'H'


SECOND LINE INSTRUCTION NOT DISPALY



PLEASE HELP ME:confused:
 
I'm not familiar with programming PICs or microcontrollers, so I'm not sure, but is SOCOND LINE INSTRUCTION supposed to be SECOND LINE INSTRUCTION? I may be a noob in programming but that misspelling could be making it not work.
 
Sorry Sir actually this is my original program

org 0
mov a,#38h
acall comm
mov a,#0eh
acall comm
mov a,#01h
acall comm
mov a,#06h
acall comm
mov a,#81h
acall comm
mov a,# 'W'
acall DIS
mov a,# 'E'
acall DIS
mov a,# 'L'
acall DIS
mov a,# 'C'
acall DIS
mov a,# 'O'
acall DIS
mov a,# 'M'
acall DIS
mov a,# 'E'
acall DIS
mov a,#0c1h
acall comm
mov a,# 'M'
acall DIS
mov a,# 'A'
acall DIS
mov a,# 'L'
acall DIS
mov a,# 'A'
acall DIS
mov a,# 'I'
acall DIS
here: SJMP HERE
COMM: ACALL READY
MOV P0,A
CLR P1.2
CLR P1.1
SETB P1.0
CLR P1.0
RET
DIS: ACALL READY
MOV P0,A
SETB P1.2
CLR P1.1
SETB P1.0
CLR P1.0
RET
READY: mov r3,#50
her1: mov r4,#255
her: djnz r4,her
djnz r3,her1
RET
END
but second line dose not display.I confirm to lcd display also good,because i have another one HEX program that is displaed.But i can not ASM File of this progrm.
 
So I take it the first line is showing up? And it's just the bottom row that is missing?

Usually, the second row begins at 80h rather than C0h. My question is: is this a HD44780-type display?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top