Hey guys,
I will be doing a project using this microprocessor.
My title is Temperature sensor using ADC 0804 and display it in a LCD.
So, I have tried to interface the LCD with 8 bit mode of operation with the following coding :
The output of this code that dispay on the LCD is :
8085 DEVELOPMENT
SYSTEM-KUKUM
Now, because 8255 PPI IC have only Port A, B and C each 8 ports respectively, I might be suffer from insufficient IO pins to be used. So I plan to interface the LCD with only 4 bit.
Anyone knows how am I able to interface a 2x16 LCD(controller: HD47780) using 4 bit mode ?
Thanks and appreciate your help !
I will be doing a project using this microprocessor.
My title is Temperature sensor using ADC 0804 and display it in a LCD.
So, I have tried to interface the LCD with 8 bit mode of operation with the following coding :
Rich (BB code):
CPU "8085.TBL"
ORG 2000H
LXI SP,3FF0H
MVI A,80H
OUT 83H
MVI A,38H
CALL WR_CMD
MVI A,38H
CALL WR_CMD
MVI A,38H
CALL WR_CMD
MVI A,0CH
CALL WR_CMD
MVI A,06H
CALL WR_CMD
MVI A,80H
CALL WR_CMD
LXI H,MSG_LINE1
LINE1: MOV A,M
CPI 0
JZ NEXT_LINE
CALL WR_CHAR
INX H
JMP LINE1
NEXT_LINE: MVI A,0C0H
CALL WR_CMD
LXI H,MSG_LINE2
LINE2: MOV A,M
CPI 0
JZ EXIT
CALL WR_CHAR
INX H
JMP LINE2
EXIT: RST 1
WR_CMD: OUT 80H
MVI A,00000100B
OUT 82H
MVI A,00000000b
OUT 82H
CALL DELAY2
RET
WR_CHAR: OUT 80H
MVI A,00000101B
OUT 82H
MVI A,00000001B
OUT 82H
CALL DELaY1
RET
DELAY1: MVI C,40
LOOP_1: DCR C
JNZ LOOP_1
RET
DELAY2: MVI C,255
LOOP_2: DCR C
JNZ LOOP_2
RET
MSG_LINE1: DFB "8085 DEVELOPMENT",0
MSG_LINE2: DFB "SYSTEM-KUKUM",0
END
8085 DEVELOPMENT
SYSTEM-KUKUM
Now, because 8255 PPI IC have only Port A, B and C each 8 ports respectively, I might be suffer from insufficient IO pins to be used. So I plan to interface the LCD with only 4 bit.
Anyone knows how am I able to interface a 2x16 LCD(controller: HD47780) using 4 bit mode ?
Thanks and appreciate your help !