Hello,
I've read in ''KE04 Sub - Family Reference Manual'' how the baud rate is calculated:
We want to achieve 230400 baud rate. with 24 Mhz that we got from the bus we cannot achieve this with an 1.5% error.
The PE give us en error: "Time setting failed, it is impossible to set the following item".
We are using PE in KDS IDE, we can only choose by default an internal bus clock 24 Mhz, on our board we have an external clock 20 Mhz.
Is there any way to choose an external clock? Or maybe other trick to achieve 230400 baud rate?
Jenia,
Thank you.
Hi
Customer need select the external crystal clock 22.1184MHz as system oscillator reference clock.
Then the bus clock is using external crystal clock and customer could set SRB[12:0] with value 0x6 to get UART baud rate 230400.
Please refer attached Processor Expert clock setting.
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------