cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I disable GPIO_AF_RTC_50Hz

acer
Associate II
Posted on April 14, 2015 at 16:51

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/O

My 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);
1 REPLY 1
Posted on April 14, 2015 at 18:23

[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&currentviews=7]Cross posted

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..