Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/26/00 05:08
Read: times


 
#6022 - RTC doesn't give a minute
First of all I would like to thank everyone for being so helpful. I managed to assemble the RTC tutorial. I didn't make much changes but only a few which I will mention.

1. MOV TH1,#HIGH RESET_VALUE to MOV
TH1,#HIGH(RESET_VALUE).
2. MOV TL1,#LOW RESET_VALUE to MOV
TL1,#LOW(RESET_VALUE).

3. F20TH_OF_SECOND TMR_SEC*.05 to
F20TH_OF_SECOND TMR_SEC/20.

These were the few changes I made then I wrote a small program to test it.

Here is the program

VUSI:MOV R0,MINUTES
CJNE R0,#01,VUSI
SETB P0.0
ORKEN:MOV R0,MINUTES
CJNE R0,#02,ORKEN
CPL P0.0
MBULI:MOV R0,MINUTES
CJNE R0,#03,MBULI
CPL P0.0
BHEKI:MOV R0,MINUTES
CJNE R0,#04,BHEKI
CPL P0.0

The problem is it does not switch on and off at one minute interval, It takes about 2 to 3 minutes to switch on and off.

Where could I have gone wrong.

Vusi

List of 7 messages in thread
TopicAuthorDate
RTC doesn't give a minute            01/01/70 00:00      
RE: RTC doesn't give a minute            01/01/70 00:00      
RE: RTC doesn't give a minute            01/01/70 00:00      
RE: RTC doesn't give a minute            01/01/70 00:00      
RE: RTC doesn't give a minute            01/01/70 00:00      
RE: RTC doesn't give a minute            01/01/70 00:00      
RE: RTC doesn't give a minute            01/01/70 00:00      

Back to Subject List