سلام ! یه برنامه دارم که میخوام اسم خودم رو رویlcd16*2 نشون بده ...........برنامشو نوشتم ولی lcd خالی نشون میده!!!!!!!!!!!!!!
برنامه زیر :
org 00h
;
start : mov A,#0EH ;display on , cursor on
call COMNWRT
call DELAY
mov A,#01 ;clear LCD
call COMNWRT
call DELAY
'mov A,#'P
call DATAWRT
call delay
sjmp start
COMNWRT : ;send command to LCD
mov P1,a
clr P0.0 ;RS=0 for command
clr P0.1 ;R/W=0 for write
setb P0.2 ;E=1 for high pulse
(clr P0.2 ;E=0 for low pulse(H to L
ret
DATAWRT : ;write data to LCD
mov P1,a
setb P0.0 ;RS=1 for data
clr P0.1 ;R/w=0 for write
setb P0.2 ;E=1 for high pulse
(clr P0.2 ;E=0 for low pulse(H to L
ret
DELAY : mov R3,#50
HERE2 : mov R4,#255
HERE : djnz R4,HERE
djnz r3,HERE2
ret
;
end
در ضمن کاراکتر فاصله رو چه جوری نماش بدم؟؟؟
مثلا اسمم هست : P G
که میخوام رو lcd نمایش داده بشه