Skip to main content
DMeix.1
Associate II
Aug 18, 2020 7:27 AM UTC
Question

Change Baudrate

I use the STM32F7 and I want to change the baud rate of the USART6 from 115200 to 921600 during runtime, how can I do that?

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
Aug 18, 2020 8:47 AM UTC
  • disable USART USART_CR1.UE=0
  • change baudrate divisor in USART_BRR
  • reenable USART USART_CR1.UE=1

JW

DMeix.1
DMeix.1Author
Associate II
Aug 19, 2020 6:23 AM UTC

Thanks for your help