EDIT: rev 2 uploaded. Small change in test program to avoid 15 second skew when setting time via the serial port.
Enclosed is a zip file of a folder containing a complete ZBasic project.
The project consists of 3 files:
1. Test and demonstration program
2. DS1307 I/O support including a means to set the date/time via a serial port command from a DOS batch command
3. Date/time utilities
This was tested with a DS1307 PC board with battery from Sparkfun.com
http://www.sparkfun.com/commerce/produc ... ucts_id=99
cheers. Hope there's no bugs (it's my first ZBasic program)
steve
PS: The zip file here is large because the PDFs for the DS1307 are enclosed.
DS1307 clock chip Simple support with test/demo program v1
DS1307 clock chip Simple support with test/demo program v1
- Attachments
-
- DS1307Test1 rev2.zip
- (342.25 KiB) Downloaded 4879 times
I get the following:
-DonCommand Line Output wrote:Archive: /home/don/Downloads/DS1307Test1 rev2.zip
[/home/don/Downloads/DS1307Test1 rev2.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.