Propeller Object: DS1307
Beau Schwabe
Posts: 6,568
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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Comments
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
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.
J
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.
I noticed that you used your own I2C routines instead of using the I2C object in the Object Exchange. Any reason?
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.