AnsweredAssumed Answered

Get more resolution from RTC clock

Question asked by Lukasz Przenioslo on Dec 2, 2015
Latest reply on Dec 8, 2015 by Lukasz Przenioslo
Hello there,
I was wondering either it is possible to count with microseconds resolution isntead of seconds resolution using RTC 32k clock?

I am using HAL lib. In the RTC_TimeTypeDef time structure there are 2 members I dont quite understand:
/*!< Specifies the RTC_SSR RTC Sub Second register content.
This parameter corresponds to a time unit range between [0-1] Second
with [1 Sec / SecondFraction +1] granularity */
  uint32_t SubSeconds;    
  
 /*!< Specifies the range or granularity of Sub Second register content
 corresponding to Synchronous pre-scaler factor value (PREDIV_S)
This parameter corresponds to a time unit range between [0-1] Second
with [1 Sec / SecondFraction +1] granularity.
This field will be used only by HAL_RTC_GetTime function */
  uint32_t SecondFraction;

At the begining I thought I would be able to use them somehow to specify the time with more precision, but those values dont change.

I would apreciate all help in this case.

Outcomes