AnsweredAssumed Answered

usart baud rate

Question asked by sanaz on Jun 30, 2016
Latest reply on Jun 30, 2016 by Clive One
hi
i wanna connect stm32f407discovery board to stm32f429 via uart communication. how can I calculate the closest baud rate to 5Mbps for these 2 board? I use following cod and it work but I want to be sure about minimum Error bit:
    USART_InitStruct.USART_BaudRate = 5000000;
    USART_InitStruct.USART_HardwareFlowControl =       USART_HardwareFlowControl_None;
    USART_InitStruct.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
    USART_InitStruct.USART_Parity = USART_Parity_No;
    USART_InitStruct.USART_StopBits = USART_StopBits_1;
    USART_InitStruct.USART_WordLength = USART_WordLength_8b;
    USART_Init(USART1, &USART_InitStruct);
  USART_Cmd(USART1, ENABLE);

Outcomes