2023-06-12 06:45 AM - edited 2023-11-20 03:26 AM
I would like to set a 1Hz signal on the PC13 (RTC_OUT_CALIB). I have found a manual in document AN3371 (see picture in appendix). The code is also in the appendix. Unfortunately, nothing happens on the PC13 but the RTC works. If anyone has any idea what else to add here, thank you, greetings, KH
Solved! Go to Solution.
2023-06-12 09:27 AM
If PC13 is configured in RTC to any RTC function, that overrides the GPIO settings, see RTC chapter in RM.
Reset the backup domain (remove battery or any source from VBAT, or use the software reset) and don't enable RTC etc. Then try again.
JW
2023-06-12 07:38 AM
What is your hardware? If you set PC13 to GPIO OUtput and toggle it, can you observe those pulses?
Read out and check/post the RTC registers content.
JW
2023-06-12 09:05 AM
Thanks for your answer!
I can set all pins (0-12) of PortC as output or input. All these pins work, only PC13 remains (apparently) always configurated as input and cannot be changed!?
2023-06-12 09:27 AM
If PC13 is configured in RTC to any RTC function, that overrides the GPIO settings, see RTC chapter in RM.
Reset the backup domain (remove battery or any source from VBAT, or use the software reset) and don't enable RTC etc. Then try again.
JW
2023-06-12 10:19 AM
Thanks for your information! By removing and reinstalling the battery (VBAT), the PC13 first works as a normal IO port.
After that I have activated the RTC again (see code above, and the GPIO function of PC13 deactivated again) and PC13 now outputs the 1Hz!
thanks and best regards, KH
2023-06-12 10:33 AM
Now I understand, PC13 is supplied by VBAT!