Hi,
I have K60 tower. According to document, the maximum baud rate for UART can be 1/16 of clock freq:
The maximum baud rate is 1/16 of related source clock frequency
But when I change the setting in the user_config.h
#define BSPCFG_SCI5_BAUD_RATE 115200
to
#define BSPCFG_SCI5_BAUD_RATE 921600
it shows an error:
How to set a higher baud rate and what is the limit for this setting? And how to set beyond the current limit?
Thank you
David Zhou
已解决! 转到解答。
Hello David
If the Bus Clock that you configured in CPU component is 60MHz, the UART5 of Baud Rate can be up to 3750000. So there is no problem to configure the Baud Rate into 921600
I checked in the source code, the macro definition for BSPCFG_SCI5_BAUD_RATE is set correctly and it should work well. You can ignore the message of exceeds max limit.
Best Regards
Fiona Kuang
Technical Information & Commercial Support
Hi Alice,
TWR-K60F120M
Clock: 120M
It displayed in red color with tag message of exceeds max limit. But it compiles and runs. I try to find where in the IDE stores and checks this limit.
Thanks,
David Zhou
Hello David
If the Bus Clock that you configured in CPU component is 60MHz, the UART5 of Baud Rate can be up to 3750000. So there is no problem to configure the Baud Rate into 921600
I checked in the source code, the macro definition for BSPCFG_SCI5_BAUD_RATE is set correctly and it should work well. You can ignore the message of exceeds max limit.
Best Regards
Fiona Kuang
Technical Information & Commercial Support