STM32F302VCT6 - PC13 -> RTC_OUT_CALIB ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 6:45 AM - edited ‎2023-11-20 3: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.
- Labels:
-
RTC
-
STM32F3 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 9: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 7: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 9: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!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 9: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 10:33 AM
Now I understand, PC13 is supplied by VBAT!
