Simple UART on KL26Z

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

Simple UART on KL26Z

1,724 次查看
funkyguy4000
Contributor II

Hello,

I am working on an I2S application for my university although I need UART enabled for various development purposes.
I have worked with UART with AVR controllers although the application needs the higher powered 32-bit capabilities of the KL26Z

In my experience with AVRs, using the UART was simply setting simple parameters in the UART control registers and then enabling them and using simple functions.
Does anybody have code I could use or point me in the right direction?

标记 (2)
0 项奖励
回复
1 回复

949 次查看
Paul_Tian
NXP Employee
NXP Employee

Hi, Shannon

I2S and I2C are not the same serial communication function.

For KL26Z, you can use KL26 sample code from link FRDM-KL26Z: Freescale Freedom Development Platform for Kinetis KL16 and KL26 MCUs (up to 128 KB Flas...

The sample code named "FRDM_KL26_SC". After you install it, you can find demo code in path ...\FRDM-KL26Z_SC\FRDM-KL26Z_SC_Rev_1.0\klxx-sc-baremetal\build\iar\FRDM_KL26ZDemo. UART setting function is in C file sysinit.c.

Hope my reply can help you.

Best Regards

Paul

0 项奖励
回复