KL43Z lpuart demo any special settings?

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

KL43Z lpuart demo any special settings?

跳至解决方案
1,748 次查看
tonymakkiel
Contributor III

I am trying to run the lpuart_dma_transfer demo. But for some reason the terminal output is not readable. So I tried the example lpuart_interrupt. But again for some reason the characters printed out are different. For example, typing the following

112233445566

prints 

LLff&&ssMM33

 

The terminal is set at 115200-8-N-1 setting. The output seems to be consistent though (1 always prints out L). 

 

Any idea what might be going wrong? Initially I thought I have some wrong setting like baud rate.

 

Many Thanks,

Tony

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
745 次查看
tonymakkiel
Contributor III

It was the voltage level. As the output was taken from the pin needed a level converter!

在原帖中查看解决方案

0 项奖励
回复
2 回复数
746 次查看
tonymakkiel
Contributor III

It was the voltage level. As the output was taken from the pin needed a level converter!

0 项奖励
回复
745 次查看
tonymakkiel
Contributor III

It has something to do with the connection. I loop back the connection (Connected Tx <--> Rx) and it works fine. Could it be the baud rate from KL43?

When Connected to PC Sending '1' (Ascii 0x31) KL43 receives value 0x67, when sent back the terminal receives L (Ascii 0x4C)!

1 (0x31) --> KL43 Rx 0x67 --> Terminal receives 0x4C

2 (0x32) --> KL43 Rx 0x33 --> Terminal receives 0x66

0 项奖励
回复