Question
STM32 RTC milliseconds setting
Posted on June 07, 2018 at 03:50
Hello,
I'm using the STM32 H753 Evaluation board, and trying to set the milliseconds by using HAL_RTC_SetTime function.
However, the HAL_RTC_SetTime function does not change the milliseconds(subseconds) value.
I've read the RTC synchronization chapter in the reference manual, but I don't understand it enough though.
If I would like to set the 400 milliseconds value, should I set the 0x190(= 400 decimal) into SUBFS field in RTC_SHIFTR and set the 0x3E7(= 999 decimal) into PREDIV_S field in RTC_PRER ?
Help would be appreciated.
Thanks.
Shirane.
