cancel
Showing results for 
Search instead for 
Did you mean: 

RTC on STM32 ?

antonius
Senior
Posted on December 27, 2013 at 06:07

Guys,

Does anyone know on how to initialize RTC on STM32 and display the content of the register to LCD ?

Any links or reference will be appreciated,

Thank you

#think!
10 REPLIES 10
antonius
Senior
Posted on January 08, 2014 at 07:49

I got it guys,

 /* Load the Counter value */

 Tmp = RTC_GetCounter();

 /* Compute hours */

 THH = ( Tmp / 3600 ) % 24;

 /* Compute minutes */

 TMM = ( Tmp / 60 ) % 60;

 /* Compute seconds */

 TSS = Tmp % 60;