AnsweredAssumed Answered

BaudRate in serial port

Question asked by waytae on Dec 12, 2012
Latest reply on Dec 13, 2012 by Clive One
Hi

I've connected my ST32F4 Recovery to PC by USB connection.
I create this function to display message to minicom 2.5.

int PUTC(int ch)
{
    /* Loop until transmit data register is empty */
    while (USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET);
    USART_SendData(USART2, (uint8_t) ch);
    return ch;
}
  
void PUTS(char *str)
    {
    char c;
    while ((c = *str++) != '\0')
           PUTC(c);
    }


It works because i choose the BaudRate Value = 921600*3.

usart_init.USART_BaudRate = 921600*3;

But if i change this BaudRate it doesn't works.

Do you know why it works  only with this value ?

And how it is calculated?

Excuse me for for question but I'm a beginner.

 
thanks

 

Outcomes