Question
I Can´t disable RTC512Hz signal
Posted on April 14, 2015 at 17:03
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);