AnsweredAssumed Answered

How Can I disable GPIO_AF_RTC_50Hz

Question asked by Adriano.Shadow.Brazil on Apr 14, 2015
Latest reply on Apr 14, 2015 by Clive One
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);

Outcomes