- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I figured out with the example code PSoC 6 MCU – MCWDT and RTC Interrupts (Dual CPU) how to set an alarm that goes to the function Cy_RTC_Alarm1Interrupt() and now copied it down so I could use Cy_RTC_Alarm2Interrupt() with a different alarm. I can only have one alarm active at a time and I believe its due to Cy_RTC_SetInterruptMask(CY_RTC_INTR_ALARM2) disabling the alarm 1 interrupt. Is there a way I can use the RTC to have 2 different alarms with two different interrupts?
Thank you,
Kyle
Solved! Go to Solution.
- Labels:
-
ispn:40211:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can use Cy_RTC_SetInterruptMask(CY_RTC_INTR_ALARM1 | CY_RTC_INTR_ALARM2) to use both alarms.
>> Is there a way I can use the RTC to have 2 different alarms with two different interrupts?
Since there is only one RTC interrupt it will only take care of both you just have to OR the masks.
Regards
Alakananda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can use Cy_RTC_SetInterruptMask(CY_RTC_INTR_ALARM1 | CY_RTC_INTR_ALARM2) to use both alarms.
>> Is there a way I can use the RTC to have 2 different alarms with two different interrupts?
Since there is only one RTC interrupt it will only take care of both you just have to OR the masks.
Regards
Alakananda