- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am using CYBL10161-56LQXI for my project with RTC enabled. How to enable alarm repeatition u.e. "Alarm should trigger at given time every weekday i.e. from monday to friday" or any other repeatition rate? I have been through the datasheet and code files but could not figure this out.
Thanks for answers.
Ashutosh
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Tags:
- on chip rtc
- proc ble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You cannot set multiple different alarms. You will need to handle that in your alarm handler by setting the next alarm time/date.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will need the RTC component from system components to maintain time, date and alarms.
Bob
PS: Datasheet for CYBL10x6x shows "Not for new designs"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Bob. I did use the RTC from the system components in the schematic and enabled the alarm in the customizer. My question is how can I set the alarm in such a way that, alarm occurs every Monday, Tuesday and Wednesday. I tried using masks like this
<code>
RTC_SetAlarmMask(RTC_ALARM_MIN_MASK | RTC_ALARM_HOUR_MASK);
</code>
But, this enables the alarm for every day at given hour and min. I want it to be enabled only for 3 days of the week. Is it possible? if yes, how to do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You cannot set multiple different alarms. You will need to handle that in your alarm handler by setting the next alarm time/date.
Bob