cancel
Showing results for 
Search instead for 
Did you mean: 

How to set RTC_PRER in STM32F0xx?

RM0091 rev.9 in 25.7.5 RTC prescaler register (RTC_PRER) says:

The initialization must be performed in two separate write accesses. Refer to Calendar initialization and configuration on page 584.

However, Calendar initialization and configuration does not say, what two separate write accesses; regarding RTC_PRER it only says:

3. To generate a 1 Hz clock for the calendar counter, program both the prescaler factors in

RTC_PRER register.

I see more than that e.g. in RM0090 (i.e. the 'F4xx RM), but does that apply to to 'F0?

Or is the two writes not necessary for the more modern 'F0, and the remark at the register description is just a copy/paste artifact?

Could this please be properly documented?

Thanks,

JW

0 REPLIES 0