Hi,
We want to config the LPUART of the MK22. We need a baudrate of 10 Mbaud.
As clock base we prefer to use the IRC48M. How to Config the MCG to get a higher Frequenz (80 Mhz)?
And how config the LPUART (SBR, OSR)?
Hi Stephanie,
1. 10M baud rate configuration:
From the reference manual of K22FN128VLH10, you can get that:
Baud rate= LPCUART module clock/(SBR[12:0]*(OSR+1))
If you choose the module clock = MCGFLLCLK =80Mhz, then you can get that:
SBR[12:0]*(OSR+1) = 80MHZ/10MHZ=8.
Then you can choose OSR=3, SBR=2;
2. As clock base we prefer to use the IRC48M. How to Config the MCG to get a higher Frequenz (80 Mhz)?
You can use the KDS Processor expert to configure it:
Wish it helps you!
If you still have question, please contact me~
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------