Author Topic: Real Time Clock code  (Read 10425 times)

sk_uk

  • Hero Member
  • *****
  • Posts: 80
    • View Profile
    • http://www.skpang.co.uk
Real Time Clock code
« on: March 21, 2006, 02:22:09 PM »
Does anyone have C codes for setting and reading the RTC in the IOR5E?

steves

  • Sr. Member
  • ****
  • Posts: 34
    • View Profile
Re: Real Time Clock code
« Reply #1 on: March 22, 2006, 05:22:31 AM »
Yes, I've done this, but it's in rev 203 and involves small mods to the eeprom code. Drop me an IM and I can probably help you out.

Steve S

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Real Time Clock code
« Reply #2 on: March 22, 2006, 12:29:58 PM »
Hi, can you send me also the C code for setting and reading the RTC ?

Regards

Philbert

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Real Time Clock code
« Reply #3 on: May 16, 2006, 01:28:40 AM »
Could you also send me the code as well?
Thanks

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Real Time Clock code
« Reply #4 on: May 16, 2006, 10:33:29 AM »
Please, if you can, send me your c code. Thank you so much

jaa

  • Full Member
  • ***
  • Posts: 16
    • View Profile
Re: Real Time Clock code
« Reply #5 on: July 23, 2006, 08:30:47 AM »
Hi Steve,

I am successfully using your code for controlling IOR5E module and now I would like to add your RTC functionality. May I have it?

Br,
Jaa

kit

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Real Time Clock code
« Reply #6 on: October 18, 2006, 06:55:08 AM »
Could you please send me the code too?
Thank you!

simond-7

  • Jr. Member
  • **
  • Posts: 9
    • View Profile
Re: Real Time Clock code
« Reply #7 on: February 27, 2007, 06:49:50 AM »
Hi Steve,

I know this is late in the thread, but is there any chance you could post (or email me) a fragment of the code for reading the rtc on the IOR5E?

Thanks

Simon

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Real Time Clock code
« Reply #8 on: February 27, 2007, 12:51:25 PM »
i do not have IOR5E but i'm using DS1307 since a lot of time.
« Last Edit: March 17, 2007, 05:31:58 AM by OmarZ »

simond-7

  • Jr. Member
  • **
  • Posts: 9
    • View Profile
Re: Real Time Clock code
« Reply #9 on: February 28, 2007, 10:41:18 AM »
Great, thanks very much for the quick response. I will download your files and have a look!

Thanks again.

simond-7

  • Jr. Member
  • **
  • Posts: 9
    • View Profile
Re: Real Time Clock code
« Reply #10 on: March 21, 2007, 06:09:00 PM »
Hi I was wondering if you could post the "uSysClk.h" file that your uds1307.c file includes too please. :-)

OmarZ

  • Hero Member
  • *****
  • Posts: 243
    • View Profile
Re: Real Time Clock code
« Reply #11 on: March 22, 2007, 12:53:17 PM »
uSysClk.h is used only to save dateTime in DB_SystemClock structure.
You can use your global vars and so you o not need uSysClk.h

Code: [Select]

            struct
              {
                BYTE_VAL Flags_1;
                BYTE_VAL Flags_2;
               struct
                {
                 BYTE ss;
                 BYTE mm;
                 BYTE hh;
                } Time;
               struct
                {
                 BYTE wd;
                 BYTE dd;
                 BYTE mm;
                 BYTE yy;
                } Date;
               BYTE Alive;
              } DB_SystemClock;