2022-07-20 12:20 AM
Anyone can explain me where do the following constants come from and what is their function in the RTC?
I am starting my own application and I would like to know if these values suit my own application.
Solved! Go to Solution.
2022-07-20 06:06 AM
Hello,
These constants are prescalers used to perform time operations
The constant RTC_N_PREDIV_S and RTC_PREDIV_S are used when you want to get the time to calculate the second and millisecond.
For RTC_PREDIV_A is used to increment the calendar value with a frequency of 1 Hz
I suggest you to check the section relative to RTC in the reference manual of your board for more information about those two variables.
Best regards
2022-07-20 06:06 AM
Hello,
These constants are prescalers used to perform time operations
The constant RTC_N_PREDIV_S and RTC_PREDIV_S are used when you want to get the time to calculate the second and millisecond.
For RTC_PREDIV_A is used to increment the calendar value with a frequency of 1 Hz
I suggest you to check the section relative to RTC in the reference manual of your board for more information about those two variables.
Best regards
2022-07-20 06:46 AM
Got it! Thank you so much:)