DS1302 resolution
OSOK
Posts: 35
First of all, thanks to Mr. Savage for writing those nifty pieces of code showing how to use this IC. It made it very easy to export into other programs...
So, here's my question. I understand the resolution of the chip is 1 sec. But I've come to find that it detects the 'next second' in the .45 mark or so. For example, if I ask it to log for 5 seconds, using something like "IF (secs = 5) THEN EXIT" in a DO loop, I notice it'll exit when about 5.45 seconds have elapsed. I have code for an RPM counter, and I'm just curious if this .45 sec flag is in the chip itself, something with my code, or having to do with the crystal?
Thank you!
So, here's my question. I understand the resolution of the chip is 1 sec. But I've come to find that it detects the 'next second' in the .45 mark or so. For example, if I ask it to log for 5 seconds, using something like "IF (secs = 5) THEN EXIT" in a DO loop, I notice it'll exit when about 5.45 seconds have elapsed. I have code for an RPM counter, and I'm just curious if this .45 sec flag is in the chip itself, something with my code, or having to do with the crystal?
Thank you!
Comments
Ignorant me... 1 sec resolution... ha!
Edit: ok, call me crazy, but I've changed NOTHING in my code and now it stops logging within a 1/10th of a second of the time I tell it to.... no more .45secs after. ????
Post Edited (OSOK) : 7/4/2007 8:08:19 PM GMT