2024-02-12 03:44 AM - last edited on 2024-02-12 03:57 AM by SofLit
Hi,
I'm trying to get an alarm signal on an external contact (PC13). In the program everything works as it should and the interrupt occurs, but nothing changes on the external contact. What did I miss?
2024-02-12 11:30 AM
An oscilloscope is connected to pin PC13. Perhaps I don’t understand something, I set up an alarm clock in the cube and want to receive an alarm on the PC13 pin. I enabled interrupts and am just waiting for an event on the PC13 pin. And as I already wrote, there is nothing on the oscilloscope, and an interruption occurs. The situation changes if I set an alarm and turn off VDD, then when the alarm goes off, voltage appears on the PC13 pin and remains until I apply VDD again.
2024-02-12 12:53 PM - edited 2024-02-12 01:27 PM
All necessary bits are set
OSEL = 01 ALARM A
RTC_OUT_RMP = 0 NO REMAP (PC13 OUT )
RTC_ALARM_TYPE =1 PP MODE .
But whether it should work in active mode, this table does not say anything about this.
I also checked the HAL_PWR_EnterSTOPMode and recorded a pulse of about 20us duration
2024-02-13 07:40 AM
I don't see any reason why wouldn't alarm output work in Active mode of processor.
At this point you may want to contact ST directly, through FAE or web support form.
JW