CMOS clock running too fast
Posted: Mon Mar 31, 2003 10:39 pm
hi
while i was using CMOS to get the current time i m having a strange problem.
at the booting time i initilize the CMOS and then get the current time which is exactly right time. but after that first time when i try to use that same function to show current time it shows that the clock is running too fast
e.g for the first time (mean booting time) it showed
Current Time: 9:40:00
then when i try to call this function again after say 4 seconds it will show
Current Time: 9:41:30
now as u see actually it was just 4 seconds and the clock has gone by a minute. and it continues to run this fast
so i need to ask u that why is this happening .. why is it going so fast .. now if i have to use the timer interrupt for keeping record of time ca some one tell me how fast does that go .. i mean how many times it get fired in one second
thans for ur help
while i was using CMOS to get the current time i m having a strange problem.
at the booting time i initilize the CMOS and then get the current time which is exactly right time. but after that first time when i try to use that same function to show current time it shows that the clock is running too fast
e.g for the first time (mean booting time) it showed
Current Time: 9:40:00
then when i try to call this function again after say 4 seconds it will show
Current Time: 9:41:30
now as u see actually it was just 4 seconds and the clock has gone by a minute. and it continues to run this fast
so i need to ask u that why is this happening .. why is it going so fast .. now if i have to use the timer interrupt for keeping record of time ca some one tell me how fast does that go .. i mean how many times it get fired in one second
thans for ur help