Shop OBEX P1 Docs P2 Docs Learn Events
RTC: DS1302, DS1307; Internal Xtal: DS1337/38/39/40C, ISL12020/22M; etc - Page 2 — Parallax Forums

RTC: DS1302, DS1307; Internal Xtal: DS1337/38/39/40C, ISL12020/22M; etc

2»

Comments

  • RaymanRayman Posts: 14,876
    edited 2011-02-11 17:26
    now that I think about it, I might be able to get uSOP8, crystal and ultracap all in a DIP8 top surface...
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-02-12 03:38
    I decided I would pay the extra for the internal xtal and the DS1340C-33 suits me the best.
    But otherwise, the uSOP8 would be the next choice.
  • RaymanRayman Posts: 14,876
    edited 2011-02-12 04:52
    On second thought the integrated crystal is very nice, if you've got room.

    Cluso, Why the DS1340? Looks like you trade the alarms of the DS1339 for a programmable output.
  • TappermanTapperman Posts: 319
    edited 2011-04-16 12:42
    Well, I prefer the DS1302 ... because of the trickle charger.

    BTW. I put a 1000 uF cap on pin 8 ... configured the trickle charger with one diode and a 2k while operating on 3.3v ... result:
    After loading the current date and time ... removed power and checked the clock the next morning. the RTC ran from 9:30pm to 3:37am (roughly 6 hours).

    The chip still had the date and time (just locked at 3:37am), and all the ram variables too. Can I assume, that as the power dwindles "the chip stops advancing the clock"

    What size cap should a super cap be? (to keep the time for about a week)
    ... Tim
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-04-16 17:55
    Tim: I have no idea how long a 1000uF cap would last. A low leakage cap is required as I would expect the power required fot the RTC is tiny. If you have a meter, measure the voltage on the cap each day and see when it gets to the minimum value required by the RTC. This will give you an approximation only as proper calcs need to be done. I am interested in what you find. IIRC the DS1340C is capable of trikkle charging too. The socket and 1125? coin cell is quite cheap, but it does take space.
  • TappermanTapperman Posts: 319
    edited 2011-04-16 21:24
    That was the biggest cap I had laying around. Hey, an idea just formed in my head (boy is that rare). What if you preformed the same test with a mystery sized cap? Could you equate size by comparing times till the counter stopped?

    Lets see ... 1,000 uF cap lasted 6:07 (6 * 36000 + 7 * 60) or roughly 22,000 secs.

    ... Tim
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-04-17 03:50
    Unfortunately, you cannot guaranteed each chip to be the same as the next. However, the big variation is in the cap which has possibly a +20%/-80% variation. Anyway, it is unknown what the RTC will do when the voltage drops too low. The date/time maybe corrupted.
  • TappermanTapperman Posts: 319
    edited 2011-04-17 18:27
    Cluso99 wrote: »
    Unfortunately, you cannot guaranteed each chip to be the same as the next. However, the big variation is in the cap which has possibly a +20%/-80% variation. Anyway, it is unknown what the RTC will do when the voltage drops too low. The date/time maybe corrupted.

    I've made several tests now ... and in each case the clock stopped running apx 6 hours after I power down the board. Yet my RFID keys (I have 2 stored in RAM) remain in tact. The time shows when the 1302 stopped advancing the time values stored. And the date is valid!

    I'm wondering if the chip has 2 low power modes? That would seem to explain the results I'm getting. The chip stops counting .... but continues to hold the RAM values? Even 24 hours after the counting ceases! I can power up and read the RAM values.
  • dMajodMajo Posts: 855
    edited 2011-04-18 08:15
    I usually use the Ramtron FM31L278 (FM31L27x_r3.1.pdf), I always find what to do with the additional hardware ;)
  • SapiehaSapieha Posts: 2,964
    edited 2011-04-18 08:28
    Hi dMajo. I use them to. FM31L278-RTC/Mem and FlexMem board's. http://forums.parallax.com/showthread.php?123551-3D-rendering-of-new-Mikronauts-PCB-s-layout-by-Sapieha-Open-for-comments-(15-PCB-s-added)&p=918345&viewfull=1#post918345
    dMajo wrote: »
    I usually use the Ramtron FM31L278 (FM31L27x_r3.1.pdf), I always find what to do with the additional hardware ;)
  • FranklinFranklin Posts: 4,747
    edited 2011-07-20 14:25
    I have a ChronoDot (DS3231) and am having trouble getting it to work with the Propeller. I have clock on 28, data on 29, pullups (10K) to 3.3 on both. I downloaded the DS1307_RTCEngine object and tried it with no luck. I also tried the i2cObject and it is not found. I tried both the default )xD0 and the ChronoDots 0x68. Is there something I'm missing? It works fine on an Arduino so I know the device is working.
Sign In or Register to comment.