Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Object: DS1307 — Parallax Forums

Propeller Object: DS1307

Beau SchwabeBeau Schwabe Posts: 6,568
edited 2006-09-08 03:09 in Propeller 1
Newzed,

I will be posting this to the Propeller object library, but thought you would be interested since you requested a DS1307 object from Paul Baker.
Fact is, I just started working on it when you made the request.

This object tries to exercise all of the aspects associated with the DS1307 ...

- Setting 12/24 hour mode with full date/time settings
- Configuring the SQW/OUT pin
- Using the 56-Byte memory
- Driving the DS1307 with an external clock source. i.e. synthesizing 32.768kHz with the Propeller smilewinkgrin.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe

IC Layout Engineer
Parallax, Inc.

Comments

  • NewzedNewzed Posts: 2,503
    edited 2006-09-07 23:37
    Thank you very much, Beau.

    I have the DS1307 on a piggyback which plugs in underneath the Propeller.· It already has a crystal soldered in place.· The DS1307 requires a crystal with a capacitance of 12.5pf - I don't see how you can get that from the Propeller.· So how do I disable the "synthesized" frequency?

    Sid
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2006-09-07 23:49
    Newzed,

    P3 of the Propeller connects to X1 of the DS1307... to dissable this, just don't connect P3 and use your current crystal configuration across X1 and X2 of the DS1307.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • JamesxJamesx Posts: 132
    edited 2006-09-08 02:20
    I have a DS1302 from Parallax. Is the DS 1307 similar?

    J
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2006-09-08 02:25
    Jamesx,

    No, the DS1302 uses SPI communication rather than I2C communication. Keep looking though, the DS1302 is on my list of objects to create Propeller code for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • John AbshierJohn Abshier Posts: 1,116
    edited 2006-09-08 02:43
    Beau,
    I noticed that you used your own I2C routines instead of using the I2C object in the Object Exchange. Any reason?
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2006-09-08 03:09
    John Abshier,

    I wanted to streamline the code and strip it down to it's bare minimum without a bunch of clutter. This modular approach is in preparation for
    another object designed to work closely with the I2C communication protocol.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
Sign In or Register to comment.