PDA

View Full Version : Rtc



sonic
- 6th May 2004, 06:02
HI TO EVERYONE!

I HAVE SOME PROBLEMS USING RTC - PCF 8583 BY PHILIPS.

.. OK, THE TIME IS RUNNING, THAT`S OK, BUT HOW TO SET THE TIME, AND HOW TO DO SOMETHING AT THE SPECIFIC TIME I CHOOSE?

FOR EXAMPLE: TO READ THE TEMPERATURE EVERY 1 HOUR AND STORE THE RESULT ON 24 LC 512 SEEPROM.

THANX A LOT!

REGARDS

jrt4fun
- 6th May 2004, 14:57
Hi,

I'd like to add something related.
I'm also looking to create some kind of clock system.
Purpose is to switch on/off some outputs at a give date and time.
e.g. switch on PORTB.0 at 12:30 and switch of at 12:45
If possible with multiple events per day kinda like a heating control (different switch events per day)

Does somebody know where to find this code or a way to get started?

Thank you

Regards

Melanie
- 7th May 2004, 02:46
I have posted a sample program (seriously overkill but it was deliberately written as an example) on the MeLabs website for the DS1307 RTC...

http://www.melabs.com/resources/samples/submitted/MN1307.txt

It allows you to Set the Time and Date, verifies for silly user entries (eg 31st of February), accounts for leap years, works out the Day of the Week, plays in 12 or 24 hour mode and makes Coffee...

OK... so I lied about the Coffee...

Melanie

sonic
- 7th May 2004, 05:39
Thank u Mel.

I`ll try to apply this on pcf 8583.

If I want to make something like a DATA LOGGER, I must set the time..Don`t you think?


Regards