Real Time Clock App
Archiver
Posts: 46,084
Hi guys,
I need to be able to read the elapsed number of seconds since a
button (in0) is pushed on the stamp (bs2).
It is critical that I can read minutes, seconds, and milliseconds.
I think I need to use a rtc because the stamp will be doing other
things then just reading this time.
Dallas make phantom clocks, the DS1215 & DS1315 that can read
hundreths of a second, but I don't know how to use them.
If anybody has had experience with these, or can suggest a better way
to read the time, please let me know. Code or links would be great.
Thanks,
Simon
I need to be able to read the elapsed number of seconds since a
button (in0) is pushed on the stamp (bs2).
It is critical that I can read minutes, seconds, and milliseconds.
I think I need to use a rtc because the stamp will be doing other
things then just reading this time.
Dallas make phantom clocks, the DS1215 & DS1315 that can read
hundreths of a second, but I don't know how to use them.
If anybody has had experience with these, or can suggest a better way
to read the time, please let me know. Code or links would be great.
Thanks,
Simon
Comments
>Hi guys,
>
>I need to be able to read the elapsed number of seconds since a
>button (in0) is pushed on the stamp (bs2).
>
>It is critical that I can read minutes, seconds, and milliseconds.
>
>I think I need to use a rtc because the stamp will be doing other
>things then just reading this time.
>
>Dallas make phantom clocks, the DS1215 & DS1315 that can read
>hundreths of a second, but I don't know how to use them.
>
>If anybody has had experience with these, or can suggest a better way
>to read the time, please let me know. Code or links would be great.
Check:
www.phanderson.com for timing solutions
Look at the Timer and Timing ASICs made from PICs. You would have to
do the conversions. NOT generally used for TOD per se. If you NEED TOD
Dallas is prolly your best bet.
>Thanks,
Yup
>
> Simon
Regards,
Bruce
I used a 555 timer to make a 1KHz square wave generator that fed a 4 digit
BCD counter. My BS2 turns the pulse stream on and off. Another button will
reset the display counter. Very cheap. My application was to judge a kid's
pine car race with multiple lanes. The BS2 judged who won and displayed the
time in milliseconds. The 4 digits gave me 9 seconds and 999 miliseconds.
Good luck,
Richard
I have no experience of I2C yet, but I am going on.
I am looking at PCF8283 (Philips) datashet which is clock/calendar, but
events counter mode is possible from hundrenths of seconds to hours, which is
in your goal.
Protocol has to be learnt but it is simple to be assimilated.
Some actuals email exchanges are related to
http://www.phanderson.com/stamp/i2c/xxxxxx.html for I2C code.
I think it's help for you.
C. Souche