Question
UART3 in STM8S207 with HSE
Posted on January 09, 2012 at 10:54
Please help me about
I use STM8S207 for HSI : I use UART3. I can be control it normally. with follow code -->UART3_DeInit();
UART3_Init((u32)9600, UART3_WORDLENGTH_8D, UART3_STOPBITS_1,UART3_PARITY_NO, UART3_MODE_TXRX_ENABLE);
SerialPutChar('A');
And then I change to HSE. I can not control it such as I send 'A' char to PC but PC receive only garbage char not 'A'
by I add this code -->
CLK_ClockSwitchConfig2(CLK_SWITCHMODE_AUTO, CLK_SOURCE_HSE, DISABLE, CLK_CURRENTCLOCKSTATE_DISABLE);