2014-08-12 02:44 AM
Hi , i am unable to obtain the 230400 baudrate. i am able to attaiin only 115200.
please help me with the sample code . i am using usart3 of stm32l152xD controller #usart3 #baudrate #2304002014-08-12 03:29 AM
Are you trying to interface stm32l152xD controller with any external device? specify reception and transmission parts
2014-08-12 04:33 AM
hi arun
i am using tera term in the pc side to receive and send data through rs232 TTL Logic . is 230400 baudrate is possible at usart3 . if yes what should be the clock setting for it . thanks .2014-08-12 04:42 AM
Running faster than 4 MHz should be sufficient, the higher the better.
Send a stream of characters and verify the signal on a SCOPE, this way you'll be able to determine where the problem is. Is your PC serial port capable of 230400? The STM32 certainly should be capable of much higher rates. Look for downstream issues.2014-08-12 04:55 AM
Also, let me know the type of cable(Name and whether the cable is original or not) to connect with you PC.
2014-08-12 05:12 AM
2014-08-12 07:43 AM
yes my pc serial port is capable of 230400 baudrate , i have verified this with the loopback .
That's a bit self-referential, the Rx/Tx share a common clock which could be anything. The STM32L would likely pass that test. Use a SCOPE and measure the bit timing, then you'd know. Your APB2 clock CAN'T be DIV16, it must be at least as fast at APB1, and 12 / 16 is BELOW the 4 MHz number I mentioned earlier.