How to configure LPUART clock properly on KL17

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

How to configure LPUART clock properly on KL17

1,166件の閲覧回数
ken_sloat
Contributor II


I am wondering how to properly configure the LPUART clock frequency on a KL17. I see in the driver where I can set the clock source:

   *  00: Clock Disabled

     *  01: IRC48M

     *  10: OSCERCLK

     *  11: MCGIRCCLK

 

Currently we have IRC48M, but since this seems to be an internal clock, we believe it may be inaccurate because we're seeing occasional junk characters on UART. I could change it to OSCERCLK, however with a 32K oscillator we won't be able to properly hit 115200 baud.

 

Btw this is using KSDK 2.0

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

856件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kenneth,

You can refer to the demo under KSDK :boards\frdmkl43z\driver_examples\lpuart

If still can not work , please tell me the part number of your chip, and show the code about

how to configure.

Hope it helps

Alice

0 件の賞賛
返信