How to configure LPUART clock properly on KL17

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to configure LPUART clock properly on KL17

1,167 次查看
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 回复

857 次查看
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 项奖励
回复