2015-04-14 07:51 AM
How can I disable RTC 512Hz signal and return PC13 as I/O ??
I programed the PC13 as ''GPIO_AF_RTC_50Hz'' to calibrate the 512Hz signal of internal RTC, but now I cant disable it to use PC13 as I/O, The STM32F205 doesn´t disable 512Hz and reprogram to I/OMy routine to program as 512Hz is :GPIO_PinAFConfig (GPIOC, GPIO_PinSource13, GPIO_AF_RTC_50Hz); // GPIO_AF_RTC_AF1 Alternate Function RTC_AF1 (Calibrar RTC com saida em PC13 = 512 Hz) GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN; GPIO_Init(GPIOC, &GPIO_InitStructure);My routine to reprogram as I/O is below:GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN;GPIO_Init(GPIOC, &GPIO_InitStructure);2015-04-14 09:23 AM
[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/I%20Can%C2%B4t%20disable%20RTC512Hz%20signal&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx¤tviews=7]Cross posted