cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with baud rate 19200 on STM32F0.

pferd
Associate III

Hello

I have the problem with USART baud rate in STM32F09x. I want to use baud rate: 9600, 19200, 38400, 57600, 115200bps with data length - 8 bits, parity and one stop bit. 

I can connect to the device at all speeds except 19200.

Microcontroller uses HSI 48 MHz clock.

Where is the problem ?

Thank you for help.

3 REPLIES 3

>>Where is the problem ?

 Put a scope on it and tell us.

8-bit with parity is programmed as 9-bit, 19200 baud should be a clean divide of 48 MHz

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

> I can connect to the device at all speeds except 19200.

How exactly does "can not connect" exhibit itself?

Note, that HSI is +-1% only at 25 deg.C and VDDA = 3.3 V. Also, some Cube incarnations on some families tend to spoil the internal RC oscillators trim, so check RCC_CR.HSITRIM.

JW

pferd
Associate III

Hello,

I am testing transmission and I have noise error for 19200 speed in receive mode. I used 2 diffrent master and I have this error in my microcontroller. It works as a slave.

Pferd