AnsweredAssumed Answered

RTC_CR Daylight Saving

Question asked by pipon.herve.001 on May 26, 2016
Latest reply on May 27, 2016 by FTITI.Walid
Hello,

Looking at the RM0090, I can read on the RTC_CR register description :
Bit 17 SUB1H: Subtract 1 hour (winter time change)
When this bit is set outside initialization mode, 1 hour is subtracted to the calendar time if the
current hour is not 0. This bit is always read as 0.
Setting this bit has no effect when current hour is 0.
0: No effect
1: Subtracts 1 hour to the current time. This can be used for winter time change.
 
 
Bit 16 ADD1H: Add 1 hour (summer time change)
When this bit is set outside initialization mode, 1 hour is added to the calendar time.
This bit is always read as 0.
0: No effect
1: Adds 1 hour to the current time. This can be used for summer time change

Is there some example of how to use these bits somewhere ?

Best Regards

Outcomes