User constants in End Node application
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.
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.
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.