Shop OBEX P1 Docs P2 Docs Learn Events
I Know I saw some where on this Forum how use the DS1302 in RAW SECS and MINS — Parallax Forums

I Know I saw some where on this Forum how use the DS1302 in RAW SECS and MINS

sam_sam_samsam_sam_sam Posts: 2,286
edited 2007-12-28 18:32 in General Discussion
Hi Every One

I want to use the ·DS1302·but only in the·RAW SECS and MINS and not read it in a brust mode just read the mins and the secs only

Dose any one know·where this post is on the forum I saw this about a year or so ago

I look about 3 or 4 hour for it with Google on the Parallax site and can not find it

I had it on one of my coumpter but i hard drive and·quit working and·I have lost

And i know that i shoul make a back up copy and most of time i do but this time i did not do this just being lazy

I do not use this computer very often may be reason i forgot to do it


Can any help find where this post is

Thanks for help that you can give me



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·idea.gif·that you may have and all of your time finding them

·
·
·
·
Sam

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-12-28 18:08
    Here's a N&V article www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol1/col/nv33.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • JonnyMacJonnyMac Posts: 9,217
    edited 2007-12-28 18:10
    I found this snippet in an old program:

    ' use burst mode to grab time (hrs, mins & secs)
    '
    Get_Time:
      HIGH Rst
      SHIFTOUT Dio, Clk, LSBFIRST, [noparse][[/noparse]RdBrst]
      SHIFTIN  Dio, Clk, LSBPRE, [noparse][[/noparse]secs, mins, hrs]
      LOW Rst
      RETURN
    



    The constant called RdBrst is defined as $BF. You should probably consult the DS1302 data sheet for specifics.
  • PropabilityPropability Posts: 142
    edited 2007-12-28 18:16
    ·sam3 said

    I look about 3 or 4 hour for it with Google on the Parallax site and can not find it


    In google I typed·· site[noparse]:p[/noparse]arallax.com ds1302 raw

    The first hit is the link that Franklin posted.

    Pete
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-12-28 18:32
    ·Pete

    Thank you for your reply
    I saw that one but that was not what i was looking for


    ·Stephen

    Thank you for your reply
    I also that one but that was not the one i was·not looking

    JonnyMac

    Thank You For your Help
    That was the one that i had seen or something like this ·before but could not find it agian

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
Sign In or Register to comment.