AnsweredAssumed Answered

UART3 in STM8S207 with HSE

Question asked by baxing on Jan 9, 2012
Latest reply on May 19, 2012 by baxing
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);

Outcomes