Config Baudrate for LPUART0 to 10 Mbaud, MK22FN128VLH10

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Config Baudrate for LPUART0 to 10 Mbaud, MK22FN128VLH10

794 Views
stephaniestollb
Contributor I

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)?

0 Kudos
1 Reply

599 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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:

17.jpg

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos