PDA

View Full Version : Ds1307



Newzed
08-31-2007, 02:49 AM
Does anyone have a program for running the DS1307 on the Propeller?

Thanks

Sid

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.

That is why they call it the present.

Don't have VGA?
Newzed@aol.com (mailto:Module?Newzed@aol.com)

Mike Cook
08-31-2007, 03:17 AM
The "i2c Object and examples" in the "Propeller Object Exchange" has a DS1307 example

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike (http://www.allsurplus.net/)

Newzed
08-31-2007, 03:26 AM
Mike, I looked there. I did not see anything for the DS1307 - only the Basic I2C driver by Mike Green.

Sid

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.

That is why they call it the present.

Don't have VGA?
Newzed@aol.com (mailto:Module?Newzed@aol.com)

Tom Wyckoff
08-31-2007, 03:35 AM
I have a heavily modified version of the I2C demo I wrote for a DS1307 module from Futurelec. (It's just a DS1307 with crystal and backup battery on a small PCB) I changed it from using an LCD to serial comms. It's yours if you want it.

Newzed
08-31-2007, 03:43 AM
Tom, could I take a look at it? Can I just plug in the DS1307, load the program and run it? Please include the objects it needs in the .zip file. Thanks a lot.

Sid

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.

That is why they call it the present.

Don't have VGA?
Newzed@aol.com (mailto:Module?Newzed@aol.com)

Tom Wyckoff
08-31-2007, 04:01 AM
I sent it to your email (I hope). If it does what you want, maybe I'll put it in here someplace, although 80% of it isn't really mine, the DS1307obj.spin and I2Cobject.spin are un-modified copies of the files from the object exchange.