Question
Baud limited to 625000 in STM8S standard peripheral libraries
Posted on January 16, 2017 at 16:16
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 ?
#uart1 #stm8