visitor counter display on lcd

Thread Starter

venkatagovardhan

Joined Apr 4, 2014
1
can any one help me to complete the code for visotor counter and display it on lcd screen.i had the code upto counting.i want to display the number on the lcd screen.

ORG 0000H
MOV P0,#0H
MOV P1,#0H
MOV P2,#0H
MOV R3,#0H

MAIN: JB P2.0, INCRES
JB P2.1, DECRES
SJMP MAIN

INCRES: INC R3
MOV A,R3
DA A
MOV P3,A
ACALL DELAY
SJMP MAIN


DECRES: DEC R3
MOV A,R3
DA A
MOV P3,A
ACALL DELAY
SJMP MAIN


DELAY: MOV R0,#20
LOOP3: MOV R1,#255
LOOP2: MOV R2,#255
LOOP1: DJNZ R2,LOOP1
DJNZ R1,LOOP2
DJNZ R0,LOOP3

RET

END
 
Top