Skip to main content
jrodriguez
Associate
April 11, 2008
Question

how RTC increment date & hour?

  • April 11, 2008
  • 3 replies
  • 897 views
Posted on April 11, 2008 at 10:21

how RTC increment date & hour?

    This topic has been closed for replies.

    3 replies

    jrodriguez
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:29

    ok, this works!

    thank you,

    regards

    ivanov-i
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:29

    The RTC is just a 32-bit counter, which is incremented every second. The rest of the job of converting in real units (hours, months, years) have to be done in software.

    There could be found some examples for date calculation in the Internet. For example

    http://alcor.concordia.ca/~gpkatch/gdate-algorithm.html

    Regards,

    Ivan

    jrodriguez
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:29

    First, sorry for my bad english.

    I have the same problem than jeyakumar.r: i must implement a clock-calendar with STM32 RTC,

    which is the way to do it?

    thank you, gracias