Here is my circuit diagram: http://www.flickr.com/photos/73123684@N08/6592133625/in/photostream
And here is my code for a simple clock
This code sets the time in RTC but when I simulated the circuit in Proteus, RTC was unable to set time as 16:58:55...
I cann't find out what is the error...Plz help
And here is my code for a simple clock
Rich (BB code):
ACALL DELAY
;----TURNING ON THE RTC
MOV R0,#10
MOV A,#20H
MOVX @R0,A
;----SETTING THE TIME MODE
MOV R0,#11
MOV A,#83H
MOVX @R0,A
;----SETTING THE TIME
MOV R0,#0
MOV A,#55H
MOV @R0,A
MOV R0,#02
MOV A,#58H
MOV @R0,A
MOV R0,#04
MOV A,#16H
MOV @R0,A
MOV R0,#11
MOV A,#03H
MOV @R0,A
DELAY:
MOV R3,#50
HERE2: MOV R4,#255
HERE: DJNZ R4,HERE
DJNZ R3,HERE2
RET
END
I cann't find out what is the error...Plz help