AnsweredAssumed Answered

Baud limited to 625000 in STM8S standard peripheral libraries

Question asked by saliba.george on Jan 16, 2017
Latest reply on Jan 18, 2017 by saliba.george

I've noticed that in the STM8S standard peripheral libraries, in the UART1_Init function there is an assertion checking the baud setting:

 

assert_param(IS_UART1_BAUDRATE_OK(BaudRate));

 

Digging into stm8_uart1.h, the default baud setting for macro IS_UART1_BAUDRATE_OK is 625000 but UART1 is capable of up to 1Mbaud based on the datasheet (right?) I need to run it at 750kbaud and commenting that assertion out I got it working at 750kbaud without issues.

 

So my question is: is there a reason why that default value is 625000 ? 

Outcomes