cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 RTC Alarm

mgrunt
Associate
Posted on September 09, 2013 at 08:33

Hi,

how can I set loop RTC alarm?

Now

I do it

like this

:

I setup RTC_AlarmStructure for ''first'' alarm (for example 01:00:00)

RTC_AlarmStructure.RTC_AlarmTime.RTC_H12 = RTC_HourFormat_24; RTC_AlarmStructure.RTC_AlarmTime.RTC_Hours = 0; RTC_AlarmStructure.RTC_AlarmTime.RTC_Minutes = 1; RTC_AlarmStructure.RTC_AlarmTime.RTC_Seconds = 0; RTC_AlarmStructure.RTC_AlarmDateWeekDay = 0x31; RTC_AlarmStructure.RTC_AlarmDateWeekDaySel = RTC_AlarmDateWeekDaySel_Date; RTC_AlarmStructure.RTC_AlarmMask = RTC_AlarmMask_DateWeekDay;

RTC_SetAlarm(RTC_Format_BIN, RTC_Alarm_A, &RTC_AlarmStructure);

And then I set in

RTC_IRQHandler new alarm (edit RTC_AlarmStructure)...

It is possible setup loop alarm 

through

AlarmMask?

Thank you for answer, MG

#f0-rtc-alarm
0 REPLIES 0