AnsweredAssumed Answered

STM32 RTC milliseconds setting

Question asked by Tomohiro Shirane on Jun 7, 2018
Latest reply on Jun 16, 2018 by waclawek.jan

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.

Outcomes