AnsweredAssumed Answered

Setting up the Clock for HSE 16mhz and usart2 baudrate is lower as configured

Question asked by eich.alexander on Dec 6, 2011
Latest reply on Dec 9, 2011 by Clive One
hi,
I have a stm32f103zet6 board and im using keil. the external crystal (HSE) has 16mhz.
When im setting up my USART2 @ 38400bau in Keil Debugger it shows me that its running with 12668 baud ??? (=38400/3,19).
Where is my fault? With the Eval board from keil everything seems to be allright (but it has 8mhz HSE).

Here is my code:


 Please help.

Is my PLL/RCC Setup correct?  I want to use USB as VCOM too.




Attachments

Outcomes