Question
RTC SubSeconds gets in count down mode
Posted on April 10, 2018 at 14:50
Following is GetTime function, It always give SubSeconds from 255 to 0 in count down mode. Values read in few ms interval.
static void RTC_GetTime(void)
{
RTC_DateTypeDef sdatestructureget; RTC_TimeTypeDef stimestructureget;HAL_RTC_GetTime(&hrtc, &stimestructureget, RTC_FORMAT_BIN); HAL_RTC_GetDate(&hrtc, &sdatestructureget, RTC_FORMAT_BIN);printf('\r\n%0.2d:%0.2d:%0.2d:%0.2d', stimestructureget.Hours, stimestructureget.Minutes, stimestructureget.Seconds, stimestructureget.SubSeconds);}logs are :-
05:34:35:149
05:34:35:9905:34:35:4805:34:36:25405:34:36:20305:34:36:15305:34:36:10305:34:36:5205:34:36:0205:34:37:20805:34:37:15705:34:37:10705:34:37:5705:34:37:0605:34:38:21205:34:38:16105:34:38:11105:34:38:6105:34:38:1005:34:39:21605:34:39:16605:34:39:11505:34:39:6505:34:39:1505:34:40:22005:34:40:17005:34:40:12005:34:40:6905:34:40:1905:34:41:225Any suggestion ?
#stm32l4 #rtc