7SEGx4 8051

Thread Starter

andyhere

Joined Nov 2, 2009
2
Please let me know how i can write an assembly code that counts from 0000 to 0200 in a (4) 7-segment dislplay. Thanks.
 

beenthere

Joined Apr 20, 2004
15,819
Too many parameters left unstated. What flavor of 8051 are you using? What is the specific problem you are having trouble with?
 

Thread Starter

andyhere

Joined Nov 2, 2009
2
IT CAN USE TIME CONTROLER... SOMETHING LIKE BELOW, BUT I DON'T KNOW HOW TO REPLACE THE BY USING FOR EXAMPLE PO.O OR P1.0... ORG 0H
SJMP 30H
ORG 0BH
SJMP ISR
ORG 30H
MOV A,#00
MOV R0,#0
MOV R1,#0
MOV TMOD,#02H
MOV TH0,#118
MOV IE,#82H
SETB TCON.4
HERE:
SJMP HERE
ISR:
CLR TCON.4
INC R1
CJNE R1,#100,SKIP
MOV R0,#00H
INC A
SKIP:
SETB TCON.4
RETI
END
ALSO DON'T KNOW IF THIS CAN BE IMPLEMENTED TO BCD 7SEGx4... THANKS
 
Top