cancel
Showing results for 
Search instead for 
Did you mean: 

how RTC increment date & hour?

jrodriguez
Associate II
Posted on April 11, 2008 at 10:21

how RTC increment date & hour?

3 REPLIES 3
jrodriguez
Associate II
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

ivanov-i
Associate II
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 II
Posted on May 17, 2011 at 12:29

ok, this works!

thank you,

regards