Config Baudrate for LPUART0 to 10 Mbaud, MK22FN128VLH10

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Config Baudrate for LPUART0 to 10 Mbaud, MK22FN128VLH10

1,657件の閲覧回数
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 件の賞賛
返信
1 返信

1,462件の閲覧回数
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 件の賞賛
返信