cancel
Showing results for 
Search instead for 
Did you mean: 

User constants in End Node application

AZube.2
Associate III

Anyone can explain me where do the following constants come from and what is their function in the RTC?

0693W00000QLbYaQAL.png 

I am starting my own application and I would like to know if these values suit my own application.

1 ACCEPTED SOLUTION

Accepted Solutions
Louis AUDOLY
ST Employee

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

View solution in original post

2 REPLIES 2
Louis AUDOLY
ST Employee

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

AZube.2
Associate III

Got it! Thank you so much:)