RTC configuration of outpot ALRM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-19 5:07 AM
Hello st community,
I work on stm32h7, and I use with RTC output alarmA, when the MCU power supple turned off, and RTC work with VBATT to wakeup some component with this signal, but this component needs any pules to wakeup and not woke up with first event ('0' to '1' or '1' to '0' ) he needs '0' to '1' and after this to go down '1' to '0' , so i have just the half way by config the alarm polarity to high, but the SW not working yet to clear this signal, is there any way(some configuration of RTC output alarm) to auto clear RTC_SR_ALRAF flag for the output to go down without the SW?
Solved! Go to Solution.
- Labels:
-
RTC
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-20 2:55 AM
Hello,
With H7 there is no way other than with SW. New microcontrollers like H5 or U5 can do it by setting the ALRxF
CLR (x = A or B) bits in RTC_CR . For your problem with H7, maybe you can use a LPTIM depending on your use case.
Have a nice one !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-20 2:55 AM
Hello,
With H7 there is no way other than with SW. New microcontrollers like H5 or U5 can do it by setting the ALRxF
CLR (x = A or B) bits in RTC_CR . For your problem with H7, maybe you can use a LPTIM depending on your use case.
Have a nice one !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-20 1:14 PM
Thanks a lot.
(That what i thought when i read RM-0455, but to make sure that i don't lost something, i posted this question)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-12 5:43 AM
Hi, I am trying to get an alarm signal on pc13 pin but without success, could you give an example? I turn on alarm A (Routed to OUT), the interrupt occurs but nothing changes on the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-12 5:58 AM
It seems I found what was wrong, I carried out tests without turning off VDD and expected to see a signal on PC13 but nothing happened, but as soon as I turned off VDD the alarm signal appeared =))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-12 6:00 AM
Hello Denys_T,
Firstly, may I ask if you are using a Nucleo board ?
If it's the case, I do think, it's normal cause PC13 is connected to the user button. You can remove SB51. You could try it routed to the second output, PB2, but I do think you need to remove SB63.
Also note the output are not available, if you don't use the alarm with the interruption, meaning it doesn't work in polling mode.
Have a nice one,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-12 6:04 AM
It's strange, I don't really understand this behavior. If I have some time, I will check it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-12 6:07 AM
Yes, if possible, I would like to sort this out completely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-12 6:11 AM
Could you tell me if you are using a Nucleo board ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-12 6:13 AM
No, I'm using a homemade board with an STM32H750 processor
