Shop OBEX P1 Docs P2 Docs Learn Events
Real Time Clock App — Parallax Forums

Real Time Clock App

ArchiverArchiver Posts: 46,084
edited 2000-09-28 22:26 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-09-14 05:29
    At 03:51 AM 9/14/2000 +0000, you wrote:
    >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
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-16 12:53
    Simon,

    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
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-28 22:26
    DSxxxx chip are I2C I think.

    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
Sign In or Register to comment.