AnsweredAssumed Answered

When to use RTC_FORMAT_BIN and when to use RTC_FORMAT_BCD ?

Question asked by Elliot on Dec 6, 2016
Latest reply on Dec 6, 2016 by Clive One


I'am working on STM32L486RG MCU and I'am using RTC to get the real time value.

I know that ST provides 2 RTC format for the time : the RTC_FORMAT_BIN and RTC_FORMAT_BCD ( as defined in the HAL ). I know the difference between the 2 representations but I don't know exactly when it's useful to use the BCD format

and when to use the Binary format ?

I kindly need your help .